Jump to content

World seed logic: Difference between revisions

From MirkLurk Wiki
Publish reviewed reference release 56ea1712; preserve community edits
 
Publish reviewed reader encyclopedia (3484cee); preserve existing history
Line 1: Line 1:
This page gives original descriptions of specifically researched world-seed handling and generation steps. It does not publish decompiled source or promise a complete reproduction of world generation.
World generation combines randomized startup, area generation, and saved areas.


A seed value or initialization call does not establish that every subsystem is deterministic, that all random state is shared, or that worlds match across game builds. Those are separate claims needing separate evidence.
A seed value or initialization call does not establish that every subsystem is deterministic, that all random state is shared, or that worlds match across game builds. Those are separate claims needing separate evidence.
Algorithm steps and linked numeric facts carry trace identifiers and uncertainty. Do not infer a searchable world model from a partial seed-handling trace.


== Coverage limits ==
== Coverage limits ==
World-seed reproducibility has not been demonstrated by this reference. The current trace is not a seed finder or a guarantee that a reused seed produces the same world.
World-seed reproducibility has not been demonstrated by this reference. The current trace is not a seed finder or a guarantee that a reused seed produces the same world.


[[Game mechanics]] | [[Main Page]] | [[Evidence and spoilers]] | [[Source provenance]]
[[Game mechanics]] | [[Main Page]]
 
== Stats ==


