Skip to content

Match 34 NTSC-U level routines - #221

Open
ImBaedin wants to merge 15 commits into
OpenRAC:masterfrom
ImBaedin:match/ntsc-u-veldins
Open

ImBaedin wants to merge 15 commits into
OpenRAC:masterfrom
ImBaedin:match/ntsc-u-veldins

Conversation

@ImBaedin

@ImBaedin ImBaedin commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

NTSC-U level timing

  • func_L01_003148F0 carries the particle effect from PAL func_L01_00314C90 with the NTSC-U particle lifetimes and 60 Hz rates.
  • func_L01_003463A0 carries the Flux Rifle shot initializer from PAL func_L01_00346CC8 with the native shot speed, lifetime and division padding. Caller-specific aliases distinguish its native data references, and the payload lookup declares its pointer return type.
  • func_L01_004C5950 carries the item preview initializer from PAL func_L01_004C9500 with the unscaled unsigned timer load and native division padding.

Veldin weapon effects

  • func_L01_003676F0 restores the 135-frame colour cycle and 60 Hz spin phases of PAL func_L01_00368478.
  • func_L01_0036D5A0 restores the Annihilator lock-on, firing, and flash timing of PAL func_L01_0036E578.
  • func_L01_0037F738 uses the NTSC-U texture scroll steps for the Qwack-O-Ray beam draw from PAL func_L01_00380880.
  • func_L01_00381B98 restores the NTSC-U projectile motion and spark constants of PAL func_L01_00382CF8.
  • func_L01_0039BE00 uses native particle lifetimes and acceleration for PAL func_L01_0039D2E0.

Regional actor updates

  • func_L02_0034F400 restores the Florana actor's 60 Hz animation blends and effect velocities from the PAL func_L02_00350478.
  • func_L02_0039AB30 restores the Florana projectile's trail and burst lifetimes from the PAL func_L02_0039C730.
  • func_L04_003BDDF8 restores the Marcadia actor's tracking and idle timers from the PAL func_L04_003BFB80 and uses the established scene-record field.
  • func_L19_0035C238 restores the Thran impact particle lifetimes, acceleration, and radius step from the PAL func_L19_0035D2B8.
  • The declaration of the explosion constructor in func_L01_00381B98 now uses its pointer return and 16-bit argument types.

Shared effects

  • func_L01_00300820 restores native effect-controller timers and per-frame steps from PAL func_L01_00300890. The NTSC-U build uses its own division padding and links the routine in all 51 levels.
  • func_L01_00368FE8 restores native particle lifetimes and accelerations from PAL func_L01_00369E28. The separate helper reference resolves to the private copy called by level 33.
  • The sphere-damage call in func_L01_00381B98 uses the parameter order and return type of the existing matched function.

Multiplayer helpers

  • func_L39_0053D098 uses the 90, 210 and 120 constants from the NTSC-U counterpart of PAL func_L39_0053D838.
  • func_L39_005C1258 checks the longer stick-input history and retains the retail division padding of the routine at PAL func_L39_005C34A8.
  • func_L39_005EF018 uses a 30-frame audio transition and the NTSC-U distance margin in the audio update from PAL func_L39_005F1718.
  • func_L39_005F1758 pumps the menu update while an operation is pending and passes mode 6 in the reset from PAL func_L39_005F3E58.
  • func_L39_0065F168 sets the actor field at 0x32C to 12 in the initialization routine from PAL func_L39_00661A40.

Multiplayer effects and motion

  • func_L39_0051BFA8 uses the NTSC-U per-frame effect offset from PAL func_L39_0051C2F8.
  • func_L39_0054C760 restores the NTSC-U motion step in the projectile update from PAL func_L39_0054D078.
  • func_L39_0054CCE0 restores the projectile initializer's motion and lifetime constants from PAL func_L39_0054D5F8.
  • func_L39_0055E950 restores the 60 Hz effect timing and copies the native counter directly in the update from PAL func_L39_0055F3C0.
  • func_L39_0055EE28 uses the 1/60 step in the distance calculation from PAL func_L39_0055F8D8.
  • func_L39_0056E670 uses the 1/60 interpolation limit and the actual NTSC-U helper binding for PAL func_L39_0056F368.

