ensure there's always at least one gas planet next to the spawn point at max 4 chunks #234

Closed
opened 2026-09-12 17:36:33 +00:00 by metaheavens · 1 comment
Owner
No description provided.
Author
Owner

Done in 885f977.

Measured before changing anything, and the seed had genuinely lost: zero gas planets within four chunks of the spawn, the nearest five away past five rocky ones. Gas giants are gated behind two independent noise fields — the SPACE biome and the planet roll — so whether any sat in reach was luck. Gas is an early need (the burner, ammunition), so the opening cannot depend on the noise being kind.

SPAWN_GAS_GIANT_CHUNK at (2, -2), authored like OCTOPUS_BIOME_CENTER rather than found by searching outward: a fixed chunk is reproducible from anywhere without walking the map, which is the property the rest of WorldGen is built on.

The override is applied after every rng draw, for the same reason the dev planting is — forcing one chunk must not shift what any other chunk rolls. Confirmed by probe: the five other planets within four chunks are identical before and after, and the distant gas giants at (-5,-4) and (0,-5) are still where they were.

Verified in reverse: without the chunk, "no gas planet within 4 chunks of the spawn".

Done in 885f977. Measured before changing anything, and the seed had genuinely lost: **zero gas planets within four chunks** of the spawn, the nearest five away past five rocky ones. Gas giants are gated behind two independent noise fields — the SPACE biome *and* the planet roll — so whether any sat in reach was luck. Gas is an early need (the burner, ammunition), so the opening cannot depend on the noise being kind. `SPAWN_GAS_GIANT_CHUNK` at (2, -2), authored like `OCTOPUS_BIOME_CENTER` rather than found by searching outward: a fixed chunk is reproducible from anywhere without walking the map, which is the property the rest of `WorldGen` is built on. The override is applied **after** every rng draw, for the same reason the dev planting is — forcing one chunk must not shift what any other chunk rolls. Confirmed by probe: the five other planets within four chunks are identical before and after, and the distant gas giants at (-5,-4) and (0,-5) are still where they were. Verified in reverse: without the chunk, "no gas planet within 4 chunks of the spawn".
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
metaheavens/spaceship#234
No description provided.