== Curated mechanics facts ==
{| class="wikitable"
{| class="wikitable"
! Entity !! Property (units in label) !! Value !! Original explanation !! Evidence status !! Source / section / key !! Record ID
! Detail !! Value !! Applies to / notes
|-
|-
| <nowiki>Area grid</nowiki> || <nowiki>Cell width in game-coordinate units</nowiki> || <nowiki>16</nowiki> || <nowiki>The area manager combines a 2560-unit area width with 16-unit cells.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_seeds</nowiki> / <nowiki>seed_random/seed_noedges/seed_random_1d</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_area_Alarm_2</nowiki> / <nowiki>seed/Ygrid.save</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_area_Create_0</nowiki> / <nowiki>seed/cellSize/roomWidth</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_obj_menu_Create_0</nowiki> / <nowiki>worldGrid.width</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Room_rm_int_Create</nowiki> / <nowiki>randomize</nowiki> || <span id="fact-area-cell-size"></span><nowiki>area-cell-size</nowiki>
| <span id="fact-area-cell-size"></span><nowiki>Cell width in game-coordinate units</nowiki> || <nowiki>16</nowiki> || <nowiki>The area manager combines a 2560-unit area width with 16-unit cells.</nowiki>
|-
|-
| <nowiki>Area initialization</nowiki> || <nowiki>Inclusive random seed ceiling</nowiki> || <nowiki>25000</nowiki> || <nowiki>The area manager chooses an integer from zero through this ceiling. This is not evidence of an exposed shareable world seed.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_seeds</nowiki> / <nowiki>seed_random/seed_noedges/seed_random_1d</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_area_Alarm_2</nowiki> / <nowiki>seed/Ygrid.save</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_area_Create_0</nowiki> / <nowiki>seed/cellSize/roomWidth</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_obj_menu_Create_0</nowiki> / <nowiki>worldGrid.width</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Room_rm_int_Create</nowiki> / <nowiki>randomize</nowiki> || <span id="fact-area-seed-ceiling"></span><nowiki>area-seed-ceiling</nowiki>
| <span id="fact-area-seed-ceiling"></span><nowiki>Inclusive random seed ceiling</nowiki> || <nowiki>25000</nowiki> || <nowiki>The area manager chooses an integer from zero through this ceiling. This is not evidence of an exposed shareable world seed.</nowiki>
|-
|-
| <nowiki>World grid</nowiki> || <nowiki>Initial width and height in cells</nowiki> || <nowiki>5</nowiki> || <nowiki>The menu creates three five-by-five grids; this does not mean every cell is a playable region.</nowiki> || Inferred; requires confirmation || [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_seeds</nowiki> / <nowiki>seed_random/seed_noedges/seed_random_1d</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_area_Alarm_2</nowiki> / <nowiki>seed/Ygrid.save</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_area_Create_0</nowiki> / <nowiki>seed/cellSize/roomWidth</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_obj_menu_Create_0</nowiki> / <nowiki>worldGrid.width</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Room_rm_int_Create</nowiki> / <nowiki>randomize</nowiki> || <span id="fact-world-grid-width"></span><nowiki>world-grid-width</nowiki>
| <span id="fact-world-grid-width"></span><nowiki>Initial width and height in cells</nowiki> || <nowiki>5</nowiki> || <nowiki>The menu creates three five-by-five grids; this does not mean every cell is a playable region.</nowiki>
|}
|}


== Documented entries ==
 
<span id="entry-world-seed-boundaries"></span>
<span id="entry-world-seed-boundaries"></span>
=== <nowiki>Random initialization and saved areas</nowiki> ===
== <nowiki>Random initialization and saved areas</nowiki> ==
<nowiki>The inspected paths combine randomized startup, per-area generation and saved-area reuse. A complete reproducible player-facing world-seed contract has not been established.</nowiki>
<nowiki>The inspected paths combine randomized startup, per-area generation and saved-area reuse. A complete reproducible player-facing world-seed contract has not been established.</nowiki>
'''Evidence status:''' Inferred; requires confirmation
'''Conditions:''' Not established
'''Source / section / key:''' [[Source provenance#game-data|game-data]] / <nowiki>gml_GlobalScript_scr_seeds</nowiki> / <nowiki>seed_random/seed_noedges/seed_random_1d</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_area_Alarm_2</nowiki> / <nowiki>seed/Ygrid.save</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_manager_area_Create_0</nowiki> / <nowiki>seed/cellSize/roomWidth</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Object_obj_menu_Create_0</nowiki> / <nowiki>worldGrid.width</nowiki><br />[[Source provenance#game-data|game-data]] / <nowiki>gml_Room_rm_int_Create</nowiki> / <nowiki>randomize</nowiki>
'''Record ID:''' <nowiki>world-seed-boundaries</nowiki>
# <nowiki>Game startup randomizes the random-number generator.</nowiki>
# <nowiki>Game startup randomizes the random-number generator.</nowiki>
# <nowiki>The area manager selects a seed from zero to 25000 and initializes random terrain offsets and a noise increment.</nowiki>
# <nowiki>The area manager selects a seed from zero to 25000 and initializes random terrain offsets and a noise increment.</nowiki>
# <nowiki>Area generation first checks for a saved Ygrid. A previously saved area follows the loading path rather than being regenerated from a guessed seed.</nowiki>
# <nowiki>Area generation first checks for saved area data. A previously saved area is loaded rather than regenerated from a guessed seed.</nowiki>
# <nowiki>A coordinate helper reseeds from the area seed plus the first coordinate and twenty-two times the second. Other helpers use a factor of 65536 or an offset of 6578 with different generator owners.</nowiki>
# <nowiki>A coordinate helper reseeds from the area seed plus the first coordinate and twenty-two times the second. Other helpers use a factor of 65536 or an offset of 6578 with different generator owners.</nowiki>
# <nowiki>The existence of these helpers does not establish their call coverage, RNG compatibility or deterministic replay across versions. A seed finder requires further call-graph and save-state research.</nowiki>
# <nowiki>The existence of these helpers does not establish their call coverage, RNG compatibility or deterministic replay across versions. A seed finder requires further call-graph and save-state research.</nowiki>
'''Related numeric facts:'''
* [[World seed logic#fact-area-cell-size|<nowiki>area-cell-size</nowiki>]] - <nowiki>Cell width in game-coordinate units</nowiki>
* [[World seed logic#fact-area-seed-ceiling|<nowiki>area-seed-ceiling</nowiki>]] - <nowiki>Inclusive random seed ceiling</nowiki>
* [[World seed logic#fact-world-grid-width|<nowiki>world-grid-width</nowiki>]] - <nowiki>Initial width and height in cells</nowiki>

Revision as of 21:49, 25 September 2026

World generation combines randomized startup, area generation, and saved areas.

A seed value or initialization call does not establish that every subsystem is deterministic, that all random state is shared, or that worlds match across game builds. Those are separate claims needing separate evidence.

Coverage limits

World-seed reproducibility has not been demonstrated by this reference. The current trace is not a seed finder or a guarantee that a reused seed produces the same world.

Game mechanics | Main Page

Stats

Detail Value Applies to / notes
Cell width in game-coordinate units 16 The area manager combines a 2560-unit area width with 16-unit cells.
Inclusive random seed ceiling 25000 The area manager chooses an integer from zero through this ceiling. This is not evidence of an exposed shareable world seed.
Initial width and height in cells 5 The menu creates three five-by-five grids; this does not mean every cell is a playable region.


Random initialization and saved areas

The inspected paths combine randomized startup, per-area generation and saved-area reuse. A complete reproducible player-facing world-seed contract has not been established.

  1. Game startup randomizes the random-number generator.
  2. The area manager selects a seed from zero to 25000 and initializes random terrain offsets and a noise increment.
  3. Area generation first checks for saved area data. A previously saved area is loaded rather than regenerated from a guessed seed.
  4. A coordinate helper reseeds from the area seed plus the first coordinate and twenty-two times the second. Other helpers use a factor of 65536 or an offset of 6578 with different generator owners.
  5. The existence of these helpers does not establish their call coverage, RNG compatibility or deterministic replay across versions. A seed finder requires further call-graph and save-state research.