Page 1 of 1
Changing Map Settings during gameplay
Posted: Sun Apr 16, 2017 11:06 am
by lieblingsbesuch
Hey Guys, I am playing a map in "peace mode", and found out it is kinda lame; Enemies do not spread and it is no challenge to kill them.
Can I uncheck "Peace mode" maybe due to manipulate the existent savegame or something?
Thanks in advance.
Re: Changing Map Settings during gameplay
Posted: Sun Apr 16, 2017 12:41 pm
by Loewchen
Open console (see keybindings on how).
Code: Select all
/c game.player.surface.peaceful_mode = false
You will not gain the ability to obtain achievements for this map though.
Re: Changing Map Settings during gameplay
Posted: Mon Apr 17, 2017 12:54 am
by BenSeidel
You can also modify the control.lua in the save game (under the directory that has the saves name). Pick an event that you can trigger and use that. My favourite is on_player_ammo_inventory_changed, as it's quick to trigger. (insert or remove anything from your weapon area in the bottom right hand of the screen).
Just paste this at the bottom of the control.lua code and recompress the zip (WinRar detects a change in the open file and asks you if you would like to save it to the zip, so it's really easy):
Code: Select all
script.on_event(defines.events.on_player_ammo_inventory_changed, function(event)
game.player.surface.peaceful_mode = false
end)
You can put any LUA command in there and it will trigger, without disabling achievements. I use it to enable/disable my trains. Put a pistol in, my trains start moving, take my pistol out and the trains stop moving.
Re: Changing Map Settings during gameplay
Posted: Mon Apr 17, 2017 9:42 am
by steinio
You also need to kill all biters with the old setting via script.
Something like this:
viewtopic.php?f=18&t=29787
Greetings steinio