Page 1 of 1

[2.0.69][Modding] SimulationDefinition::game_view_settings seemingly does nothing

Posted: Sat Oct 04, 2025 7:44 pm
by snouz
Hi, I noticed while making a menu simulation that this setting seemingly doesn't work as intended

https://lua-api.factorio.com/latest/typ ... w_settings

The save in question has been saved in normal mode, the way to bypass this is to save in editor mode, which makes the bottom bar disappear.

I also noticed that even when planet = panglia, by default the camera is on Nauvis, and to bypass that, I need to init "game.simulation.camera_player = "snouz"

Code: Select all

<code that makes every other sim disabled>
local menu_sims = data.raw["utility-constants"]["default"].main_menu_simulations
menu_sims.panglia_panderoots_sim = {
  checkboard = false,
  planet = "panglia",
  game_view_settings = {default_show_value = false, show_shortcut_bar = false, show_quickbar = false, show_tool_bar = false},
  save = "__panglia_planet__/menu-simulations/panglia_panderoots_sim.zip",
  length = 13 * second,
  init = [[
    game.simulation.camera_zoom = 1
    game.simulation.camera_player = "snouz"
    game.simulation.camera_position = {327,30}
    game.simulation.camera_alt_info = false
    game.simulation.hide_cursor = true
    game.tick_paused = false
  ]],
}
10-04-2025, 21-38-48.png
10-04-2025, 21-38-48.png (422.22 KiB) Viewed 238 times

Re: [2.0.69][Modding] SimulationDefinition::game_view_settings seemingly does nothing

Posted: Sat Oct 04, 2025 8:00 pm
by Rseding91
it looks like currently game view settings only apply if you create a test player through https://lua-api.factorio.com/latest/cla ... est_player

Re: [2.0.69][Modding] SimulationDefinition::game_view_settings seemingly does nothing

Posted: Sat Oct 11, 2025 11:53 pm
by PennyJim
Rseding91 wrote: Sat Oct 04, 2025 8:00 pm it looks like currently game view settings only apply if you create a test player through https://lua-api.factorio.com/latest/cla ... est_player
Maybe this should be moved to documentation improvements then?