Multiplayer connection and cutscene timing

  • func_L39_004B3030 initializes DNAS with the NTSC-U gate and time-server hostnames from the PAL counterpart func_L39_004B3230. The existing per-disc DNAS table supplies the protected block metadata.
  • func_L39_005F9EF0 restores the NTSC-U cutscene fade ramp and input timing from PAL func_L39_005FC688 across the 17 multiplayer overlays.

Phoenix interface and actors

  • func_L03_003A1EE8 restores the NTSC-U interface's secondary input-check branch and its state transition from the routine at PAL func_L03_003A3838.
  • func_L03_003AFF78 uses native animation blend lengths and random delays for the actor update at PAL func_L03_003B19E0.
  • func_L03_003B0A90 uses native blend lengths and random delays for the companion actor update at PAL func_L03_003B2570.

Suck Cannon update

  • func_L01_003619C8 restores the 60 Hz initialization delay, firing gate and effect step from PAL func_L01_00362758. The three slot queries retain the object inputs used by both retail versions. The resource lookup uses its pointer return, and the initialization arrays describe all accessed entries.

Final boss update

  • func_L20_003CEE88 implements the NTSC-U final boss update from PAL func_L20_003D0910. It uses native animation blends, state-frame thresholds and particle lifetimes. Both joint queries use one aligned 64-byte matrix for their full result.

Thran walker update

  • func_L19_003BEBB0 implements the Thran walker's NTSC-U animation blends and particle timing from PAL func_L19_003C0960. Its movement calls keep the observed heading and mode registers. State 16 passes the full movement record.

Veldin particle emitter

  • func_L01_0034D600 restores the NTSC-U particle lifetimes and acceleration from PAL func_L01_0034E080. It preserves the original constructor call order, uses aligned storage for the position and velocity, and resolves the NTSC-U camera vector through its own symbol.

Verification

Verified at 4286e4bd56c60f15bee8ea499c1b547986dbdc25.

  • The emitter matched all 1,180 bytes at each of its 34 NTSC-U placements. The unchanged PAL reference matched all 1,240 bytes at each of its 34 placements.

  • The Thran walker matched all 5,344 bytes and both switch tables at its level 19 placement. The final boss matched all 22,196 bytes and both switch tables at its level 20 placement.

  • The Suck Cannon update and its unchanged PAL reference were verified at all 34 placements per disc. Its stock PAL Veldin overlay and disc payload matched.

  • python tools/build.py --target all -j 2 reported three PAL core matches. JOBS=4 sh tools/carry_us.sh reported 54 of 54 NTSC-U targets matching and the version map in step.

  • All 34 native routines link from C at the 642 expected addresses. Every prior manifest entry and built ledger row is preserved.

  • python tests/check_repository.py passed. python -m unittest discover -s tests ran 311 tests with 7 skips.

Use the native 60 Hz lifetimes and rates in func_L01_003148F0 and
func_L01_003463A0. Restore the unsigned timer load and native store
order in func_L01_004C5950. Record the retail division padding and
use native data aliases where PAL spellings resolve elsewhere.

Standalone checks matched 34 out of 34 catalogue placements per
function on both discs. JOBS=8 sh tools/carry_us.sh reported 54 of
54 NTSC-U targets matching. The build ledger records 34 C placements
each for func_L01_003148F0, func_L01_003463A0 and func_L01_004C5950.
All existing C coverage rows agree with the base.

python tools/build.py --target all -j2 printed MATCH for PAL frontbin
(5a7ff1fe9c73a63c6ce6fe7b5f80cd7cab3aa553), boot_elf
(e0a4e82e9a363a64db5a555db8c8f927ef58c3d8) and i5bootn
(c1166658edad1b6b04b7671af77fff53f2560e71).

python tests/check_repository.py passed. python -m unittest discover
-s tests ran 311 tests, OK (skipped=7).
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-12-05T07:16:05.695423Z 360ddfe PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@bytematchdev

bytematchdev Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

ByteMatch progress report

SCUS_973.53

