Skip to content

match(pal): add twenty-four strictly verified overlay routines - #133

Merged
Veradictus merged 4 commits into
OpenRAC:mainfrom
Shaar-games:codex/pal-solver-20261108-2049
Nov 9, 2026
Merged

Veradictus merged 4 commits into
OpenRAC:mainfrom
Shaar-games:codex/pal-solver-20261108-2049

Conversation

@Shaar-games

@Shaar-games Shaar-games commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

Decodes 24 RAC4 PAL (SCES_532.85) functions, each strictly verified (byte-identical compiled code) and registered in the maps.

Original 14:

  • func_L00_005522A0
  • func_L00_005669A8
  • func_L00_0070D078
  • func_L00_0070D768
  • func_L00_0070D788
  • func_L00_0070D7B0
  • func_L00_007292C0
  • func_L00_00738128
  • func_L00_0074EFF8
  • func_L00_00757590
  • func_L01_004AF6E0
  • func_L01_004B5B18
  • func_L01_004BAAE0
  • func_L01_004C9B70

New in this PR:

  • func_L00_00605448
  • func_L00_00605530
  • func_L00_00605700
  • func_L00_006057E8
  • func_L00_006058B8
  • func_L00_00605988
  • func_L04_004991A8
  • func_L08_004B9BA8
  • func_L08_004B9C08
  • func_L11_003FF4B8

All are exact matches in the regenerated maps; both progress reports and the README table are updated.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 8, 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-09T06:24:52.558317Z e6f98c0 New commits
ℹ️ 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 8, 2026 •

Copy link
Copy Markdown

ByteMatch progress report

SCUS_974.65

Code matched 10.21% · 590.02 KB of 5.78 MB
Fuzzy match 10.67%
Functions 7,163 / 18,170
Units complete 3,898 / 3,957

No function changes.

SCES_532.85

Code matched 12.61% (+0.04%) · 732.46 KB of 5.81 MB
Fuzzy match 13.03% (+0.04%)
Functions 7,668 (+24) / 18,134
Units complete 4,172 / 4,230
✅ Newly matched (24)
  • func_L00_00605448 (228 bytes)
  • func_L00_00605530 (228 bytes)
  • func_L00_00605700 (228 bytes)
  • func_L00_00605988 (228 bytes)
  • func_L00_006057E8 (204 bytes)
  • func_L00_006058B8 (204 bytes)
  • func_L04_004991A8 (108 bytes)
  • func_L08_004B9BA8 (96 bytes)
  • func_L08_004B9C08 (96 bytes)
  • func_L11_003FF4B8 (64 bytes)
  • func_L00_00738128 (60 bytes)
  • func_L00_0074EFF8 (60 bytes)
  • func_L01_004AF6E0 (56 bytes)
  • func_L01_004B5B18 (56 bytes)
  • func_L01_004C9B70 (56 bytes)
  • func_L00_00757590 (56 bytes)
  • func_L01_004BAAE0 (56 bytes)
  • func_L00_007292C0 (52 bytes)
  • func_L00_005522A0 (48 bytes)
  • func_L00_005669A8 (40 bytes)
  • func_L00_0070D788 (36 bytes)
  • func_L00_0070D7B0 (36 bytes)
  • func_L00_0070D078 (32 bytes)
  • func_L00_0070D768 (32 bytes)

Commit e6f98c0 · Ratchet: Deadlocked on ByteMatch

Ten PAL level functions verified byte-identical (strict MATCH) against
SCES_532.85: six multiplayer-menu helpers in level_00, a cheats panel
routine in level_04, two chain routines in level_08 and one in level_11.
The sources are m2c output cleaned of solver macros.
-Wuninitialized does not affect code generation; the rebuilt objects are
byte-identical and still strict MATCH.
@Shaar-games Shaar-games changed the title match(pal): add fourteen strictly verified overlay routines match(pal): add twenty-four strictly verified overlay routines Nov 9, 2026

@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: e6f98c0a58

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

func_L11_003FF000(i);
result = *(s32 *)(i + 172);
}
return result;

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 Remove the unassigned return from the matched walker

When the list is empty (D_00220F50 == 0, also its initializer here), the loop never assigns result, but this line returns it. This violates the matching protocol in docs/QUEUE.md, which explicitly forbids “read of a local that was never assigned” and requires candidates needing such reads to remain in nonmatching/, even if their generated bytes compare exactly. Recover the retail-supported return contract and reverify the candidate, or stop publishing this implementation as a match.

AGENTS.md reference: AGENTS.md:L4-L5

Useful? React with 👍 / 👎.

@Veradictus
Veradictus merged commit 5e5de22 into OpenRAC:main Nov 9, 2026
1 check passed
Shaar-games added a commit to Shaar-games/rac4-decomp that referenced this pull request Nov 10, 2026
Strictly verified (pal-solver verify, byte-identical linked code and
verified data/BSS) against PAL SCES_532.85:

  main/multiplayer: 00484F88   net: 01EEE13C
  L00: 005300C8 00530410 00567138 00605A70 00605B58 006A09B8 006A0F88
  L02: 004CF080   L05: 003E47B8 004EF810 004F0FD8 004F4E68
  L06: 004C5DF0   L08: 004B9CC0  L11: 00408630  L15: 004EDFA0
  L41: 00410098 00410298 00444C58 00444D18 004469F8

PAL catalogue 8,044 -> 8,067 of 18,134 functions (incl. OpenRAC#133 baseline).
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.

2 participants