Page 1 of 1

COnsole: peaceful_mode in 0.12.35?

Posted: Wed Aug 24, 2016 9:41 pm
by Quax
Hi all,
since this is my first post here ... greetings to the community first :-)

Second, my question: I restarted a game where I had the "enemies never attack first" checkbox activated, but obviously that only counts for the first game, but isn't taken into account if you use the "restart" function from the game menu. So now I unexpectedly have been attacked and wanted to turn the peaceful mode on using the console command:

/c game.player.surface.peaceful_mode = true

However, the game returns the following line:

Cannot execute command. LuaSurface doesn't contain key peaceful_mode

is the console command for turning the peaceful mode on only available in version 0.13.x? I'm running the 0.12.35.

Since I'm just starting with the game, I want to concentrate on the basic building part without having to hassle with the beasts ...

Any help is appreciated!

Cheers, Peter

Re: COnsole: peaceful_mode in 0.12.35?

Posted: Wed Aug 24, 2016 10:31 pm
by Nexela
/c game.peaceful_mode = true

then you need to kill everything once with....

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


This should work in .12.35

Re: COnsole: peaceful_mode in 0.12.35?

Posted: Thu Aug 25, 2016 6:48 am
by Quax
Thanks, will check it out in the evening :-)

Re: COnsole: peaceful_mode in 0.12.35?

Posted: Wed Aug 31, 2016 10:55 am
by Quax
Thank you, worked out fine :-)