Code matched 93.54% (+1.06%) · 7.00 MB of 7.48 MB
Fuzzy match 94.23% (+0.96%)
Functions 16,358 (+34) / 16,589
Units complete 564 (+1) / 594
✅ Newly matched (34)
  • func_L20_003CEE88 (22,196 bytes)
  • func_L19_003BEBB0 (5,344 bytes)
  • func_L39_005EF018 (4,048 bytes)
  • func_L03_003A1EE8 (3,456 bytes)
  • func_L02_0034F400 (3,320 bytes)
  • func_L01_00368FE8 (2,992 bytes)
  • func_L01_0036D5A0 (2,984 bytes)
  • func_L01_00300820 (2,960 bytes)
  • func_L39_0065F168 (2,760 bytes)
  • func_L01_00381B98 (2,676 bytes)
  • func_L01_003619C8 (2,528 bytes)
  • func_L39_005C1258 (2,436 bytes)
  • func_L39_004B3030 (1,756 bytes)
  • func_L01_003463A0 (1,628 bytes)
  • func_L01_003148F0 (1,592 bytes)
  • func_L04_003BDDF8 (1,524 bytes)
  • func_L02_0039AB30 (1,448 bytes)
  • func_L39_005F9EF0 (1,232 bytes)
  • func_L19_0035C238 (1,232 bytes)
  • func_L01_0034D600 (1,180 bytes)
  • func_L39_0054C760 (1,080 bytes)
  • func_L01_0037F738 (1,076 bytes)
  • func_L39_0055E950 (1,072 bytes)
  • func_L01_0039BE00 (960 bytes)
  • func_L03_003AFF78 (808 bytes)
  • func_L39_0056E670 (748 bytes)
  • func_L01_003676F0 (736 bytes)
  • func_L01_004C5950 (696 bytes)
  • func_L39_005F1758 (664 bytes)
  • func_L03_003B0A90 (556 bytes)
  • …and 4 more

SCES_524.56

Code matched 97.51% · 7.34 MB of 7.53 MB
Fuzzy match 97.51%
Functions 16,490 / 16,592
Units complete 589 / 605

No function changes.

Commit 23422bb · Ratchet & Clank: Up Your Arsenal on ByteMatch

Declare func_L01_00454190 with its established char pointer return
and two integer arguments. The initializer uses the returned payload
pointer, so its declaration should not rely on an implicit int return.
Refresh the native source hash without changing the matched bytes.

Verified the initializer with tools/check.py --version us --native
and -Werror-implicit-function-declaration: MATCH. Its object matched
all 34 relocation-aware NTSC-U placements. The full PAL core build
printed all three expected MATCH SHA-1s. JOBS=8 sh tools/carry_us.sh
reported 54 of 54 targets match and the version map in step.

The final C ledger preserved all 16,055 base rows and all prior PR
coverage. All 102 new placements and the 170 alias-sensitive existing
placements have their expected addresses in the actual C manifests.
Repository checks passed; the unit suite ran 311 tests, OK (skipped=7).
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review at 2041e93a96268335c003f568decf5b2d40e60d2d: I reviewed the full source and metadata diff and added the missing char *func_L01_00454190(s32, s32) declaration. The initializer still reports MATCH with implicit declarations treated as errors, and its object matches at all 34 NTSC-U placements.

Independent final validation passed: all three PAL core SHA-1 matches, 54 of 54 targets match from the stock NTSC-U carry, version map in step, repository checks, and 311 unit tests (OK, 7 skipped). The final ledger preserves every baseline coverage row; actual manifests confirm all 102 new C placements and all 170 alias-sensitive existing placements at their expected addresses. No remaining correctness findings in this reviewed head.

Add native C for the rotating effect (func_L01_003676F0), Annihilator
update (func_L01_0036D5A0), Qwack-O-Ray beam draw (func_L01_0037F738),
projectile update (func_L01_00381B98), and particle effects
(func_L01_0039BE00). Preserve the NTSC-U frame counts, texture steps,
and particle constants. Use the paired PAL files' flags and the
retail division padding. Distinguish the data relocations that resolve
to different objects in existing carried C.

The five native sources pass standalone checks with implicit
declarations treated as errors. Each native object and its PAL
counterpart passed all 34 catalogue placements. The full PAL core
build reported three MATCH results. JOBS=4 sh tools/carry_us.sh
reported 54 of 54 NTSC-U targets match. The linked manifests add
170 C placements and preserve all previous entries. The coverage
ledger preserves all 16,055 origin/master rows and all 16,058
previous PR-head rows. The repository checks passed and unittest
ran 311 tests with 7 skips.
@ImBaedin ImBaedin changed the title Match three NTSC-U level timing functions Match NTSC-U Veldin timing and weapon effects Dec 5, 2026
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review of 7f71c5b959966e5208cae5c8fbb857e8442305d9: reviewed the five new bodies, inherited flags and division-padding entries. Independently verified all 272 native C addresses and zero coverage-count losses against both 2041e93a and origin/master. The recorded full builds report all three PAL core hashes and 54/54 NTSC-U matches; repository checks and 311 unit tests pass (7 skipped). Both CI jobs are green on this head.

