Skip to content

Match 19 routines and restore NTSC-U carry - #138

Open
stephendolan2017 wants to merge 1 commit into
OpenRAC:masterfrom
stephendolan2017:codex/openrac-regional-fallbacks-20261123
Open

stephendolan2017 wants to merge 1 commit into
OpenRAC:masterfrom
stephendolan2017:codex/openrac-regional-fallbacks-20261123

Conversation

@stephendolan2017

Copy link
Copy Markdown
Contributor

Functions

The match commit feat(rac3): match regional routines and restore NTSC-U carries contains these 19 routines. The counts are linked NTSC-U placements.

  • func_003A5598 — 1
  • func_003A5998 — 1
  • func_00802640 — 1
  • func_U_0037F588 — 1
  • func_U_003813E0 — 1
  • func_U_00391FD8 — 1
  • func_U_003932B0 — 1
  • func_U_00395288 — 1
  • func_U_00396B30 — 1
  • func_U_0039DB38 — 1
  • func_U_003A3088 — 1
  • func_U_003AA630 — 1, with PAL counterpart func_003AA780 also matched
  • func_U_L08_0039AF00 — 1
  • func_U_L14_0035C9C0 — 2
  • func_L09_003ECB60 — 2
  • func_L20_003F8218 — 1
  • func_L34_003B0F90 — 1
  • func_L40_003D59B0 — 12
  • func_L40_004252F8 — 12

Notes

  • The four NTSC-U core boundary corrections separate actual function bodies from preceding linker remnants. The inventory and mapper use the proven extents.
  • The shared multiplayer carry resolves an address operand in all 12 NTSC-U placements. The native multiplayer routine uses three function-scoped data aliases so that its operands and the existing routines retain their own bindings.
  • The four regional timing ports use the owning PAL files' compiler flags, including @ps2as where required. They use the NTSC-U timer values and bindings. The generated map, names and progress files are in the match commit.

Verification

  • Clean master and candidate were built against c162f99b. All 54 NTSC-U targets matched both retail formats in each build. The candidate retained all 150,587 clean C placements and linked exactly 43 more across the 19 routines.
  • All three PAL core programs matched retail in both builds. The candidate retained all 3,476 clean core placements and added the 1,352-byte boot function. The PAL overlay inputs reproduced the earlier verified recipe digests, including the ten affected overlays. All 44 passing overlay checks carry forward. Levels 03, 11, 16, 23 and 24 reproduce the same existing alias failures on clean master.
  • The repository, version-map, ByteMatch and progress checks passed. All three PAL programs passed the PR checks with the stock slice compiler enabled. All 253 unit tests passed, including the actual compiler and Splat fixtures.
  • This is my single open match PR. The diff contains tracked source, configuration and reports.

Recover the verified core boundaries, timed effects and multiplayer
symbol bindings so 19 routines link from C across 43 NTSC-U placements.
Include the PAL boot counterpart and regenerate the maps and reports.

All 54 NTSC-U targets matched both retail formats on clean master and the
candidate. The candidate retained all 150,587 clean C placements. All
three PAL core programs matched, and the previously verified overlay
inputs agreed. The PR checks and all 253 unit tests passed.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 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-11-23T10:53:30.804813Z 6017faa 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 Nov 23, 2026

Copy link
Copy Markdown

ByteMatch progress report

SCES_524.56

Code matched 82.01% · 6.17 MB of 7.52 MB
Fuzzy match 82.01%
Functions 15,733 / 16,589
Units complete 537 / 582

No function changes.

SCUS_973.53

Code matched 78.46% (+0.18%) · 5.87 MB of 7.48 MB
Fuzzy match 80.01% (+0.15%)
Functions 15,466 (+15) / 16,582
Units complete 516 / 569
✅ Newly matched (18)
  • func_L40_004252F8 (3,924 bytes)
  • func_0039DB38 (2,412 bytes)
  • func_L20_003F8218 (2,096 bytes)
  • func_L40_003D5818 (1,728 bytes)
  • func_003813E0 (1,636 bytes)
  • func_L34_003B0F90 (1,032 bytes)
  • func_L09_003ECB60 (616 bytes)
  • func_0037F588 (544 bytes)
  • func_U_L08_0039AF00 (516 bytes)
  • func_U_L14_0035C9C0 (352 bytes)
  • func_00391FD8 (300 bytes)
  • func_003932B0 (176 bytes)
  • func_00802640 (176 bytes)
  • func_003A0178 (124 bytes)
  • func_008025F0 (76 bytes)
  • func_00393290 (28 bytes)
  • func_L01_0041F198 (12 bytes)
  • func_003A0170 (4 bytes)
⚠️ No longer matching (3)
  • func_00385A70 100.00% → 0.00%
  • func_00383C18 100.00% → 0.00%
  • func_00397E08 100.00% → 0.00%
📉 Worse (3)
  • func_L08_0039AF00 33.81% → 0.00%
  • func_L14_0035C9C0 97.73% → 0.00%
  • func_00391FD8 97.33% → 0.00%

Commit 6017faa · Ratchet & Clank: Up Your Arsenal on ByteMatch

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6017faa325

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +85 to +88
__asm__("lqc2 %0, %1" : "=j"(qa) : "m"(v));
__asm__("lqc2 %0, %1" : "=j"(qb) : "m"(*(V4_3813E0 *)(obj + 0x10)));
__asm__("vadd.xyz %0, %0, %1" : "+j"(qa) : "j"(qb));
__asm__("sqc2 %1, %0" : "=m"(v) : "j"(qa));

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Combine the VU0 add into one asm block

On the info != 0 path, this single load/load/add/store VU0 sequence is split across four independent __asm__ statements, although the PAL counterpart already expresses the operation through vec_add_ab at src/frontbin/382380.c:1466. The matching rules require one asm block per VU0 sequence (or a shared header helper), so use that helper or one combined block and reverify the match instead of relying on four separate scheduling barriers.

AGENTS.md reference: AGENTS.md:L140-L145

Useful? React with 👍 / 👎.

extern f32 func_U_0038D488(f32, f32);
extern f32 func_U_0038DEC8(f32, f32);
/* localdecomp:start func_U_003A3088 */
/* from rac3-uya-decomp's func_003A3088 */

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use the prescribed NTSC decomp name

This newly added provenance comment refers to the third-party project as rac3-uya-decomp, while the repository convention requires referring to it as “the NTSC decomp”; rewrite the attribution while retaining the function reference so the new source follows that convention.

AGENTS.md reference: AGENTS.md:L211-L212

Useful? React with 👍 / 👎.

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