Peaceful mode.

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
kevinski120
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jul 20, 2015 11:49 am
Contact:

Peaceful mode.

Post by kevinski120 »

So I have this quite good factory now but I keep having to reload due to large biter attacks. Is there any way to turn on peaceful mode so that won't happen again. Thanks in advance
ratchetfreak
Filter Inserter
Filter Inserter
Posts: 952
Joined: Sat May 23, 2015 12:10 pm
Contact:

Re: Peaceful mode.

Post by ratchetfreak »

in the chat (tilde key by default) type

Code: Select all

/c game.peaceful_mode = true
/c game.forces['enemy'].kill_all_units()
Last edited by ratchetfreak on Thu Jul 23, 2015 9:40 am, edited 1 time in total.
kevinski120
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jul 20, 2015 11:49 am
Contact:

Re: Peaceful mode.

Post by kevinski120 »

Okay thanks ill try that hopefully I won't get attacked anymore.
kevinski120
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jul 20, 2015 11:49 am
Contact:

Re: Peaceful mode.

Post by kevinski120 »

kevinski120 wrote:Okay thanks ill try that hopefully I won't get attacked anymore.
So I tried this and it didn't work for some reason it could be cause i modified my world a bit. I have closed Factorio completly and restarted also didn't work. What could be the problem?
ratchetfreak
Filter Inserter
Filter Inserter
Posts: 952
Joined: Sat May 23, 2015 12:10 pm
Contact:

Re: Peaceful mode.

Post by ratchetfreak »

kevinski120 wrote:
kevinski120 wrote:Okay thanks ill try that hopefully I won't get attacked anymore.
So I tried this and it didn't work for some reason it could be cause i modified my world a bit. I have closed Factorio completly and restarted also didn't work. What could be the problem?
version 0.11 or version 0.12 the commands changed between those 2

in version 0.11 it's

Code: Select all

    /c game.peacefulmode = true
    /c game.killallenemies()
kevinski120
Burner Inserter
Burner Inserter
Posts: 6
Joined: Mon Jul 20, 2015 11:49 am
Contact:

Re: Peaceful mode.

Post by kevinski120 »

ratchetfreak wrote:
kevinski120 wrote:
kevinski120 wrote:Okay thanks ill try that hopefully I won't get attacked anymore.
So I tried this and it didn't work for some reason it could be cause i modified my world a bit. I have closed Factorio completly and restarted also didn't work. What could be the problem?
version 0.11 or version 0.12 the commands changed between those 2

in version 0.11 it's

Code: Select all

    /c game.peacefulmode = true
    /c game.killallenemies()
I am playing in version 0.12
Turtle
Fast Inserter
Fast Inserter
Posts: 240
Joined: Sat May 31, 2014 9:45 pm
Contact:

Re: Peaceful mode.

Post by Turtle »

I use:

Code: Select all

/c game.peaceful_mode = true;game.forces.enemy.kill_all_units ()
FishSandwich
Smart Inserter
Smart Inserter
Posts: 1847
Joined: Sun Feb 23, 2014 3:37 pm
Contact:

Re: Peaceful mode.

Post by FishSandwich »

ratchetfreak wrote:/c game.forces['enemies'].kill_all_units()
Enemy, not enemies.
Post Reply

Return to “Gameplay Help”