One follow-up declaration correction is prepared in the continuation worktree: the projectile caller should use the explosion constructor's known pointer return and narrow integer argument types. The corrected source reports strict MATCH at the canonical site and matches all 34 placements; its object text, relocations and definitions are unchanged. It will be included and validated with the next related batch. No other findings in this review.

Add NTSC-U C for the Florana actor and projectile updates
(func_L02_0034F400 and func_L02_0039AB30), the Marcadia actor update
(func_L04_003BDDF8), and the Thran impact effect (func_L19_0035C238).
Restore each routine's 60 Hz animation, motion, and particle timing.
Use the established Marcadia scene-record field and declare the
existing Veldin projectile's explosion constructor with its pointer
return type and 16-bit parameters.

All four native routines pass the strict standalone checks and the
retail relocation and jump-table checks for both regions. The corrected
projectile also passes strict compilation and all 34 placement checks.
The full PAL core build reported three MATCH hashes. The stock
JOBS=4 NTSC-U carry reported 54/54 MATCH, with four new C placements
and every old linked manifest entry preserved. The coverage ledger
also preserves all 16,063 previous PR-head rows and all 16,055
origin/master rows. The repository checks passed and unittest ran
311 tests with 7 skips.
@ImBaedin ImBaedin changed the title Match NTSC-U Veldin timing and weapon effects Match 12 NTSC-U level routines Dec 5, 2026
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review of 6074c4590a7e59e45ce49d4718f400e7686f6f8f: reviewed all four actor bodies and verified that their compiler flags exactly inherit the PAL owning files. The committed constructor declaration correction equals the parent-verified copy. Independent coverage checks confirm all 276 expected native C addresses and zero older count losses against 7f71c5b9 and origin/master. Final logs show three PAL core hashes, 54/54 NTSC-U matches, all prior manifests preserved, passing repository checks and 311 unit tests (7 skipped). The report lists the expected twelve native routines.

A separate follow-up aligns the older projectile's sphere-helper declaration and argument order with the existing callee definition. The corrected ordinary C reports strict MATCH and passes all 34 placements; its object text, relocations and definitions are identical to the already-built object. The correction is applied only in the continuation worktree and will receive the normal full gates with the next batch before publication. No other findings in this review.

Add native C for the effect controller at func_L01_00300820 and
the particle update at func_L01_00368FE8. Restore the 60 Hz timers,
per-frame motion, particle acceleration, and retail division padding.
Give the particle update a distinct helper reference because level 33
calls its own copy of the shared helper.

Correct the projectile's sphere-damage declaration and call using
the parameter order of its matched callee.

Strict standalone and relocation checks covered 51 and 34 native
placements, 49 and 34 paired PAL placements, and every placement of
the corrected projectile. All three PAL core programs matched.
The stock JOBS=4 carry reported 54 NTSC-U matches. The manifests
add 85 C placements, preserve every prior entry, and confirm all
361 placements from this PR. The ledger preserves the 16,067 rows
at the previous PR head and the 16,055 rows at origin/master.
Repository checks passed and unittest ran 311 tests with 7 skips.
@ImBaedin ImBaedin changed the title Match 12 NTSC-U level routines Match 14 NTSC-U level routines Dec 5, 2026
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review of 221d20986d8c195b9f7e14d82423fb9dda8fe205: reviewed both new C bodies against their PAL counterparts, the regional timing/acceleration changes, the separate level-33 helper reference, and the native division padding. Both flag rows exactly inherit their PAL owning files. The committed sphere-helper correction equals the previously verified source.

Independent manifest checks confirm all 361 expected PR C addresses and zero older ledger losses against 6074c459 and origin/master. The committed sources are identical to the objects' source snapshots in the cross-PR relocation/symbol audit. Final logs contain three PAL core matches, 54 individual NTSC-U binary matches, every prior manifest entry preserved, passing repository checks and 311 unit tests (7 skipped). Both CI jobs are green. No correctness findings; unresolved attempts remain local.

Match the regional routines at 0053D098, 005C1258, 005EF018, 005F1758
and 0065F168 with their owning PAL file flags. Preserve the native
duration and stick history changes, audio transition and reset loop.
Use the retail division padding for the stick history routine and the
existing regional reset aliases at their verified addresses.

