Used by tips and tricks and main menu simulations. Simulations can be controlled at runtime via LuaSimulation.
struct
SpaceLocationIDtrueGameViewSettingstrueOnly applied to the simulation if a test player is created through LuaSimulation::create_test_player.
FileNametrueThe save file that is used for this simulation. If not given and generate_map is true, a map is generated by the game.
FileNametrueThis code is run as a (silent) console command inside the simulation when it is first initialized. Since this is run as a console command, the restrictions of console commands apply, e.g. require is not available, see here.
stringtrueOnly loaded if init_file is not defined.
This code is run as a (silent) console command inside the simulation when it is first initialized. Since this is run as a console command, the restrictions of console commands apply, e.g. require is not available, see here.
FileNametrueThis code is run as a (silent) console command inside the simulation every time the simulation is updated. Since this is run as a console command, the restrictions of console commands apply, e.g. require is not available, see here.
stringtrueOnly loaded if update_file is not defined.
This code is run as a (silent) console command inside the simulation every time the simulation is updated. Since this is run as a console command, the restrictions of console commands apply, e.g. require is not available, see here.
Array<string>trueAn array of mods whose runtime scripts will be loaded for this simulation, if they are present and enabled.
uint32trueAmount of ticks that this simulation should run for before the simulation is shown to the player. These updates happen after init/init_file has been run and at the highest possible rate (> 60 UPS).
uint32trueHow long this simulation takes. In the main menu simulations, another simulation will start after this simulation ends.
booleantrueIf save is not given and this is true, a map gets generated by the game for use in the simulation.
booleantrueIf this is true, the map of the simulation is set to be a lab-tile checkerboard in the area of {{-20, -15},{20, 15}} when the scenario is first initialized (before init/init_file run).
booleantruebooleantruebooleantruefloattrueMultiplier for the simulation volume set by the player in the sound settings.
booleantrueIf true, overrides the simulation volume set by the player in the sound settings, simply setting the volume modifier to 1.
booleantrueOverrides whether a simulation has its wind sounds muted.
Tips and Tricks simulations and Factoriopedia simulations have their wind sounds muted by default, other simulations don't.
booleantrue