Repository navigation
Conversation
"Day one: finding the hook" presents the constant search as the route to the archetype lookup: `0xE472B687` "should appear as an immediate in the code that sets up the story player". It does not appear. Over all 120,181,760 bytes of `game_scarlett_master.exe` neither `0xE472B687` nor `0xD7C0CDFF` occurs as 4-byte little-endian, 4-byte big-endian, decimal text or hex text, and the image has no delay-load directory (data directory 13 is zero), so there is no other way for them to arrive; `tools/find_hash_lookup.py` already says `0 occurrence(s) in code` and "no direct call follows any of the hashes", which I read as a tool limitation until I checked the whole file. The ids themselves are real: the same two values occur 24 times across the package's root archives (`data.rpf` 1, `packs.rpf` 3, `anim.rpf` 4, `navmeshes.rpf` 10, `movies.rpf` 6), which is what docs/character_skeleton.md measures. So step 1 cannot produce a candidate on this build, and the page now says so and points at step 2 as the way in, keeping the constants as the keys the lookup takes rather than dropping the method. Measured 2026-11-23 on `main` `f3a7b0ffc` with the 1.0.2.1 image whose SHA-256 `e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993` the RT-5 page names: `python -I tools/find_hash_lookup.py <exe>`, then a search of every byte of the file in the four encodings. `py -3.13 -I -m unittest discover -s tests -p "test_docs_*.py"`: 36 tests, 3 failures, the same three on untouched `main` (already open as ItsNotRexed#7242). `test_exe_checklist.py`: 11 pass, as on `main`. Coordinated in ItsNotRexed#7231: reported as a finding before writing it, ItsNotRexed#7231 (comment).
0xKaji
reviewed
Nov 23, 2026
0xKaji
left a comment
There was a problem hiding this comment.
Reviewed the diff: the added measurement explains why the constant search fails on this build and gives concrete counts. No code change, docs only. Looks good.
Contributor
|
Checked
I did not re-measure the 24 occurrences in the root archives. Security read of the diff: one file, AI-assisted. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What the page says today
Step 1 of "Day one: finding the hook" states that the player model id
0xE472B687should appear as an immediate in the code that sets up the story player, and that its callers lead tofwArchetypeManager::GetArchetypeFromHashKey. On the 1.0.2.1 retail image that never happens, andtools/find_hash_lookup.pyon its own is not enough to see that: it only reads executable sections, so it answers0 occurrence(s) in codeand the reader cannot tell whether the tool is too narrow or the image really does not carry the value.What I measured
game_scarlett_master.exe, 120,181,760 bytes, SHA-256e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993— the image the RT-5 page names.python -I tools/find_hash_lookup.pygivesplayer_story000_00 = 0xE472B687: 0 occurrence(s) in code,cs_mandy = 0xD7C0CDFF: 0 occurrence(s) in code, "no direct call follows any of the hashes", with--window 48and with larger windows.joaat("player_story000_00") == 0xE472B687andjoaat("cs_mandy") == 0xD7C0CDFF, checked with the tool's ownjoaat. And they do exist in the package's data — 24 occurrences over the root archives:data.rpf1,packs.rpf3,anim.rpf4,navmeshes.rpf10,movies.rpf6 (little-endian except a few big-endian ones inanim.rpf,navmeshes.rpfandmovies.rpf). That is consistent with what character_skeleton.md already measures about those ids.So the constants are the right keys and the executable simply does not carry them; step 1 cannot yield a candidate on this build.
The change
Step 1 keeps the method and adds what it gives here, with the numbers, and says plainly that step 2 (the shape search) is what has to find the function on this image. Nothing is removed, no flag or tool behaviour changes, and
--archetype-lookupis untouched — its description already says the log reports how many call sites were redirected, which is how a candidate is confirmed once step 2 gives an RVA.Checks
py -3.13 -I -m unittest discover -s tests -p "test_docs_*.py"— 36 tests, 3 failures, identical to untouchedmainf3a7b0ffc(thedev-tools.mdanchor and the missinggpu-test-results/RX9070GRE.txt, already open as docs: close the d3d12_placed_dimensions fence; the flag check follows dev.py's forwarded subcommands #7242). No new failure.py -3.13 -I -m unittest discover -s tests -p "test_exe_checklist.py"— 11 pass, same asmain; the ASSUMPTION note that test asks for inmodding.mdis still there.Reported in #7231 before writing it: #7231 (comment) — nobody had that claimed and nothing open touches
docs/modding.md.