[Genhis][2.0.28] Crash calling game.simulation.write in main menu simulation (PlayerInputSource::getGameView)
Posted: Tue Dec 31, 2024 2:03 pm
Simply put this in a mod's data.lua and Factorio will crash when it tries to load the main menu:
This crash is probably my fault, however there's nothing in the documentation that suggests I'm doing anything wrong:
Ideally though, I would like the game to actually give me an error messaging suggesting what I did wrong.
Code: Select all
data.raw["utility-constants"]["default"].main_menu_simulations = {
my_simulation = {
init = [[game.simulation.write{text="hello world"}]] }}