LOD links: hour masks of time archetypes #393

Manually merged
github merged 3 commits from gh-pr/393/head into gh-pr/393/base 2026-11-26 20:32:53 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-26 18:44 UTC · original
holdmysocks:six-time-archetypes → master · +84 −7 · 3 files · 3 commits · merged 2026-11-26 20:17 UTC

Time archetypes (CTimeArchetypeDef, struct 76b0c56c) are archetypes that the game shows only at certain hours. The hours are stored as a mask in timeFlags (8609d52c): bit h means hour h, from 0 to 23. sixng lod-links read only plain archetypes, so these models had no row in the archetype index and no hour data.

  • lod-links now reads time archetypes along with plain ones. They use the same base layout.
  • archetype_lod.jsonl gets time {time_flags, hours} for them.
  • Placement entities of those models get the same time object.

levels.rpf has 27 time archetypes:

  • a beach lounger and its batch LOD: hours 7–20
  • a shop structure, open variant: hours 6–19
  • a kayak stand, shut variant: hours 19–6, wrapping past midnight
  • a VFX pipe: hours 5–7

These are the only per-model hour switches in the map data. Emissive materials have no night flag (SIX-182).

Tests: mask-to-hours decoding, including the wrap past midnight and bits above 23 being ignored, and reading the mask back from archetype_lod.jsonl. Also checked on levels.rpf: all 27 masks decode as listed above.

Linear: SIX-236

**@⁠holdmysocks** on GitHub · 2026-11-26 18:44 UTC · [original](https://github.com/holdmysocks/SixNG/pull/393) `holdmysocks:six-time-archetypes` → `master` · +84 −7 · 3 files · 3 commits · merged 2026-11-26 20:17 UTC Time archetypes (`CTimeArchetypeDef`, struct `76b0c56c`) are archetypes that the game shows only at certain hours. The hours are stored as a mask in `timeFlags` (`8609d52c`): bit h means hour h, from 0 to 23. `sixng lod-links` read only plain archetypes, so these models had no row in the archetype index and no hour data. - `lod-links` now reads time archetypes along with plain ones. They use the same base layout. - `archetype_lod.jsonl` gets `time {time_flags, hours}` for them. - Placement entities of those models get the same `time` object. levels.rpf has 27 time archetypes: - a beach lounger and its batch LOD: hours 7–20 - a shop structure, open variant: hours 6–19 - a kayak stand, shut variant: hours 19–6, wrapping past midnight - a VFX pipe: hours 5–7 These are the only per-model hour switches in the map data. Emissive materials have no night flag (SIX-182). Tests: mask-to-hours decoding, including the wrap past midnight and bits above 23 being ignored, and reading the mask back from `archetype_lod.jsonl`. Also checked on levels.rpf: all 27 masks decode as listed above. Linear: SIX-236
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:32:52 +00:00
github manually merged commit 63598f2fe3 into gh-pr/393/base 2026-11-26 20:32:53 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.