Each source checks MATCH with -Werror-implicit-function-declaration.
All 85 NTSC-U placements and 75 PAL reference placements verify with
their actual relocations. The five objects' symbol contracts agree
with the cross-branch audit. Refresh the NTSC-U map and progress.

python tools/build.py --target all -j 2 printed three PAL MATCH lines.
JOBS=4 sh tools/carry_us.sh reported 54 of 54 NTSC-U targets matching
and the version map in step. The linked manifests add 85 C placements
and preserve all 361 earlier PR placements, all other manifest
entries and all built ledger rows from 221d209 and origin/master.

python tests/check_repository.py passed. python -m unittest discover
-s tests ran 311 tests, OK with 7 skips.
@ImBaedin ImBaedin changed the title Match 14 NTSC-U level routines Match 19 NTSC-U level routines Dec 5, 2026
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review of 90072032c79c67f6cf6e4a85dc3efa3e9189050e: all five committed sources equal the snapshots reviewed against PAL and checked in the independent cross-PR object/symbol audit. Their flag rows exactly inherit the PAL owning files. The timing/history changes, reset-loop behavior, typed callbacks and callee declarations are supported by the retail comparisons. The larger actor draft remains excluded after correcting its real particle-call signatures.

Independent manifest checks confirm all 446 PR US C addresses, with zero older ledger losses against 221d2098 and origin/master. Final logs contain three PAL core matches, 54 individual US binary matches, every prior manifest entry preserved, passing repository checks and 311 unit tests (7 skipped). The five new objects reproduce all 85 retail placements and agree with the other branches' symbol contracts. No correctness findings. Report CI passed; the checks job was pending at the final-head read.

Match 0051BFA8, 0054C760, 0054CCE0, 0055E950, 0055EE28 and
0056E670 under their owning PAL file flags. Restore the native motion
steps, effect timing and counter behavior. Use the retail division
padding and the regional helper and color data bindings at their
verified addresses. Refresh the NTSC-U map, ledger and report.

Strict standalone compilation checks MATCH for all six sources.
All 102 NTSC-U and 90 PAL reference placements verify with their
actual relocations and tables, with no symbol ownership conflicts.

python tools/build.py --target all -j 2 printed three PAL MATCH lines.
JOBS=4 sh tools/carry_us.sh reported 54 of 54 NTSC-U targets matching
and the map in step. The linked manifests add 102 C placements and
preserve all 446 earlier PR sites and all other manifest entries.
The built ledger adds six rows and preserves every row at 9007203
and origin/master.

python tests/check_repository.py passed. python -m unittest discover
-s tests ran 311 tests, OK with 7 skips.
@ImBaedin ImBaedin changed the title Match 19 NTSC-U level routines Match 25 NTSC-U level routines Dec 5, 2026
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review of d97416611299b756e02a78d57eb9bfccc674abe5: reviewed all six new bodies against PAL, including native timing/counter behavior, actual helper declarations and caller-specific data aliases. Every compiler flag row exactly inherits its PAL owning file; the three native division-padding names do not collide with PAL catalogue entries. The committed sources and final stock objects equal the independently audited snapshots. The four proper-ABI near drafts remain excluded.

Independent checks confirm all 548 PR US C addresses, zero older ledger losses against 90072032 and origin/master, and every previous entry in all 54 manifest snapshots retained. Final logs contain three PAL core matches, 54 individual US binary matches, passing repository checks and 311 unit tests (7 skipped). Both CI jobs are green. The expanded cross-PR audit reproduces all 102 new placements without conflicting symbols. No correctness findings.

Use the NTSC-U DNAS gate and time-server names in the connection
initializer and the 60 Hz fade ramp and input timing in the cutscene
update. Preserve the existing PAL source units, their flags and the
per-disc DNAS protection metadata.

Strict standalone and relocation checks matched all 18 NTSC-U
placements and 16 PAL reference placements. The PAL core build
reported three MATCH lines. JOBS=4 sh tools/carry_us.sh reported
54 of 54 matches and the map in step. All 566 PR C placements
are present and the older ledgers and manifests are preserved.
Repository checks passed and 311 unit tests ran with 7 skips.
@ImBaedin ImBaedin changed the title Match 25 NTSC-U level routines Match 27 NTSC-U level routines Dec 5, 2026
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review of 03f8b57785ecad07a3469ccf351c56226e014943: reviewed both new bodies and exact inherited flags. DNAS initialization uses the existing protection macros and per-disc table, with the two retail NTSC-U hostnames; the cutscene restores the observed native ramp and frame thresholds. Actual callee return types and regional callback aliases are consistent with their matched definitions. Both published sources and final stock objects equal the independently checked snapshots.

