With this code in a data.lua (no other code anywhere else, no other mods. zipped mod is attached.):
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 ...
Search found 4 matches
- Sat Oct 25, 2025 4:34 pm
- Forum: Bug Reports
- Topic: [2.0.72] resource_autoplace_all_patches noise-expressions with identical regular_patch_set_index influence each other
- Replies: 0
- Views: 119
- Tue Sep 16, 2025 7:35 pm
- Forum: Modding help
- Topic: resource_autoplace_all_patches noise-expressions with identical regular_patch_set_index influence each other?
- Replies: 4
- Views: 619
Re: resource_autoplace_all_patches noise-expressions with identical regular_patch_set_index influence each other?
Huh, I've never noticed that it's possible to turn off a resource before
.
Anyhow, when I turn off Iron, I get small circular copper patches, roughly of the dimensions shown in the screenshot.
If instead I turn off copper however, I get perfectly normal iron patches.
Anyhow, when I turn off Iron, I get small circular copper patches, roughly of the dimensions shown in the screenshot.
If instead I turn off copper however, I get perfectly normal iron patches.
- Sun Sep 14, 2025 7:39 pm
- Forum: Modding help
- Topic: resource_autoplace_all_patches noise-expressions with identical regular_patch_set_index influence each other?
- Replies: 4
- Views: 619
Re: resource_autoplace_all_patches noise-expressions with identical regular_patch_set_index influence each other?
You should use some regex for the string which will be replaced. In the base game, the rq values are 1.10, not 0.11.
Whoops, forgot to escape te . , tho that shouldn't change anything. resource-autoplace.lua resource_autoplace_settings divides the
regular_rq_factor_multiplier by 10, so 0.11 ...
- Sat Sep 13, 2025 1:04 pm
- Forum: Modding help
- Topic: resource_autoplace_all_patches noise-expressions with identical regular_patch_set_index influence each other?
- Replies: 4
- Views: 619
resource_autoplace_all_patches noise-expressions with identical regular_patch_set_index influence each other?
My initial goal was to have a small resource patch in the center(-ish) of another resource patch. I figured I could make them use the same location by ensuring that their spot_noise expressions use the same skip_offset parameter. While trying/debugging this approach I noticed the following:
With ...
With ...