diff --git a/exp_legacy/module/config/advanced_start.lua b/exp_legacy/module/config/advanced_start.lua index 7c073553..6653d06b 100644 --- a/exp_legacy/module/config/advanced_start.lua +++ b/exp_legacy/module/config/advanced_start.lua @@ -75,7 +75,6 @@ end return { skip_intro = true, --- @setting skip_intro skips the intro given in the default factorio free play scenario skip_victory = true, --- @setting skip_victory will skip the victory screen when a rocket is launched - research_queue_from_start = true, --- @setting research_queue_from_start when true the research queue is useable from the start friendly_fire = false, --- @setting friendly_fire weather players will be able to attack each other on the same force enemy_expansion = false, --- @setting enemy_expansion a catch all for in case the map settings file fails to load chart_radius = 10 * 32, --- @setting chart_radius the number of tiles that will be charted when the map starts diff --git a/exp_legacy/module/modules/addons/advanced-start.lua b/exp_legacy/module/modules/addons/advanced-start.lua index 6ead100c..f544658e 100644 --- a/exp_legacy/module/modules/addons/advanced-start.lua +++ b/exp_legacy/module/modules/addons/advanced-start.lua @@ -32,17 +32,17 @@ Event.add(defines.events.on_player_created, function(event) end) Event.on_init(function() - remote.call("freeplay", "set_created_items", {}) - remote.call("freeplay", "set_chart_distance", 0) - remote.call("freeplay", "set_skip_intro", config.skip_intro) - if config.research_queue_from_start then - for _, force in pairs(game.forces) do - -- force.research_queue_enabled = true - end + if remote.interfaces["freeplay"] then + remote.call("freeplay", "set_created_items", {}) + --remote.call("freeplay", "set_respawn_items", {}) + remote.call("freeplay", "set_chart_distance", 0) + remote.call("freeplay", "set_disable_crashsite", true) + remote.call("freeplay", "set_skip_intro", config.skip_intro) end - if not config.disable_base_game_silo_script then - if config.skip_victory then - remote.call("silo_script", "set_no_victory", true) - end + if remote.interfaces["silo_script"] then + remote.call("silo_script", "set_no_victory", config.skip_victory) + end + if remote.interfaces["space_finish_script"] then + remote.call("space_finish_script", "set_no_victory", config.skip_victory) end end)