Scanner: a resource name starts where its pointer points #225

Manually merged
github merged 1 commit from gh-pr/225/head into gh-pr/225/base 2026-11-26 20:19:32 +00:00
Owner

@⁠holdmysocks on GitHub · 2026-11-25 00:05 UTC · original
holdmysocks:claude/unresolved-elements → master · +40 −1 · 2 files · 1 commits · merged 2026-11-25 00:20 UTC

What

The scanner recovers a model's name from its system page by finding the .#ft / .#dr ending and walking back over every byte that could be part of a name. When the bytes just in front of the string happen to look like name characters, they became part of the name: dbison1800_bumr_01_dangle_mount_01, kr9gauntlet5_induction_hrmu_blower_04, zcmn_lights_front_foglight_01b.

The page holds a pointer to the string. The name now starts at the lowest pointer that lands inside the walked-back run. With no such pointer the run is kept as before.

Stored names change, so the index version goes from 7 to 8. Every index has to be rebuilt after this.

Checked

  • Rebuilt the index of the levels archive in a private work folder with this build and compared every ft / dr entry against the old index: 235,580 entries, same ids, 316 names changed. All 316 lose one to five leading characters (255 one, 23 two, 34 three, 4 more); no name is lost, gained or changed any other way, and no corrected name collides with an existing one.
  • Vehicle part elements that resolve to no model: 78 distinct ids (113 records of 27,486) before, 25 (25 records) after.
  • New unit test for the pointer rule; workspace tests pass.

Not decoded / not done

  • Only the levels archive was re-indexed. Other archives go through the same function but were not compared.
  • The 25 elements still unresolved (bike extras in one slot on eight bikes, damage glass on one car) have no model of that name in this build.
  • The viewer was not run on the new index; the shared index was not rebuilt.
**@⁠holdmysocks** on GitHub · 2026-11-25 00:05 UTC · [original](https://github.com/holdmysocks/SixNG/pull/225) `holdmysocks:claude/unresolved-elements` → `master` · +40 −1 · 2 files · 1 commits · merged 2026-11-25 00:20 UTC ## What The scanner recovers a model's name from its system page by finding the `.#ft` / `.#dr` ending and walking back over every byte that could be part of a name. When the bytes just in front of the string happen to look like name characters, they became part of the name: `dbison1800_bumr_01_dangle_mount_01`, `kr9gauntlet5_induction_hrmu_blower_04`, `zcmn_lights_front_foglight_01b`. The page holds a pointer to the string. The name now starts at the lowest pointer that lands inside the walked-back run. With no such pointer the run is kept as before. Stored names change, so the index version goes from 7 to 8. Every index has to be rebuilt after this. ## Checked - Rebuilt the index of the levels archive in a private work folder with this build and compared every `ft` / `dr` entry against the old index: 235,580 entries, same ids, 316 names changed. All 316 lose one to five leading characters (255 one, 23 two, 34 three, 4 more); no name is lost, gained or changed any other way, and no corrected name collides with an existing one. - Vehicle part elements that resolve to no model: 78 distinct ids (113 records of 27,486) before, 25 (25 records) after. - New unit test for the pointer rule; workspace tests pass. ## Not decoded / not done - Only the levels archive was re-indexed. Other archives go through the same function but were not compared. - The 25 elements still unresolved (bike extras in one slot on eight bikes, damage glass on one car) have no model of that name in this build. - The viewer was not run on the new index; the shared index was not rebuilt.
The name scan walked back over every name-like byte in front of the
string, so stray bytes before it became part of the name (one to three
extra leading characters on a few hundred models). The page holds a
pointer to the string; the name now starts at the lowest pointer that
lands inside the walked-back run. Index version 8, since stored names
change.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 20:19:31 +00:00
github manually merged commit 3e649afd5d into gh-pr/225/base 2026-11-26 20:19:32 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.