Or even better, skip the middle man and set the probability expression on the tile directly
data.raw.tile["fulgoran-dunes"].autoplace.probability_expression = "if(x_from_start^2 + y_from_start^2 < 2, 1, -1000)"
Search found 4 matches
- Sun Nov 09, 2025 2:24 am
- Forum: Modding discussion
- Topic: Elevation/Noise Help
- Replies: 3
- Views: 321
- Sat Nov 08, 2025 10:02 pm
- Forum: Modding discussion
- Topic: Elevation/Noise Help
- Replies: 3
- Views: 321
Re: Elevation/Noise Help
I had been digging around the map gen and noise expressions, but your mention of tiles led me down a good path. The elevation and code I had posted before is relevant, but it's only part of the puzzle.
In addition to the elevation piece posted earlier, I also turned off all tiles on Fulgora except ...
In addition to the elevation piece posted earlier, I also turned off all tiles on Fulgora except ...
- Tue Oct 14, 2025 2:00 am
- Forum: Modding discussion
- Topic: Elevation/Noise Help
- Replies: 3
- Views: 321
Elevation/Noise Help
I'm trying to have a mod setup "seablock"-style map gen for every planet - a single tile of land surrounded by whatever that planet's "ocean" is - lava on Vulcanus, oil on Fulgora, etc. So far I've got this, which works great for Nauvis and does exactly what I want:
data:extend({{
type = "noise ...
data:extend({{
type = "noise ...
- Fri Nov 22, 2024 3:09 am
- Forum: Resolved Requests
- Topic: [2.0.21] - SpacingItem - (u)int32_t
- Replies: 1
- Views: 351
[2.0.21] - SpacingItem - (u)int32_t
The prototype definitions for SpacingItem in the 2.0.21 version have the new SpacingItem type with properties index of type uint32_t and spacing of type int32_t. Likely a bug and the _t suffix should be removed?