Independent checks confirm all 566 PR C addresses, every previous entry across all 54 manifest snapshots retained, exactly 18 additions, and zero ledger losses against d9741661 and origin/master. The completed carry contains 54 US binary matches; PAL core reports all three expected hashes. Repository checks and 311 tests pass (7 skipped), and both CI jobs are green. The expanded cross-PR audit reproduces all 18 new placements and agrees with the other published objects' symbols. No correctness findings. The shared cases remain with A; the later PAL-context research produced no source changes.

Restore the additional NTSC-U interface input check and its state
transition. Use the direct random delays and native animation blend
timing in its two actor updates. Inherit each PAL owner's flags.

Strict object checks covered six NTSC-U and six PAL placements.
The PAL core build reported three MATCH lines. The stock JOBS=4
carry reported 54 of 54 NTSC-U matches with the map in step.
All 572 PR C placements are present and every older manifest
entry and ledger row is preserved. Repository checks passed
and 311 unit tests completed with 7 skips.
@ImBaedin ImBaedin changed the title Match 27 NTSC-U level routines Match 30 NTSC-U level routines Dec 5, 2026
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review of 3c4a89db96c661d24f1da6395ddc4bdb6d9243bd: reviewed the three Phoenix bodies against their PAL owners, the secondary input sequence and state transition, native random delays and animation durations, real callee declarations, vector data layout and exact inherited file flags. The distinct placement helper alias preserves each level's actual binding. Published source hashes equal the reviewed snapshots.

Independent coverage checks confirm all 572 PR C placements, every previous entry across all 54 manifest snapshots preserved, exactly six additions, and zero ledger losses against 03f8b577 and origin/master. All six new stock-object placements reproduce retail text, relocations and tables. The expanded cross-PR audit covers 91 objects at 1,619 US sites with zero symbol conflicts; this is an object/contract audit, separate from each PR's full builds. Final logs contain three PAL core matches, 54 US binary matches, passing repository checks and 311 tests (7 skipped). Both CI jobs are green. No correctness findings in this batch.

Add func_L01_003619C8 with the NTSC-U timer and effect steps, using the
PAL owner's compiler flags and the two observed division padding counts.
Keep the three retail object inputs, type the resource as a pointer, and
model all nine halfwords, nine floats, and ten vectors in initialization.
Regenerate the NTSC-U map, linked C ledger, and progress report.

The strict native check matched, as did all 34 NTSC-U placements and
all 34 reference PAL placements. The stock PAL Veldin overlay and disc
payload matched. python tools/build.py --target all -j 2 reported three
PAL core MATCH lines. JOBS=4 sh tools/carry_us.sh reported 54 of 54
NTSC-U targets match and the map in step. All 34 new and 572 prior PR C
placements were verified in linked manifests. The previous 54 manifests
and every older ledger row against master and 3c4a89d were retained.
python tests/check_repository.py passed. The unittest suite ran 311
tests and returned OK with 7 skips.
@ImBaedin ImBaedin changed the title Match 30 NTSC-U level routines Match 31 NTSC-U level routines Dec 5, 2026
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review of fd63b13a55b7fbd3ee3005ada8d68d6772c501bc: reviewed the complete Suck Cannon body against PAL, its native timing constants, inherited file flags and observed division padding. The source correctly describes nine halfwords, nine floats and ten vectors, uses the resource pointer return and separate API output integers, and retains the existing PAL caller form for the three queries. All 204 retail query call sites explicitly pass the object; this evidence does not assume their original formal arity. Published source and final stock object hashes equal the independently reviewed snapshots.

Independent final checks confirm all 606 PR C placements, exactly 34 new 2,528-byte linked spans, every previous entry across all 54 manifests preserved, and zero ledger losses against 3c4a89db and origin/master. All 2,006 referenced symbol bindings agree with the linked ELFs and the cross-PR audit, now covering 97 objects at 1,658 US sites with zero conflicts. Final logs contain all three PAL core matches, the PAL Veldin reference match, 54 US binary matches, passing repository checks and 311 unit tests (7 skipped). Both CI jobs are green. No correctness findings in this batch.

