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
Disable peaceful mode in existing Headless server
-
- Burner Inserter
- Posts: 5
- Joined: Tue Dec 27, 2016 9:35 pm
- Contact:
Re: Disable peaceful mode in existing Headless server
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
Check peaceful mode
/c game.player.print(game.player.surface.peaceful_mode)
Change peaceful mode to off
/c game.player.surface.peaceful_mode = false
-
- Burner Inserter
- Posts: 5
- Joined: Tue Dec 27, 2016 9:35 pm
- Contact:
Re: Disable peaceful mode in existing Headless server
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.
Before I created this Headless server, we tried a local multiplayer and we would constantly get attacked, and we seemed to enjoy it more.

-
- Burner Inserter
- Posts: 5
- Joined: Tue Dec 27, 2016 9:35 pm
- Contact:
Re: Disable peaceful mode in existing Headless server
We're still not getting attacked... I don't get it :-/
-
- Fast Inserter
- Posts: 171
- Joined: Sun Feb 17, 2013 4:31 pm
- Contact:
Re: Disable peaceful mode in existing Headless server
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.
-
- Burner Inserter
- Posts: 5
- Joined: Tue Dec 27, 2016 9:35 pm
- Contact:
Re: Disable peaceful mode in existing Headless server
I have tried running
/c game.forces["enemy"].kill_all_units()
/c game.forces["enemy"].kill_all_units()