Repository navigation
feat(levels): match the shield arcs draw (func_L01_00342640, func_L39_00563E40) - #223
Merged
Merged
Conversation
Match func_L01_00342640 (shield_arcs_draw) and its multiplayer copy func_L39_00563E40. Each moves to a file of its own on the flag line it needs. L01_00342640.c holds only the function, without -fno-sched-interblock (43 diff with it); the functions after it move to L01_00342938.c on the old file's line. L39_00563E40.c uses the VU0 @ps2as line of L39_005640A0.c. The wiki gets two notes: the head store through an inline copy helper, and reading a value into the variable that holds its scaled form.
Regenerate config/us/map.tsv, config/us/built.tsv and the progress reports for func_L01_00342640 and func_L39_00563E40 (NTSC-U func_L01_00341DA0 and func_L39_005632C8, both C and matching).
ByteMatch progress reportSCUS_973.53
✅ Newly matched (2)
SCES_524.56
✅ Newly matched (2)
Commit 3547b98 · 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.
Shield arcs draw
Match
func_L01_00342640(760 bytes,shield_arcs_draw, 34 places) and its multiplayer copyfunc_L39_00563E40(608 bytes, 15 places) in PAL. Both redraw the shield's five arcs. A live arc keeps the spacing of its ten points but is re-anchored at the shield's centre. Its alpha is a constant times the frames left over its life, and it is drawn as a closed loop throughfunc_L01_00409658. The single-player copy takes the line kind and colour from the current level's entry inD_L01_002C5600. The multiplayer copy has one colour, and another one for object class0x1192.Files
func_L01_00342640needs interblock scheduling: it is 43 diff under the line ofL01_00340670.c, which has-fno-sched-interblock. It moves tosrc/levels/shared/L01_00342640.c, on that line without the flag. The functions after it, fromfunc_L01_00342938to the end of the old file, move unchanged tosrc/levels/shared/L01_00342938.con the old file's line. The declarations they took from earlier in the old file are repeated at its top.func_L39_00563E40was anINCLUDE_ASMmarker at the end ofL39_00563DB8.c. It moves tosrc/levels/shared/L39_00563E40.c, on the VU0@ps2asline thatL39_005640A0.cuses.nonmatching/(levels and functional), with their rows innonmatching/functional.tsvandnonmatching/README.md.What made them match
func_L39_005635D0(L39_00563370.c). The store then gets its owni * 0xA0row product, and the.wstore reuses that row address (move $a1,$a2). A direct store shares the loops' product: 38 and 126 diff, down to 3 and 17 with the helper.a = D[k]; a = (s32)((f32)a * scale) << 24;. That gives retail's registers in both copies.func_L20_003D8248declares it, with the floats before the colours and the colours ass32. Under the EABI, the int and float arguments take the same registers in either order.docs/wiki/Matching-Patterns.mdgets a note on each of the first two.Verification
tools/check.py:func_L01_00342640MATCH at all 34 places in its new file.func_L39_00563E40MATCH at all 15 places.tools/build_levels.py --setupon all 49 levels (treea307f267; the later commits are the NTSC-U carry and a line wrap in the wiki note): 49 of 49 levels match. The run went through the new files' flag lines, so the functions moved toL01_00342938.cwere built on its line.01_veldinaab9a95641fa24e3acaec9c04369e942b3689e381b44af14c1fc005d439bc026a092b5734e6b2fb602_florana13679c255f1decfcf3950cf5e2667e6f6332f9e8daa39dff070157ebd4e40769cb0b543473b34c7303_starship_phoenix447ee84f02bc3ffa15c39d1bdfa339301ef7c74aa75a948488b8bb04748ca4ac8a8ad7be9c672c2204_marcadia7cd1b04a1fa84c888847e7032fed40962f0411458c7764d8d793458f9f19f27d8c98a0faea26394205_daxx2b3877caac6de716ace61b111855bbe24684938c11293543601528cec22af9c74c7cff2f987b857306_starship_phoenix_under_attack660b280490091751f79ed922bea74cfb4cdb53e8cee236d4c398c583381bdb42b3df7a5e4f53d48907_annihilation_nation1fad9b6e284d55534a7eebe6d19c4b4e37e0090a8421d1db9f34360069daffa0295119a584c5e5bd08_aquatos7121a587eca7ceff13e0dc747f1a12fe7a23ef76cb838fefcb63dd1e822b137fe34e5fa20879f76b09_tyhrranosiscdb30aea6a0e72f76cf4db8c41c57aa413c1aecf9df4752ec061610dd5377ae1db1222bc1f8693f510_zeldrin_starport7815cb88fadf56d8fe7eb0747c6f649a424d7fad2cfa5cea433c770149b8cb4e4bfe293169702a0d11_obani_moons0da808c0605c80e7caf473e797272c16961d39b1ee0a9216f7df2c737a76db3e657bbb561a72c06612_rilgar89c3cf2eaba79c56a0ecb07c53ca73da2b443ea2d11fbef13ee9d6260f1677c640266f01b9cdb5e513_holostar_studios_ratchetd93dd78dc3060580284acdf8a76580d21debddc637498424322cc79eaeb7d11a410599c590ad7e1314_koros5e6ae50167440ac0e8e96c6308791ee24e6e3d7993c37ee7b85e33fa25b0fba19beb8418a902312816_kerwan05669db35ead92b8c7685986de20e38070656e6e90d1c37120d205c401c00a49cd9ce8ee66fdef7e17_crash_sited55d5aca3b00159ec224c9d04b53dd8bfca201412f8ca91011893914d885a5c23c69d9c9b78fb8c018_aridiacacebbfe178be73d42a950584a58ebd00d6f8baca51a43afa46b7f11c7543cb8bfcf4b93fdf038a319_thran_asteroid_belt7290b9a16e4bb3548998097535b8353aaed944a70beafc66f13dc50b31871c9cd28c036d8f2437db20_final_boss307bb72dc2327ac7e9df9429261d56d275d93add3b2e2d6c6ae5d05f08c85c78521a0e10eeee160221_obani_draco97188a12babe1657cd2249aa484cfb692e576c5f40f4548c7e59fab0a4eb28797d2f03b84ea3d12022_mylonc7f5c3ad942d75e519901ed86cf5229f32c1fee335a636ab6a5ba5acb37b3cb3ac48ca148078e82423_holostar_studios_clank97743112f3df9b815b627265450f6fc1f82a35f6c9aa982976c9c78950eababe3ac62bc9d84e8ebd24_insomniac_museum79e9d151e51d6cc987b0327fcca186175052ded360574360e20964b371a59d6a745c5afefb6b9ced26_kerwan_ranger_missionsb57ca607149c28f044267a752cd267f8c59e091eb5ddb15f22684787a63625db202fbc34004e4f1c27_aquatos_base42595aa7b0f7a50068ce253bf87317804e408416d8f4ff29501db22558bd6acca78c08170947fdbb28_aquatos_sewers0b19135dddf1fde3cb8f1dc75d2d50cd7f4e079b86b1f60e5e6c6dabea43aedd0b2d68f7501fc0b129_tyhrranosis_ranger_missions5fa06bcc68b3f7f1579865b6d854ec9438212eb3ed22ca26d2af33019bfdbfe2da1e68c866a30aef30_vidcomic_unnamedce93cb0a44fa9ab80d436fb0a755e7bcc19afac669a0592f277a730d418499c625f0525e5fdf9b4e31_vidcomic_17de4e9c7fd22ea0ff0cce7c18427ca1a5239e6548dcbcf64beea7928d1cca921fc0b8426bdc5785f32_vidcomic_4ba78563b050ce9b24f140db9df80da69a719343b4f919ed39f04b52ef2356e4c36c798c0bfffae4633_vidcomic_251592e036338094c4f5f53a748875187678c9aba5feec48b1b13d3bc47068bcab45bdd2f0085452534_vidcomic_307e0404f5789cdf55a145091053b429217fb5b6f0766377afe5098ac20ce53bbbd918860ae840a4a35_vidcomic_5e35bec5c2e797d9f2eb1b032cd7aaa9c2e25674c8dbda4934c0e85df5aff1bd1dc9d15ee7796679436_vidcomic_1_special_edition7394d30609ee0b8a8e40b1792923b3501cd0720d099efabc28b4f8c677ab22154507807db235341d39_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_splitscreen6b3c8a075410f90b822c4fb53ddd8076683dcdc117f3979bdb97a5b801f4e6022e257267f45347d5tools/carry_us.shona307f267:version_map.py --write,c_objects.py,asm_build.py --version us --c):SCUS_973.53: 54 of 54 targets match. Both twins go fromINCLUDE_ASMto C inconfig/us/map.tsv(func_L01_00341DA0at 34 places andfunc_L39_005632C8at 17), with their rows inconfig/us/built.tsv. The other changed rows only take the new source hash of their file, for every function ofL01_00340670.c,L01_00342938.candL39_00563DB8.c.progress/report.jsonandprogress/us/report.jsonare regenerated.python -m unittest discover -s tests: 311 tests OK (4 skipped).tests/check_repository.py: repository checks passed.