Factorio – How to Disable Enemy Attacks

factorio

Is it possible to enable "Enemies never attack first" option in an existing save game? Could I modify a specific file to achieve the same?

Best Answer

You can use the console (open via the ` button) and enter this command:

/c game.player.surface.peaceful_mode = true

You will need to enter it twice (as the console text will inform you), and it will disable the achievements from that point onwards for the saved game.