mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:40:52 +01:00
[PR #406] [CLOSED] DOC-MODDING-CONSTANTS: the constant search in docs/modding.md gives nothing on this image #456
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#456
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/406
Author: @fiestorra
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:carry/modding-constants📝 Commits (1)
7e0f21fdocs/modding: the constant search finds nothing on the 1.0.2.1 image📊 Changes
1 file changed (+15 additions, -2 deletions)
View changed files
📝
docs/modding.md(+15 -2)📄 Description
Claimed in the coordination issue as:
DOC-MODDING-CONSTANTS(claim comment).What this changes
Step 1 of the lookup-finding recipe in
docs/modding.mdpresents the constant search as the route to the archetype lookup: "The player model id0xE472B687should appear as an immediate in the code that sets up the story player."On the 1.0.2.1 image it gives nothing, and the row should say so before someone spends an afternoon looking for it:
0xE472B687nor0xD7C0CDFFis in the executable at all. All 120,181,760 bytes were read and searched as 4-byte little-endian, 4-byte big-endian, decimal text and hex text:0hits for each form. Re-run today, same result.tools/find_hash_lookup.pyreports the same thing on its own:0 occurrence(s) in code, "no direct call follows any of the hashes".data.rpf1,packs.rpf3,anim.rpf4,navmeshes.rpf10,movies.rpf6; little-endian except a few big-endian ones inanim.rpf,navmeshes.rpfandmovies.rpf), measured 2026-11-23.So the constants are the right keys and they are simply not in the code: on this build step 2 (the shape) is what has to find the function. The row now says that, with the counts and the dates.
The image is the one this repository already documents:
docs/embedded_shaders.md:44 records it as 120,181,760 bytes with SHA-256e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993, andGet-FileHashon the file I searched returns exactly that value, so the measurement is on the same image your own docs describe.Evidence
Head
7e0f21ff6, one commit,docs/modding.mdonly, rebased ontoece4ba5b3.py -3.13 -I -m unittest discover -s tests -p "test_docs_*.py"on this branch:Ran 47 tests in 44.733s/OK. The same command on cleanece4ba5b3:Ran 47 tests in 45.178s/OK. Same 47 tests, no failures on either side, so this PR changes no test outcome.mainsays atdocs/modding.md:133 and :137 right now (1. **Constant search.** The player model id 0xE472B687 should appear as an immediate…and3. **Cross-check.** Called with 0xD7C0CDFF…), and step 3 is stated as something that "must return a valid archetype too", which cannot be reached from a hash that is never loaded.No GPU is involved: the search was done on the executable bytes and on the package's archives, and the docs battery runs on the CPU. Hardware used: one desktop machine, Windows build 26300, CPython 3.13.14. Written with an AI assistant; the commands and the measurements above are reproducible as written.
Neighbour
I read #358 before claiming, and I know it edits
docs/modding.mdtoo (for the SHA-256 check intools/leonida_mods.py). If you take that one first I will rebase this on it rather than ask you to resolve anything; my edit is confined to the three numbered steps quoted above.Supersedes the branch carried in the private tracker as #7929, closed unmerged by the sweep.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.