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

Post your bugs and problems so we can fix them.
User avatar
snouz
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Sun Jan 03, 2021 6:01 pm
Contact:

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

Post 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 237 times
Planet Moshine, GUI Unifier + 17 mods, contributed graphically and otherwise to 70+ mods
Rseding91
Factorio Staff
Factorio Staff
Posts: 16174
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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
If you want to get ahold of me I'm almost always on Discord.
User avatar
PennyJim
Fast Inserter
Fast Inserter
Posts: 139
Joined: Wed Jan 18, 2023 3:49 am
Contact:

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

Post 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?
Post Reply

Return to “Bug Reports”