I tried this command:
/c local surface = game.player.surface; for coord in surface.get_chunks() do surface.pollute({coord.x * 32, coord.y * 32}, -10000000) end
But when I open map and click on red button, pollution cloud still shows.
F4 - pollution chunks, all my base is still polluted.
I just can't remove pollution.... .
I can't remove pollution
Re: I can't remove pollution
pollution generated by tick. not by single action.andyfth wrote:I tried this command:
/c local surface = game.player.surface; for coord in surface.get_chunks() do surface.pollute({coord.x * 32, coord.y * 32}, -10000000) end
But when I open map and click on red button, pollution cloud still shows.
F4 - pollution chunks, all my base is still polluted.
I just can't remove pollution.... .
Re: I can't remove pollution
Works for me. Can you show us a screenshot taken immediatly after running the command, in the map view with pollution?andyfth wrote: /c local surface = game.player.surface; for coord in surface.get_chunks() do surface.pollute({coord.x * 32, coord.y * 32}, -10000000) end
But when I open map and click on red button, pollution cloud still shows.
F4 - pollution chunks, all my base is still polluted.
My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
Re: I can't remove pollution
Attachment.
Re: I can't remove pollution
Yeah that is weird. Seems like a bug. Report it.
I did copy and execute that exact command from your post and there's no problem with it on my end.
I did copy and execute that exact command from your post and there's no problem with it on my end.
My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
Re: I can't remove pollution
I solved it.
1. I disabled pollution.
2. Then I tried to remove pollution - didn't work. I come here.
3. I enabled pollution again. Removed pollution - this time it worked.
It seems that spread of pollution has to be enabled, to be able to remove it.
1. I disabled pollution.
2. Then I tried to remove pollution - didn't work. I come here.
3. I enabled pollution again. Removed pollution - this time it worked.
It seems that spread of pollution has to be enabled, to be able to remove it.
Re: I can't remove pollution
Ok not sure if it's a bug or not any more.andyfth wrote:I solved it. It seems that spread of pollution has to be enabled, to be able to remove it.
I understand now why it happens and why it could be considered expected behaviour by someone. But I think the command should work anyways, since turning pollution off doesn't remove pollution. So all turning pollution off means is to stop everything from changing pollution values. I would expect it to turn pollution simulation off, which would include removing it.
I still think you should report it as a bug.
My mods: Capsule Ammo | HandyHands - Automatic handcrafting | ChunkyChunks - Configurable Gridlines
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser
Some other creations: Combinassembly Language GitHub w instructions and link to run it in your browser | 0~drain Laser