Repository navigation
Count rig-name hashes that occur in the animation blob - #943
nschlaepfer wants to merge 2 commits into
Conversation
Updated project status to indicate early development phase.
|
Tested 9940b3f on Linux (WSL2 Ubuntu), Python 3.12, CPU only: pass. |
|
Heads-up, same thing that was just found in my #891: this PR's head carries a commit that is not on The commit is Fix, from the branch: (or the same with Not accusing anyone: it looks like an orphaned commit from the rewritten AI-assisted. |
|
Merged into main as 73c06f9. Your branch carried two README commits that were removed from main's history, so I replayed your own commits onto main without them, which is why GitHub doesn't show this PR as merged. Thanks. |
anim_index.py --rigsreported zero stored rig-name hashes even for a synthetic archive that contained the expected four bytes. The scanner collected little-endian integers from the blob but tested membership with byte strings. This made every comparison fail.Compare integer hashes, scan all four possible byte alignments, and retain only candidate hashes that occur. The result counts distinct names with a matching byte pattern. The pattern alone does not identify a typed field. The old zero-of-4,795 statement in the animation notes needs a new corpus measurement; this PR does not substitute a synthetic result for that measurement.
Verification. In normal CLI runs, otherwise identical synthetic archives with zero, one and two known matches reported 0/0/0 on the parent and 0/1/2 here. The committed tests cover absence, repeated occurrences and an unaligned hash. All 24 focused tests and five subtests passed on macOS. AI-assisted, no game data.
Coordination claim