Pollution Fix Spread for ribbon world

by NewTech

This mod fixes the illogical vanilla behavior of pollution spreading and dispersing outside the map in ribbon worlds. All your pollution will only spread along the length of your surface.

Tweaks
2 months ago
2.0
121
Environment

g Help for Maze World

4 months ago

Hello, i´ve been trying to get this to work...
i want to make a modpack for a tower defence like scenario using "Ribbon Maze (fix for 2.0)" and a bunch of other mods.
It´s possible to start it with strip world (minimum 160 height or width) but somehow i cant get it to work properly.
Usually i disable trees, water and increase pollution spread value in map gen settings.
If you could help that would be great :)
Your mod is needed for that.

3 months ago
(updated 3 months ago)

[Used google translate]

Unfortunately, my mod will not work with "Ribbon Maze" since my mod is strictly tied to the world map borders from the generation settings, this was done from the point of view of optimizing the load on the game, among other things.

And the "Ribbon Maze" mod works in a different way. It doesn't use world map borders.
So if you need similar functionality for this mod, then you will have the only way out in implementing a completely custom system for spreading pollution on the world map.

By the way, I requested the addition of an additional method "set _pollution()" to the game API, which is just right for this purpose, and it has already been added starting with version ".48". I will make this change to my mod in the next few days, but no more.

3 months ago

And regarding the ribbon world, you still haven't described what the problem is that you're asking for help with.

2 months ago

Sorry, i didnt noticed you answered, sorry for the missunderstanding. I start the world as ribbon world in map gen settings, but because of the "ribbon maze" mod its not working. Without the maze its working. Like you said, i guess the maze mod uses some map overlay and a different kind of map border chunks.
If it would work the pollution would spread inside the maze only.

2 months ago

I understood the essence of your problem correctly initially, and gave an answer (2nd post) to it.

Perhaps I was not detailed enough in details.
This mod uses the map generation parameters:
height_limit / width_limit - these are special limiters in the game, which are set by the parameters in the world generation height / width. They mean that there is literally nothing above / below +-x / 2 or +-y / 2, most likely even the chunks themselves are not created there. And this mod uses these parameters to determine what is above / below if there is pollution, then it must be returned to the first chunk below / above this border.

The "ribbon maze" mod works differently, it generates the most ordinary game map in size, without height / width restrictions, then according to the algorithm, this mod fills the necessary chunks with a surface type called "void".
But these chunks remain completely playable in the game's opinion.

Therefore, in order to achieve the desired behavior, you need to create or find a completely artificial system for implementing the spread of pollution, I have already thought about creating it and I know that it is quite simple to do. This is your only way to achieve what you want.

New response