Page 1 of 1

Turn Pollution Back On?

Posted: Sat Jul 08, 2017 6:23 pm
by Singular
Hello All,

I generated a map using the map generator and turned off pollution and biters, I then transferred that map to a headless server and have been hosting it there. I have found the commands to turn biters back on, and biter expansion back on, but I haven't been able to figure out how to turn pollution back on. I have looked at the pollution map and there isn't anything there, and if you hit f5 and look at the pollution on the tile\chunk level it's all zero. Is there a way to turn pollution back on so that the game will behave normally?

Thanks.

Re: Turn Pollution Back On?

Posted: Mon Jul 10, 2017 10:32 pm
by AlienX
You can try the following:

Code: Select all

/c game.map_settings.pollution.enabled = true

If that doesn't work, perhaps Factorio's 'No Pollution' mode also overwrites default pollution values, to reset them use:

Code: Select all

/c local x = game.map_settings.pollution
      x.enabled = true
      x.diffusion_ratio=0.02
      x.min_to_diffuse=15
      x.ageing=1
      x.expected_max_per_chunk=7000
      x.min_to_show_per_chunk=700
      x.min_pollution_to_damage_trees = 3500
      x.pollution_with_max_forest_damage = 10000
      x.pollution_per_tree_damage = 2000
      x.pollution_restored_per_tree_damage = 500
      x.max_pollution_to_restore_trees = 1000

Re: Turn Pollution Back On?

Posted: Mon Jul 10, 2017 10:41 pm
by Singular
That worked perfectly, thanks AlienX!

Re: Turn Pollution Back On?

Posted: Thu Jan 25, 2018 8:18 pm
by Sacredd
/c game.map_settings.pollution.enabled = true

Worked for in 0.16.x.
Thank you.