What did you do?
1. Created a save file (simulation_1.zip) with a factory built in a custom mod scenario.
3. Defined a menu simulation in menu-simulations.lua with mods = {} (empty table, to ensure no mod scripts are loaded).
4. Launched Factorio.
What happened?
The game crashed while loading the main menu. The error in factorio-current.log is:
Error PlayerInputSource.cpp:633: Cannot deduce player for input action: 119.
Stack trace points to CustomGui::ensureScreenElementsAreOnScreen and Scenario::tryToSendInputAction.
What did you expect to happen instead?
The simulation should load and display the save file as a background in the main menu.
Does it happen always, once, or sometimes?
Always. It happens every time the game tries to load this specific simulation.
[Genhis][2.1.24] Crash "Cannot deduce player" when loading custom menu simulation even with mods={}
-
ZepCannon_Forum
- Manual Inserter

- Posts: 3
- Joined: Tue May 20, 2025 6:12 pm
- Contact:
[Genhis][2.1.24] Crash "Cannot deduce player" when loading custom menu simulation even with mods={}
- Attachments
-
- menu-simulations.lua
- (1.02 KiB) Downloaded 20 times
-
- simulation_1.zip
- (4.32 MiB) Downloaded 24 times
-
- factorio-current.log
- (35.33 KiB) Downloaded 24 times
Re: [Genhis][2.1.24] Crash "Cannot deduce player" when loading custom menu simulation even with mods={}
Thanks for the report. I can't reproduce this, I get an error "LuaGameScript does not contain create_test_player" and when I fix your example, the game doesn't crash. Please create a minimal mod with your simulation code which crashes for you when the simulation loads. If it crashes only with a specific set of mods, upload a fresh save file, so I can quickly sync them.
-
ZepCannon_Forum
- Manual Inserter

- Posts: 3
- Joined: Tue May 20, 2025 6:12 pm
- Contact:
Re: [Genhis][2.1.24] Crash "Cannot deduce player" when loading custom menu simulation even with mods={}
Hmm... That’s strange; I was able to reproduce the error even without any mods enabled, but for some reason, I can’t seem to do it now... However, I do have an example that uses mods, which I’ve attached (please sync mods and replace the `pvptorio-new` mod with the version I’ve provided - it includes the simulation code, specifically `menu-simulations.lua` and `data.lua`). I’ve also attached a mod list, just in case.Genhis wrote: Sat Nov 21, 2026 2:24 pm Thanks for the report. I can't reproduce this, I get an error "LuaGameScript does not contain create_test_player" and when I fix your example, the game doesn't crash. Please create a minimal mod with your simulation code which crashes for you when the simulation loads. If it crashes only with a specific set of mods, upload a fresh save file, so I can quickly sync them.
- Attachments
-
- mod-list.json
- (3.98 KiB) Downloaded 14 times
-
- pvptorio-new_0.3.15.zip
- (75.39 MiB) Downloaded 15 times
-
- simulation_1.zip
- (5.55 MiB) Downloaded 14 times
Re: [Genhis][2.1.24] Crash "Cannot deduce player" when loading custom menu simulation even with mods={}
Thanks, it is fixed for 2.1.26.