Add func_L20_003CEE88 with its native state thresholds, animation blend
times and particle timing. Use the existing PAL owner's flags and the
observed division padding. Reconstruct both jump tables from the C
switches and keep the verified helper call contracts. Give both joint
queries one aligned matrix large enough for all four rows. Regenerate
the NTSC-U version map, linked C ledger, progress report and ByteMatch
source index.

The strict native check matched all 22196 bytes. Both switch tables
and all 109 symbol bindings matched retail in the linked level.
python tools/build.py --target all -j 2 reported three PAL core MATCH
lines. JOBS=4 sh tools/carry_us.sh reported 54 of 54 NTSC-U targets match
and the map in step. All 606 prior PR sites and the new level 20 site
are present in the manifests. Every prior manifest and ledger entry
against fd63b13 and master was preserved. Repository checks passed.
The full unittest suite ran 311 tests, OK with 7 skips.
@ImBaedin ImBaedin changed the title Match 31 NTSC-U level routines Match 32 NTSC-U level routines Dec 5, 2026
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review of 8907760b3df111a4d34e10605d9105ec1018464d: reviewed the final-boss state/timing changes against both retail dispatch tables and the original matched PAL body. The native uses the owning file’s exact flags, observed division padding and verified helper contracts. I corrected the joint output to one aligned 64-byte matrix; strict compilation and an actual linker proof preserve all 22,196 instruction bytes and both switch tables. The committed source and stock object hashes equal the reviewed copies. The seven-file commit contains only the native, required metadata and the single obsolete reporting-alias removal.

Independent final checks confirm all 607 PR C placements, exactly one new linked body, every prior entry across all 54 manifests preserved, and zero ledger losses against fd63b13a and origin/master. Both linked tables total 176 bytes with 41 entries, and all 109 symbol bindings agree with retail and the cross-PR audit. PAL core reports all three expected hashes; the stock US carry reports 54/54 matches. Repository checks and 311 unit tests pass (7 skipped). Both CI jobs are green.

The first scratch validation selected the older PAL comparison row for the same raw US name. Its preserved failure marker is diagnostic history: selecting the separate native row made final coverage pass against the same frozen build outputs, after which the skipped repository/unit checks ran successfully. No build input changed or binary rebuild was needed. No remaining correctness findings in this batch.

Add func_L19_003BEBB0 with NTSC-U frame counts, effects and animation
blends. Preserve the observed movement call registers and model the
whole movement record used by the state-16 call. Use the existing PAL
owner's compiler flags and the observed division padding. Regenerate
the NTSC-U map and linked C ledger, progress report and ByteMatch index.

The strict native check matched all 5344 bytes. Both switch tables and
all 52 symbol bindings matched retail in the linked level. The PAL
reference matches all 5556 bytes at its own placement.
python tools/build.py --target all -j 2 reported three PAL core MATCH
lines. JOBS=4 sh tools/carry_us.sh reported 54 of 54 NTSC-U targets match
and the map in step. All 607 prior PR sites and the one new Thran site
are present in the manifests. Every prior manifest and ledger entry
against 8907760 and master was preserved. Repository checks passed.
The full unittest suite ran 311 tests, OK with 7 skips.
@ImBaedin ImBaedin changed the title Match 32 NTSC-U level routines Match 33 NTSC-U level routines Dec 5, 2026
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review of 59e2f62bcb7e2613a17f56058c76aacbffec4802: the Thran actor source and final stock object equal the exact reviewed hashes. Its direct movement calls preserve the original matched PAL caller's form and all observed integer/float inputs. The state-16 helper receives one aligned 192-byte movement record, including its velocity, rotation, probe and ground-snap fields. Return types and the other vector outputs agree with the actual helper contracts. The flag row inherits the PAL owner, the padding is retail-observed, and the PAL source remains unchanged.

Independent strict compilation and a real linker proof reproduce all 5,344 code bytes, both switch tables (112 bytes, 24 entries), all 184 text relocations and the compatible symbol bindings. I reran the final validation against the published build: all 608 PR placements are present, all previous entries across 54 manifests and both baseline ledgers survive, and Level 19 adds exactly the expected native address. The actual linked text, tables and all 52 referenced global symbols agree with retail.

