Peaceful 1.3

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Lagiacrius
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sat Feb 14, 2015 1:58 am
Contact:

Peaceful 1.3

Post 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. :?
ex0
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Mar 30, 2016 11:29 am
Contact:

Re: Peaceful 1.3

Post 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
ghastendee
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Jun 28, 2016 4:11 pm
Contact:

Re: Peaceful 1.3

Post 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
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Peaceful 1.3

Post by prg »

Peacefulness is now a surface property.

Code: Select all

/c game.player.surface.peaceful_mode=true
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
ghastendee
Manual Inserter
Manual Inserter
Posts: 4
Joined: Tue Jun 28, 2016 4:11 pm
Contact:

Re: Peaceful 1.3

Post 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
Post Reply

Return to “Gameplay Help”