mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 03:25:23 +09:00
Fix remote interfaces in adv start
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user