[2.0.72] resource_autoplace_all_patches noise-expressions with identical regular_patch_set_index influence each other
Posted: Sat Oct 25, 2025 4:34 pm
With this code in a data.lua (no other code anywhere else, no other mods. zipped mod is attached.):
And starting a new freegame with default settings, I would expect iron patches to be the same size as usual, with small copper patches in the middle (or very little/no copper, if the RNG got unlucky, I guess).
Instead I see the following (very small, roughly circular iron patch with bits of copper ore. A normal iron patch should have like 4 times that radius (and be less regular and all that)):
When I turn off iron ore in the new game settings, I get small circular copper patches, roughly of the dimensions shown in the screenshot.
If instead I turn off copper ore, I get perfectly normal iron patches.
So it looks like changing the index in the copper noise expression somehow influenced the iron noise expression or something?
Code: Select all
local copper = data.raw["noise-expression"]["default-copper-ore-patches"]
copper.expression = copper.expression
:gsub("regular_rq_factor = 0%.11", "regular_rq_factor = 0.03")
:gsub("regular_patch_set_index = 1", "regular_patch_set_index = 0")
Instead I see the following (very small, roughly circular iron patch with bits of copper ore. A normal iron patch should have like 4 times that radius (and be less regular and all that)):
When I turn off iron ore in the new game settings, I get small circular copper patches, roughly of the dimensions shown in the screenshot.
If instead I turn off copper ore, I get perfectly normal iron patches.
So it looks like changing the index in the copper noise expression somehow influenced the iron noise expression or something?