Turn Pollution Back On?

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
Singular
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Jul 08, 2017 6:12 pm
Contact:

Turn Pollution Back On?

Post 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.
-Singular

AlienX
Fast Inserter
Fast Inserter
Posts: 103
Joined: Wed May 17, 2017 7:13 pm
Contact:

Re: Turn Pollution Back On?

Post 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

Singular
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Jul 08, 2017 6:12 pm
Contact:

Re: Turn Pollution Back On?

Post by Singular »

That worked perfectly, thanks AlienX!
-Singular

Sacredd
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Fri Mar 18, 2016 9:30 am
Contact:

Re: Turn Pollution Back On?

Post by Sacredd »

/c game.map_settings.pollution.enabled = true

Worked for in 0.16.x.
Thank you.

Post Reply

Return to “Technical Help”