[2.0.66] Crash when mod is added to simulation "Cannot deduce player for input action: 240."

This subforum contains all the issues which we already resolved.
User avatar
asher_sky
Long Handed Inserter
Long Handed Inserter
Posts: 67
Joined: Sun Oct 18, 2020 7:13 pm
Contact:

[2.0.66] Crash when mod is added to simulation "Cannot deduce player for input action: 240."

Post by asher_sky »

What?
If you add the Rate Calculator mod to the main menu simulations (add it to .mods list), Factorio crashes with stack trace:
Stack trace logging done
28.495 Error PlayerInputSource.cpp:593: Cannot deduce player for input action: 240.
28.496 Error CrashHandler.cpp:643: Received 6
Logger::writeStacktrace skipped.
28.496 Info LuaEventDispatcher.cpp:784: dispatching event on_tick (ID 0), script mod-RateCalculator
How?
1. Create a basic mod with an info.json that requires "RateCalculator" as dependency
2. Add this code to data.lua:

Code: Select all

for _, simulation in pairs(data.raw["utility-constants"]["default"].main_menu_simulations) do
    simulation.mods = simulation.mods or {}
    table.insert(simulation.mods, "RateCalculator")
end
3. Load the game and enable the mod. Crash occurs as soon as a main menu simulation starts to play
Attachments
factorio-current.log
(31.52 KiB) Downloaded 10 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16111
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.66] Crash when mod is added to simulation "Cannot deduce player for input action: 240."

Post by Rseding91 »

Thanks for the report. This is now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”