Page 1 of 1

Disable peaceful mode in existing Headless server

Posted: Wed Dec 28, 2016 6:11 am
by SuperProPlayer
Hello,

I've already generated a server using the following command:


/opt/factorio/bin/x64/factorio --create saves/super-server.zip --map-gen-settings data/map-gen-settings.json


map-gen-settings.json has "peaceful_mode": false,


yet we've been playing for several hours without being attacked a single time.


Is there a console command to check if peaceful_mode is on? and is there one to switch it off if it's set to true?

Thanks

Re: Disable peaceful mode in existing Headless server

Posted: Wed Dec 28, 2016 6:37 am
by Nexela
Depending on the size of your starting area it can take a while for enemies to attack you. And if you haven't generated too many chunks outside of your starting area for spawners to show up on the map they won't bother you either. Drop down some radars to scan out further.

Check peaceful mode
/c game.player.print(game.player.surface.peaceful_mode)

Change peaceful mode to off
/c game.player.surface.peaceful_mode = false

Re: Disable peaceful mode in existing Headless server

Posted: Wed Dec 28, 2016 8:34 am
by SuperProPlayer
Thank you, it says false but after 12 hours we didn't get attacked even once.

Before I created this Headless server, we tried a local multiplayer and we would constantly get attacked, and we seemed to enjoy it more. :)

Re: Disable peaceful mode in existing Headless server

Posted: Wed Dec 28, 2016 9:01 pm
by SuperProPlayer
We're still not getting attacked... I don't get it :-/

Re: Disable peaceful mode in existing Headless server

Posted: Wed Dec 28, 2016 9:31 pm
by Rockstar04
I dont have any strong evidence for this, but I believe that you would need to go clear out any enemies that are currently in your pollution range to allow "hostile" biter nests to spawn in their place.

Re: Disable peaceful mode in existing Headless server

Posted: Wed Dec 28, 2016 10:31 pm
by SuperProPlayer
I have tried running

/c game.forces["enemy"].kill_all_units()