Page 1 of 1

Peaceful 1.3

Posted: Tue Jun 28, 2016 2:26 pm
by Lagiacrius
I was wondering what was the new command to put the map on peaceful,because /game.peaceful_mode = false didn't works anymore. :?

Re: Peaceful 1.3

Posted: Thu Jun 30, 2016 8:33 am
by ex0
Because it has to be:

Code: Select all

/game.peaceful_mode = true 
after that type:

Code: Select all

/c game.forces['enemy'].kill_all_units()
Because if the enemies are not killed they are still in attack mode ;)

Hope this helps.

ex0

Re: Peaceful 1.3

Posted: Fri Jul 01, 2016 3:12 am
by ghastendee
I'm having the exact same problem, but writing

/c game.peaceful_mode = true

generates errorcode

"Cannot excecute command. Error: [string "game.peaceful_mode = true"]:1:LuaGameScrips doesn't contain key peaceful_mode.

I'm running 0.13.0

Re: Peaceful 1.3

Posted: Fri Jul 01, 2016 6:33 am
by prg
Peacefulness is now a surface property.

Code: Select all

/c game.player.surface.peaceful_mode=true

Re: Peaceful 1.3

Posted: Fri Jul 01, 2016 12:33 pm
by ghastendee
prg wrote:Peacefulness is now a surface property.

Code: Select all

/c game.player.surface.peaceful_mode=true


THANK YOU!
i love you and this forum