Repository navigation
Match the multiplayer help text box - #222
Merged
llesieur99 merged 3 commits intoDec 5, 2026
Merged
Conversation
ByteMatch progress reportSCES_524.56
✅ Newly matched (1)
SCUS_973.53
No function changes. Commit c09839f · Ratchet & Clank: Up Your Arsenal on ByteMatch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Multiplayer help text box
Match
func_L39_0059B428(2,036 bytes) in PAL, shared by the 15 multiplayer levels (39 to 53). It draws the help box of the multiplayer menus by state: it opens and closes the frame (states 1, 3 and 7), and in states 4 to 6 it widens the box for rows that have an icon, places the text box for 1-, 2- or 4-player splitscreen, draws the row's icon and then the text.The C replaces the
INCLUDE_ASMmarker insrc/levels/shared/L39_0059B428.c, with the file's own flag line, and its draft leavesnonmatching/. It follows the structure of its single-player twinfunc_L01_0041B608(src/levels/shared/L01_0041A910.c).The best earlier C was 265 diff, all from one missing instruction that shifted the rest. Retail loads the help-row table pointer once for the text, copies it (
move $t0,$a1) and reads the copy for theicon > 0test after the player-count chain. That copy is gcse's partial-redundancy copy, and two things in the C produce it:if (icon_h > 0)on the case's constant icon height. cse cannot fold the test because the constant is set in another block, and gcse folds it after the copy is made, so no branch is left.s32 max_players = 4;at the start of that block is retail's earlyli 4.docs/wiki/Matching-Patterns.mdgets a note on the pattern.Verification
tools/check.py: MATCH at all 15 places, with the file's own flag line.tools/build_levels.py --setup(levels 39 to 53, tree2d37111e; the later commit only changes a comment and the wiki): 15 of 15 levels match.39_multiplayer_menuf89056e67decc861592e06814b4a4afffbc5decbc805172ccdc1030e865f36aed607b1569a93bf4640_bakisi_isles05f844e8b1ab91a98d187d44ea901c9fe80c4ca030171ea7a37021f25a55fda988974b4f3678a43f41_hoven_gorged9675395a4f34a642e4958f8e53e9b0723f2a42a3477c456c92b1222a3a4183fa363f25fe95656bf42_outpost_x128ec23ac1905d1a76d41c5ee0a7a8fe9577c1a284b804fe36bc3951ffbebe78ae72eb69d26266feea43_korgon_outpostee93e42a1ca9b613099ca8e0e7fbd9decd0969be0a8198cfec6d3df94b7453f9ffcae6f459bb0d9944_metropolisd6681e732716854602de9a4a89f1df1309bb5cbe40a0eded837ae1d8605e084559cda6c7c18f9ab645_blackwater_cityfb6496621b946f0068aa8277cb9ab39948ef54e7e0434b1fe5d6a0e527e03a6215ef669a77689f3546_command_center3fc9cc86a5bddd8dafb09a3a2dc44d507b87b397aa0f34338a5c854c36a3eea03bb4c02d076dc96647_blackwater_docks84916e4e5bf393678e2245ddac3504fe2297df14451252c65212b792c6a3a18099323a73eb6756f048_aquatos_sewers_mp448f4477bcf0131b0eb5317bd11198a65b2f16006ec52d95c7ed4d578b39fa31fe63199069ba4b7549_marcadia_palace28e7e78cd0de5a89b59318c6b9daa0b0e73dadd066fe83312cd706aa50e6053a6afda17740fc30e950_bakisi_isles_splitscreenfce0076d59c4358de41b574a2b2f5945c92a090360b3a0ef88a278709c5b07667d752940e268ab2d51_hoven_gorge_splitscreen8bf7a30bdd30df3733c7b6fd11b8dab7ac328692db62a67e429e30befed3b493b3adf2bf789be85f52_outpost_x12_splitscreen6c78281f67d00302b2efe8352b5b29897a4d8bddfd129414a42a11c3b46ec1b9b32675b4e83a5f6b53_korgon_outpost_splitscreen6b3c8a075410f90b822c4fb53ddd8076683dcdc117f3979bdb97a5b801f4e6022e257267f45347d5version_map.py --write,c_objects.py,asm_build.py --version us --c):SCUS_973.53: 54 of 54 targets match. The function has no NTSC-U twin, so its row inconfig/us/map.tsvonly goes fromINCLUDE_ASMto C, andprogress/report.jsonis regenerated. The carry ran on2d37111e; the row's source hash is the current file's, since the later commit edits a comment in it.python -m unittest discover -s tests: 311 tests OK (4 skipped).tests/check_repository.py: repository checks passed.