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.
Changing Map Settings during gameplay
-
- Burner Inserter
- Posts: 5
- Joined: Tue Apr 11, 2017 1:27 pm
- Contact:
Re: Changing Map Settings during gameplay
Open console (see keybindings on how).
You will not gain the ability to obtain achievements for this map though.
Code: Select all
/c game.player.surface.peaceful_mode = false
Re: Changing Map Settings during gameplay
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):
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.
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)
Re: Changing Map Settings during gameplay
You also need to kill all biters with the old setting via script.
Something like this: viewtopic.php?f=18&t=29787
Greetings steinio
Something like this: viewtopic.php?f=18&t=29787
Greetings steinio