All three PAL core hashes and all 54 NTSC-U targets match. Every recorded gate exited zero; repository checks and 311 unit tests pass with seven skips. Both CI jobs pass on this head. The seven-file commit contains only the reviewed source, required metadata and one obsolete reporting-alias removal. No correctness findings.

Add the NTSC-U counterpart of func_L01_0034E080 with native
particle lifetimes and acceleration. Keep the original PAL caller's
particle constructor argument order, use aligned vector storage for
all inputs, and distinguish the native camera vector at link time.

The strict native and unchanged PAL checks matched. The EE linker
reproduced the 1,180-byte US emitter and the 1,240-byte PAL emitter
at all 34 placements per disc. The PAL core build reported three
matches and JOBS=4 sh tools/carry_us.sh reported all 54 NTSC-U
targets matching. All 642 PR C placements were verified with
no earlier manifest or ledger entries lost. The repository check
and 311 unit tests passed with seven skips.
@ImBaedin ImBaedin changed the title Match 33 NTSC-U level routines Match 34 NTSC-U level routines Dec 5, 2026
@ImBaedin

ImBaedin commented Dec 5, 2026

Copy link
Copy Markdown
Contributor Author

Management review of 4286e4bd56c60f15bee8ea499c1b547986dbdc25: the six-file commit contains the exact reviewed emitter source, one inherited flag row and required generated metadata. The source and stock object match the parent snapshots. The constructor call retains the matched PAL caller form and verified integer/float bank inputs; position and velocity have full aligned storage, the particle pointer return is correctly typed, and the camera alias agrees with the existing native caller at every placement. PAL owners and division/SQ metadata are unchanged.

Independent final-ELF checks reproduce all 34 linked 1,180-byte spans, 1,530 relocations and 714 actual symbol values, including all camera aliases. Every prior manifest entry across 54 targets is preserved byte for byte after removing the expected additions. All 608 previous PR sites remain, for exactly 642 placements, with zero ledger losses against 59e2f62b or master.

The frozen input manifest and all step exit codes pass. Logs contain all three PAL core hashes, 54 NTSC-U binary matches, the in-step map, passing repository checks and 311 unit tests with seven skips. Committed whitespace checks pass. The sole generated-name removal is the superseded PAL alias for the new native symbol. No correctness findings. New-head CI was pending at the review snapshot.

Merge master at 6cca897.
Keep its camera owner byte-identical, preserve the PR's 34 native sources
and existing padding rows, and regenerate the maps and reports.

Validation:
- python -B tools/build.py --target all -j 2: three PAL core MATCH lines.
- python -B tools/build_levels.py --setup -P 1 -j 2: 49 PAL ELF and
  disc-format overlays MATCH.
- JOBS=4 sh tools/carry_us.sh: all 54 NTSC-U targets MATCH, map in step.
- python -B tests/check_repository.py: passed.
- python -B -m unittest discover -s tests: 311 tests OK, seven skips.
- Final links retain all 642 earlier PR C placements and every prior row
  across 54 manifests and both parent ledgers. Imported camera C matches
  at all 49 PAL and 51 NTSC-U placements with verified relocations and
  symbol bindings. The existing emitter's stock object is unchanged.
Merge master at ca99405.
Keep upstream's implementations, file split and flag rows unchanged.

The shared shield draw and native func_L39_0055E950 used D_L39_0024B4F8 and
D_L39_0024B4FC for different NTSC-U colour slots. Give the native effect
caller-specific aliases, preserving its existing addresses and instruction bytes, so both
routines link from C. Regenerate the combined reports with the stock carry.

Validation:
- PAL core build: three MATCH lines. All 49 PAL overlays match their ELF
  and disc payloads; PAL inputs remain unchanged after the native alias fix.
- JOBS=4 sh tools/carry_us.sh: all 54 NTSC-U targets MATCH; map in step.
- Imported PAL C matches at all 64 placements, including relocations,
  symbol bindings and read-only tables.
- All 642 prior PR placements and 51 imported US shield-arc placements
  pass actual linked-object, text, relocation, table and binding checks.
  All 54 earlier manifests and every row of both parent ledgers survive.
- The native alias change preserves all 1,072 instruction bytes and all
  object records except the two relocation symbol names, verified at all 17 sites.
- tests/check_repository.py passes; unittest discovery runs 311 tests,
  OK with seven skips. Source and flag checks pass; the PR delta against master has no
  whitespace errors. Preserve upstream's two existing whitespace-only lines.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant