Compare commits

..

438 Commits

Author SHA1 Message Date
Martin Michelsen cf7c4674d6 add decode-sjis action 2023-12-22 21:54:59 -08:00
Martin Michelsen 4de23561b0 add option to unmask Ep3 whispers on proxy server, and prevent this from working on newserv 2023-12-22 21:54:48 -08:00
Martin Michelsen fa9b4d7f61 implement $ping on proxy server 2023-12-22 20:21:43 -08:00
Martin Michelsen 2ee6119c93 fix kap and ktp Ep3 env stat expr tokens 2023-12-22 18:26:35 -08:00
nolrinale 02839d8a77 Added Map files to spawn Coren 2023-12-22 17:47:34 -08:00
nolrinale 2af926b461 Coren labo area client function adjustments 2023-12-22 17:47:34 -08:00
Martin Michelsen 23d4b7d905 fix Ep3 6x70 again 2023-12-22 17:17:25 -08:00
Martin Michelsen ef40007720 fix CHALLENGE16 text encoding 2023-12-22 16:46:15 -08:00
Martin Michelsen 05dcc0edfc remove note about Ep3 6x70 2023-12-22 15:29:01 -08:00
Martin Michelsen 28f896faae fix class name in Ep3 quest buffer code 2023-12-22 15:27:45 -08:00
Martin Michelsen d7bdbf19d1 fix 6x69 client ID check 2023-12-22 15:27:45 -08:00
Martin Michelsen cf0588afc8 fix Ep3 6x70 handler 2023-12-22 15:27:45 -08:00
nolrinale 0a4527340d Adding Coren localized files 2023-12-22 11:04:27 -08:00
Martin Michelsen e35c0c82a5 fix 6x70 for all cross-version cases 2023-12-21 22:23:39 -08:00
Martin Michelsen b0b51b425a always block 97 command in proxy sessions 2023-12-21 22:23:39 -08:00
Martin Michelsen 98bd54b98f clean up SAVE_ENABLED flag usage 2023-12-21 19:54:01 -08:00
Martin Michelsen 30cf74ee87 check game mode for v1/v2 crossplay 2023-12-21 14:57:34 -08:00
Martin Michelsen 522c1848e1 use a cleaner method to deal with duplicate 97 commands 2023-12-21 14:53:56 -08:00
Martin Michelsen d7978aa99e fix PSO PC corruption message caused by multiple proxy sessions 2023-12-21 09:59:58 -08:00
Martin Michelsen 61e696d87c delete duplicate quest 2023-12-20 17:17:37 -08:00
Martin Michelsen b17dd5b196 make 6xE2 result weapons unidentified 2023-12-20 16:44:25 -08:00
Martin Michelsen 40c0953ebc switch 6xBE and 6xE3 order 2023-12-20 16:22:56 -08:00
Martin Michelsen 82aaf4cd34 implement 6xE2 subcommand 2023-12-20 15:42:29 -08:00
Martin Michelsen f048a4f5fb add reassembly mode in quest script disassembler 2023-12-20 14:59:39 -08:00
Martin Michelsen 2ee4249f89 fix default Black Paper reward lists 2023-12-19 16:41:40 -08:00
Martin Michelsen c68181e8c0 don't use drop command to change item visibility 2023-12-19 13:33:51 -08:00
Martin Michelsen f2f72b537d fix $loadchar slot index 2023-12-19 11:37:54 -08:00
Martin Michelsen 3284e5ddc1 add missing include on Linux 2023-12-19 10:54:23 -08:00
Martin Michelsen 1299cc345b create players directory if it does not exist 2023-12-18 23:31:09 -08:00
Martin Michelsen b7604eb643 add ability to forbid specific quest flag writes 2023-12-18 21:58:39 -08:00
Martin Michelsen e3315822de block various types of NPC FSOD from SPSOF 2023-12-18 20:33:07 -08:00
Martin Michelsen 592b013f65 use newer actions/checkout version for CI 2023-12-18 13:40:13 -08:00
Martin Michelsen 0ec685cbd0 remove duplicate function definition 2023-12-18 13:31:38 -08:00
Martin Michelsen 12f5b52680 fix name for 6x17/6x18 structs 2023-12-18 13:31:25 -08:00
Martin Michelsen 73815e1520 replace compatibility table with bullet list 2023-12-18 12:31:18 -08:00
Martin Michelsen 49c947b352 prevent various malicious SPSOF commands 2023-12-18 10:28:32 -08:00
Martin Michelsen be6d0e58cf make trial names consistent in readme 2023-12-18 10:25:21 -08:00
Martin Michelsen 58fa32b95b fix PC NTE menu item flags 2023-12-17 23:49:20 -08:00
Martin Michelsen e8431225d0 fix error in readme 2023-12-17 23:33:35 -08:00
Martin Michelsen 7581c8e175 enable chat commands by default in proxy sessions 2023-12-17 23:32:41 -08:00
Martin Michelsen 30b97df4f1 add quest debugging functions on proxy server 2023-12-17 23:32:41 -08:00
Martin Michelsen ec1337712f describe crossplay functions in readme 2023-12-17 23:32:41 -08:00
Martin Michelsen 3f9cad1ca5 add support for PC NTE 2023-12-17 23:32:41 -08:00
Martin Michelsen a6c4217875 add $where command 2023-12-17 23:32:41 -08:00
Martin Michelsen de5547ff68 clean up 6x75 structure 2023-12-17 23:32:41 -08:00
ShiftaDeband da26fb0d14 Adjust PSOPC patch directory structure 2023-12-17 18:44:16 -08:00
ShiftaDeband 29e2ad10c3 Delete system/patch-pc/data directory 2023-12-17 18:44:16 -08:00
Martin Michelsen af06741788 enforce min stack sizes for quest opcodes too 2023-12-17 18:15:30 -08:00
Martin Michelsen d64c9621af fix converted 6x70 subcommand size field 2023-12-17 18:06:45 -08:00
Martin Michelsen 8b0f62f71e don't allow creeating x0 stacks with $item 2023-12-17 17:43:54 -08:00
Martin Michelsen 7a34fb0f7a fix minimum player levels for Hard, etc. on non-V4 2023-12-17 13:50:47 -08:00
Martin Michelsen f14f7dd93b enable item tracking on NTE and 11/2000 and make $item work 2023-12-17 13:50:44 -08:00
Martin Michelsen 74604788c9 add chat bug to to-do list 2023-12-16 21:04:12 -08:00
Martin Michelsen 9fa25d6337 update flycast patch script to support multiple instances 2023-12-16 21:03:50 -08:00
Martin Michelsen 209ccd6726 switch text transcoder error case 2023-12-16 18:00:04 -08:00
Martin Michelsen 1edc40724f remove no-longer-true statement about download quests 2023-12-16 12:33:37 -08:00
Martin Michelsen 367c4e77c1 split allowed drop modes for different game modes 2023-12-16 12:00:29 -08:00
Martin Michelsen 81af488e26 add ability to hide quests based on game player count 2023-12-16 11:28:40 -08:00
Martin Michelsen a9afab9717 fix dropping items breaking extension data 2023-12-16 10:09:52 -08:00
Martin Michelsen 66d7594a36 implement nonstandard drop modes 2023-12-16 10:09:40 -08:00
Martin Michelsen 2bd43391a6 mitigate potential $persist abuse 2023-12-13 21:47:51 -08:00
Martin Michelsen 974269187b add timeout for persistent games 2023-12-13 20:52:35 -08:00
Martin Michelsen 3551b9abc3 add missing include 2023-12-13 15:56:49 -08:00
Martin Michelsen bbef5e329f add default GC patches 2023-12-13 15:39:30 -08:00
Martin Michelsen 7cb0ef9f3e fix warning in TeamIndex constructor 2023-12-13 15:39:30 -08:00
Martin Michelsen 0429638cf0 add extended patch metadata 2023-12-13 15:20:07 -08:00
Martin Michelsen a85e161020 add tools for GC patch reverse-engineering 2023-12-13 15:19:30 -08:00
Martin Michelsen d34f47405c fix typo in item name 2023-12-12 14:00:51 -08:00
Martin Michelsen 179e688cf6 add more heuristics in AR code translator 2023-12-12 14:00:43 -08:00
Martin Michelsen c4827bafdb update metadata JSON files for team quests 2023-12-11 15:56:18 -08:00
Martin Michelsen d2133aae3d add unidentified flag to item descriptions 2023-12-11 14:26:53 -08:00
Martin Michelsen 196f2de616 don't send auto-reply message if sender is blocked 2023-12-11 13:57:36 -08:00
Martin Michelsen d9cdf9804f fix ... in F_ARGS opcode assembly 2023-12-11 13:56:00 -08:00
Martin Michelsen bc017578e3 persist item state when no players are in a game 2023-12-11 12:13:36 -08:00
Martin Michelsen aa27c579f6 update to-do list 2023-12-11 12:11:58 -08:00
Martin Michelsen 6a6943e0df fix typo in arg names 2023-12-11 12:11:58 -08:00
Martin Michelsen 2dc2f85b1a don't disconnect on duplicate EXP requests 2023-12-10 21:45:13 -08:00
Martin Michelsen 6ef5b59724 fix log level on ItemCreator 2023-12-10 21:31:51 -08:00
Martin Michelsen 2f32e8ab7d fix BB inventory desync when buying consumables from shop 2023-12-10 21:16:42 -08:00
Martin Michelsen 60c1aa71dc fix ToolV4 structure 2023-12-10 17:35:57 -08:00
Martin Michelsen a315f6d011 expand metadata comments in q058 2023-12-10 15:22:40 -08:00
Martin Michelsen a42594afd3 fix implicit signed conversion 2023-12-10 14:54:30 -08:00
Martin Michelsen 04445dabd0 fix default BB key config 2023-12-10 14:52:17 -08:00
Martin Michelsen 16cddd28b2 add quest script compiler 2023-12-10 14:24:30 -08:00
Martin Michelsen b53bde9046 expand comment on expand_rate 2023-12-10 09:16:59 -08:00
Martin Michelsen afd63ca1dd make ep2 quests have orange icon on non-BB versions 2023-12-09 19:21:31 -08:00
Martin Michelsen 8ae7696b51 fix $exit when v3 quests are loaded in ep3 games 2023-12-09 19:21:31 -08:00
Martin Michelsen 81d03738da enable $quest to load v3 quests on ep3 2023-12-09 19:10:54 -08:00
Martin Michelsen beb87b546f clean up map logging 2023-12-09 18:32:17 -08:00
Martin Michelsen 12572ed2d4 hide inventory/bank log messages if disabled in config.json 2023-12-09 10:56:58 -08:00
Martin Michelsen bb3d4ac847 disable $bank when character overlay is present 2023-12-09 10:38:48 -08:00
Martin Michelsen 0ded423c84 treat enemy type 0100 as NPC 2023-12-08 23:34:36 -08:00
Martin Michelsen 414ef0d825 don't send card search results if searcher is blocked 2023-12-08 23:34:32 -08:00
Martin Michelsen b54b32b461 reformat DAT constructor tables 2023-12-08 20:39:50 -08:00
Martin Michelsen 67e2428daa don't load Challenge map data on quest start 2023-12-08 20:22:04 -08:00
Martin Michelsen 8654555777 recreate map on challenge mode restart 2023-12-08 18:08:47 -08:00
Martin Michelsen 83166f1eff fix multi-area challenge enemy generation 2023-12-08 17:39:00 -08:00
Martin Michelsen fbf170ef12 fix slime enemy types 2023-12-08 17:38:42 -08:00
Martin Michelsen b7bc148e09 implement solo quest progression flags 2023-12-08 17:01:11 -08:00
Martin Michelsen 009a0fc93d fix Monest child_type 2023-12-08 10:02:36 -08:00
Martin Michelsen 5a98b48521 don't set floor if it's negative 2023-12-08 10:01:01 -08:00
Martin Michelsen bf17ec0943 add unknown enemy type 0118 2023-12-08 09:51:57 -08:00
Martin Michelsen e901f5e681 don't save licenses for replay sessions 2023-12-07 20:27:46 -08:00
Martin Michelsen 6136f8dfb3 implement $edit on v1/v2 2023-12-07 20:08:46 -08:00
Martin Michelsen 0c18656e03 update note about get_game_version 2023-12-07 17:05:26 -08:00
Martin Michelsen 317c9fd616 implement Simple Mail auto-reply when recipient is offline 2023-12-07 12:46:01 -08:00
Martin Michelsen 6d16f8095a factor ClientGameData into Client to reduce data duplication 2023-12-07 12:23:21 -08:00
Martin Michelsen 072ebe81bf add $savechar and $loadchar commands 2023-12-06 23:54:53 -08:00
Martin Michelsen 7db761f181 fix attribute upgrade in Gallon's Shop 2023-12-06 15:57:37 -08:00
Martin Michelsen 7211205e55 fix meseta and material import in $bbchar 2023-12-06 09:55:33 -08:00
Martin Michelsen 85d0bac5cb assign bank item IDs at game join time 2023-12-06 09:46:57 -08:00
Martin Michelsen 713327b0ae fix double language marker on BB 2023-12-05 23:31:16 -08:00
Martin Michelsen 0ce5210c22 add v4 ItemPT data 2023-12-05 23:31:16 -08:00
Martin Michelsen 4ccbb2f683 don't disconnect when no combinations apply 2023-12-05 23:31:16 -08:00
Martin Michelsen 3075370975 add $qcheck command 2023-12-05 23:31:16 -08:00
Matt Swift 9dfdbc624b Add fixed BB Gallon's Shop 2023-12-05 23:07:07 -08:00
Martin Michelsen 027956876d fix episode 3 tests 2023-12-04 22:40:07 -08:00
Martin Michelsen cd1cc43cb3 update to-do list 2023-12-04 22:40:07 -08:00
Martin Michelsen 77798e09be prevent player from joining game if a quest they don't have access to is in progress 2023-12-04 22:40:07 -08:00
Martin Michelsen da0ffea7e0 prevent player from joining game if a quest they don't have access to is in progress 2023-12-04 21:42:51 -08:00
Martin Michelsen 330dbecada rewrite $bbchar implementation 2023-12-04 19:38:42 -08:00
Martin Michelsen 2360beb77b sort bank contents before sending to client 2023-12-04 18:43:37 -08:00
Martin Michelsen 33bbb15bf0 fix stacked item bank deposit bug 2023-12-04 18:23:41 -08:00
Martin Michelsen c25569c688 implement shared bank 2023-12-04 16:59:03 -08:00
Martin Michelsen 01b83044dc cache loaded player files between sessions 2023-12-04 12:38:26 -08:00
Martin Michelsen e05dcb6e70 update rare enemy rates 2023-12-04 10:37:02 -08:00
Martin Michelsen 501a048af0 allow specifying minimum levels for difficulties 2023-12-03 23:35:38 -08:00
Martin Michelsen f605a21c1a add option to specify BB rare enemy rates 2023-12-03 21:44:56 -08:00
Martin Michelsen 8e1edbc34e update notes about DC prototypes 2023-12-03 21:44:56 -08:00
Martin Michelsen 83549fe8e4 update compatibility table 2023-12-03 16:59:05 -08:00
Martin Michelsen fbda7a2a48 fix GC NTE proxy behavior 2023-12-03 16:34:09 -08:00
Martin Michelsen b8d4ab589e update compatibility table 2023-12-03 00:06:32 -08:00
Martin Michelsen e49e159eee implement HDLC/PPP in IPStackSimulator 2023-12-03 00:06:32 -08:00
Martin Michelsen 0442f6e579 fix Ep3 card trade sequence 2023-12-02 18:24:07 -08:00
Martin Michelsen 3160d86eaa only use language from quest header if it's valid 2023-12-01 22:27:58 -08:00
Martin Michelsen 4cd82caa5f fix GC NTE episode number when creating games 2023-12-01 21:34:51 -08:00
Martin Michelsen d943364c29 use DC quest download semantics for GC NTE 2023-12-01 21:00:10 -08:00
Martin Michelsen cddd8007c7 fix 6x75 on GC NTE 2023-12-01 20:29:11 -08:00
Martin Michelsen 039786b2f8 handle GC NTE character data struct 2023-12-01 20:05:12 -08:00
Martin Michelsen 5de53391db disable rare mag evolution logic on v1/v2 2023-12-01 17:34:16 -08:00
Martin Michelsen 5f8e0bd6bd add XB voice chat command structs 2023-12-01 17:32:55 -08:00
Martin Michelsen 3e83669138 update to-do list 2023-12-01 17:32:45 -08:00
Martin Michelsen 5593dc0ecd add PSOBB connection instructions 2023-11-30 10:59:31 -08:00
Martin Michelsen 956e890ad6 use make_shared where appropriate 2023-11-30 10:24:27 -08:00
Martin Michelsen c833b575e4 fix item table reloading 2023-11-30 10:24:11 -08:00
Martin Michelsen 4b3be7eee3 add fallback for undecodable text in quest disassembler 2023-11-30 09:48:40 -08:00
Martin Michelsen f7b6f602cd update to-do list 2023-11-30 09:48:24 -08:00
Martin Michelsen 695f14e3fb implement 6xD8 subcommand 2023-11-30 09:48:12 -08:00
Martin Michelsen 77906b7a57 update example config 2023-11-29 22:51:02 -08:00
Martin Michelsen 14fc0996bd fix team reward keys on quests 2023-11-29 22:48:20 -08:00
Martin Michelsen 3743d0a156 implement quest unlock flags 2023-11-29 22:22:19 -08:00
Martin Michelsen 3d2d96eb7e fix BB bank withdraw conditions 2023-11-29 18:45:30 -08:00
Martin Michelsen ba8917e50d implement team item rewards 2023-11-29 18:28:54 -08:00
Martin Michelsen b09269eabc update to-do list 2023-11-29 17:19:48 -08:00
Martin Michelsen d1ce010d06 make user flag that allows cheating even if cheats are disabled 2023-11-29 17:19:37 -08:00
Martin Michelsen 1e3ca4111a add TODO item about F94D quest opcode 2023-11-29 16:45:02 -08:00
Martin Michelsen 6a052722c9 load V1 rare tables 2023-11-29 16:44:53 -08:00
Martin Michelsen acb9c656c5 implement 6xCB subcommand 2023-11-29 16:42:24 -08:00
Martin Michelsen f5ebf6fdcd fix comment in rare-table-v1.json 2023-11-29 12:55:36 -08:00
Martin Michelsen 9ea84d7101 implement most remaining BB team functions 2023-11-29 11:35:15 -08:00
Martin Michelsen 556360c993 implement choice search 2023-11-28 18:38:43 -08:00
Martin Michelsen 4008d7f4ff remove history/future sections from readme 2023-11-28 18:38:43 -08:00
Matt e47b72dd72 Add Chinese/Korean download quests for PCv2 2023-11-28 14:06:21 -08:00
Martin Michelsen 613d0c6d36 update windows build instructions 2023-11-27 22:54:42 -08:00
Martin Michelsen 2d8de65dd0 fix initial lobby position commands across NTE/proto boundary 2023-11-27 22:50:44 -08:00
Martin Michelsen 33ef130098 allow word select across NTE/proto boundary 2023-11-27 22:50:23 -08:00
Martin Michelsen 3370d9c940 allow symbol chats to cross 11/2000 version boundary 2023-11-27 22:09:38 -08:00
Martin Michelsen 2c24cce740 send 15EA commands upon request 2023-11-27 21:34:28 -08:00
Martin Michelsen 26685ab32c save team config when points are earned 2023-11-27 21:31:10 -08:00
Martin Michelsen 1a5e56c0b2 fix team metadata in lobbies 2023-11-27 21:30:59 -08:00
Martin Michelsen 8e2a58ccaa eliminate ServerBehavior::DATA_SERVER_BB 2023-11-27 21:30:41 -08:00
Martin Michelsen 5192b5f615 hide some unnecessary data from log output 2023-11-27 21:29:48 -08:00
Martin Michelsen 9e55cd228c fix quest opcode flags constants 2023-11-27 16:02:58 -08:00
Martin Michelsen 65417749b2 don't send text messages to 11/2000 clients 2023-11-27 15:58:56 -08:00
Martin Michelsen 9a0ce6c131 update compatibility table in readme 2023-11-27 14:41:10 -08:00
Martin Michelsen d86b41daab update quest disassembler for 11/2000 prototype 2023-11-27 14:40:59 -08:00
Martin Michelsen 0a522e6ac4 add support for 12/2000 DC prototype 2023-11-27 14:40:42 -08:00
Martin Michelsen f2c3d256f3 fix quest disassembler opcode flags 2023-11-27 11:49:24 -08:00
Martin Michelsen dfb1249efc add comment about 11/2000 symbol chat 2023-11-27 11:49:20 -08:00
Martin Michelsen 7feb11b6a7 fix notes in compatibility table 2023-11-27 00:32:12 -08:00
Martin Michelsen 20b66a7a58 improve support for 11/2000 prototype 2023-11-27 00:29:26 -08:00
Martin Michelsen 9b6a023d38 preserve original disp if client is v1 or v2 2023-11-26 22:37:26 -08:00
Martin Michelsen ea83935dc4 implement BB EXP requests properly 2023-11-26 16:21:09 -08:00
Martin Michelsen 654132b5d2 fix BB team chat 2023-11-26 16:18:51 -08:00
Martin Michelsen e484ad72e0 rewrite quest category menu system 2023-11-26 14:52:37 -08:00
Martin Michelsen 64ac199730 fix battle map reloading 2023-11-26 11:46:10 -08:00
Martin Michelsen f4e9b4c60a fix error message when CatchHandlerExceptions is off 2023-11-26 11:45:59 -08:00
Martin Michelsen a4039fa9cd update to-do list 2023-11-25 23:43:54 -08:00
Martin Michelsen 6af0527498 implement team points and member ranking 2023-11-25 23:12:09 -08:00
Martin Michelsen 1cd0092a41 use client's ignore_def value when it doesn't match server's 2023-11-25 22:15:08 -08:00
Martin Michelsen 62d4c65a7d fix help text formatting 2023-11-25 22:13:13 -08:00
Martin Michelsen 220259b093 fix BB quest map loading bug 2023-11-25 21:12:03 -08:00
Martin Michelsen 0f8d88bb58 remove debugging messages 2023-11-25 21:02:53 -08:00
Martin Michelsen 4a3716191b update compatibility notes in readme 2023-11-25 21:02:44 -08:00
Martin Michelsen 5c58c500c1 fix DCNTE smoke test 2023-11-25 19:37:28 -08:00
Martin Michelsen a3d677316a fix DC NTE game join sync commands 2023-11-25 19:35:09 -08:00
Martin Michelsen 0f45ced3e9 add DC NTE map variations 2023-11-25 19:23:25 -08:00
Martin Michelsen ccfdbf2faf use 6x1F instead of 6F to unlock DC NTE games 2023-11-25 16:53:05 -08:00
Martin Michelsen 9c403e9107 remove unneeded debug prints 2023-11-25 16:26:19 -08:00
Martin Michelsen 46c3a44b41 fix uninitialized memory bug in UTF16 encoder 2023-11-25 16:12:11 -08:00
Martin Michelsen bc82594a26 add debugging prints for failure that only happens in GH Actions 2023-11-25 15:54:36 -08:00
Martin Michelsen e3ce4edede fix 8-bit challenge rank encryption 2023-11-25 15:33:33 -08:00
Martin Michelsen 61c37d86c1 fix signedness issue on linux 2023-11-25 13:16:45 -08:00
Martin Michelsen ff12a9aaca fix AR code translator stub 2023-11-25 12:41:24 -08:00
Martin Michelsen b5dbf25254 fix bug that causes long char names to disappear on BB 2023-11-25 12:30:27 -08:00
Martin Michelsen 10e5dc4708 clear arrow color when changing lobbies 2023-11-25 12:30:27 -08:00
Martin Michelsen 1b499ab953 fix spacing in help message 2023-11-25 12:30:27 -08:00
Martin Michelsen 011eedb855 add extra languages on PC v2 2023-11-25 12:30:27 -08:00
Martin Michelsen 897cca83cf add ability to disassemble DC NTE quests 2023-11-25 12:30:27 -08:00
Martin Michelsen fe6e957c92 add DC and GC NTE smoke tests 2023-11-25 12:30:27 -08:00
Martin Michelsen de4cb26c34 refactor GameVersion and QuestScriptVersion into a single enum 2023-11-25 12:30:27 -08:00
Martin Michelsen 9097abf307 fix starting inventory on new BB chars 2023-11-25 12:30:27 -08:00
Matt 14a86610ed Add download quests for V1 and PC 2023-11-25 10:26:33 -08:00
Matt 9e34ce6f49 Add official download quests for DC 2023-11-24 17:56:37 -08:00
Matt 7f1846013d Add missing DC version of MU3 2023-11-24 14:03:19 -08:00
Martin Michelsen 05d6d495a5 work around Tethealla bug in proxy 2023-11-21 23:04:20 -08:00
Martin Michelsen 5991a5a894 rewrite unit generation logic to fix v2/bb behavior 2023-11-21 22:11:41 -08:00
Martin Michelsen b0c481ed62 fix xbox 64 command on schtserv 2023-11-21 20:27:25 -08:00
Martin Michelsen 3712574784 minor style adjustment 2023-11-21 17:09:31 -08:00
Martin Michelsen e738f7f089 update to-do list 2023-11-21 17:09:18 -08:00
Martin Michelsen 8eba207a6b add BFR1 BB key 2023-11-21 13:31:22 -08:00
Martin Michelsen 67ed70082c rewrite 6x6D bug comment 2023-11-21 11:51:06 -08:00
Martin Michelsen 35aa6fba01 fix area number for specialized box item drops 2023-11-21 11:38:24 -08:00
Martin Michelsen 267c2ca00b fix invalid tool class on v3/v4 2023-11-21 11:25:25 -08:00
Martin Michelsen 1d8ae0b4d9 use constructor tables from GC and BB client in map parsing 2023-11-20 23:43:40 -08:00
Martin Michelsen 30ad83fa67 fix incorrect team metadata command target 2023-11-20 17:13:10 -08:00
Martin Michelsen 11880ecc05 fix v2 challenge mode overlays 2023-11-20 17:12:58 -08:00
Martin Michelsen a62b7dad26 fix warning in Map.cc 2023-11-19 23:20:14 -08:00
Martin Michelsen f8280e5f97 fix 6xC6 format 2023-11-19 23:18:31 -08:00
Martin Michelsen c1bf5ebb43 completely reset item creator when a quest loads 2023-11-19 23:07:21 -08:00
Martin Michelsen d1866c9bbf fix Ep2 Sinow child entity handling 2023-11-19 23:06:53 -08:00
Martin Michelsen 42e927caa9 add basic quest map disassembler 2023-11-19 23:06:30 -08:00
Martin Michelsen cd4c06231f fix challenge overlay creation on non-BB versions 2023-11-19 21:42:37 -08:00
Martin Michelsen 4588a71e5a implement 6xD1 command for BB challenge mode 2023-11-19 21:41:51 -08:00
Martin Michelsen 9476a3fc27 show rare seed and variations at game join time if $debug is on 2023-11-19 16:02:01 -08:00
Martin Michelsen b03ccc7e3e fix bug that leaves units equipped after armor item is destroyed 2023-11-19 16:01:24 -08:00
Martin Michelsen bc4092fb75 clean up switch block in team command handler 2023-11-19 13:13:55 -08:00
Martin Michelsen 261cefc8b1 name the unknown grave field in PlayerRecords_Challenge 2023-11-19 13:13:37 -08:00
Martin Michelsen 34666ee220 add missing challenge mode restart commands 2023-11-19 12:38:34 -08:00
Martin Michelsen c918596850 update to-do list 2023-11-19 12:38:22 -08:00
Martin Michelsen 976610705a fix wrap item bug 2023-11-18 23:13:34 -08:00
Martin Michelsen 5758f8dba1 remove in-game enemy drop debug message 2023-11-18 23:13:34 -08:00
Martin Michelsen 8d83b941d0 add debug messages in tekker adjustment code 2023-11-18 23:13:34 -08:00
Martin Michelsen 7ab98f41da fix challenge overlays for non-leaders 2023-11-18 23:13:34 -08:00
Martin Michelsen 5499d29cc2 add AR code translator shell 2023-11-18 23:13:34 -08:00
Martin Michelsen dd5873266d update sub_version notes 2023-11-18 23:13:34 -08:00
Martin Michelsen c1e225847e initial implementation of BB teams (WIP) 2023-11-18 23:13:34 -08:00
Matt 99d1a3272a Add English versions of JP-only BB quests 2023-11-18 15:13:19 -08:00
Martin Michelsen d316d2e260 fix game menu entry flags on v1/v2 2023-11-16 23:37:33 -08:00
Martin Michelsen 2f99a3760a fix visual.version field 2023-11-16 23:27:24 -08:00
Martin Michelsen 6b1a3e615b fix UTF-16 decoding bug again 2023-11-16 23:22:51 -08:00
Martin Michelsen 132395a53a fix DC NTE lobby interactions 2023-11-16 23:22:26 -08:00
Martin Michelsen 9cbcd09be0 fix UTF-16 decoding bug 2023-11-16 21:02:00 -08:00
Martin Michelsen 35f48cbd8f fix default in 18EA struct 2023-11-16 21:01:42 -08:00
Martin Michelsen db6578d57c move color encoding functions to GVMEncoder header 2023-11-16 21:01:06 -08:00
Martin Michelsen 4a5ea63f4a update 6xAC notes 2023-11-16 15:44:00 -08:00
Martin Michelsen 27608d9c11 implement 6xE1 2023-11-16 15:43:53 -08:00
Martin Michelsen c84d4b134f add BB global EXP multiplier 2023-11-15 22:38:37 -08:00
Martin Michelsen 722010c0f7 add $save command 2023-11-15 22:38:36 -08:00
Martin Michelsen 82c651a3ad implement BB trade window 2023-11-15 22:38:36 -08:00
Martin Michelsen 5834a41cec update to-do list 2023-11-15 21:34:27 -08:00
Martin Michelsen f48b5ac8b2 update notes on 8A command 2023-11-15 20:57:09 -08:00
Martin Michelsen 1b29f20541 fix incorrect object lists in quest 2023-11-15 20:01:45 -08:00
Martin Michelsen b492a2fac6 handle rejected tekker results properly 2023-11-15 18:14:04 -08:00
Martin Michelsen c896c11f57 fix duplicate pick up disconnections on BB 2023-11-15 17:29:09 -08:00
Martin Michelsen 6aef245eab fix item ID inconsistencies between server and client due to shops and tekker in BB 2023-11-15 17:18:46 -08:00
Martin Michelsen 8ae6500fb5 add extra aliases for m&y in $item 2023-11-15 17:17:59 -08:00
Martin Michelsen 768bdb5b05 fix variance on specialized boxes 2023-11-15 16:02:31 -08:00
Martin Michelsen f997376819 fix equip slot check 2023-11-15 15:24:54 -08:00
Martin Michelsen 3d7b6837ec disable equip tracking in non-BB games 2023-11-15 14:41:13 -08:00
Martin Michelsen 533ee04443 fix join command queue bug 2023-11-15 13:33:34 -08:00
Martin Michelsen 6e1691d023 fix mag stat adjustments during level up 2023-11-15 12:47:24 -08:00
Martin Michelsen be6fd25190 implement proper equip/unequip tracking 2023-11-15 12:47:14 -08:00
Martin Michelsen ac57fb16a4 fix unit modifiers in $item command 2023-11-15 11:39:50 -08:00
Martin Michelsen 687a4515a2 fix bug that caused sorting inventory to delete extended tech levels 2023-11-15 11:34:53 -08:00
Martin Michelsen 0705b4d155 don't filter by episode at government counter 2023-11-15 00:03:21 -08:00
Martin Michelsen 2818b4ac2f clean up bit cast 2023-11-14 23:50:46 -08:00
Martin Michelsen ab5536d554 add more quest debugging commands 2023-11-14 23:27:40 -08:00
Martin Michelsen fbb053883b implement 6xDE command 2023-11-14 23:27:27 -08:00
Martin Michelsen d1161dd8e4 fix cheat mode check on proxy 2023-11-14 22:25:03 -08:00
Martin Michelsen 91b54b635d fix bug that caused boxes to never be empty 2023-11-14 21:52:38 -08:00
Martin Michelsen 2e89cfa8d6 use server's rt_index for enemy item drops 2023-11-14 21:52:38 -08:00
Martin Michelsen 62d484472f implement 6xE0 command 2023-11-14 21:52:38 -08:00
Martin Michelsen ba3016f89c filter non-download quests by episode 2023-11-14 21:52:38 -08:00
Martin Michelsen c5605c8685 fix some missing client ID bounds checks 2023-11-14 21:52:38 -08:00
Martin Michelsen 126e5944f4 refine 6x70 structure 2023-11-14 21:52:38 -08:00
Martin Michelsen 1531f4dad2 work around data race during game join 2023-11-14 21:52:38 -08:00
Martin Michelsen 82d0539c31 also blank name_color_checksum during $bbchar 2023-11-14 12:29:35 -08:00
Martin Michelsen 5c47385bee fix some $bbchar bugs 2023-11-14 12:25:19 -08:00
Martin Michelsen e3956a0a09 improve specialized box log messages 2023-11-14 12:24:59 -08:00
Martin Michelsen 6568ba7e32 unset x bit on everything in system/ 2023-11-13 22:18:22 -08:00
Martin Michelsen 4fe238a01a track specialized boxes server-side 2023-11-13 22:07:21 -08:00
Martin Michelsen 4b4627d3e5 fix material tracking bug 2023-11-13 22:06:49 -08:00
Martin Michelsen a1b457a5e6 make EXP computation match the client 2023-11-13 18:16:59 -08:00
Martin Michelsen 1ca0e928a4 rename area -> floor in most places 2023-11-13 17:25:16 -08:00
Martin Michelsen 8d4c9ca93a add Ep3 EU in handler-tables 2023-11-13 16:49:46 -08:00
Martin Michelsen 83b8f1a87c delete now-unused player data templates 2023-11-13 16:21:35 -08:00
Martin Michelsen 33a6e307e9 add support for v1 rare item tables 2023-11-13 16:18:20 -08:00
Martin Michelsen 08fbbd50ad fix various battle mode behaviors 2023-11-13 15:42:17 -08:00
Martin Michelsen c5f047dc0d don't check missing categories during quest indexing 2023-11-13 14:25:49 -08:00
Martin Michelsen d976452e00 update readme for new quest directory structure 2023-11-13 14:25:49 -08:00
Martin Michelsen cbe69c6ada fix pvr codepath in quest loading 2023-11-13 14:25:49 -08:00
Martin Michelsen 201676be5c fix REG32_SET_FIXED disassembly 2023-11-13 14:25:49 -08:00
Martin Michelsen 5e6a5355f5 fix load condition for non-BB clients 2023-11-13 14:00:59 -08:00
Martin Michelsen 18ddfa4ef4 use .psochar format for BB characters 2023-11-13 13:00:22 -08:00
Martin Michelsen f5bfd4a3c6 fix signed/unsigned comparison 2023-11-12 20:16:29 -08:00
Martin Michelsen 9c821b2988 organize quests directory by category 2023-11-12 16:30:03 -08:00
Martin Michelsen afba337575 clean up random enemy generation 2023-11-12 12:19:37 -08:00
Martin Michelsen 53451c2d45 add both Ep3 EU ports in config.json 2023-11-12 12:16:48 -08:00
Matt 884653d41c Fix Xbox symlink for q240 2023-11-12 12:14:47 -08:00
Matt 5304fff790 Fix incorrect names for Episode 2 Challenge J 2023-11-12 12:14:47 -08:00
Matt 4316afc137 Add Xbox login and lobby ports 2023-11-12 12:14:47 -08:00
Matt 616f8ad827 Add J versions of BB side story quests 2023-11-12 12:14:47 -08:00
Matt f0f9171acd Add various BB quests 2023-11-12 12:14:47 -08:00
Matt 049135bd2d test commit 2023-11-12 12:14:47 -08:00
Matt 4e68e6a48c Add J versions of Challenge/Battle 2023-11-12 00:26:00 -08:00
Matt 272e757315 Add various BB quests 2023-11-12 00:26:00 -08:00
Matt 768c07b99a test commit 2023-11-12 00:26:00 -08:00
Martin Michelsen 4de1495c31 fix categories on updated Ep3 maps 2023-11-12 00:12:32 -08:00
Martin Michelsen 7872fea6ab send rare enemy list again after loading a quest 2023-11-12 00:01:41 -08:00
Martin Michelsen d33709f4a2 make quests appear in the menu even if they don't exist in player's language 2023-11-12 00:01:41 -08:00
Martin Michelsen 43d7815165 fix some item-related debug messages 2023-11-12 00:01:41 -08:00
Martin Michelsen 3057c31d01 update notes on Ep3 EU 50Hz 2023-11-12 00:01:41 -08:00
Martin Michelsen cce42c4165 add $quest command for debugging 2023-11-12 00:01:41 -08:00
Martin Michelsen 3e735fcea4 implement BB challenge mode random enemy generation 2023-11-11 23:58:24 -08:00
Martin Michelsen 779d32d20f fix $matcount on v2 2023-11-11 22:32:10 -08:00
Martin Michelsen 1fa3d3a56d add other languages for Ep3 maps 2023-11-11 21:44:00 -08:00
Martin Michelsen b2a22522d2 unset x bit on ep3 maps 2023-11-11 21:39:49 -08:00
Martin Michelsen 4e93b2fc8b fix S-rank weapon name encoding/decoding 2023-11-11 15:45:59 -08:00
Martin Michelsen 90b7f0d0c0 add $ping command 2023-11-10 17:59:43 -08:00
Martin Michelsen a0f0230700 forbid rare enemies in challenge mode 2023-11-10 12:41:41 -08:00
Martin Michelsen a0505176ec get quest episode number from start function instead of header 2023-11-10 12:41:29 -08:00
Martin Michelsen 51ba23faa6 exempt solo-mode games from $debug client placement 2023-11-10 11:57:58 -08:00
Martin Michelsen d8e35b021f fix disconnect message when Quit Game is selected 2023-11-09 10:33:08 -08:00
Martin Michelsen a966696d9d fix used_chars_16 error message 2023-11-09 09:18:32 -08:00
Martin Michelsen 72d0047634 fix incorrect parray usage 2023-11-09 09:18:21 -08:00
Martin Michelsen cabd03a82e implement BB challenge param commands 2023-11-08 22:44:59 -08:00
Martin Michelsen 3ea65ccc75 fix missing 6x1B handler 2023-11-08 19:01:01 -08:00
Martin Michelsen 38c0d975cc fix missing 6xDC handler 2023-11-08 15:47:56 -08:00
Martin Michelsen 77799d1a37 add comment about 9F command timing 2023-11-08 15:47:43 -08:00
Martin Michelsen 7d0438f149 fix area_norm for Episode 4 2023-11-07 22:51:44 -08:00
Martin Michelsen c9a61afa62 fix BB $edit name 2023-11-07 22:51:27 -08:00
Martin Michelsen 2da235caf7 don't print BB character name language markers to terminal 2023-11-07 22:24:54 -08:00
Martin Michelsen aa577b4b63 fix HP/TP results in $matcount 2023-11-07 21:50:46 -08:00
Martin Michelsen af43756899 fix typo in comment 2023-11-07 18:51:52 -08:00
Martin Michelsen 696fb8377e re-record XB test 2023-11-07 18:01:09 -08:00
Martin Michelsen cb0e9ba0b2 fix ending proxy session on non-virtual connections 2023-11-07 17:53:31 -08:00
Martin Michelsen 01f3ed7bc6 fix some endianness differences on GC/XB 2023-11-07 17:53:31 -08:00
Martin Michelsen d46e6de4f0 fix xbox redirect command 2023-11-07 17:53:31 -08:00
Martin Michelsen 71cfced5ee add xbox support 2023-11-06 23:09:09 -08:00
Martin Michelsen 4b1f5420f2 save player stats on external level up 2023-11-06 23:09:09 -08:00
Martin Michelsen 0de169e474 fix overlay creation log message 2023-11-06 23:09:09 -08:00
Matt bc8010d704 Add info about setting DNS info to DC flash
Should probably ask Flycast to do this automatically with zero values.
2023-11-06 08:50:04 -08:00
Matt 05b5998a62 Update README.md 2023-11-06 08:50:04 -08:00
Matt 7a5a3deb4d Update Flycast instructions 2023-11-06 08:50:04 -08:00
Martin Michelsen f2e84dbf78 add logging for BB bank actions 2023-11-05 18:37:11 -08:00
Martin Michelsen f0cbb08742 show item price in encode-item action 2023-11-05 18:36:57 -08:00
Martin Michelsen 1deb5e0708 fix tech disk price computation 2023-11-05 18:36:40 -08:00
Martin Michelsen 5326c1d888 fix comment on Ep3 tournament command struct 2023-11-05 18:36:23 -08:00
Martin Michelsen 519565760f add to-do list for PSOX 2023-11-05 18:36:04 -08:00
Martin Michelsen d0dbffb364 add PSOX login port 2023-11-05 12:36:01 -08:00
Martin Michelsen 5957fd62e3 add missing include 2023-11-04 22:10:52 -07:00
Martin Michelsen e8d605afe3 implement v1-encoding for v2 items 2023-11-04 21:30:24 -07:00
Martin Michelsen 25c0aa21dc remove client ID check for externally-generated item IDs 2023-11-04 09:20:42 -07:00
Martin Michelsen b06bfc13b4 don't enforce grind limits on v1/v2 2023-11-03 23:42:44 -07:00
Martin Michelsen a7e478780e deal with invalid 6x59 commands 2023-11-03 23:10:07 -07:00
Martin Michelsen f63b4bd88b don't send blank 6x5F commands when items are skipped 2023-11-03 22:15:43 -07:00
Martin Michelsen cbfcbe16f9 fix $inftp text message 2023-11-03 21:23:00 -07:00
Martin Michelsen 6b812520bc refine ObjectEntry structure 2023-11-02 23:20:00 -07:00
Martin Michelsen f1b00d3ee0 fix unit modifiers in ItemData 2023-11-02 23:19:24 -07:00
Martin Michelsen 008e59b892 fix DC QST decoder 2023-11-02 14:26:06 -07:00
Martin Michelsen 482bc5fbad use client's language when generating download quests 2023-11-02 12:07:11 -07:00
Martin Michelsen 983c6e1ebc fix English language quest fallback in menu generation 2023-11-01 23:19:49 -07:00
Martin Michelsen 1888ab61d4 add ItemRT conversion action 2023-11-01 23:19:49 -07:00
nolrinale ef5350f69b Fixing redaction 2023-10-31 11:59:59 -07:00
nolrinale 5a518c9980 Adding PSOBB localization resources 2023-10-31 11:59:59 -07:00
Martin Michelsen d97db987cd fix BB joinable quest loading bug 2023-10-31 11:04:08 -07:00
Martin Michelsen 8c85868e08 add force English flag for Tethealla BB client 2023-10-31 11:00:54 -07:00
Martin Michelsen 9e682e7c13 add TODO about quest progress flags 2023-10-31 11:00:32 -07:00
Martin Michelsen 96e478192a fix missing value in name_for_enum<EnemyType> 2023-10-31 10:08:17 -07:00
Martin Michelsen 724186a8c0 make $edit level also set stats 2023-10-31 09:57:29 -07:00
Martin Michelsen 4158f4a42a don't double-clear destroyed entity set during quest load 2023-10-30 15:27:08 -07:00
Martin Michelsen 14e6111448 remove redirection feature 2023-10-30 15:19:41 -07:00
Martin Michelsen add46095c3 document BB 0101 command 2023-10-30 14:48:02 -07:00
Martin Michelsen 5e2e38f1b5 rewrite client config; use BB state from login command 2023-10-30 13:15:41 -07:00
Martin Michelsen 47198779b7 add more info to log prefixes 2023-10-29 18:29:34 -07:00
Martin Michelsen 5ff2694ded split information menu across v1+v2 / v3 2023-10-29 18:14:09 -07:00
Martin Michelsen 138c563a40 add v2 challenge templates 2023-10-29 18:01:47 -07:00
Martin Michelsen 5ec969ece3 ignore duplicate item pickup requests 2023-10-29 18:01:44 -07:00
Martin Michelsen 4e2e423a4b fix duplicate entity ids in ItemCreator; add decision logging 2023-10-29 15:28:23 -07:00
Martin Michelsen 632af03a3f fix unidentified flag logic on v2 2023-10-29 14:39:21 -07:00
Martin Michelsen 025fc154d4 refine some BB structures 2023-10-29 13:32:29 -07:00
Martin Michelsen 1ca3d3b27f fix Anti max level on v2 2023-10-29 13:32:29 -07:00
Martin Michelsen 1b839520c9 delete unused SJIS table 2023-10-29 13:32:29 -07:00
Martin Michelsen 293df2b73a fix license autocreation 2023-10-29 13:32:29 -07:00
Martin Michelsen c496abc2bf fix flags argument to add-license shell command 2023-10-28 16:52:56 -07:00
Martin Michelsen 45c2b792f7 fix range check bug in non-v4 ItemParameterTable 2023-10-28 14:50:31 -07:00
Martin Michelsen 50a594ec60 fix logic for EXP-stealing weapons 2023-10-28 13:23:32 -07:00
Martin Michelsen b5739fff68 annotate special name table with types/amounts 2023-10-28 13:23:16 -07:00
Martin Michelsen 2c6df68af3 fix unit table in v2/v3 ItemCreator 2023-10-28 13:23:00 -07:00
Martin Michelsen 8a1c4f5f8b PhysicalData and PlayerStats are the same structure 2023-10-28 10:45:59 -07:00
Martin Michelsen 87cae99326 add default values for all command structs 2023-10-28 10:29:37 -07:00
Martin Michelsen ef939075ef fix some text handling with DC NTE 2023-10-28 01:06:43 -07:00
Martin Michelsen a6a1647801 add missing include again 2023-10-28 00:16:59 -07:00
Martin Michelsen 3ebe7dd3e2 fix camera zone layout in ep3 map disassembly 2023-10-28 00:10:55 -07:00
Martin Michelsen cc1ce099e5 fix constexpr global 2023-10-28 00:10:55 -07:00
Martin Michelsen 62dde991df add missing include 2023-10-28 00:03:59 -07:00
Martin Michelsen 75c11aeba5 refine BattleParamEntry format 2023-10-27 23:58:34 -07:00
Martin Michelsen ed05a5f6ec convert schtserv rare table to json 2023-10-27 23:04:02 -07:00
Martin Michelsen 1c2786ef43 support v2 and v3 ItemPMT files 2023-10-27 21:08:34 -07:00
Martin Michelsen 7651922dc9 add notes about mag effect activation 2023-10-27 21:08:34 -07:00
Martin Michelsen 3a21cb29fd refine PlayerInventoryItem 2023-10-27 21:08:34 -07:00
Matt 005eeb3a3f Change HUcast and RAcast shorthand to the more commonly accepted standard 2023-10-27 12:37:22 -07:00
Martin Michelsen 582fd84f5e rewrite CommonItemSet to support v2 2023-10-26 17:40:26 -07:00
Martin Michelsen 067c28dee5 fix luck material usage on v2 2023-10-26 14:41:28 -07:00
Martin Michelsen 12fbdbbcdd restrict externally-generated item ID range further 2023-10-26 11:25:27 -07:00
Martin Michelsen 700b1497d6 don't use format_data_string to serialize non-English strings 2023-10-26 00:48:29 -07:00
Martin Michelsen 20d709686a require cheats to be allowed on the server for $rand and $secid commands 2023-10-26 00:24:27 -07:00
Martin Michelsen 5c2564336e fix unicode text set codec 2023-10-26 00:03:36 -07:00
nolrinale ee4dade7ad Adding Vanilla PSOBB Rare Item Drop Data Files 2023-10-25 20:20:55 -07:00
Martin Michelsen 7476eb62d3 allow server item tables to be enabled by default 2023-10-25 18:48:22 -07:00
Martin Michelsen 6466eec106 fix externally-generated item IDs in item tracking code 2023-10-25 17:14:04 -07:00
Martin Michelsen 5f0a6f3d8e factor FloorItem struct into 6x5F format 2023-10-25 17:14:04 -07:00
Martin Michelsen 5d251361b0 fix negative bonuses in item descriptions 2023-10-25 17:14:04 -07:00
Martin Michelsen 554edf6edf don't force personal cheat flags off when cheat mode is disabled in a game 2023-10-25 17:14:04 -07:00
Martin Michelsen 0c53a0dc41 rewrite text encoding to handle non-English properly 2023-10-25 17:14:04 -07:00
Matt 6b97c628ef Update DC Serial Generator instructions once again 2023-10-22 20:31:23 -07:00
Martin Michelsen 85125a5569 add override section ID name to confirmation message 2023-10-22 09:43:02 -07:00
Martin Michelsen 1a2be3ab11 update DC serial generator instructions again 2023-10-22 09:43:02 -07:00
Martin Michelsen c0740fd21f fix v2 visual checks again 2023-10-22 09:13:29 -07:00
Martin Michelsen d2d96d9c0a get client language from login command instead of player data 2023-10-22 08:55:09 -07:00
Martin Michelsen ba7a3fc4c6 move item tables to a separate directory 2023-10-21 22:48:27 -07:00
Martin Michelsen 8f2f7670b2 make $item disk:reverser work 2023-10-21 22:17:29 -07:00
Martin Michelsen c579e47354 fix exception handling in $patch command 2023-10-21 22:17:29 -07:00
Martin Michelsen c4790068ef fix cross-version lobby appearance and name colors 2023-10-21 22:01:38 -07:00
Martin Michelsen 7b035d311f fix identified item flag during item generation 2023-10-21 20:34:59 -07:00
Martin Michelsen 713e8ff7c1 fix android skin color change for v2 limits 2023-10-21 18:51:58 -07:00
Martin Michelsen 53ebd42612 add unitxt encode/decode actions 2023-10-21 16:40:19 -07:00
2796 changed files with 82893 additions and 25593 deletions
+32 -32
View File
@@ -2,9 +2,9 @@ name: CMake
on:
push:
branches: [ master ]
branches: [master]
pull_request:
branches: [ master ]
branches: [master]
env:
BUILD_TYPE: Release
@@ -16,42 +16,42 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
with_resource_file: ['true', 'false']
with_resource_file: ["true", "false"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Install libraries (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install -y libevent-dev
- name: Install libraries (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sudo apt-get install -y libevent-dev
- name: Install libraries (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: brew install libevent
- name: Install libraries (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: brew install libevent
- name: Install phosg
run: |
git clone https://github.com/fuzziqersoftware/phosg.git
cd phosg
cmake .
make
sudo make install
- name: Install phosg
run: |
git clone https://github.com/fuzziqersoftware/phosg.git
cd phosg
cmake .
make
sudo make install
- name: Install resource_file
if: ${{ matrix.with_resource_file == 'true' }}
run: |
git clone https://github.com/fuzziqersoftware/resource_dasm.git
cd resource_dasm
cmake .
make
sudo make install
- name: Install resource_file
if: ${{ matrix.with_resource_file == 'true' }}
run: |
git clone https://github.com/fuzziqersoftware/resource_dasm.git
cd resource_dasm
cmake .
make
sudo make install
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
- name: Test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{env.BUILD_TYPE}} --output-on-failure
+7 -3
View File
@@ -9,6 +9,7 @@ cmake_install.cmake
CMakeCache.txt
CMakeFiles
CTestTestFile.cmake
CTestTestfile.cmake
install_manifest.txt
Makefile
Testing
@@ -19,9 +20,12 @@ system/ep3/battle-records/*.mzrd
system/ep3/tournament-state.json
system/licenses.nsi
system/licenses/*.json
system/players/player_*
system/players/account_*
system/players/bank_*
system/players/*.psochar
system/players/*.psosys
system/players/*.psocard
system/players/*.nsc
system/players/*.nsa
system/teams/*.json
system/patch-pc/.metadata-cache.json
system/patch-bb/.metadata-cache.json
+17 -5
View File
@@ -33,19 +33,21 @@ set (LIBEVENT_LIBRARIES
${LIBEVENT_CORE})
find_package(phosg REQUIRED)
find_package(Iconv REQUIRED)
find_package(resource_file QUIET)
# Executable definition
add_executable(newserv
set(SOURCES
src/AFSArchive.cc
src/BattleParamsIndex.cc
src/BMLArchive.cc
src/CatSession.cc
src/Channel.cc
src/ChatCommands.cc
src/ChoiceSearch.cc
src/Client.cc
src/CommonItemSet.cc
src/Compression.cc
@@ -72,6 +74,7 @@ add_executable(newserv
src/IPStackSimulator.cc
src/ItemCreator.cc
src/ItemData.cc
src/ItemNameIndex.cc
src/ItemParameterTable.cc
src/Items.cc
src/LevelTable.cc
@@ -83,7 +86,7 @@ add_executable(newserv
src/Menu.cc
src/NetworkAddresses.cc
src/PatchFileIndex.cc
src/Player.cc
src/PlayerFilesManager.cc
src/PlayerSubordinates.cc
src/ProxyCommands.cc
src/ProxyServer.cc
@@ -91,6 +94,7 @@ add_executable(newserv
src/PSOGCObjectGraph.cc
src/PSOProtocol.cc
src/Quest.cc
src/QuestAvailabilityExpression.cc
src/QuestScript.cc
src/RareItemSet.cc
src/ReceiveCommands.cc
@@ -103,13 +107,21 @@ add_executable(newserv
src/ServerState.cc
src/Shell.cc
src/StaticGameData.cc
src/TeamIndex.cc
src/Text.cc
src/TextArchive.cc
src/UnicodeTextSet.cc
src/Version.cc
src/WordSelectTable.cc
)
target_include_directories(newserv PUBLIC ${LIBEVENT_INCLUDE_DIR})
target_link_libraries(newserv phosg ${LIBEVENT_LIBRARIES} pthread)
if(resource_file_FOUND)
set(SOURCES ${SOURCES} src/ARCodeTranslator.cc)
endif()
add_executable(newserv ${SOURCES})
target_include_directories(newserv PUBLIC ${LIBEVENT_INCLUDE_DIR} ${Iconv_INCLUDE_DIRS})
target_link_libraries(newserv phosg ${LIBEVENT_LIBRARIES} ${Iconv_LIBRARIES} pthread)
if(resource_file_FOUND)
target_compile_definitions(newserv PUBLIC HAVE_RESOURCE_FILE)
@@ -131,7 +143,7 @@ foreach(LogTestCase IN ITEMS ${LogTestCases})
add_test(
NAME ${LogTestCase}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
COMMAND ${CMAKE_BINARY_DIR}/newserv replay-log ${LogTestCase} --config=${CMAKE_SOURCE_DIR}/tests/config.json --require-basic-credentials)
COMMAND ${CMAKE_BINARY_DIR}/newserv --replay-log=${LogTestCase} --config=${CMAKE_SOURCE_DIR}/tests/config.json)
endforeach()
file(GLOB ScriptTestCases ${CMAKE_SOURCE_DIR}/tests/*.test.sh)
+114 -79
View File
@@ -4,13 +4,17 @@ newserv is a game server, proxy, and reverse-engineering tool for Phantasy Star
This project includes code that was reverse-engineered by the community in ages long past, and has been included in many projects since then. It also includes some game data from Phantasy Star Online itself, which was originally created by Sega.
* Background
* [History](#history)
* [Future (and to-do list)](#future)
Feel free to submit GitHub issues if you find bugs or have feature requests. I'd like to make the server as stable and complete as possible, but I can't promise that I'll respond to issues in a timely manner, because this is a personal project undertaken primarily for the fun of reverse-engineering. If you want to contribute to newserv yourself, pull requests are welcome as well.
See TODO.md for a list of known issues and future work I've curated, or go to the GitHub issue tracker for issues and requests submitted by the community.
**Table of contents**
* [Compatibility](#compatibility)
* Setup
* [Configuration](#configuration)
* [Installing quests](#installing-quests)
* [Item tables and drop modes](#item-tables-and-drop-modes)
* [Cross-version play](#cross-version-play)
* [Episode 3 features](#episode-3-features)
* [Client patch directories for PC and BB](#client-patch-directories)
* [Memory patches and DOL files for GC](#memory-patches-and-dol-files)
@@ -23,59 +27,37 @@ This project includes code that was reverse-engineered by the community in ages
* [PSO PC](#pso-pc)
* [PSO GC on a real GameCube](#pso-gc-on-a-real-gamecube)
* [PSO GC on Dolphin](#pso-gc-on-dolphin)
* [PSO BB](#pso-bb)
* [Connecting external clients](#connecting-external-clients)
* [Non-server features](#non-server-features)
## History
The history of this project essentially mirrors my development as a software engineer from the beginning of my hobby until now. If you don't care about the story, skip to the "Compatibility" or "Setup" sections below.
I originally purchased PSO GC when I heard about PSUL, and wanted to play around with running homebrew on my GameCube. This pathway eventually led to [GCARS-CS](https://github.com/fuzziqersoftware/gcars-cs), but that's another story.
<img align="left" src="s-khyps.png" /> After playing PSO for a while, both offline and online, I wrote a proxy called Khyps sometime in 2003. This was back in the days of the official Sega servers, where vulnerabilities weren't addressed in a timely manner or at all. It was common for malicious players using their own proxies or Action Replay codes (a story for another time) to send invalid commands that the servers would blindly forward, and cause the receiving clients to crash. These crashes were more than simply inconvenient; they could also corrupt your save data, destroying the hours of work you may have put into hunting items and leveling up your character.
For a while it was essentially necessary to use a proxy to go online at all, so the proxy could block these invalid commands. Khyps was designed primarily with this function in mind, though it also implemented some convenient cheats, like the ability to give yourself or other players infinite HP and allow you to teleport to different places without using an in-game teleporter.
<img align="left" src="s-khyller.png" /> After Khyps I took on the larger challenge of writing a server, which resulted in Khyller sometime in 2005. This was the first server of any type I had ever written. This project eventually evolved into a full-featured environment supporting all versions of the game that I had access to - at the time, PC, GC, and BB. (However, I suspect from reading the ancient source files that Khyller's BB support was very buggy.) As Khyller evolved, the code became increasingly cumbersome, littered with debugging filth that I never cleaned up and odd coding patterns I had picked up over the years. My understanding of the C++ language was woefully incomplete as well (as opposed to now, when it is still incomplete but not woefully so), which resulted in Khyller being essentially a C project that had a couple of classes in it.
<img align="left" src="s-aeon.png" /> Sometime in 2006 or 2007, I abandoned Khyller and rebuilt the entire thing from scratch, resulting in Aeon. Aeon was substantially cleaner in code than Khyller but still fairly hard to work with, and it lacked a few of the more arcane features I had originally written (for example, the ability to convert any quest into a download quest). In addition, the code still had some stability problems... it turns out that Aeon's concurrency primitives were simply incorrect. I had derived the concept of a mutex myself, before taking any real computer engineering classes, but had implemented it incorrectly. I made the race window as small as possible, but Aeon would still randomly crash after running seemingly fine for a few days.
At the time of its inception, Aeon was also called newserv, and you may find some beta releases floating around the Internet with filenames like `newserv-b3.zip`. I had released betas 1, 2, and 3 before I released the entire source of beta 5 and stopped working on the project when I went to college. This was around the time when I switched from writing software primarily on Windows to primarily on macOS and Linux, so Aeon beta 5 was the last server I wrote that specifically targeted Windows. (newserv, which you're looking at now, is a bit tedious to compile on Windows but does work.)
<img align="left" src="s-newserv.png" /> After a long hiatus from PSO and much professional and personal development in my technical abilities, I was reminiscing sometime in October 2018 by reading my old code archives. Somehow inspired when I came across Aeon, I spent a weekend and a couple more evenings rewriting the entire project again, cleaning up ancient patterns I had used eleven years ago, replacing entire modules with simple STL containers, and eliminating even more support files in favor of configuration autodetection. The code is now suitably modern and stable, and I'm not embarrassed by its existence, as I am by Aeon beta 5's source code and my archive of Khyller (which, thankfully, no one else ever saw).
## Future
newserv is many things - a server, a proxy, an encryption and decryption tool, a decoder of various PSO-related formats, and more. Primarily, it's a reverse-engineering project in which I try to unravel the secrets of a 20-year-old video game, for honestly no reason. Solving these problems and documenting them in code has been fun, and I'll continue to do it when my time allows.
With that said, I offer no guarantees on how or when this project will advance. Feel free to submit GitHub issues if you find bugs or have feature requests; I'd like to make the server as stable and complete as possible, but I can't promise that I'll respond to issues in a timely manner. If you feel like contributing to newserv yourself, pull requests are welcome as well.
See TODO.md for a list of known issues and future work.
## Compatibility
newserv supports several versions of PSO. Specifically:
| Version | Login | Lobbies | Games | Proxy |
|----------------|--------------|--------------|--------------|--------------|
| DC Trial | Yes (3) | Yes (3) | Yes (3) | No |
| DC Prototype | Yes (3) | Yes (3) | Yes (3) | No |
| DC V1 | Yes | Yes | Yes | Yes |
| DC V2 | Yes | Yes | Yes | Yes |
| PC | Yes | Yes | Yes | Yes |
| GC Ep1&2 Trial | Untested (1) | Untested (1) | Untested (1) | Untested (1) |
| GC Ep1&2 | Yes | Yes | Yes | Yes |
| GC Ep1&2 Plus | Yes | Yes | Yes | Yes |
| GC Ep3 Trial | Yes | Yes | Partial (4) | Yes |
| GC Ep3 | Yes | Yes | Yes | Yes |
| XBOX Ep1&2 | Untested (1) | Untested (1) | Untested (1) | Untested (1) |
| BB (vanilla) | Yes | Yes | Yes (2) | Yes |
| BB (Tethealla) | Yes | Yes | Yes (2) | Yes |
newserv supports several versions of PSO, including various development prototypes. Specifically:
| Version | Lobbies | Games | Proxy |
|----------------|--------------|--------------|--------------|
| DC NTE | Yes | Yes | No |
| DC 11/2000 | Yes | Yes | No |
| DC 12/2000 | Yes | Yes | Yes |
| DC 01/2001 | Yes | Yes | Yes |
| DC V1 | Yes | Yes | Yes |
| DC 08/2001 | Yes | Yes | Yes |
| DC V2 | Yes | Yes | Yes |
| PC NTE | Yes (3) | Yes | No |
| PC | Yes | Yes | Yes |
| GC Ep1&2 NTE | Yes | Yes | Yes |
| GC Ep1&2 | Yes | Yes | Yes |
| GC Ep1&2 Plus | Yes | Yes | Yes |
| GC Ep3 NTE | Yes | Partial (1) | Yes |
| GC Ep3 | Yes | Yes | Yes |
| Xbox Ep1&2 | Yes | Yes | Yes |
| BB (vanilla) | Yes | Yes (2) | Yes |
| BB (Tethealla) | Yes | Yes (2) | Yes |
*Notes:*
1. *newserv's implementations of these versions are based on disassembly of the client executables and have never been tested.*
2. *BB games are mostly playable, but there are still some unimplemented features (for example, some quests that use rare commands may not work). Please submit a GitHub issue if you find something that doesn't work.*
3. *Support for PSO Dreamcast Trial Edition and the December 2000 prototype is somewhat incomplete and probably never will be complete. These versions are rather unstable and seem to crash often, but it's not obvious whether it's because they're prototypes or because newserv sends data they can't handle.*
4. *Creating a game works and battle setup behaves mostly normally, but starting a battle doesn't work.*
1. *Players can create games, edit decks, trade cards, and participate in auctions, but CARD battles don't work on Episode 3 Trial Edition on newserv.*
2. *Some BB-specific features are not well-tested (for example, some quests that use rare commands may not work properly). Please submit a GitHub issue if you find something that doesn't work.*
3. *This is the only version of PSO that doesn't have any way to identify the player's account - there is no serial number or username. For this reason, AllowUnregisteredUsers must be enabled in config.json to support PC NTE, and PC NTE players receive a random Guild Card number every time they connect. To prevent abuse, PC NTE support can be disabled in config.json.*
## Setup
@@ -88,8 +70,8 @@ There is a fairly recent macOS ARM64 release on the newserv GitHub repository. Y
There is a fairly recent Windows release on the newserv GitHub repository also. It's built with Cygwin, and all the necessary DLL files should be included. That said, I've only tested it on my own machine and there is no CI for Windows builds like there is for macOS and Linux, so if it doesn't work for you, please open a GitHub issue to let me know.
If you're not using a release from the GitHub repository, do this to build newserv:
1. If you're on Windows, install Cygwin. While doing so, install the `cmake`, `gcc-core`, `gcc-g++`, `git`, `libevent2.1_7`, `make`, and `zlib` packages. Do the rest of these steps inside a Cygwin shell (not a Windows cmd shell or PowerShell).
2. Make sure you have CMake and libevent installed. (On macOS, `brew install cmake libevent`; on most Linuxes, `sudo apt-get install cmake libevent-dev`; on Windows, you already did this in step 1.)
1. If you're on Windows, install Cygwin. While doing so, install the `cmake`, `gcc-core`, `gcc-g++`, `git`, `libevent2.1_7`, `make`, `libiconv-devel`, and `zlib` packages. Do the rest of these steps inside a Cygwin shell (not a Windows cmd shell or PowerShell).
2. Make sure you have CMake, libevent, and libiconv installed. (On macOS, `brew install cmake libevent libiconv`; on most Linuxes, `sudo apt-get install cmake libevent-dev`; on Windows, you already did this in step 1.)
3. Build and install phosg (https://github.com/fuzziqersoftware/phosg).
4. Optionally, install resource_dasm (https://github.com/fuzziqersoftware/resource_dasm). This will enable newserv to send memory patches and load DOL files on PSO GC clients. PSO GC clients can play PSO normally on newserv without this.
5. Run `cmake . && make` in the newserv directory.
@@ -105,20 +87,23 @@ To use newserv in other ways (e.g. for translating data), see the end of this do
### Installing quests
newserv automatically finds quests in the system/quests/ directory. To install your own quests, or to use quests you've saved using the proxy's "save files" option, just put them in that directory and name them appropriately.
newserv automatically finds quests in the subdirectories of the system/quests/ directory. To install your own quests, or to use quests you've saved using the proxy's Save Files option, just put them in one of the subdirectories there and name them appropriately. The subdirectories and their behaviors (e.g. in which game modes they should appear and for which PSO versions) is defined in the QuestCategories field in config.json.
Standard quest files should be named like `q###-CATEGORY-VERSION-LANGUAGE.EXT`, battle quests should be named like `b###-VERSION-LANGUAGE.EXT`, challenge quests should be named like `c###-VERSION-LANGUAGE.EXT` for Episode 1 or `d###-VERSION-LANGUAGE.EXT` for Episode 2. The fields in each filename are:
Within the category directories, quest files should be named like `q###-VERSION-LANGUAGE.EXT` (although the `q` is ignored, and can be any letter). The fields in each filename are:
- `###`: quest number (this doesn't really matter; it should just be unique across the PSO version)
- `CATEGORY`: ret = Retrieval, ext = Extermination, evt = Events, shp = Shops, vr = VR, twr = Tower, gv1/gv2/gv4 = Government (BB only), dl = Download (these don't appear during online play), 1p = Solo (BB only)
- `VERSION`: dn = Dreamcast NTE, d1 = Dreamcast v1, dc = Dreamcast v2, pc = PC, gcn = GameCube Trial Edition, gc = GameCube Episodes 1 & 2, gc3 = Episode 3 (see below), xb = Xbox, bb = Blue Burst
- `VERSION`: dn = Dreamcast NTE, dp = Dreamcast 11/2000 prototype, d1 = Dreamcast v1, dc = Dreamcast v2, pcn = PC NTE, pc = PC, gcn = GameCube NTE, gc = GameCube Episodes 1 & 2, gc3 = Episode 3 (see below), xb = Xbox, bb = Blue Burst
- `LANGUAGE`: j = Japanese, e = English, g = German, f = French, s = Spanish
- `EXT`: file extension (see table below)
On .dat files, the `LANGUAGE` token may be omitted. If it's present, then that .dat file will only be used for that version of the quest; if omitted, then that .dat file will be used for all versions of the quest.
For .dat files, the `LANGUAGE` token may be omitted. If it's present, then that .dat file will only be used for that language of the quest; if omitted, then that .dat file will be used for all languages of the quest.
For example, the GameCube version of Lost HEAT SWORD is in two files named `q058-ret-gc-e.bin` and `q058-ret-gc.dat`. newserv knows these files are quests because they're in the system/quests/ directory, it knows they're for PSO GC because the filenames contain `-gc`, it knows this is the English version of the quest because the .bin filename ends with `-e` (even though the .dat filename does not), and it puts them in the Retrieval category because the filenames contain `-ret`.
Some quests (mostly battle and challenge mode quests) have additional JSON metadata files that describe how the server should handle them. This includes flags that can be used to hide the quest unless a preceding quest has been cleared, or to hide the quest unless purchased as a team reward. These metadata files are generally named similarly to their .bin and .dat counterparts, except the `VERSION` token may also be omitted if the metadata applies to all languages of the quest on all PSO versions. See system/quests/battle/b88001.json for documentation on the exact format of the JSON file.
The type identifiers (`b`, `c`, `d`, `e`, or `q`) and categories are configurable. See QuestCategories in config.example.json for more information on how to make new categories or edit the existing categories.
Some quests may also include a .pvr file, which contains an image used in the quest. These files are named similarly to their .bin and .dat counterparts.
For example, the GameCube version of Lost HEAT SWORD is in two files named `q058-gc-e.bin` and `q058-gc.dat`. newserv knows these files are quests because they're in the system/quests/ directory, it knows they're for PSO GC because the filenames contain `-gc`, it knows this is the English version of the quest because the .bin filename ends with `-e` (even though the .dat filename does not), and it puts them in the Retrieval category because the files are within the retrieval/ directory within system/quests/.
The GameCube and Xbox quest formats are very similar, but newserv treats them as different. If you want to use the same quest file for GameCube and Xbox clients, you can make one a symbolic link to the other.
There are multiple PSO quest formats out there; newserv supports all of them. It can also decode any known format to standard .bin/.dat format. Specifically:
@@ -128,13 +113,14 @@ There are multiple PSO quest formats out there; newserv supports all of them. It
| Compressed Ep3 | .bin or .mnm | Yes (4) | None (1) |
| Uncompressed | .bind and .datd | Yes | compress-prs (2) |
| Uncompressed Ep3 | .bind or .mnmd | Yes (4) | compress-prs (2) |
| Source | .bin.txt and .dat | Yes | None (5) |
| VMS (DCv1) | .bin.vms and .dat.vms | Yes | decode-vms |
| VMS (DCv2) | .bin.vms and .dat.vms | Decode (3) | decode-vms (3) |
| GCI (decrypted) | .bin.gci and .dat.gci | Yes | decode-gci |
| GCI (with key) | .bin.gci and .dat.gci | Yes | decode-gci |
| GCI (no key) | .bin.gci and .dat.gci | Decode (3) | decode-gci (3) |
| GCI (Ep3 NTE) | .bin.gci or .mnm.gci | Decode (3) | decode-gci (3) |
| GCI (Ep3) | .bin.gci or .mnm.gci | Yes | decode-gci |
| GCI (Ep3 Trial) | .bin.gci or .mnm.gci | Decode (3) | decode-gci (3) |
| DLQ | .bin.dlq and .dat.dlq | Yes | decode-dlq |
| DLQ (Ep3) | .bin.dlq or .mnm.dlq | Yes | decode-dlq |
| QST (online) | .qst | Yes | decode-qst |
@@ -145,6 +131,7 @@ There are multiple PSO quest formats out there; newserv supports all of them. It
2. *Similar to (1), to compress an uncompressed quest file: `newserv compress-prs FILENAME.bind FILENAME.bin` (and likewise for .datd -> .dat)*
3. *Use the decode action to convert these quests to .bin/.dat format before putting them into the server's quests directory. If you know the encryption seed (serial number), pass it in as a hex string with the `--seed=` option. If you don't know the encryption seed, newserv will find it for you, which will likely take a long time.*
4. *Episode 3 quests don't go in the system/quests directory. See the Episode 3 section below.*
5. *Quest source can be assembled into a .bin or .bind file with `newserv assemble-quest-script FILENAME.txt`. See system/quests/retrieval/q058-gc-e.bin.txt for an annotated example; this is the English GameCube version of Lost HEAT SWORD.*
Episode 3 download quests consist only of a .bin file - there is no corresponding .dat file. Episode 3 download quest files may be named with the .mnm extension instead of .bin, since the format is the same as the standard map files (in system/ep3/). These files can be encoded in any of the formats described above, except .qst.
@@ -152,7 +139,32 @@ When newserv indexes the quests during startup, it will warn (but not fail) if a
Quest contents are cached in memory, but if you've changed the contents of the quests directory, you can re-index the quests without restarting the server by running `reload quests` in the interactive shell. The new quests will be available immediately, but any games with quests already in progress will continue using the old versions of the quests until those quests end.
All quests, including those originally in GCI or DLQ format, are treated as online quests unless their filenames specify the dl category. newserv allows players to download all quests, even those in non-download categories.
### Item tables and drop modes
newserv supports server-side item generation on all game versions, except for the earliest DC prototypes (NTE and 11/2000). By default, the game behaves as it did on the original servers - on all versions except BB, item drops are controlled by the leader client in each game, and on BB, item drops are controlled by the server.
There are five different available behaviors for item drops:
* `DISABLED` (or `NONE`): No items will drop from boxes or enemies.
* `CLIENT`: The game leader generates items, all items are visible to all players, and any player may pick up any item. This is the default mode for all game versions, except this mode cannot be used on BB.
* `SERVER_SHARED`: The server generates items, all items are visible to all players, and any player may pick up any item. This is the default mode for BB.
* `SERVER_PRIVATE`: The server generates items, but each player may get a different item from any box or enemy. If a player isn't in the same area as an enemy at the time it's defeated, they won't get any item from it. Items dropped by players are visible to everyone.
* `SERVER_DUPLICATE`: The server generates items, and each player will get the same item from any box or enemy, but there is one copy of each item for each player (and each player only sees their own copy of the item). If a player isn't in the same area as an enemy at the time it's defeated, they won't get any item from it. Items dropped by players are not duplicated and are visible to everyone.
In the `SERVER_PRIVATE` and `SERVER_DUPLICATE` modes, there is no incentive to pick up items before another player, since other players cannot pick up the items you see dropped from boxes and enemies. However, if you pick up an item and drop it later, it can then be seen and picked up by any player.
The drop mode can be changed at any time during a game with the `$dropmode` chat command. If the mode is changed after some items have already been dropped, the existing items retain their visibility (that is, they still can't be picked up by other players since they were dropped before the mode was changed). You can configure which drop modes are used by default, and which modes players are allowed to choose, in config.json. See the comments above the AllowedDropModes and DefaultDropMode keys.
In the server drop modes, the item tables used to generate common items are in the `system/item-tables/ItemPT-*` files. (The V2 files are used for V1 as well.) The rare item tables are in the `rare-table-*.json` files. Unlike the original formats, it's possible to make each enemy drop multiple different rare items at different rates, though the default tables never do this.
### Cross-version play
All versions of PSO can see and interact with each other in the lobby. newserv also allows some versions to play in-game with each other:
* DC V1 players can join DC V2 games if the difficulty level isn't set to Ultimate and the creator chose to allow V1 players.
* DC V2 players can join DC V1 games.
* If AllowDCPCGames is enabled in config.json, PC and DC players can join each other's games. DC V1 players cannot join PC games with the Ultimate difficulty level.
* If AllowGCXBGames is enabled in config.json, GC and Xbox players can join each other's games.
In V1/V2 cross-version play, when any of the server drop modes are used, the server uses the drop table corresponding to the version the game was created with. (For example, if a DC V1 player created the game, rare-table-v1.json will be used, even after V2 players join.)
### Episode 3 features
@@ -167,7 +179,7 @@ newserv supports many features unique to Episode 3:
#### Battle records
After playing a battle, you can save the record of the battle with the $saverec command. You can then replay the battle later by using the $playrec command in a lobby - this will create a spectator team and play the recording of the battle as if it were happening in realtime. Note that there is a bug in older versions of Dolphin that seems to be frequently triggered when playing battle records, which causes the emulator to crash with the message `QObject::~QObject: Timers cannot be stopped from another thread`. To avoid this, use the latest version of Dolphin.
After playing a battle, you can save the record of the battle with the `$saverec` command. You can then replay the battle later by using the `$playrec` command in a lobby - this will create a spectator team and play the recording of the battle as if it were happening in realtime. Note that there is a bug in older versions of Dolphin that seems to be frequently triggered when playing battle records, which causes the emulator to crash with the message `QObject::~QObject: Timers cannot be stopped from another thread`. To avoid this, use the latest version of Dolphin.
#### Tournaments
@@ -186,7 +198,7 @@ Episode 3 state and game data is stored in the system/ep3 directory. The files i
* card-text.mnrd: Decompressed card text archive; same format as TextCardE.bin. Generally only used for debugging.
* com-decks.json: COM decks used in tournaments. The default decks in this file come from logs from Sega's servers, so the file doesn't include every COM deck Sega ever made - the rest are probably lost to time.
* maps/: Online free battle and quest maps (.mnm/.bin/.mnmd/.bind files). newserv comes with all the original online and offline maps, including Story Mode quests. If you don't want the offline maps and quests to be playable online, delete the .bind files system/ep3/maps.
* maps-download/: Download maps and quests (.mnm/.bin/.mnmd/.bind files). Files in this directory have the same format as those in the maps/ directory, but should be named like `e###-gc3-LANGUAGE.EXT` (similar to how non-Episode 3 quests are named in the system/quests/ directory). If you want a map to be available for online play and for downloading, the file must exist in both maps/ and maps-download/ (a symbolic link is acceptable).
* maps-download/: Download maps and quests (.mnm/.bin/.mnmd/.bind files). There are two subcategories by default (download maps and Trial Edition download maps), but you can add more by editing QuestCategories in config.json. Categories that have flag 0x40 (Ep3 download) set are indexed from this directory; all others are indexed from system/quests/. Files in maps-download/ subdirectories have the same format as those in the maps/ directory, but should be named like `e###-gc3-LANGUAGE.EXT` (similar to how non-Episode 3 quests are named in the system/quests/ directory). If you want a map to be available for online play and for downloading, the file must exist in both maps/ and in a maps-download/ subdirectory (a symbolic link is acceptable).
* tournament-state.json: State of all active tournaments. This file is automatically written when any tournament changes state for any reason (e.g. a tournament is created/started/deleted or a match is resolved).
There is no public editor for Episode 3 maps and quests, but the format is described fairly thoroughly in src/Episode3/DataIndexes.hh (see the MapDefinition structure). You'll need to use `newserv decompress-prs ...` to decompress .bin or .mnm files before editing them, but you don't need to compress the files again to use them - just put the .bind or .mnmd file in the maps directory and newserv will make it available.
@@ -220,6 +232,8 @@ In addition, these features are only supported for the following game versions:
You can put memory patches in the system/ppc directory with filenames like PatchName.patch.s and they will appear in the Patches menu for PSO GC clients that support patching. Memory patches are written in PowerPC assembly and are compiled when newserv is started. The PowerPC assembly system's features are documented in the comments in system/ppc/WriteMemory.s - this file is not a memory patch itself, but it describes how memory patches may be written and the restrictions that apply to them.
newserv comes with a set of patches for Episodes 1&2 based on AR codes originally made by Ralf at GC-Forever. Many of them were originally posted in [this thread](https://www.gc-forever.com/forums/viewtopic.php?f=38&t=2050).
You can also put DOL files in the system/dol directory, and they will appear in the Programs menu. Selecting a DOL file there will load the file into the GameCube's memory and run it, just like the old homebrew loaders (PSUL and PSOload) did. For this to work, ReadMemoryWord.s, WriteMemory.s, and RunDOL.s must be present in the system/ppc directory. This has been tested on Dolphin but not on a real GameCube, so results may vary.
Like other kinds of data, functions and DOL files are cached in memory. If you've changed any of these files, you can run `reload functions` or `reload dol-files` in the interactive shell to make the changes take effect without restarting the server.
@@ -257,46 +271,58 @@ There are many options available when starting a proxy session. All options are
* Episode 3 card definitions (saved as .mnr files)
* Episode 3 media updates (saved as .gvm, .bml, or .bin files)
The remote server will probably try to assign you a Guild Card number that doesn't match the one you have on newserv. On PSO DC, PC and GC, the proxy server rewrites the commands in transit to make it look like the remote server assigned you the same Guild Card number as you have on newserv, but if the remote server has some external integrations (e.g. forum or Discord bots), they will use the Guild Card number that the remote server believes it has assigned to you. The number assigned by the remote server is shown to you when you first connect to the remote server, and you can retrieve it in lobbies or during games with the $li command.
The remote server will probably try to assign you a Guild Card number that doesn't match the one you have on newserv. On PSO DC, PC and GC, the proxy server rewrites the commands in transit to make it look like the remote server assigned you the same Guild Card number as you have on newserv, but if the remote server has some external integrations (e.g. forum or Discord bots), they will use the Guild Card number that the remote server believes it has assigned to you. The number assigned by the remote server is shown to you when you first connect to the remote server, and you can retrieve it in lobbies or during games with the `$li` command.
Some chat commands (see below) have the same basic function on the proxy server but have different effects or conditions. In addition, there are some server shell commands that affect clients on the proxy (run `help` in the shell to see what they are). If there's only one proxy session open, the shell's proxy commands will affect that session. Otherwise, you'll have to specify which session to affect with the `on` prefix - to send a chat message in LinkedSession:17205AE4, for example, you would run `on 17205AE4 chat ...`.
### Chat commands
newserv supports a variety of commands players can use by chatting in-game. Any chat message that begins with `$` is treated as a chat command. (If you actually want to send a chat message starting with `$`, type `$$` instead.)
newserv supports a variety of commands players can use by chatting in-game. Any chat message that begins with `$` is treated as a chat command. (If you actually want to send a chat message starting with `$`, type `$$` instead.) On the DC 11/2000 prototype, `@` is used instead of `$` for all chat commands, since `$` does not appear on the English virtual keyboard.
Some commands only work on the game server and not on the proxy server. The chat commands are:
* Information commands
* `$li`: Shows basic information about the lobby or game you're in. If you're on the proxy server, shows information about your connection instead (remote Guild Card number, client ID, etc.).
* `$what` (game server only): Shows the type, name, and stats of the nearest item on the ground.
* `$ping`: Shows round-trip ping time from the server to you. On the proxy server, shows the ping time from you to the proxy and from the proxy to the server.
* `$matcount` (game server only): Shows how many of each type of material you've used.
* `$what` (game server only): Shows the type, name, and stats of the nearest item on the ground.
* `$where` (game server only): Shows your current floor number and coordinates. Mainly useful for debugging.
* Debugging commands
* `$debug` (game server only): Enable or disable debug. You need the DEBUG permission in your user license to use this command. When debug is enabled, you'll see in-game messages from the server when you take certain actions. You'll also be placed into the highest available slot in lobbies and games instead of the lowest, which is useful for finding commands for which newserv doesn't handle client IDs properly. This setting also disables certain safeguards and allows you to do some things that might crash your client.
* `$call <function-id>`: Call a quest function on your client.
* `$quest <number>`: Load a quest by quest number. Can be used to load battle or challenge quests with only one player present.
* `$qcall <function-id>`: Call a quest function on your client.
* `$qcheck <flag-num>`: Show the value of a quest flag.
* `$qset <flag-num>` or `$qclear <flag-num>`: Set or clear a global quest flag for everyone in the game.
* `$qsync <reg-num> <value>`: Set a quest register's value on your client. `<reg-num>` should be either rXX (e.g. r60) or fXX (e.g. f60); if the latter, `<value>` is parsed as a floating-point value instead of as an integer.
* `$gc` (game server only): Send your own Guild Card to yourself.
* `$persist` (game server only): Enable or disable persistence for the current lobby or game. This determines whether the lobby/game is deleted when the last player leaves. You need the DEBUG permission in your user license to use this command because there are no game state checks when you do this. For example, if you make a game persistent, start a quest, then leave the game, the game can't be joined by anyone but also can't be deleted.
* `$persist` (game server only): Enable or disable persistence for the current game. When persistence is on, the game will not be deleted when the last player leaves. The state of enemies and objects on the map will be reset when the last player leaves.
* `$sc <data>`: Send a command to yourself.
* `$ss <data>` (proxy server only): Send a command to the remote server.
* Personal state commands
* `$arrow <color-id>`: Changes your lobby arrow color.
* `$secid <section-id>`: Sets your override section ID. After running this command, any games you create will use your override section ID for rare drops instead of your character's actual section ID. To revert to your actual section id, run `$secid` with no name after it. On the proxy server, this will not work if the remote server controls item drops (e.g. on BB, or on Schtserv with server drops enabled).
* `$rand <seed>`: Sets your override random seed (specified as a 32-bit hex value). This will make any games you create use the given seed for rare enemies. This also makes item drops deterministic in Blue Burst games hosted by newserv. On the proxy server, this command can cause desyncs with other players in the same game, since they will not see the overridden random seed. To remove the override, run `$rand` with no arguments.
* `$secid <section-id>`: Sets your override section ID. After running this command, any games you create will use your override section ID for rare drops instead of your character's actual section ID. To revert to your actual section id, run `$secid` with no name after it. On the proxy server, this will not work if the remote server controls item drops (e.g. on BB, or on Schtserv with server drops enabled). If the server does not allow cheat mode anywhere (that is, "CheatModeBehavior" is "Off" in config.json), this command does nothing.
* `$rand <seed>`: Sets your override random seed (specified as a 32-bit hex value). This will make any games you create use the given seed for rare enemies. This also makes item drops deterministic in Blue Burst games hosted by newserv. On the proxy server, this command can cause desyncs with other players in the same game, since they will not see the overridden random seed. To remove the override, run `$rand` with no arguments. If the server does not allow cheat mode anywhere (that is, "CheatModeBehavior" is "Off" in config.json), this command does nothing.
* `$ln [name-or-type]`: Sets the lobby number. Visible only to you. This command exists because some non-lobby maps can be loaded as lobbies with invalid lobby numbers. See the "GC lobby types" and "Ep3 lobby types" entries in the information menu for acceptable values here. Note that non-lobby maps do not have a lobby counter, so there's no way to exit the lobby without using either `$ln` again or `$exit`. On the game server, `$ln` reloads the lobby immediately; on the proxy server, it doesn't take effect until you load another lobby yourself (which means you'll like have to use `$exit` to escape). Run this command with no argument to return to the default lobby.
* `$exit`: If you're in a lobby, sends you to the main menu (which ends your proxy session, if you're in one). If you're in a game or spectator team, sends you to the lobby (but does not end your proxy session if you're in one). Does nothing if you're in a non-Episode 3 game and no quest is in progress.
* `$patch <name>`: Run a patch on your client. `<name>` must exactly match the name of a patch on the server.
* Character data commands
* `$savechar <slot>`: Saves your current character data on the server in the specified slot (each serial number has 4 slots, numbered 1-4). These slots are separate from BB character slots; using this command does not affect BB characters.
* `$loadchar <slot>` (v1 and v2 only): Loads your character data from the specified slot. The changes will be undone if you join a game - to save your changes, disconnect from the lobby.
* `$bbchar <username> <password> <slot>`: Use this command when playing on a non-BB version of PSO. If the username and password are correct, this command converts your current character to BB format and saves it on the server in the given slot (1-4). Any character already in that slot is overwritten. (This command is similar to `$savechar`, except it overwrites a BB character slot, and can transfer characters across accounts.) Note that the character's chat data, quick menu config, and bank contents are not copied, since there is no way for the server to request those types of data.
* `$edit <stat> <value>`: Modifies your character data. If you are on V3 (GameCube/Xbox), or if the server does not allow cheat mode anywhere (that is, "CheatModeBehavior" is "Off" in config.json), this command does nothing. If you are on V1 or V2 (DC or PC, not BB), your changes will be undone if you join a game - to save your changes, disconnect from the lobby.
* Blue Burst player commands (game server only)
* `$bbchar <username> <password> <1-4>`: Use this command when playing on a non-BB version of PSO. If the username and password are correct, this command converts your current character to BB format and saves it on the server in the given slot. Any character already in that slot is overwritten.
* `$edit <stat> <value>`: Modifies your character data.
* `$bank [number]`: Switches your current bank, so you can access your other character's banks (if `number` is 1-4) or your shared account bank (if `number` is 0). If `number` is not given, switches back to your current character's bank.
* `$save`: Saves your character, system, and Guild Card data immediately. (By default, your character is saved every 60 seconds while online, and your account and Guild Card data are saved whenever they change.)
* Game state commands (game server only)
* `$maxlevel <level>`: Sets the maximum level for players to join the current game. (This only applies when joining; if a player joins and then levels up past this level during the game, they are not kicked out, but won't be able to rejoin if they leave.)
* `$minlevel <level>`: Sets the minimum level for players to join the current game.
* `$password <password>`: Sets the game's join password. To unlock the game, run `$password` with nothing after it.
* `$raretable`: Switches between using the client's or the server's drop table. No effect on BB (the server's drop table is always used). The server's rare tables are defined in JSON files in the system/rare-tables directory.
* `$dropmode [mode]`: Changes the way item drops behave in the current game. `mode` can be `none`, `client`, `shared`, `private`, or `duplicate`. If `mode` is not given, tells you the current drop mode without changing it. See the "Item tables and drop modes" section for more information.
* Episode 3 commands (game server only)
* `$spec`: Toggles the allow spectators flag for Episode 3 games. If any players are spectating when this flag is disabled, they will be sent back to the lobby.
@@ -310,9 +336,9 @@ Some commands only work on the game server and not on the proxy server. The chat
* Cheat mode commands
* `$cheat`: Enables or disables cheat mode for the current game. All other cheat mode commands do nothing if cheat mode is disabled. By default, cheat mode is off in new games but can be enabled; there is an option in config.json that allows you to disable cheat mode entirely, or set it to on by default in new games.
* `$infhp` / `$inftp`: Enables or disables infinite HP or TP mode. Applies to only you. In infinite HP mode, one-hit KO attacks will still kill you.
* `$warpme <area-id>`: Warps yourself to the given area.
* `$warpall <area-id>`: Warps everyone in the game to the given area. You must be the leader to use this command, unless you're on the proxy server.
* `$next`: Warps yourself to the next area.
* `$warpme <floor-id>`: Warps yourself to the given floor.
* `$warpall <floor-id>`: Warps everyone in the game to the given floor. You must be the leader to use this command, unless you're on the proxy server.
* `$next`: Warps yourself to the next floor.
* `$swa`: Enables or disables switch assist. When enabled, the server will attempt to automatically unlock two-player doors in solo games if you step on both switches sequentially.
* `$item <desc>` (or `$i <desc>`): Create an item. `desc` may be a description of the item (e.g. "Hell Saber +5 0/10/25/0/10") or a string of hex data specifying the item code. Item codes are 16 hex bytes; at least 2 bytes must be specified, and all unspecified bytes are zeroes. If you are on the proxy server, you must not be using Blue Burst for this command to work. On the game server, this command works for all versions.
* `$unset <index>`: In an Episode 3 battle, removes one of your set cards from the field. `<index>` is the index of the set card as it appears on your screen - 1 is the card next to your SC's icon, 2 is the card to the right of 1, etc. This does not cause a Hunters-side SC to lose HP, as they normally do when their items are destroyed.
@@ -341,10 +367,12 @@ If you're emulating PSO DC or have a disc image, you can patch the appropriate f
If you're emulating PSO DC, all versions will connect to newserv by setting the following options in Flycast's `emu.cfg` file under `[network]`:
- DNS = Your newserv's server address (newserv's DNS server must be running on port 53)
- EmulateBBA = no (while some versions support the BBA, some do not, and all versions support the modem)
- EmulateBBA = yes
- Enable = yes
Once set up, the EU and US versions will work without any extra set up (other than the HL Check Disable code for USv2), while the JP versions require HL Check Disable codes to be running, and an e-mail account set up. The easiest way to set up an e-mail account is through PlanetWeb's Internet Browser for Dreamcast.
It is also necessary to save any DNS information to the flash memory of the Dreamcast to use the BBA - the easiest way to do this is to use the website option in USv2 and then choose the save to flash option.
Once set up, the EU and US versions will work without any extra set up (other than the HL Check Disable code for USv2), while the JP versions require HL Check Disable codes to be running.
If the server is running on the same machine as Flycast, this might not work, even if you point Flycast's DNS queries at your local IP address (instead of 127.0.0.1). In this case, you can modify the loaded executable in memory to make it connect anywhere you want. There is a script included with newserv that can do this on macOS; a similar technique could be done manually using scanmem on Linux or Cheat Engine on Windows. To use the script, do this:
1. Build and install memwatch (https://github.com/fuzziqersoftware/memwatch).
@@ -376,6 +404,14 @@ If you're using a version of Dolphin with tapserver support, you can make it con
3. In PSO's network settings, enable DHCP ("Automatically obtain an IP address"), set DNS server address to "Automatic", and leave DHCP Hostname as "Not set". Leave the proxy server settings blank.
4. Start an online game.
#### PSO BB
The PSO BB client has been modified and distributed in many different forms. newserv supports most, but not all, of the common distributions. Unlike other versions, it's important that the client and server have the same map files, so make sure to set up the patch directory based on the client you'll be using with newserv. (See the "Client patch directories" section for instructions on setting this up.)
The original Japanese and US versions of PSO BB should work, but you'll have to modify your hosts file or edit psobb.exe to point to your newserv instance. The original versions are packed, so this is a more involved process than simply opening the executable in a hex editor and finding/replacing some strings.
Alternatively, you can use the Tethealla client (https://archive.org/details/psobb-tethealla-client); you can find the connection addresses starting at 0x56D724 in psobb.exe. Overwrite these addresses with your server's hostname or IP address, and you should be able to connect.
### Connecting external clients
If you want to accept connections from outside your local network, you'll need to set ExternalAddress to your public IP address in the configuration file, and you'll likely need to open some ports in your router's NAT configuration - specifically, all the TCP ports listed in PortConfiguration in config.json.
@@ -395,11 +431,10 @@ newserv has many CLI options, which can be used to access functionality other th
* Convert a PSO GC or Episode 3 snapshot file to a BMP image (`decode-gci-snapshot`)
* Find the likely round1 or round2 seed for a corrupt save file (`salvage-gci`)
* Run a brute-force search for a decryption seed (`find-decryption-seed`)
* Decode Shift-JIS text to UTF-16 (`decode-sjis`)
* Convert quests in .gci, .vms, .dlq, or .qst format to .bin/.dat format (`decode-gci`, `decode-vms`, `decode-dlq`, `decode-qst`)
* Convert quests in .bin/.dat to .qst format (`encode-qst`)
* Convert text archives (e.g. TextEnglish.pr2) to JSON and vice versa (`decode-text-archive`, `encode-text-archive`)
* Disassemble quest scripts (`disassemble-quest-script`)
* Compile or disassemble quest scripts (`assemble-quest-script`, `disassemble-quest-script`)
* Format Episode 3 game data in a human-readable manner (`show-ep3-maps`, `show-ep3-cards`)
* Convert item data to a human-readable description, or vice versa (`describe-item`, `encode-item`)
* Connect to another PSO server and pretend to be a client (`cat-client`)
+10 -27
View File
@@ -1,46 +1,29 @@
## General
- Test PSOX (blocked on Insignia private server support)
- Implement server-side drops on non-BB game versions
- Find a way to silence audio in RunDOL.s
- Encapsulate BB server-side random state and make replays deterministic
- Implement choice search
- Write a simple status API
- Implement per-game logging
- Add default values in all command structures (like we use for Episode 3 battle commands)
- Check for RCE potential in 6x6B-6x6E commands
- Build an exception-handling abstraction in ChatCommands that shows formatted error messages in all cases
- Make reloading happen on separate threads so compression doesn't block active clients
- Implement decrypt/encrypt actions for VMS files
- Make UI strings localizable (e.g. entries in menus, welcome message, etc.)
- Figure out what causes the corruption message on PC proxy sessions and fix it
- Enable item tracking in battle/challenge games (everything should already be set up for it to work)
- Rewrite REL-based parsers so they don't assume any fixed offsets
- Add an idle connection timeout for proxy sessions
- Look into JP heart symbol bug on Linux
## Episode 3
- Make disconnecting during a tournament match cause you to forfeit the match
- Enforce tournament deck restrictions (e.g. rank checks, No Assist option) when populating COMs at tournament start time
- It may be possible to send spectators back to the waiting room after a non-tournament battle by sending 6xB4x05 with environment 0x19, then 6xB4x3B again; try this
- Add support for recording battles on the proxy server (both in primary and spectator teams)
- When `reload ep3` happens and the defs file is changed, send the new defs file to all connected players who aren't in a game (if this even works - when exactly does the client decompress the defs file from the server?)
- Make `reload licenses` not vulnerable to online players' licenses overwriting licenses on disk somehow
- Implement ranks (based on total Meseta earned)
## PSO XBOX
- Fix receiving Guild Cards from non-Xbox players
- Research the F94D quest opcode
## PSOBB
- Find any remaining mismatches in enemy IDs / experience
- Support EXP multipliers
- Sale prices for non-rare weapons with specials are computed incorrectly when buying/selling at shops
- Replace enemy list, game episode, etc. with quest data when loading a quest
- Implement trade window
- Fix some edge cases on the BB proxy server (e.g. Change Ship)
- Implement less-common subcommands
- 6xAC: Sort inventory
- 6xC1, 6xC2, 6xCD, 6xCE
- 6xCC: Exchange item for team points
- 6xD8: Add S-rank weapon special
- 6xDE: Good Luck quest
- 6xE0
- 6xE1: Gallon's Plan quest
- Implement team commands
- Test all quest item subcommands
- Check if Commander Blade effect works and implement it if not
- Figure out why Pouilly Slime EXP doesn't work
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,5 +1,5 @@
DC NTE: pso02.dricas.ne.jp
Nov 2000 proto: test1.st-pso.games.sega.net
Dec 2000 proto: sg107634.csrd.sega.co.jp
Dec 2000 proto: sg107634.csrd.sega.co.jp OR master.pso.dream-key.com
Jan 2001 proto: master.pso.dream-key.com
Aug 2001 proto (v2): ???
Aug 2001 proto (v2): game01.st-pso.games.sega.net
+163
View File
@@ -0,0 +1,163 @@
import collections
import os
import subprocess
import sys
from dataclasses import dataclass
version_tokens = ("JP12", "JP13", "JP14", "JP15", "US10", "US11", "US12", "EU")
version_to_specific_version = {
"JP12": "3OJ2",
"JP13": "3OJ3",
"JP14": "3OJ4",
"JP15": "3OJ5",
"US10": "3OE0",
"US11": "3OE1",
"US12": "3OE2",
"EU": "3OP0",
}
@dataclass
class WriteRegion:
address: int
data: list[int]
def disassemble_opcode(opcode: int, start_address: int) -> str:
try:
result = subprocess.check_output(
[
"m68kdasm",
f"--start-address={hex(start_address)}",
"--ppc32",
"--parse-data",
],
input=f"{opcode:08X}".encode("ascii"),
)
return result.decode("ascii").strip().split(None, 2)[2]
except Exception:
return ""
def write_patches_for_code(
out_dir: str,
name: str,
version_to_lines: dict[str, dict[int, int]],
long_name: str | None,
desc: str | None,
) -> None:
for v, lines in version_to_lines.items():
write_regions: list[WriteRegion] = []
for addr, value in sorted(lines.items()):
if write_regions and (
write_regions[-1].address + len(write_regions[-1].data) * 4 == addr
):
write_regions[-1].data.append(value)
else:
write_regions.append(WriteRegion(address=addr, data=[value]))
if write_regions:
filename = os.path.join(
out_dir,
f'{name.replace(" ", "")}.{version_to_specific_version[v]}.patch.s',
)
with open(filename, "wt") as f:
if long_name is not None:
f.write(f'.meta name="{long_name}"\n')
if desc is not None:
f.write(f'.meta description="{desc}"\n')
f.write("\n")
f.write("entry_ptr:\n")
f.write("reloc0:\n")
f.write(" .offsetof start\n")
f.write("start:\n")
f.write(" .include WriteCodeBlocks\n")
for region in write_regions:
f.write(
f" # region @ {region.address:08X} ({len(region.data) * 4} bytes)\n"
)
f.write(f" .data 0x{region.address:08X} # address\n")
f.write(f" .data 0x{(len(region.data) * 4):08X} # size\n")
for z, value in enumerate(region.data):
addr = region.address + (z * 4)
disassembly = disassemble_opcode(value, addr)
f.write(
f" .data 0x{value:08X} # {addr:08X} => {disassembly}\n"
)
f.write(" # end sentinel\n")
f.write(" .data 0x00000000 # address\n")
f.write(" .data 0x00000000 # size\n")
print(f"... {filename}")
else:
print(f"*** {filename} (no data to write)")
def main():
if len(sys.argv) != 3:
raise RuntimeError(
"Usage: python3 generate-patches.py <source-filename> <out-dir>"
)
src_file = sys.argv[1]
out_dir = sys.argv[2]
with open(src_file, "rt") as f:
lines = f.read().splitlines()
reading_code = False
reading_patch = False
code_name = ""
version_name = ""
name_to_version_to_lines = collections.defaultdict(
lambda: collections.defaultdict(dict)
) # {name:{version: {addr: value}}}
name_to_long_name = {}
name_to_description = {}
for line in lines:
if not line:
reading_code = False
reading_patch = False
elif reading_code:
for z, v in enumerate(version_tokens):
addr_str = line[18 * z : 18 * z + 8]
value_str = line[18 * z + 9 : 18 * z + 17]
if addr_str != " " and value_str != " ":
addr = int(addr_str, 16)
if addr in name_to_version_to_lines[code_name][v]:
raise ValueError(f"duplicate write to address {addr:08X}")
name_to_version_to_lines[code_name][v][addr] = int(value_str, 16)
elif line.startswith("*** name="):
name_to_long_name[code_name] = line[9:]
elif line.startswith("*** desc="):
name_to_description[code_name] = line[9:]
elif line.startswith("======== PsoV3-"):
reading_patch = True
version_name = line[15:].split(".")[0]
elif reading_patch:
addr_str, data_str = line.split()
addr = int(addr_str, 16)
data = bytes.fromhex(data_str)
for z in range(0, len(data), 4):
name_to_version_to_lines[code_name][version_name][addr + z] = (
(data[z] << 24)
| (data[z + 1] << 16)
| (data[z + 2] << 8)
| (data[z + 3] << 0)
)
elif line.startswith("JP12------------"):
reading_code = True
else:
code_name = line
for name, version_to_lines in name_to_version_to_lines.items():
write_patches_for_code(
out_dir,
name,
version_to_lines,
name_to_long_name.get(name),
name_to_description.get(name),
)
if __name__ == "__main__":
main()
+908 -908
View File
File diff suppressed because it is too large Load Diff
+933
View File
@@ -0,0 +1,933 @@
GameCube patch ports
NOTES
check_controller_button + pad1 + fixup addr
PsoV3-JP12 => 801A688C 80508A88 80508AD0
PsoV3-JP13 => 801A6C70 8050C548 8050C590
PsoV3-JP14 => 801A6DDC 8050EB88 8050EBD0
PsoV3-JP15 => 801A6D3C 8050E928 8050E970
PsoV3-US10 => 801A6C68 80509368 805093B0
PsoV3-US11 => 801A6C68 80509848 80509890
PsoV3-US12 => 801A6DA0 8050E228 8050E270
PsoV3-EU => 801A725C 8050F248 8050F290
CODES
Common Bank Patch
CommonBank
*** name=Common bank
*** desc=Hold L and open\nthe bank to use a\ncommon bank stored\nin temp character\n3's data
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000BAB4 281B0002 8000BAB4 281B0002 8000BAB4 281B0002 8000BAB4 281B0002 8000BAB4 281B0002 8000BAB4 281B0002 8000BAB4 281B0002 8000BAB4 281B0002 cmplwi r27, 2
8000BAB8 40820018 8000BAB8 40820018 8000BAB8 40820018 8000BAB8 40820018 8000BAB8 40820018 8000BAB8 40820018 8000BAB8 40820018 8000BAB8 40820018 bne +0x00000018 /* 8000BAD0 */
8000BABC 3C008000 8000BABC 3C008000 8000BABC 3C008000 8000BABC 3C008000 8000BABC 3C008000 8000BABC 3C008000 8000BABC 3C008000 8000BABC 3C008000 lis r0, 0x8000
8000BAC0 6000BAD8 8000BAC0 6000BAD8 8000BAC0 6000BAD8 8000BAC0 6000BAD8 8000BAC0 6000BAD8 8000BAC0 6000BAD8 8000BAC0 6000BAD8 8000BAC0 6000BAD8 ori r0, r0, 0xBAD8
8000BAC4 90030004 8000BAC4 90030004 8000BAC4 90030004 8000BAC4 90030004 8000BAC4 90030004 8000BAC4 90030004 8000BAC4 90030004 8000BAC4 90030004 stw [r3 + 0x0004], r0
8000BAC8 38000000 8000BAC8 38000000 8000BAC8 38000000 8000BAC8 38000000 8000BAC8 38000000 8000BAC8 38000000 8000BAC8 38000000 8000BAC8 38000000 li r0, 0x0000
8000BACC 90030008 8000BACC 90030008 8000BACC 90030008 8000BACC 90030008 8000BACC 90030008 8000BACC 90030008 8000BACC 90030008 8000BACC 90030008 stw [r3 + 0x0008], r0
8000BAD0 807F0040 8000BAD0 807F0040 8000BAD0 807F0040 8000BAD0 807F0040 8000BAD0 807F0040 8000BAD0 807F0040 8000BAD0 807F0040 8000BAD0 807F0040 lwz r3, [r31 + 0x0040]
8000BAD4 4E800020 8000BAD4 4E800020 8000BAD4 4E800020 8000BAD4 4E800020 8000BAD4 4E800020 8000BAD4 4E800020 8000BAD4 4E800020 8000BAD4 4E800020 blr
8000BAD8 434F4D4D 8000BAD8 434F4D4D 8000BAD8 434F4D4D 8000BAD8 434F4D4D 8000BAD8 434F4D4D 8000BAD8 434F4D4D 8000BAD8 434F4D4D 8000BAD8 434F4D4D bdzl cr3, +0x00004D4C /* 80010824 */
8000BADC 4F4E2042 8000BADC 4F4E2042 8000BADC 4F4E2042 8000BADC 4F4E2042 8000BADC 4F4E2042 8000BADC 4F4E2042 8000BADC 4F4E2042 8000BADC 4F4E2042 crnor crb26, crb14, crb4
8000BAE0 414E4B00 8000BAE0 414E4B00 8000BAE0 414E4B00 8000BAE0 414E4B00 8000BAE0 414E4B00 8000BAE0 414E4B00 8000BAE0 414E4B00 8000BAE0 414E4B00 bc 10, 14, +0x00004B00 /* 800105E0 */
8000BAE4 800D8EB0 8000BAE4 800D8EB0 8000BAE4 800D8EB0 8000BAE4 800D8EB0 8000BAE4 800D8EB8 8000BAE4 800D8EB8 8000BAE4 800D8EB8 8000BAE4 800D8EB8 lwz r0, [r13 - 0x7148]
8000BAE8 28000001 8000BAE8 28000001 8000BAE8 28000001 8000BAE8 28000001 8000BAE8 28000001 8000BAE8 28000001 8000BAE8 28000001 8000BAE8 28000001 cmplwi r0, 1
8000BAEC 40820040 8000BAEC 40820040 8000BAEC 40820040 8000BAEC 40820040 8000BAEC 40820040 8000BAEC 40820040 8000BAEC 40820040 8000BAEC 40820040 bne +0x00000040 /* 8000BB2C */
8000BAF0 3C808051 8000BAF0 3C808051 8000BAF0 3C808051 8000BAF0 3C808051 8000BAF0 3C808051 8000BAF0 3C808051 8000BAF0 3C808051 8000BAF0 3C808051 lis r4, 0x8051
8000BAF4 A0848AD0 8000BAF4 A084C590 8000BAF4 A084EBD0 8000BAF4 A084E970 8000BAF4 A08493B0 8000BAF4 A0849890 8000BAF4 A084E270 8000BAF4 A084F290 lhz r4, [r4 - 0x6C50]
8000BAF8 70800002 8000BAF8 70800002 8000BAF8 70800002 8000BAF8 70800002 8000BAF8 70800002 8000BAF8 70800002 8000BAF8 70800002 8000BAF8 70800002 andi. r0, r4, 0x0002
8000BAFC 41820028 8000BAFC 41820028 8000BAFC 41820028 8000BAFC 41820028 8000BAFC 41820028 8000BAFC 41820028 8000BAFC 41820028 8000BAFC 41820028 beq +0x00000028 /* 8000BB24 */
8000BB00 800DB93C 8000BB00 800DB944 8000BB00 800DB964 8000BB00 800DB964 8000BB00 800DB954 8000BB00 800DB954 8000BB00 800DB974 8000BB00 800DB9B4 lwz r0, [r13 - 0x46AC]
8000BB04 28000006 8000BB04 28000006 8000BB04 28000006 8000BB04 28000006 8000BB04 28000006 8000BB04 28000006 8000BB04 28000006 8000BB04 28000006 cmplwi r0, 6
8000BB08 4182001C 8000BB08 4182001C 8000BB08 4182001C 8000BB08 4182001C 8000BB08 4182001C 8000BB08 4182001C 8000BB08 4182001C 8000BB08 4182001C beq +0x0000001C /* 8000BB24 */
8000BB0C 806DB920 8000BB0C 806DB928 8000BB0C 806DB948 8000BB0C 806DB948 8000BB0C 806DB938 8000BB0C 806DB938 8000BB0C 806DB958 8000BB0C 806DB998 lwz r3, [r13 - 0x46C8]
8000BB10 28030000 8000BB10 28030000 8000BB10 28030000 8000BB10 28030000 8000BB10 28030000 8000BB10 28030000 8000BB10 28030000 8000BB10 28030000 cmplwi r3, 0
8000BB14 41820010 8000BB14 41820010 8000BB14 41820010 8000BB14 41820010 8000BB14 41820010 8000BB14 41820010 8000BB14 41820010 8000BB14 41820010 beq +0x00000010 /* 8000BB24 */
8000BB18 38000000 8000BB18 38000000 8000BB18 38000000 8000BB18 38000000 8000BB18 38000000 8000BB18 38000000 8000BB18 38000000 8000BB18 38000000 li r0, 0x0000
8000BB1C 6000F1B0 8000BB1C 6000F1B0 8000BB1C 6000F1B0 8000BB1C 6000F1B0 8000BB1C 6000F1B0 8000BB1C 6000F1B0 8000BB1C 6000F1B0 8000BB1C 6000F1B0 ori r0, r0, 0xF1B0
8000BB20 7C630214 8000BB20 7C630214 8000BB20 7C630214 8000BB20 7C630214 8000BB20 7C630214 8000BB20 7C630214 8000BB20 7C630214 8000BB20 7C630214 add r3, r3, r0
8000BB24 3C808001 8000BB24 3C808001 8000BB24 3C808001 8000BB24 3C808001 8000BB24 3C808001 8000BB24 3C808001 8000BB24 3C808001 8000BB24 3C808001 lis r4, 0x8001
8000BB28 9064C32C 8000BB28 9064C32C 8000BB28 9064C32C 8000BB28 9064C32C 8000BB28 9064C32C 8000BB28 9064C32C 8000BB28 9064C32C 8000BB28 9064C32C stw [r4 - 0x3CD4], r3
8000BB2C 28030000 8000BB2C 28030000 8000BB2C 28030000 8000BB2C 28030000 8000BB2C 28030000 8000BB2C 28030000 8000BB2C 28030000 8000BB2C 28030000 cmplwi r3, 0
8000BB30 48203FB8 8000BB30 48204894 8000BB30 48205674 8000BB30 482053D0 8000BB30 482047B4 8000BB30 482047B4 8000BB30 48205704 8000BB30 48205100 b +0x002047B4 /* 802102E4 */
8000BB34 800D8EB0 8000BB34 800D8EB0 8000BB34 800D8EB0 8000BB34 800D8EB0 8000BB34 800D8EB8 8000BB34 800D8EB8 8000BB34 800D8EB8 8000BB34 800D8EB8 lwz r0, [r13 - 0x7148]
8000BB38 28000001 8000BB38 28000001 8000BB38 28000001 8000BB38 28000001 8000BB38 28000001 8000BB38 28000001 8000BB38 28000001 8000BB38 28000001 cmplwi r0, 1
8000BB3C 4082000C 8000BB3C 4082000C 8000BB3C 4082000C 8000BB3C 4082000C 8000BB3C 4082000C 8000BB3C 4082000C 8000BB3C 4082000C 8000BB3C 4082000C bne +0x0000000C /* 8000BB48 */
8000BB40 3C608001 8000BB40 3C608001 8000BB40 3C608001 8000BB40 3C608001 8000BB40 3C608001 8000BB40 3C608001 8000BB40 3C608001 8000BB40 3C608001 lis r3, 0x8001
8000BB44 8063C32C 8000BB44 8063C32C 8000BB44 8063C32C 8000BB44 8063C32C 8000BB44 8063C32C 8000BB44 8063C32C 8000BB44 8063C32C 8000BB44 8063C32C lwz r3, [r3 - 0x3CD4]
8000BB48 7C681B79 8000BB48 7C681B79 8000BB48 7C681B79 8000BB48 7C681B79 8000BB48 7C681B79 8000BB48 7C681B79 8000BB48 7C681B79 8000BB48 7C681B79 mr. r8, r3
8000BB4C 48203EB0 8000BB4C 48204804 8000BB4C 482055E4 8000BB4C 48205340 8000BB4C 48204724 8000BB4C 48204724 8000BB4C 48205674 8000BB4C 48205070 b +0x00204724 /* 80210270 */
8020F9F8 4BDFC13C 8021034C 4BDFB7E8 8021112C 4BDFAA08 80210E88 4BDFACAC 8021026C 4BDFB8C8 8021026C 4BDFB8C8 802111BC 4BDFA978 80210BB8 4BDFAF7C b -0x00204738 /* 8000BB34 */
8020FAE4 4BDFC000 802103C0 4BDFB724 802111A0 4BDFA944 80210EFC 4BDFABE8 802102E0 4BDFB804 802102E0 4BDFB804 80211230 4BDFA8B4 80210C2C 4BDFAEB8 b -0x002047FC /* 8000BAE4 */
8030AA54 4BD01061 8030BAA4 4BD00011 8030CEF0 4BCFEBC5 8030CCA4 4BCFEE11 8030B414 4BD006A1 8030B458 4BD0065D 8030CE60 4BCFEC55 8030C228 4BCFF88D bl -0x002FF960 /* 8000BAB4 */
8030AAAC 4BD01009 8030BAFC 4BCFFFB9 8030CF48 4BCFEB6D 8030CCFC 4BCFEDB9 8030B46C 4BD00649 8030B4B0 4BD00605 8030CEB8 4BCFEBFD 8030C280 4BCFF835 bl -0x002FF9B8 /* 8000BAB4 */
8046CECC FFFFFFFF 8046FCEC FFFFFFFF 80471E4C FFFFFFFF 80471C14 FFFFFFFF 8046DC5C FFFFFFFF 8046E0DC FFFFFFFF 80471ACC FFFFFFFF 80471804 FFFFFFFF fnmadd. f31, f31, f31, f31
Item Loss Prevention
ItemLossPrevention
*** name=No item loss
*** desc=Don't lose items if\nyou don't log off\nnormally
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
801D33E4 4800004C 801D38EC 4800004C 801D3CC4 4800004C 801D39B8 4800004C 801D381C 4800004C 801D381C 4800004C 801D3A1C 4800004C 801D3ED8 4800004C b +0x0000004C /* 801D3868 */
8020010C 60000000 801FF710 60000000 801FF0FC 60000000 801FF0FC 60000000 801FFA44 60000000 801FF9E0 60000000 nop
802016CC 60000000 80200C9C 60000000 80200658 60000000 80200658 60000000 80200FD0 60000000 80200F3C 60000000 nop
801FD944 38000000 80202860 38000000 802021C4 38000000 802021C4 38000000 80202B94 38000000 80202AA8 38000000 li r0, 0x0000
802C2060 4800004C 802C2F98 4800004C 802C42E4 4800004C 802C3E78 4800004C 802C2A40 4800004C 802C2A84 4800004C 802C402C 4800004C 802C37C0 4800004C b +0x0000004C /* 802C2A8C */
802D0AA0 48000020 802D1A58 48000020 802D2C10 48000020 802D2938 48000020 802D1480 48000020 802D14C4 48000020 802D2AEC 48000020 802D2280 48000020 b +0x00000020 /* 802D14A0 */
"Palette Patch" Part 1
Palette
*** name=Palette
*** desc=Press Z to cycle\nthrough 4 customize\nconfigs instead of of\njust one
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000CD00 3C808000 8000CD00 3C808000 8000CD00 3C808000 8000CD00 3C808000 8000CD00 3C808000 8000CD00 3C808000 8000CD00 3C808000 8000CD00 3C808000 lis r4, 0x8000
8000CD04 6084CF3E 8000CD04 6084CF3E 8000CD04 6084CF3E 8000CD04 6084CF3E 8000CD04 6084CF3E 8000CD04 6084CF3E 8000CD04 6084CF3E 8000CD04 6084CF3E ori r4, r4, 0xCF3E
8000CD08 3BE00000 8000CD08 3BE00000 8000CD08 3BE00000 8000CD08 3BE00000 8000CD08 3BE00000 8000CD08 3BE00000 8000CD08 3BE00000 8000CD08 3BE00000 li r31, 0x0000
8000CD0C A0C4003A 8000CD0C A0C4003A 8000CD0C A0C4003A 8000CD0C A0C4003A 8000CD0C A0C4003A 8000CD0C A0C4003A 8000CD0C A0C4003A 8000CD0C A0C4003A lhz r6, [r4 + 0x003A]
8000CD10 2C060000 8000CD10 2C060000 8000CD10 2C060000 8000CD10 2C060000 8000CD10 2C060000 8000CD10 2C060000 8000CD10 2C060000 8000CD10 2C060000 cmpwi r6, 0
8000CD14 41820074 8000CD14 41820074 8000CD14 41820074 8000CD14 41820074 8000CD14 41820074 8000CD14 41820074 8000CD14 41820074 8000CD14 41820074 beq +0x00000074 /* 8000CD88 */
8000CD18 B3E4003A 8000CD18 B3E4003A 8000CD18 B3E4003A 8000CD18 B3E4003A 8000CD18 B3E4003A 8000CD18 B3E4003A 8000CD18 B3E4003A 8000CD18 B3E4003A sth [r4 + 0x003A], r31
8000CD1C 3C608051 8000CD1C 3C608051 8000CD1C 3C608051 8000CD1C 3C608051 8000CD1C 3C608051 8000CD1C 3C608051 8000CD1C 3C608051 8000CD1C 3C608051 lis r3, 0x8051 NEEDS FIXUP
8000CD20 A003E274 8000CD20 A003E274 8000CD20 A003E274 8000CD20 A003E274 8000CD20 A003E274 8000CD20 A003E274 8000CD20 A003E274 8000CD20 A003E274 lhz r0, [r3 - 0x1D8C]
8000CD24 A0A3E270 8000CD24 A0A3E270 8000CD24 A0A3E270 8000CD24 A0A3E270 8000CD24 A0A3E270 8000CD24 A0A3E270 8000CD24 A0A3E270 8000CD24 A0A3E270 lhz r5, [r3 - 0x1D90]
8000CD28 7CA53038 8000CD28 7CA53038 8000CD28 7CA53038 8000CD28 7CA53038 8000CD28 7CA53038 8000CD28 7CA53038 8000CD28 7CA53038 8000CD28 7CA53038 and r5, r5, r6
8000CD2C 70003C00 8000CD2C 70003C00 8000CD2C 70003C00 8000CD2C 70003C00 8000CD2C 70003C00 8000CD2C 70003C00 8000CD2C 70003C00 8000CD2C 70003C00 andi. r0, r0, 0x3C00
8000CD30 41820058 8000CD30 41820058 8000CD30 41820058 8000CD30 41820058 8000CD30 41820058 8000CD30 41820058 8000CD30 41820058 8000CD30 41820058 beq +0x00000058 /* 8000CD88 */
8000CD34 5403056B 8000CD34 5403056B 8000CD34 5403056B 8000CD34 5403056B 8000CD34 5403056B 8000CD34 5403056B 8000CD34 5403056B 8000CD34 5403056B rlwinm. r3, r0, 0, 21, 21
8000CD38 41820008 8000CD38 41820008 8000CD38 41820008 8000CD38 41820008 8000CD38 41820008 8000CD38 41820008 8000CD38 41820008 8000CD38 41820008 beq +0x00000008 /* 8000CD40 */
8000CD3C 3BC0002A 8000CD3C 3BC0002A 8000CD3C 3BC0002A 8000CD3C 3BC0002A 8000CD3C 3BC0002A 8000CD3C 3BC0002A 8000CD3C 3BC0002A 8000CD3C 3BC0002A li r30, 0x002A
8000CD40 540304A5 8000CD40 540304A5 8000CD40 540304A5 8000CD40 540304A5 8000CD40 540304A5 8000CD40 540304A5 8000CD40 540304A5 8000CD40 540304A5 rlwinm. r3, r0, 0, 18, 18
8000CD44 41820008 8000CD44 41820008 8000CD44 41820008 8000CD44 41820008 8000CD44 41820008 8000CD44 41820008 8000CD44 41820008 8000CD44 41820008 beq +0x00000008 /* 8000CD4C */
8000CD48 3BC0001C 8000CD48 3BC0001C 8000CD48 3BC0001C 8000CD48 3BC0001C 8000CD48 3BC0001C 8000CD48 3BC0001C 8000CD48 3BC0001C 8000CD48 3BC0001C li r30, 0x001C
8000CD4C 54030529 8000CD4C 54030529 8000CD4C 54030529 8000CD4C 54030529 8000CD4C 54030529 8000CD4C 54030529 8000CD4C 54030529 8000CD4C 54030529 rlwinm. r3, r0, 0, 20, 20
8000CD50 41820008 8000CD50 41820008 8000CD50 41820008 8000CD50 41820008 8000CD50 41820008 8000CD50 41820008 8000CD50 41820008 8000CD50 41820008 beq +0x00000008 /* 8000CD58 */
8000CD54 3BC0000E 8000CD54 3BC0000E 8000CD54 3BC0000E 8000CD54 3BC0000E 8000CD54 3BC0000E 8000CD54 3BC0000E 8000CD54 3BC0000E 8000CD54 3BC0000E li r30, 0x000E
8000CD58 7C84F214 8000CD58 7C84F214 8000CD58 7C84F214 8000CD58 7C84F214 8000CD58 7C84F214 8000CD58 7C84F214 8000CD58 7C84F214 8000CD58 7C84F214 add r4, r4, r30
8000CD5C 38000007 8000CD5C 38000007 8000CD5C 38000007 8000CD5C 38000007 8000CD5C 38000007 8000CD5C 38000007 8000CD5C 38000007 8000CD5C 38000007 li r0, 0x0007
8000CD60 7C0903A6 8000CD60 7C0903A6 8000CD60 7C0903A6 8000CD60 7C0903A6 8000CD60 7C0903A6 8000CD60 7C0903A6 8000CD60 7C0903A6 8000CD60 7C0903A6 mtctr r0
8000CD64 387C0504 8000CD64 387C0504 8000CD64 387C0504 8000CD64 387C0504 8000CD64 387C0504 8000CD64 387C0504 8000CD64 387C0504 8000CD64 387C0504 addi r3, r28, 0x0504
8000CD68 2C050003 8000CD68 2C050003 8000CD68 2C050003 8000CD68 2C050003 8000CD68 2C050003 8000CD68 2C050003 8000CD68 2C050003 8000CD68 2C050003 cmpwi r5, 3
8000CD6C 4082000C 8000CD6C 4082000C 8000CD6C 4082000C 8000CD6C 4082000C 8000CD6C 4082000C 8000CD6C 4082000C 8000CD6C 4082000C 8000CD6C 4082000C bne +0x0000000C /* 8000CD78 */
8000CD70 A0030004 8000CD70 A0030004 8000CD70 A0030004 8000CD70 A0030004 8000CD70 A0030004 8000CD70 A0030004 8000CD70 A0030004 8000CD70 A0030004 lhz r0, [r3 + 0x0004]
8000CD74 B0040002 8000CD74 B0040002 8000CD74 B0040002 8000CD74 B0040002 8000CD74 B0040002 8000CD74 B0040002 8000CD74 B0040002 8000CD74 B0040002 sth [r4 + 0x0002], r0
8000CD78 A4040002 8000CD78 A4040002 8000CD78 A4040002 8000CD78 A4040002 8000CD78 A4040002 8000CD78 A4040002 8000CD78 A4040002 8000CD78 A4040002 lhzu r0, [r4 + 0x0002]
8000CD7C B4030004 8000CD7C B4030004 8000CD7C B4030004 8000CD7C B4030004 8000CD7C B4030004 8000CD7C B4030004 8000CD7C B4030004 8000CD7C B4030004 sthu [r3 + 0x0004], r0
8000CD80 4200FFE8 8000CD80 4200FFE8 8000CD80 4200FFE8 8000CD80 4200FFE8 8000CD80 4200FFE8 8000CD80 4200FFE8 8000CD80 4200FFE8 8000CD80 4200FFE8 bdnz -0x00000018 /* 8000CD68 */
8000CD84 3BC00000 8000CD84 3BC00000 8000CD84 3BC00000 8000CD84 3BC00000 8000CD84 3BC00000 8000CD84 3BC00000 8000CD84 3BC00000 8000CD84 3BC00000 li r30, 0x0000
8000CD88 481CAABC 8000CD88 481CAFC4 8000CD88 481CB180 8000CD88 481CB090 8000CD88 481CAEF4 8000CD88 481CAEF4 8000CD88 481CB0F4 8000CD88 481CB5B0 b +0x001CAEF4 /* 801D7C7C */
801D7840 4BE354C0 801D7D48 4BE34FB8 801D7F04 4BE34DFC 801D7E14 4BE34EEC 801D7C78 4BE35088 801D7C78 4BE35088 801D7E78 4BE34E88 801D8334 4BE349CC b -0x001CAF78 /* 8000CD00 */
"Palette Patch" Part 2
Palette
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000CD8C 38600003 8000CD8C 38600003 8000CD8C 38600003 8000CD8C 38600003 8000CD8C 38600003 8000CD8C 38600003 8000CD8C 38600003 8000CD8C 38600003 li r3, 0x0003
8000CD90 3C808001 8000CD90 3C808001 8000CD90 3C808001 8000CD90 3C808001 8000CD90 3C808001 8000CD90 3C808001 8000CD90 3C808001 8000CD90 3C808001 lis r4, 0x8001
8000CD94 B064CF78 8000CD94 B064CF78 8000CD94 B064CF78 8000CD94 B064CF78 8000CD94 B064CF78 8000CD94 B064CF78 8000CD94 B064CF78 8000CD94 B064CF78 sth [r4 - 0x3088], r3
8000CD98 7FC3F378 8000CD98 7FC3F378 8000CD98 7FC3F378 8000CD98 7FC3F378 8000CD98 7FC3F378 8000CD98 7FC3F378 8000CD98 7FC3F378 8000CD98 7FC3F378 mr r3, r30
8000CD9C 48269718 8000CD9C 4826A454 8000CD9C 4826B4C0 8000CD9C 4826B274 8000CD9C 48269FAC 8000CD9C 48269FF0 8000CD9C 4826B428 8000CD9C 4826AC70 b +0x00269FAC /* 80276D48 */
8000CDA0 3D808044 8000CDA0 3D808045 8000CDA0 3D808045 8000CDA0 3D808045 8000CDA0 3D808044 8000CDA0 3D808044 8000CDA0 3D808045 8000CDA0 3D808045 lis r12, 0x8044
8000CDA4 618CD840 8000CDA4 618C0660 8000CDA4 618C27C0 8000CDA4 618C2588 8000CDA4 618CE5D0 8000CDA4 618CEA50 8000CDA4 618C2440 8000CDA4 618C2148 ori r12, r12, 0xE5D0
8000CDA8 80030000 8000CDA8 80030000 8000CDA8 80030000 8000CDA8 80030000 8000CDA8 80030000 8000CDA8 80030000 8000CDA8 80030000 8000CDA8 80030000 lwz r0, [r3]
8000CDAC 7C006000 8000CDAC 7C006000 8000CDAC 7C006000 8000CDAC 7C006000 8000CDAC 7C006000 8000CDAC 7C006000 8000CDAC 7C006000 8000CDAC 7C006000 cmp r0, r12
8000CDB0 A0030004 8000CDB0 A0030004 8000CDB0 A0030004 8000CDB0 A0030004 8000CDB0 A0030004 8000CDB0 A0030004 8000CDB0 A0030004 8000CDB0 A0030004 lhz r0, [r3 + 0x0004]
8000CDB4 40820018 8000CDB4 40820018 8000CDB4 40820018 8000CDB4 40820018 8000CDB4 40820018 8000CDB4 40820018 8000CDB4 40820018 8000CDB4 40820018 bne +0x00000018 /* 8000CDCC */
8000CDB8 2C000000 8000CDB8 2C000000 8000CDB8 2C000000 8000CDB8 2C000000 8000CDB8 2C000000 8000CDB8 2C000000 8000CDB8 2C000000 8000CDB8 2C000000 cmpwi r0, 0
8000CDBC 40820010 8000CDBC 40820010 8000CDBC 40820010 8000CDBC 40820010 8000CDBC 40820010 8000CDBC 40820010 8000CDBC 40820010 8000CDBC 40820010 bne +0x00000010 /* 8000CDCC */
8000CDC0 38600001 8000CDC0 38600001 8000CDC0 38600001 8000CDC0 38600001 8000CDC0 38600001 8000CDC0 38600001 8000CDC0 38600001 8000CDC0 38600001 li r3, 0x0001
8000CDC4 3D808001 8000CDC4 3D808001 8000CDC4 3D808001 8000CDC4 3D808001 8000CDC4 3D808001 8000CDC4 3D808001 8000CDC4 3D808001 8000CDC4 3D808001 lis r12, 0x8001
8000CDC8 B06CCF78 8000CDC8 B06CCF78 8000CDC8 B06CCF78 8000CDC8 B06CCF78 8000CDC8 B06CCF78 8000CDC8 B06CCF78 8000CDC8 B06CCF78 8000CDC8 B06CCF78 sth [r12 - 0x3088], r3
8000CDCC 4823EF48 8000CDCC 4823F994 8000CDCC 482408D4 8000CDCC 48240688 8000CDCC 4823F7D0 8000CDCC 4823F7D0 8000CDCC 4824094C 8000CDCC 48240194 b +0x0023F7D0 /* 8024C59C */
8000CDD0 3C608000 8000CDD0 3C608000 8000CDD0 3C608000 8000CDD0 3C608000 8000CDD0 3C608000 8000CDD0 3C608000 8000CDD0 3C608000 8000CDD0 3C608000 lis r3, 0x8000
8000CDD4 6063CF3E 8000CDD4 6063CF3E 8000CDD4 6063CF3E 8000CDD4 6063CF3E 8000CDD4 6063CF3E 8000CDD4 6063CF3E 8000CDD4 6063CF3E 8000CDD4 6063CF3E ori r3, r3, 0xCF3E
8000CDD8 3800001C 8000CDD8 3800001C 8000CDD8 3800001C 8000CDD8 3800001C 8000CDD8 3800001C 8000CDD8 3800001C 8000CDD8 3800001C 8000CDD8 3800001C li r0, 0x001C
8000CDDC 7C0903A6 8000CDDC 7C0903A6 8000CDDC 7C0903A6 8000CDDC 7C0903A6 8000CDDC 7C0903A6 8000CDDC 7C0903A6 8000CDDC 7C0903A6 8000CDDC 7C0903A6 mtctr r0
8000CDE0 38000000 8000CDE0 38000000 8000CDE0 38000000 8000CDE0 38000000 8000CDE0 38000000 8000CDE0 38000000 8000CDE0 38000000 8000CDE0 38000000 li r0, 0x0000
8000CDE4 B4030002 8000CDE4 B4030002 8000CDE4 B4030002 8000CDE4 B4030002 8000CDE4 B4030002 8000CDE4 B4030002 8000CDE4 B4030002 8000CDE4 B4030002 sthu [r3 + 0x0002], r0
8000CDE8 4200FFFC 8000CDE8 4200FFFC 8000CDE8 4200FFFC 8000CDE8 4200FFFC 8000CDE8 4200FFFC 8000CDE8 4200FFFC 8000CDE8 4200FFFC 8000CDE8 4200FFFC bdnz -0x00000004 /* 8000CDE4 */
8000CDEC 48328F74 8000CDEC 48329FF0 8000CDEC 4832B50C 8000CDEC 4832B2C0 8000CDEC 48329974 8000CDEC 483299B8 8000CDEC 4832B494 8000CDEC 4832A8D8 b +0x00329974 /* 80336760 */
80246BA8 A01F004A 80247568 A01F004A 802484A8 A01F004A 8024825C A01F004A 802473F4 A01F004A 802473F4 A01F004A 80248520 A01F004A 80247D68 A01F004A lhz r0, [r31 + 0x004A]
80246BAC 54030637 8024756C 54030637 802484AC 54030637 80248260 54030637 802473F8 54030637 802473F8 54030637 80248524 54030637 80247D6C 54030637 rlwinm. r3, r0, 0, 24, 27
8024BD10 4BDC1090 8024C75C 4BDC0644 8024D69C 4BDBF704 8024D450 4BDBF950 8024C598 4BDC0808 8024C598 4BDC0808 8024D714 4BDBF68C 8024CF5C 4BDBFE44 b -0x0023F7F8 /* 8000CDA0 */
802764B0 4BD968DC 802771EC 4BD95BA0 80278258 4BD94B34 8027800C 4BD94D80 80276D44 4BD96048 80276D88 4BD96004 802781C0 4BD94BCC 80277A08 4BD95384 b -0x00269FB8 /* 8000CD8C */
80276510 A01F004A 8027724C A01F004A 802782B8 A01F004A 8027806C A01F004A 80276DA4 A01F004A 80276DE8 A01F004A 80278220 A01F004A 80277A68 A01F004A lhz r0, [r31 + 0x004A]
80276514 54030637 80277250 54030637 802782BC 54030637 80278070 54030637 80276DA8 54030637 80276DEC 54030637 80278224 54030637 80277A6C 54030637 rlwinm. r3, r0, 0, 24, 27
80335D5C 4BCD7074 80336DD8 4BCD5FF8 803382F4 4BCD4ADC 803380A8 4BCD4D28 8033675C 4BCD6674 803367A0 4BCD6630 8033827C 4BCD4B54 803376C0 4BCD5710 b -0x0032998C /* 8000CDD0 */
"Palette Patch" Part 3 (this part adds PBs to the customize list)
Palette
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000CA40 28030000 8000CA40 28030000 8000CA40 28030000 8000CA40 28030000 8000CA40 28030000 8000CA40 28030000 8000CA40 28030000 8000CA40 28030000 cmplwi r3, 0
8000CA44 40820008 8000CA44 40820008 8000CA44 40820008 8000CA44 40820008 8000CA44 40820008 8000CA44 40820008 8000CA44 40820008 8000CA44 40820008 bne +0x00000008 /* 8000CA4C */
8000CA48 3BE00000 8000CA48 3BE00000 8000CA48 3BE00000 8000CA48 3BE00000 8000CA48 3BE00000 8000CA48 3BE00000 8000CA48 3BE00000 8000CA48 3BE00000 li r31, 0x0000
8000CA4C 7C00F800 8000CA4C 7C00F800 8000CA4C 7C00F800 8000CA4C 7C00F800 8000CA4C 7C00F800 8000CA4C 7C00F800 8000CA4C 7C00F800 8000CA4C 7C00F800 cmp r0, r31
8000CA50 481CB3AC 8000CA50 481CB8B4 8000CA50 481CBA70 8000CA50 481CB980 8000CA50 481CB7E4 8000CA50 481CB7E4 8000CA50 481CB9E4 8000CA50 481CBEA0 b +0x001CB7E4 /* 801D8234 */
8000CA54 38000003 8000CA54 38000003 8000CA54 38000003 8000CA54 38000003 8000CA54 38000003 8000CA54 38000003 8000CA54 38000003 8000CA54 38000003 li r0, 0x0003
8000CA58 7C0903A6 8000CA58 7C0903A6 8000CA58 7C0903A6 8000CA58 7C0903A6 8000CA58 7C0903A6 8000CA58 7C0903A6 8000CA58 7C0903A6 8000CA58 7C0903A6 mtctr r0
8000CA5C 63C40500 8000CA5C 63C40500 8000CA5C 63C40500 8000CA5C 63C40500 8000CA5C 63C40500 8000CA5C 63C40500 8000CA5C 63C40500 8000CA5C 63C40500 ori r4, r30, 0x0500
8000CA60 38BF0538 8000CA60 38BF0538 8000CA60 38BF0538 8000CA60 38BF0538 8000CA60 38BF0538 8000CA60 38BF0538 8000CA60 38BF0538 8000CA60 38BF0538 addi r5, r31, 0x0538
8000CA64 A4050004 8000CA64 A4050004 8000CA64 A4050004 8000CA64 A4050004 8000CA64 A4050004 8000CA64 A4050004 8000CA64 A4050004 8000CA64 A4050004 lhzu r0, [r5 + 0x0004]
8000CA68 7C040000 8000CA68 7C040000 8000CA68 7C040000 8000CA68 7C040000 8000CA68 7C040000 8000CA68 7C040000 8000CA68 7C040000 8000CA68 7C040000 cmp r4, r0
8000CA6C 4182000C 8000CA6C 4182000C 8000CA6C 4182000C 8000CA6C 4182000C 8000CA6C 4182000C 8000CA6C 4182000C 8000CA6C 4182000C 8000CA6C 4182000C beq +0x0000000C /* 8000CA78 */
8000CA70 4200FFF4 8000CA70 4200FFF4 8000CA70 4200FFF4 8000CA70 4200FFF4 8000CA70 4200FFF4 8000CA70 4200FFF4 8000CA70 4200FFF4 8000CA70 4200FFF4 bdnz -0x0000000C /* 8000CA64 */
8000CA74 38600000 8000CA74 38600000 8000CA74 38600000 8000CA74 38600000 8000CA74 38600000 8000CA74 38600000 8000CA74 38600000 8000CA74 38600000 li r3, 0x0000
8000CA78 2C030000 8000CA78 2C030000 8000CA78 2C030000 8000CA78 2C030000 8000CA78 2C030000 8000CA78 2C030000 8000CA78 2C030000 8000CA78 2C030000 cmpwi r3, 0
8000CA7C 481BF1A4 8000CA7C 481BF690 8000CA7C 481C0B84 8000CA7C 481BF75C 8000CA7C 481BF5C0 8000CA7C 481BF5C0 8000CA7C 481BF7C0 8000CA7C 481BFC7C b +0x001BF5C0 /* 801CC03C */
801CBC1C 4BE40E38 801CC108 4BE4094C 801CD5FC 4BE3F458 801CC1D4 4BE40880 801CC038 4BE40A1C 801CC038 4BE40A1C 801CC238 4BE4081C 801CC6F4 4BE40360 b -0x001BF5E4 /* 8000CA54 */
801D7DF8 4BE34C48 801D8300 4BE34740 801D84BC 4BE34584 801D83CC 4BE34674 801D8230 4BE34810 801D8230 4BE34810 801D8430 4BE34610 801D88EC 4BE34154 b -0x001CB7F0 /* 8000CA40 */
80275E64 3803BAA0 80276BA0 3803BAA0 80277C0C 3803BAA0 802779C0 3803BAA0 802766F8 3803BAA0 8027673C 3803BAA0 80277B74 3803BAA0 802773BC 3803BAA0 subi r0, r3, 0x4560
8044ADAC 0004000D 8044DBCC 0004000D 8044FC34 0004000D 8044F9FC 0004000D 8044BB3C 0004000D 8044BFBC 0004000D 8044F8B4 0004000D 8044F6B4 0004000D .invalid
8044ADB0 0004000E 8044DBD0 0004000E 8044FC38 0004000E 8044FA00 0004000E 8044BB40 0004000E 8044BFC0 0004000E 8044F8B8 0004000E 8044F6B8 0004000E .invalid
8044ADB4 00000000 8044DBD4 00000000 8044FC3C 00000000 8044FA04 00000000 8044BB44 00000000 8044BFC4 00000000 8044F8BC 00000000 8044F6BC 00000000 .invalid
8044ADB8 0004000F 8044DBD8 0004000F 8044FC40 0004000F 8044FA08 0004000F 8044BB48 0004000F 8044BFC8 0004000F 8044F8C0 0004000F 8044F6C0 0004000F .invalid
8044ADBC 00040010 8044DBDC 00040010 8044FC44 00040010 8044FA0C 00040010 8044BB4C 00040010 8044BFCC 00040010 8044F8C4 00040010 8044F6C4 00040010 .invalid
8044ADC0 00000000 8044DBE0 00000000 8044FC48 00000000 8044FA10 00000000 8044BB50 00000000 8044BFD0 00000000 8044F8C8 00000000 8044F6C8 00000000 .invalid
8044ADDC 00080000 8044DBFC 00080000 8044FC64 00080000 8044FA2C 00080000 8044BB6C 00080000 8044BFEC 00080000 8044F8E4 00080000 8044F6E4 00080000 .invalid
8044ADC4 00050000 8044DBE4 00050000 8044FC4C 00050000 8044FA14 00050000 8044BB54 00050000 8044BFD4 00050000 8044F8CC 00050000 8044F6CC 00050000 .invalid
8044ADC8 00050001 8044DBE8 00050001 8044FC50 00050001 8044FA18 00050001 8044BB58 00050001 8044BFD8 00050001 8044F8D0 00050001 8044F6D0 00050001 .invalid
8044ADCC 00050002 8044DBEC 00050002 8044FC54 00050002 8044FA1C 00050002 8044BB5C 00050002 8044BFDC 00050002 8044F8D4 00050002 8044F6D4 00050002 .invalid
8044ADD0 00050003 8044DBF0 00050003 8044FC58 00050003 8044FA20 00050003 8044BB60 00050003 8044BFE0 00050003 8044F8D8 00050003 8044F6D8 00050003 .invalid
8044ADD4 00050004 8044DBF4 00050004 8044FC5C 00050004 8044FA24 00050004 8044BB64 00050004 8044BFE4 00050004 8044F8DC 00050004 8044F6DC 00050004 .invalid
8044ADD8 00050005 8044DBF8 00050005 8044FC60 00050005 8044FA28 00050005 8044BB68 00050005 8044BFE8 00050005 8044F8E0 00050005 8044F6E0 00050005 .invalid
"Palette Patch" Part 4 (this disables PBs from overtaking the back palette)
Palette
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
801B55F8 38600000 801B5A4C 38600000 801B7BB8 38600000 801B5B18 38600000 801B59E4 38600000 801B59E4 38600000 801B5B7C 38600000 801B6038 38600000 li r3, 0x0000
"Palette Patch" Part 5 (saves palettes to temp slot 3)
Palette
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000B958 906DB93C 8000B958 906DB944 8000B958 906DB964 8000B958 906DB964 8000B958 906DB954 8000B958 906DB954 8000B958 906DB974 8000B958 906DB9B4 stw [r13 - 0x46AC], r3
8000B95C 1C63003C 8000B95C 1C63003C 8000B95C 1C63003C 8000B95C 1C63003C 8000B95C 1C63003C 8000B95C 1C63003C 8000B95C 1C63003C 8000B95C 1C63003C mulli r3, r3, 60
8000B960 808DB920 8000B960 808DB928 8000B960 808DB948 8000B960 808DB948 8000B960 808DB938 8000B960 808DB938 8000B960 808DB958 8000B960 808DB998 lwz r4, [r13 - 0x46C8]
8000B964 3C840001 8000B964 3C840001 8000B964 3C840001 8000B964 3C840001 8000B964 3C840001 8000B964 3C840001 8000B964 3C840001 8000B964 3C840001 addis r4, r4, 0x0001
8000B968 38840B80 8000B968 38840B80 8000B968 38840B80 8000B968 38840B80 8000B968 38840B80 8000B968 38840B80 8000B968 38840B80 8000B968 38840B80 addi r4, r4, 0x0B80
8000B96C 7C841A14 8000B96C 7C841A14 8000B96C 7C841A14 8000B96C 7C841A14 8000B96C 7C841A14 8000B96C 7C841A14 8000B96C 7C841A14 8000B96C 7C841A14 add r4, r4, r3
8000B970 3C608000 8000B970 3C608000 8000B970 3C608000 8000B970 3C608000 8000B970 3C608000 8000B970 3C608000 8000B970 3C608000 8000B970 3C608000 lis r3, 0x8000
8000B974 6063CF40 8000B974 6063CF40 8000B974 6063CF40 8000B974 6063CF40 8000B974 6063CF40 8000B974 6063CF40 8000B974 6063CF40 8000B974 6063CF40 ori r3, r3, 0xCF40
8000B978 38A0003C 8000B978 38A0003C 8000B978 38A0003C 8000B978 38A0003C 8000B978 38A0003C 8000B978 38A0003C 8000B978 38A0003C 8000B978 38A0003C li r5, 0x003C
8000B97C 48002AA1 8000B97C 48002AA1 8000B97C 48002AA1 8000B97C 48002AA1 8000B97C 48002AA1 8000B97C 48002AA1 8000B97C 48002AA1 8000B97C 48002AA1 bl +0x00002AA0 /* 8000E41C */
8000B980 481F02F8 8000B980 481F0A04 8000B980 481F18EC 8000B980 481F0F70 8000B980 481F095C 8000B980 481F095C 8000B980 481F11DC 8000B980 481F10D8 b +0x001F095C /* 801FC2DC */
8000B984 806DB93C 8000B984 806DB944 8000B984 806DB964 8000B984 806DB964 8000B984 806DB954 8000B984 806DB954 8000B984 806DB974 8000B984 806DB9B4 lwz r3, [r13 - 0x46AC]
8000B988 1C63003C 8000B988 1C63003C 8000B988 1C63003C 8000B988 1C63003C 8000B988 1C63003C 8000B988 1C63003C 8000B988 1C63003C 8000B988 1C63003C mulli r3, r3, 60
8000B98C 808DB920 8000B98C 808DB928 8000B98C 808DB948 8000B98C 808DB948 8000B98C 808DB938 8000B98C 808DB938 8000B98C 808DB958 8000B98C 808DB998 lwz r4, [r13 - 0x46C8]
8000B990 3C840001 8000B990 3C840001 8000B990 3C840001 8000B990 3C840001 8000B990 3C840001 8000B990 3C840001 8000B990 3C840001 8000B990 3C840001 addis r4, r4, 0x0001
8000B994 38840B80 8000B994 38840B80 8000B994 38840B80 8000B994 38840B80 8000B994 38840B80 8000B994 38840B80 8000B994 38840B80 8000B994 38840B80 addi r4, r4, 0x0B80
8000B998 7C641A14 8000B998 7C641A14 8000B998 7C641A14 8000B998 7C641A14 8000B998 7C641A14 8000B998 7C641A14 8000B998 7C641A14 8000B998 7C641A14 add r3, r4, r3
8000B99C 3C808000 8000B99C 3C808000 8000B99C 3C808000 8000B99C 3C808000 8000B99C 3C808000 8000B99C 3C808000 8000B99C 3C808000 8000B99C 3C808000 lis r4, 0x8000
8000B9A0 6084CF40 8000B9A0 6084CF40 8000B9A0 6084CF40 8000B9A0 6084CF40 8000B9A0 6084CF40 8000B9A0 6084CF40 8000B9A0 6084CF40 8000B9A0 6084CF40 ori r4, r4, 0xCF40
8000B9A4 38A0003C 8000B9A4 38A0003C 8000B9A4 38A0003C 8000B9A4 38A0003C 8000B9A4 38A0003C 8000B9A4 38A0003C 8000B9A4 38A0003C 8000B9A4 38A0003C li r5, 0x003C
8000B9A8 48002A75 8000B9A8 48002A75 8000B9A8 48002A75 8000B9A8 48002A75 8000B9A8 48002A75 8000B9A8 48002A75 8000B9A8 48002A75 8000B9A8 48002A75 bl +0x00002A74 /* 8000E41C */
8000B9AC 806DB920 8000B9AC 806DB928 8000B9AC 806DB948 8000B9AC 806DB948 8000B9AC 806DB938 8000B9AC 806DB938 8000B9AC 806DB958 8000B9AC 806DB998 lwz r3, [r13 - 0x46C8]
8000B9B0 481F3970 8000B9B0 481F41E4 8000B9B0 481F51E0 8000B9B0 481F47B0 8000B9B0 481F416C 8000B9B0 481F416C 8000B9B0 481F4AE4 8000B9B0 481F4A50 b +0x001F416C /* 801FFB1C */
8000B9B4 806DB93C 8000B9B4 806DB944 8000B9B4 806DB964 8000B9B4 806DB964 8000B9B4 806DB954 8000B9B4 806DB954 8000B9B4 806DB974 8000B9B4 806DB9B4 lwz r3, [r13 - 0x46AC]
8000B9B8 1C63003C 8000B9B8 1C63003C 8000B9B8 1C63003C 8000B9B8 1C63003C 8000B9B8 1C63003C 8000B9B8 1C63003C 8000B9B8 1C63003C 8000B9B8 1C63003C mulli r3, r3, 60
8000B9BC 808DB920 8000B9BC 808DB928 8000B9BC 808DB948 8000B9BC 808DB948 8000B9BC 808DB938 8000B9BC 808DB938 8000B9BC 808DB958 8000B9BC 808DB998 lwz r4, [r13 - 0x46C8]
8000B9C0 3C840001 8000B9C0 3C840001 8000B9C0 3C840001 8000B9C0 3C840001 8000B9C0 3C840001 8000B9C0 3C840001 8000B9C0 3C840001 8000B9C0 3C840001 addis r4, r4, 0x0001
8000B9C4 38840B80 8000B9C4 38840B80 8000B9C4 38840B80 8000B9C4 38840B80 8000B9C4 38840B80 8000B9C4 38840B80 8000B9C4 38840B80 8000B9C4 38840B80 addi r4, r4, 0x0B80
8000B9C8 7C641A14 8000B9C8 7C641A14 8000B9C8 7C641A14 8000B9C8 7C641A14 8000B9C8 7C641A14 8000B9C8 7C641A14 8000B9C8 7C641A14 8000B9C8 7C641A14 add r3, r4, r3
8000B9CC 38800000 8000B9CC 38800000 8000B9CC 38800000 8000B9CC 38800000 8000B9CC 38800000 8000B9CC 38800000 8000B9CC 38800000 8000B9CC 38800000 li r4, 0x0000
8000B9D0 38A0003C 8000B9D0 38A0003C 8000B9D0 38A0003C 8000B9D0 38A0003C 8000B9D0 38A0003C 8000B9D0 38A0003C 8000B9D0 38A0003C 8000B9D0 38A0003C li r5, 0x003C
8000B9D4 48002961 8000B9D4 48002961 8000B9D4 48002961 8000B9D4 48002961 8000B9D4 48002961 8000B9D4 48002961 8000B9D4 48002961 8000B9D4 48002961 bl +0x00002960 /* 8000E334 */
8000B9D8 48003F71 8000B9D8 48003F75 8000B9D8 48003F75 8000B9D8 48003F25 8000B9D8 48003F71 8000B9D8 48003F71 8000B9D8 48003F25 8000B9D8 48003F99 bl +0x00003F70 /* 8000F948 */
8000B9DC 481F2E5C 8000B9DC 481F36D0 8000B9DC 481F4668 8000B9DC 481F3C6C 8000B9DC 481F3658 8000B9DC 481F3658 8000B9DC 481F3FA0 8000B9DC 481F3F3C b +0x001F3658 /* 801FF034 */
801FBC74 4BE0FCE4 801FC380 4BE0F5D8 801FD268 4BE0E6F0 801FC8EC 4BE0F06C 801FC2D8 4BE0F680 801FC2D8 4BE0F680 801FCB58 4BE0EE00 801FCA54 4BE0EF04 b -0x001F0980 /* 8000B958 */
801FE834 4BE0D180 801FF0A8 4BE0C90C 80200040 4BE0B974 801FF644 4BE0C370 801FF030 4BE0C984 801FF030 4BE0C984 801FF978 4BE0C03C 801FF914 4BE0C0A0 b -0x001F367C /* 8000B9B4 */
801FF31C 4BE0C668 801FFB90 4BE0BDF4 80200B8C 4BE0ADF8 8020015C 4BE0B828 801FFB18 4BE0BE6C 801FFB18 4BE0BE6C 80200490 4BE0B4F4 802003FC 4BE0B588 b -0x001F4194 /* 8000B984 */
8046CECC FFFFFFFF 8046FCEC FFFFFFFF 80471E4C FFFFFFFF 80471C14 FFFFFFFF 8046DC5C FFFFFFFF 8046E0DC FFFFFFFF 80471ACC FFFFFFFF 80471804 FFFFFFFF fnmadd. f31, f31, f31, f31
Decoction Patch (makes the Decoction item wipe non-HP/TP materials)
Decoction
*** name=Decoction
*** desc=Make the Decoction\nitem reset your\nmaterial usage
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80350740 880300EE 80351B44 880300EE 803530A0 880300EE 80352E54 880300EE 803515F4 880300EE 80351638 880300EE 80353220 880300EE 80352614 880300EE lbz r0, [r3 + 0x00EE]
80350744 2800000B 80351B48 2800000B 803530A4 2800000B 80352E58 2800000B 803515F8 2800000B 8035163C 2800000B 80353224 2800000B 80352618 2800000B cmplwi r0, 11
80350748 40820144 80351B4C 40820144 803530A8 40820144 80352E5C 40820144 803515FC 40820144 80351640 40820144 80353228 40820144 8035261C 40820144 bne +0x00000144 /* 80351740 */
8035074C 83E300F0 80351B50 83E300F0 803530AC 83E300F0 80352E60 83E300F0 80351600 83E300F0 80351644 83E300F0 8035322C 83E300F0 80352620 83E300F0 lwz r31, [r3 + 0x00F0]
80350750 38000000 80351B54 38000000 803530B0 38000000 80352E64 38000000 80351604 38000000 80351648 38000000 80353230 38000000 80352624 38000000 li r0, 0x0000
80350754 60000000 80351B58 60000000 803530B4 60000000 80352E68 60000000 80351608 60000000 8035164C 60000000 80353234 60000000 80352628 60000000 nop
80350758 38800374 80351B5C 38800374 803530B8 38800374 80352E6C 38800374 8035160C 38800374 80351650 38800374 80353238 38800374 8035262C 38800374 li r4, 0x0374
8035075C 38A00D38 80351B60 38A00D38 803530BC 38A00D38 80352E70 38A00D38 80351610 38A00D38 80351654 38A00D38 8035323C 38A00D38 80352630 38A00D38 li r5, 0x0D38
80350760 48000059 80351B64 48000059 803530C0 48000059 80352E74 48000059 80351614 48000059 80351658 48000059 80353240 48000059 80352634 48000059 bl +0x00000058 /* 8035166C */
80350764 38A00D3A 80351B68 38A00D3A 803530C4 38A00D3A 80352E78 38A00D3A 80351618 38A00D3A 8035165C 38A00D3A 80353244 38A00D3A 80352638 38A00D3A li r5, 0x0D3A
80350768 48000051 80351B6C 48000051 803530C8 48000051 80352E7C 48000051 8035161C 48000051 80351660 48000051 80353248 48000051 8035263C 48000051 bl +0x00000050 /* 8035166C */
8035076C 38A00D3C 80351B70 38A00D3C 803530CC 38A00D3C 80352E80 38A00D3C 80351620 38A00D3C 80351664 38A00D3C 8035324C 38A00D3C 80352640 38A00D3C li r5, 0x0D3C
80350770 48000049 80351B74 48000049 803530D0 48000049 80352E84 48000049 80351624 48000049 80351668 48000049 80353250 48000049 80352644 48000049 bl +0x00000048 /* 8035166C */
80350774 38A00D40 80351B78 38A00D40 803530D4 38A00D40 80352E88 38A00D40 80351628 38A00D40 8035166C 38A00D40 80353254 38A00D40 80352648 38A00D40 li r5, 0x0D40
80350778 48000041 80351B7C 48000041 803530D8 48000041 80352E8C 48000041 8035162C 48000041 80351670 48000041 80353258 48000041 8035264C 48000041 bl +0x00000040 /* 8035166C */
8035077C 38A00D44 80351B80 38A00D44 803530DC 38A00D44 80352E90 38A00D44 80351630 38A00D44 80351674 38A00D44 8035325C 38A00D44 80352650 38A00D44 li r5, 0x0D44
80350780 48000039 80351B84 48000039 803530E0 48000039 80352E94 48000039 80351634 48000039 80351678 48000039 80353260 48000039 80352654 48000039 bl +0x00000038 /* 8035166C */
80350784 7FE3FB78 80351B88 7FE3FB78 803530E4 7FE3FB78 80352E98 7FE3FB78 80351638 7FE3FB78 8035167C 7FE3FB78 80353264 7FE3FB78 80352658 7FE3FB78 mr r3, r31
80350788 4BE656A1 80351B8C 4BE646F1 803530E8 4BE654CD 80352E9C 4BE634AD 8035163C 4BE64BD9 80351680 4BE64B95 80353268 4BE63145 8035265C 4BE6420D bl -0x0019B428 /* 801B6214 */
8035078C A01F032C 80351B90 A01F032C 803530EC A01F032C 80352EA0 A01F032C 80351640 A01F032C 80351684 A01F032C 8035326C A01F032C 80352660 A01F032C lhz r0, [r31 + 0x032C]
80350790 A07F02B8 80351B94 A07F02B8 803530F0 A07F02B8 80352EA4 A07F02B8 80351644 A07F02B8 80351688 A07F02B8 80353270 A07F02B8 80352664 A07F02B8 lhz r3, [r31 + 0x02B8]
80350794 7C001840 80351B98 7C001840 803530F4 7C001840 80352EA8 7C001840 80351648 7C001840 8035168C 7C001840 80353274 7C001840 80352668 7C001840 cmpl r0, r3
80350798 40810008 80351B9C 40810008 803530F8 40810008 80352EAC 40810008 8035164C 40810008 80351690 40810008 80353278 40810008 8035266C 40810008 ble +0x00000008 /* 80351654 */
8035079C B07F032C 80351BA0 B07F032C 803530FC B07F032C 80352EB0 B07F032C 80351650 B07F032C 80351694 B07F032C 8035327C B07F032C 80352670 B07F032C sth [r31 + 0x032C], r3
803507A0 A01F032E 80351BA4 A01F032E 80353100 A01F032E 80352EB4 A01F032E 80351654 A01F032E 80351698 A01F032E 80353280 A01F032E 80352674 A01F032E lhz r0, [r31 + 0x032E]
803507A4 A07F02BA 80351BA8 A07F02BA 80353104 A07F02BA 80352EB8 A07F02BA 80351658 A07F02BA 8035169C A07F02BA 80353284 A07F02BA 80352678 A07F02BA lhz r3, [r31 + 0x02BA]
803507A8 7C001840 80351BAC 7C001840 80353108 7C001840 80352EBC 7C001840 8035165C 7C001840 803516A0 7C001840 80353288 7C001840 8035267C 7C001840 cmpl r0, r3
803507AC 40810008 80351BB0 40810008 8035310C 40810008 80352EC0 40810008 80351660 40810008 803516A4 40810008 8035328C 40810008 80352680 40810008 ble +0x00000008 /* 80351668 */
803507B0 B07F032E 80351BB4 B07F032E 80353110 B07F032E 80352EC4 B07F032E 80351664 B07F032E 803516A8 B07F032E 80353290 B07F032E 80352684 B07F032E sth [r31 + 0x032E], r3
803507B4 480000D8 80351BB8 480000D8 80353114 480000D8 80352EC8 480000D8 80351668 480000D8 803516AC 480000D8 80353294 480000D8 80352688 480000D8 b +0x000000D8 /* 80351740 */
803507B8 7CDF20AE 80351BBC 7CDF20AE 80353118 7CDF20AE 80352ECC 7CDF20AE 8035166C 7CDF20AE 803516B0 7CDF20AE 80353298 7CDF20AE 8035268C 7CDF20AE lbzx r6, [r31 + r4]
803507BC 7CFF2A2E 80351BC0 7CFF2A2E 8035311C 7CFF2A2E 80352ED0 7CFF2A2E 80351670 7CFF2A2E 803516B4 7CFF2A2E 8035329C 7CFF2A2E 80352690 7CFF2A2E lhzx r7, [r31 + r5]
803507C0 54C6083C 80351BC4 54C6083C 80353120 54C6083C 80352ED4 54C6083C 80351674 54C6083C 803516B8 54C6083C 803532A0 54C6083C 80352694 54C6083C rlwinm r6, r6, 1, 0, 30
803507C4 7CE63850 80351BC8 7CE63850 80353124 7CE63850 80352ED8 7CE63850 80351678 7CE63850 803516BC 7CE63850 803532A4 7CE63850 80352698 7CE63850 subf r7, r6, r7
803507C8 7CFF2B2E 80351BCC 7CFF2B2E 80353128 7CFF2B2E 80352EDC 7CFF2B2E 8035167C 7CFF2B2E 803516C0 7CFF2B2E 803532A8 7CFF2B2E 8035269C 7CFF2B2E sthx [r31 + r5], r7
803507CC 7C1F21AE 80351BD0 7C1F21AE 8035312C 7C1F21AE 80352EE0 7C1F21AE 80351680 7C1F21AE 803516C4 7C1F21AE 803532AC 7C1F21AE 803526A0 7C1F21AE stbx [r31 + r4], r0
803507D0 38840001 80351BD4 38840001 80353130 38840001 80352EE4 38840001 80351684 38840001 803516C8 38840001 803532B0 38840001 803526A4 38840001 addi r4, r4, 0x0001
803507D4 4E800020 80351BD8 4E800020 80353134 4E800020 80352EE8 4E800020 80351688 4E800020 803516CC 4E800020 803532B4 4E800020 803526A8 4E800020 blr
"Movement Patch" Part 1 (allows players to move when near objects)
Movement
*** name=Movement
*** desc=Allow backsteps and\nmovement when\nenemies are\nnearby
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
801CF69C 48000014 801CFBB0 48000014 801D1CEC 48000014 801CFC7C 48000014 801CFAE0 48000014 801CFAE0 48000014 801CFCE0 48000014 801D019C 48000014 b +0x00000014 /* 801CFAF4 */
"Movement Patch" Part 2 (restores backstep functionality on certain movements)
Movement
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
801CE7AC 4800000C 801CECC0 4800000C 801D0D10 4800000C 801CED8C 4800000C 801CEBF0 4800000C 801CEBF0 4800000C 801CEDF0 4800000C 801CF2AC 4800000C b +0x0000000C /* 801CEBFC */
Olga Flow Barta Bug Fix (makes barta work on ice weakness Olga Flow instead of damaging player)
BugFixes
*** name=Bug fixes
*** desc=Fix many minor\ngameplay, sound,\nand graphical bugs
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000D980 807C0000 8000D980 807C0000 8000D980 807C0000 8000D980 807C0000 8000D980 807C0000 8000D980 807C0000 8000D980 807C0000 8000D980 807C0000 lwz r3, [r28]
8000D984 2C030013 8000D984 2C030013 8000D984 2C030013 8000D984 2C030013 8000D984 2C030013 8000D984 2C030013 8000D984 2C030013 8000D984 2C030013 cmpwi r3, 19
8000D988 40820008 8000D988 40820008 8000D988 40820008 8000D988 40820008 8000D988 40820008 8000D988 40820008 8000D988 40820008 8000D988 40820008 bne +0x00000008 /* 8000D990 */
8000D98C 38600002 8000D98C 38600002 8000D98C 38600002 8000D98C 38600002 8000D98C 38600002 8000D98C 38600002 8000D98C 38600002 8000D98C 38600002 li r3, 0x0002
8000D990 482ADB24 8000D990 482AEA54 8000D990 482AFB9C 8000D990 482AF934 8000D990 482AE568 8000D990 482AE5AC 8000D990 482AFAE8 8000D990 482AF27C b +0x002AE568 /* 802BBEF8 */
802BB4B0 4BD524D0 802BC3E0 4BD515A0 802BD528 4BD50458 802BD2C0 4BD506C0 802BBEF4 4BD51A8C 802BBF38 4BD51A48 802BD474 4BD5050C 802BCC08 4BD50D78 b -0x002AE574 /* 8000D980 */
Morfos Frozen Player Bug Fix (stops Morfos Laser multi-hitting when player is frozen)
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000D9A0 C042FC78 8000D9A0 C042FC80 8000D9A0 C042FC80 8000D9A0 C042FC80 8000D9A0 C042FC88 8000D9A0 C042FC88 8000D9A0 C042FC88 8000D9A0 C042FC88 lfs f2, [r2 - 0x0378]
8000D9A4 807E0030 8000D9A4 807E0030 8000D9A4 807E0030 8000D9A4 807E0030 8000D9A4 807E0030 8000D9A4 807E0030 8000D9A4 807E0030 8000D9A4 807E0030 lwz r3, [r30 + 0x0030]
8000D9A8 70630020 8000D9A8 70630020 8000D9A8 70630020 8000D9A8 70630020 8000D9A8 70630020 8000D9A8 70630020 8000D9A8 70630020 8000D9A8 70630020 andi. r3, r3, 0x0020
8000D9AC 41820008 8000D9AC 41820008 8000D9AC 41820008 8000D9AC 41820008 8000D9AC 41820008 8000D9AC 41820008 8000D9AC 41820008 8000D9AC 41820008 beq +0x00000008 /* 8000D9B4 */
8000D9B0 C042FC90 8000D9B0 C042FC98 8000D9B0 C042FC98 8000D9B0 C042FC98 8000D9B0 C042FCA0 8000D9B0 C042FCA0 8000D9B0 C042FCA0 8000D9B0 C042FCA0 lfs f2, [r2 - 0x0360]
8000D9B4 483276B0 8000D9B4 4832871C 8000D9B4 48329C38 8000D9B4 483299EC 8000D9B4 483280A0 8000D9B4 483280E4 8000D9B4 48329BC0 8000D9B4 48329004 b +0x003280A0 /* 80335A54 */
80335060 4BCD8940 803360CC 4BCD78D4 803375E8 4BCD63B8 8033739C 4BCD6604 80335A50 4BCD7F50 80335A94 4BCD7F0C 80337570 4BCD6430 803369B4 4BCD6FEC b -0x003280B0 /* 8000D9A0 */
Tiny Grass Assassins Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
800BC750 48000010 800BCA58 48000010 800BCBD0 48000010 800BCB80 48000010 800BC9E8 48000010 800BC9E8 48000010 800BCB90 48000010 800BCB58 48000010 b +0x00000010 /* 800BC9F8 */
Bulclaw HP Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80091528 4800024D 80091814 4800024D 8009198C 4800024D 8009193C 4800024D 800917B4 4800024D 800917B4 4800024D 8009194C 4800024D 80091914 4800024D bl +0x0000024C /* 80091A00 */
8009152C B3C3032C 80091818 B3C3032C 80091990 B3C3032C 80091940 B3C3032C 800917B8 B3C3032C 800917B8 B3C3032C 80091950 B3C3032C 80091918 B3C3032C sth [r3 + 0x032C], r30
Control Tower: Delbiter Death SFX Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80301600 48000020 803025CC 48000020 80303A1C 48000020 803037D0 48000020 80301F58 48000020 80301F9C 48000020 8030398C 48000020 80302D64 48000020 b +0x00000020 /* 80301F78 */
80301604 3863A830 803025D0 3863A830 80303A20 3863A830 803037D4 3863A830 80301F5C 3863A830 80301FA0 3863A830 80303990 3863A830 80302D68 3863A830 subi r3, r3, 0x57D0
80301608 800DB98C 803025D4 800DB994 80303A24 800DB9B4 803037D8 800DB9B4 80301F60 800DB9A4 80301FA4 800DB9A4 80303994 800DB9C4 80302D6C 800DBA04 lwz r0, [r13 - 0x465C]
8030160C 2C000023 803025D8 2C000023 80303A28 2C000023 803037DC 2C000023 80301F64 2C000023 80301FA8 2C000023 80303998 2C000023 80302D70 2C000023 cmpwi r0, 35
80301610 40820008 803025DC 40820008 80303A2C 40820008 803037E0 40820008 80301F68 40820008 80301FAC 40820008 8030399C 40820008 80302D74 40820008 bne +0x00000008 /* 80301F70 */
80301614 3863FB28 803025E0 3863FB28 80303A30 3863FB28 803037E4 3863FB28 80301F6C 3863FB28 80301FB0 3863FB28 803039A0 3863FB28 80302D78 3863FB28 subi r3, r3, 0x04D8
80301618 4800008C 803025E4 4800008C 80303A34 4800008C 803037E8 4800008C 80301F70 4800008C 80301FB4 4800008C 803039A4 4800008C 80302D7C 4800008C b +0x0000008C /* 80301FFC */
803016A0 4BFFFF64 8030266C 4BFFFF64 80303ABC 4BFFFF64 80303870 4BFFFF64 80301FF8 4BFFFF64 8030203C 4BFFFF64 80303A2C 4BFFFF64 80302E04 4BFFFF64 b -0x0000009C /* 80301F5C */
Weapon Attributes Patch (allows attributes to work on minibosses and Olga Flow)
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000C8C0 7000000F 8000C8C0 7000000F 8000C8C0 7000000F 8000C8C0 7000000F 8000C8C0 7000000F 8000C8C0 7000000F 8000C8C0 7000000F 8000C8C0 7000000F andi. r0, r0, 0x000F
8000C8C4 7000004F 8000C8C4 7000004F 8000C8C4 7000004F 8000C8C4 7000004F 8000C8C4 7000004F 8000C8C4 7000004F 8000C8C4 7000004F 8000C8C4 7000004F andi. r0, r0, 0x004F
8000C8C8 2C000004 8000C8C8 2C000004 8000C8C8 2C000004 8000C8C8 2C000004 8000C8C8 2C000004 8000C8C8 2C000004 8000C8C8 2C000004 8000C8C8 2C000004 cmpwi r0, 4
8000C8CC 4E800020 8000C8CC 4E800020 8000C8CC 4E800020 8000C8CC 4E800020 8000C8CC 4E800020 8000C8CC 4E800020 8000C8CC 4E800020 8000C8CC 4E800020 blr
800142DC 4BFF85E5 8001430C 4BFF85B5 800146A4 4BFF821D 800142BC 4BFF8605 800142F4 4BFF85CD 800142F4 4BFF85CD 800142BC 4BFF8605 80014334 4BFF858D bl -0x00007A34 /* 8000C8C0 */
80015D04 4BFF6BC1 80015D34 4BFF6B91 80016174 4BFF6751 80015CE4 4BFF6BE1 80015D1C 4BFF6BA9 80015D1C 4BFF6BA9 80015CE4 4BFF6BE1 80015D5C 4BFF6B69 bl -0x00009458 /* 8000C8C4 */
Ruins Laser Fence SFX Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80166324 3C604005 801666D8 3C604005 80166848 3C604005 8016679C 3C604005 801666E0 3C604005 801666E0 3C604005 80166800 3C604005 80166CC4 3C604005 lis r3, 0x4005
80166328 4800009C 801666DC 4800009C 8016684C 4800009C 801667A0 4800009C 801666E4 4800009C 801666E4 4800009C 80166804 4800009C 80166CC8 4800009C b +0x0000009C /* 80166780 */
801663C0 4800001C 80166774 4800001C 801668E4 4800001C 80166838 4800001C 8016677C 4800001C 8016677C 4800001C 8016689C 4800001C 80166D60 4800001C b +0x0000001C /* 80166798 */
SFX Cancellation Distance Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
805CB608 46AFC800 805D5C08 46AFC800 805DD0A8 46AFC800 805DCE48 46AFC800 805CBF10 46AFC800 805D2F30 46AFC800 805DC750 46AFC800 805D8990 46AFC800 .invalid sc
805CB8A8 43480000 805D5EA8 43480000 805DD348 43480000 805DD0E8 43480000 805CC1B0 43480000 805D31D0 43480000 805DC9F0 43480000 805D8C30 43480000 bc 26, 8, +0x00000000 /* 805CC1B0 */
Foie SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8022E2A8 3880FF00 8022EC44 3880FF00 8022FB30 3880FF00 8022F8E4 3880FF00 8022EB64 3880FF00 8022EB64 3880FF00 8022FC18 3880FF00 8022F4B0 3880FF00 li r4, 0xFFFFFF00
8022E2D8 3880FE80 8022EC74 3880FE80 8022FB60 3880FE80 8022F914 3880FE80 8022EB94 3880FE80 8022EB94 3880FE80 8022FC48 3880FE80 8022F4E0 3880FE80 li r4, 0xFFFFFE80
8022E308 3880FDB0 8022ECA4 3880FDB0 8022FB90 3880FDB0 8022F944 3880FDB0 8022EBC4 3880FDB0 8022EBC4 3880FDB0 8022FC78 3880FDB0 8022F510 3880FDB0 li r4, 0xFFFFFDB0
Gifoie SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
802300B8 3880FF00 80230A54 3880FF00 80231940 3880FF00 802316F4 3880FF00 80230974 3880FF00 80230974 3880FF00 80231A28 3880FF00 802312C0 3880FF00 li r4, 0xFFFFFF00
802300E8 3880FE80 80230A84 3880FE80 80231970 3880FE80 80231724 3880FE80 802309A4 3880FE80 802309A4 3880FE80 80231A58 3880FE80 802312F0 3880FE80 li r4, 0xFFFFFE80
80230118 3880FDB0 80230AB4 3880FDB0 802319A0 3880FDB0 80231754 3880FDB0 802309D4 3880FDB0 802309D4 3880FDB0 80231A88 3880FDB0 80231320 3880FDB0 li r4, 0xFFFFFDB0
Rafoie SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
802365AC 3880FF00 80236F68 3880FF00 80237E54 3880FF00 80237C08 3880FF00 80236E88 3880FF00 80236E88 3880FF00 80237F3C 3880FF00 802377D4 3880FF00 li r4, 0xFFFFFF00
802365DC 3880FE80 80236F98 3880FE80 80237E84 3880FE80 80237C38 3880FE80 80236EB8 3880FE80 80236EB8 3880FE80 80237F6C 3880FE80 80237804 3880FE80 li r4, 0xFFFFFE80
8023660C 3880FDB0 80236FC8 3880FDB0 80237EB4 3880FDB0 80237C68 3880FDB0 80236EE8 3880FDB0 80236EE8 3880FDB0 80237F9C 3880FDB0 80237834 3880FDB0 li r4, 0xFFFFFDB0
80236FC0 3880FF00 8023797C 3880FF00 80238868 3880FF00 8023861C 3880FF00 8023789C 3880FF00 8023789C 3880FF00 80238950 3880FF00 802381E8 3880FF00 li r4, 0xFFFFFF00
80236FF0 3880FE80 802379AC 3880FE80 80238898 3880FE80 8023864C 3880FE80 802378CC 3880FE80 802378CC 3880FE80 80238980 3880FE80 80238218 3880FE80 li r4, 0xFFFFFE80
80237020 3880FDB0 802379DC 3880FDB0 802388C8 3880FDB0 8023867C 3880FDB0 802378FC 3880FDB0 802378FC 3880FDB0 802389B0 3880FDB0 80238248 3880FDB0 li r4, 0xFFFFFDB0
Barta SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80229B54 3880FF00 8022A4F0 3880FF00 8022B3E0 3880FF00 8022B190 3880FF00 8022A410 3880FF00 8022A410 3880FF00 8022B4C4 3880FF00 8022AD5C 3880FF00 li r4, 0xFFFFFF00
80229B84 3880FE80 8022A520 3880FE80 8022B410 3880FE80 8022B1C0 3880FE80 8022A440 3880FE80 8022A440 3880FE80 8022B4F4 3880FE80 8022AD8C 3880FE80 li r4, 0xFFFFFE80
80229BB4 3880FDB0 8022A550 3880FDB0 8022B440 3880FDB0 8022B1F0 3880FDB0 8022A470 3880FDB0 8022A470 3880FDB0 8022B524 3880FDB0 8022ADBC 3880FDB0 li r4, 0xFFFFFDB0
Gibarta SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8022EAB4 3880FF00 8022F450 3880FF00 80230340 3880FF00 802300F0 3880FF00 8022F370 3880FF00 8022F370 3880FF00 80230424 3880FF00 8022FCBC 3880FF00 li r4, 0xFFFFFF00
8022EAE4 3880FE80 8022F480 3880FE80 80230370 3880FE80 80230120 3880FE80 8022F3A0 3880FE80 8022F3A0 3880FE80 80230454 3880FE80 8022FCEC 3880FE80 li r4, 0xFFFFFE80
8022EB14 3880FDB0 8022F4B0 3880FDB0 802303A0 3880FDB0 80230150 3880FDB0 8022F3D0 3880FDB0 8022F3D0 3880FDB0 80230484 3880FDB0 8022FD1C 3880FDB0 li r4, 0xFFFFFDB0
Rabarta SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80235DD4 3880FF00 80236790 3880FF00 8023767C 3880FF00 80237430 3880FF00 802366B0 3880FF00 802366B0 3880FF00 80237764 3880FF00 80236FFC 3880FF00 li r4, 0xFFFFFF00
80235E10 3880FE80 802367CC 3880FE80 802376B8 3880FE80 8023746C 3880FE80 802366EC 3880FE80 802366EC 3880FE80 802377A0 3880FE80 80237038 3880FE80 li r4, 0xFFFFFE80
80235E4C 3880FDB0 80236808 3880FDB0 802376F4 3880FDB0 802374A8 3880FDB0 80236728 3880FDB0 80236728 3880FDB0 802377DC 3880FDB0 80237074 3880FDB0 li r4, 0xFFFFFDB0
Zonde SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8023B2C8 3880FF00 8023BC84 3880FF00 8023CB70 3880FF00 8023C924 3880FF00 8023BBA4 3880FF00 8023BBA4 3880FF00 8023CC58 3880FF00 8023C4F0 3880FF00 li r4, 0xFFFFFF00
8023B2F8 3880FE80 8023BCB4 3880FE80 8023CBA0 3880FE80 8023C954 3880FE80 8023BBD4 3880FE80 8023BBD4 3880FE80 8023CC88 3880FE80 8023C520 3880FE80 li r4, 0xFFFFFE80
8023B328 3880FDB0 8023BCE4 3880FDB0 8023CBD0 3880FDB0 8023C984 3880FDB0 8023BC04 3880FDB0 8023BC04 3880FDB0 8023CCB8 3880FDB0 8023C550 3880FDB0 li r4, 0xFFFFFDB0
Gizonde SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80230E08 3880FF00 802317C4 3880FF00 802326B0 3880FF00 80232464 3880FF00 802316E4 3880FF00 802316E4 3880FF00 80232798 3880FF00 80232030 3880FF00 li r4, 0xFFFFFF00
80230E38 3880FE80 802317F4 3880FE80 802326E0 3880FE80 80232494 3880FE80 80231714 3880FE80 80231714 3880FE80 802327C8 3880FE80 80232060 3880FE80 li r4, 0xFFFFFE80
80230E68 3880FDB0 80231824 3880FDB0 80232710 3880FDB0 802324C4 3880FDB0 80231744 3880FDB0 80231744 3880FDB0 802327F8 3880FDB0 80232090 3880FDB0 li r4, 0xFFFFFDB0
Razonde SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80237998 3880FF00 80238354 3880FF00 80239240 3880FF00 80238FF4 3880FF00 80238274 3880FF00 80238274 3880FF00 80239328 3880FF00 80238BC0 3880FF00 li r4, 0xFFFFFF00
802379C8 3880FE80 80238384 3880FE80 80239270 3880FE80 80239024 3880FE80 802382A4 3880FE80 802382A4 3880FE80 80239358 3880FE80 80238BF0 3880FE80 li r4, 0xFFFFFE80
802379F8 3880FDB0 802383B4 3880FDB0 802392A0 3880FDB0 80239054 3880FDB0 802382D4 3880FDB0 802382D4 3880FDB0 80239388 3880FDB0 80238C20 3880FDB0 li r4, 0xFFFFFDB0
Grants SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
802316FC 3880FF00 802320B8 3880FF00 80232FA4 3880FF00 80232D58 3880FF00 80231FD8 3880FF00 80231FD8 3880FF00 8023308C 3880FF00 80232924 3880FF00 li r4, 0xFFFFFF00
80231734 3880FE80 802320F0 3880FE80 80232FDC 3880FE80 80232D90 3880FE80 80232010 3880FE80 80232010 3880FE80 802330C4 3880FE80 8023295C 3880FE80 li r4, 0xFFFFFE80
8023176C 3880FDB0 80232128 3880FDB0 80233014 3880FDB0 80232DC8 3880FDB0 80232048 3880FDB0 80232048 3880FDB0 802330FC 3880FDB0 80232994 3880FDB0 li r4, 0xFFFFFDB0
Megid SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
802337A8 3880FF00 80234164 3880FF00 80235050 3880FF00 80234E04 3880FF00 80234084 3880FF00 80234084 3880FF00 80235138 3880FF00 802349D0 3880FF00 li r4, 0xFFFFFF00
802337D8 3880FE80 80234194 3880FE80 80235080 3880FE80 80234E34 3880FE80 802340B4 3880FE80 802340B4 3880FE80 80235168 3880FE80 80234A00 3880FE80 li r4, 0xFFFFFE80
80233808 3880FDB0 802341C4 3880FDB0 802350B0 3880FDB0 80234E64 3880FDB0 802340E4 3880FDB0 802340E4 3880FDB0 80235198 3880FDB0 80234A30 3880FDB0 li r4, 0xFFFFFDB0
Anti SFX Pitch Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80229354 2C000001 80229CF0 2C000001 8022ABDC 2C000001 8022A990 2C000001 80229C10 2C000001 80229C10 2C000001 8022ACC4 2C000001 8022A55C 2C000001 cmpwi r0, 1
Shield DFP/EVP Bug Fix (allows shields to reach true max DFP/EVP values)
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
801185B0 88040016 801187CC 88040016 8011885C 88040016 80118764 88040016 80118854 88040016 80118854 88040016 80118774 88040016 8011894C 88040016 lbz r0, [r4 + 0x0016]
801185BC 88040017 801187D8 88040017 80118868 88040017 80118770 88040017 80118860 88040017 80118860 88040017 80118780 88040017 80118958 88040017 lbz r0, [r4 + 0x0017]
VR Spaceship Item Drop Bug Fix (allows items to drop from enemies above a certain Y position)
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
805C996C 435C0000 805D3F6C 435C0000 805DB40C 435C0000 805DB1AC 435C0000 805CA274 435C0000 805D1294 435C0000 805DAAB4 435C0000 805D6CF4 435C0000 bc 26, 28, +0x00000000 /* 805CA274 */
Invalid Items Bug Fix (something to do with making invalid items correctly display as ???? I think)
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8011CA90 7C030378 8011CCD4 7C030378 8011CD0C 7C030378 8011CC6C 7C030378 8011CD34 7C030378 8011CD34 7C030378 8011CC7C 7C030378 8011CE54 7C030378 mr r3, r0
8011CA94 3863FFFF 8011CCD8 3863FFFF 8011CD10 3863FFFF 8011CC70 3863FFFF 8011CD38 3863FFFF 8011CD38 3863FFFF 8011CC80 3863FFFF 8011CE58 3863FFFF subi r3, r3, 0x0001
8011CA98 4BFFFFE8 8011CCDC 4BFFFFE8 8011CD14 4BFFFFE8 8011CC74 4BFFFFE8 8011CD3C 4BFFFFE8 8011CD3C 4BFFFFE8 8011CC84 4BFFFFE8 8011CE5C 4BFFFFE8 b -0x00000018 /* 8011CD24 */
8011CB4C 7C030378 8011CD90 7C030378 8011CDC8 7C030378 8011CD28 7C030378 8011CDF0 7C030378 8011CDF0 7C030378 8011CD38 7C030378 8011CF10 7C030378 mr r3, r0
8011CB50 3863FFFF 8011CD94 3863FFFF 8011CDCC 3863FFFF 8011CD2C 3863FFFF 8011CDF4 3863FFFF 8011CDF4 3863FFFF 8011CD3C 3863FFFF 8011CF14 3863FFFF subi r3, r3, 0x0001
8011CB54 4BFFFFE8 8011CD98 4BFFFFE8 8011CDD0 4BFFFFE8 8011CD30 4BFFFFE8 8011CDF8 4BFFFFE8 8011CDF8 4BFFFFE8 8011CD40 4BFFFFE8 8011CF18 4BFFFFE8 b -0x00000018 /* 8011CDE0 */
8011CB9C 7C040378 8011CDE0 7C040378 8011CE18 7C040378 8011CD78 7C040378 8011CE40 7C040378 8011CE40 7C040378 8011CD88 7C040378 8011CF60 7C040378 mr r4, r0
8011CBA0 3884FFFF 8011CDE4 3884FFFF 8011CE1C 3884FFFF 8011CD7C 3884FFFF 8011CE44 3884FFFF 8011CE44 3884FFFF 8011CD8C 3884FFFF 8011CF64 3884FFFF subi r4, r4, 0x0001
8011CBA4 4BFFFFE8 8011CDE8 4BFFFFE8 8011CE20 4BFFFFE8 8011CD80 4BFFFFE8 8011CE48 4BFFFFE8 8011CE48 4BFFFFE8 8011CD90 4BFFFFE8 8011CF68 4BFFFFE8 b -0x00000018 /* 8011CE30 */
Item Removal Maxed Stats Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000B088 7FA3EB78 8000B088 7FA3EB78 8000B088 7FA3EB78 8000B088 7FA3EB78 8000B088 7FA3EB78 8000B088 7FA3EB78 8000B088 7FA3EB78 8000B088 7FA3EB78 mr r3, r29
8000B08C 38800000 8000B08C 38800000 8000B08C 38800000 8000B08C 38800000 8000B08C 38800000 8000B08C 38800000 8000B08C 38800000 8000B08C 38800000 li r4, 0x0000
8000B090 481AE725 8000B090 481AEB91 8000B090 481B1C09 8000B090 481AEC5D 8000B090 481AEB11 8000B090 481AEB11 8000B090 481AECC1 8000B090 481AF17D bl +0x001AEB10 /* 801B9BA0 */
8000B094 7FA3EB78 8000B094 7FA3EB78 8000B094 7FA3EB78 8000B094 7FA3EB78 8000B094 7FA3EB78 8000B094 7FA3EB78 8000B094 7FA3EB78 8000B094 7FA3EB78 mr r3, r29
8000B098 481AE9F4 8000B098 481AEE60 8000B098 481B1ED8 8000B098 481AEF2C 8000B098 481AEDE0 8000B098 481AEDE0 8000B098 481AEF90 8000B098 481AF44C b +0x001AEDE0 /* 801B9E78 */
8000B09C 881F0000 8000B09C 881F0000 8000B09C 881F0000 8000B09C 881F0000 8000B09C 881F0000 8000B09C 881F0000 8000B09C 881F0000 8000B09C 881F0000 lbz r0, [r31]
8000B0A0 28090001 8000B0A0 28090001 8000B0A0 28090001 8000B0A0 28090001 8000B0A0 28090001 8000B0A0 28090001 8000B0A0 28090001 8000B0A0 28090001 cmplwi r9, 1
8000B0A4 4082000C 8000B0A4 4082000C 8000B0A4 4082000C 8000B0A4 4082000C 8000B0A4 4082000C 8000B0A4 4082000C 8000B0A4 4082000C 8000B0A4 4082000C bne +0x0000000C /* 8000B0B0 */
8000B0A8 881F0001 8000B0A8 881F0001 8000B0A8 881F0001 8000B0A8 881F0001 8000B0A8 881F0001 8000B0A8 881F0001 8000B0A8 881F0001 8000B0A8 881F0001 lbz r0, [r31 + 0x0001]
8000B0AC 3BFF0002 8000B0AC 3BFF0002 8000B0AC 3BFF0002 8000B0AC 3BFF0002 8000B0AC 3BFF0002 8000B0AC 3BFF0002 8000B0AC 3BFF0002 8000B0AC 3BFF0002 addi r31, r31, 0x0002
8000B0B0 481008C4 8000B0B0 48100AC4 8000B0B0 48100B58 8000B0B0 48100A44 8000B0B0 48100B68 8000B0B0 48100B68 8000B0B0 48100A54 8000B0B0 48100C44 b +0x00100B68 /* 8010BC18 */
8000B0B4 39200000 8000B0B4 39200000 8000B0B4 39200000 8000B0B4 39200000 8000B0B4 39200000 8000B0B4 39200000 8000B0B4 39200000 8000B0B4 39200000 li r9, 0x0000
8000B0B8 48100855 8000B0B8 48100A55 8000B0B8 48100AE9 8000B0B8 481009D5 8000B0B8 48100AF9 8000B0B8 48100AF9 8000B0B8 481009E5 8000B0B8 48100BD5 bl +0x00100AF8 /* 8010BBB0 */
8000B0BC 7F43D378 8000B0BC 7F43D378 8000B0BC 7F43D378 8000B0BC 7F43D378 8000B0BC 7F43D378 8000B0BC 7F43D378 8000B0BC 7F43D378 8000B0BC 7F43D378 mr r3, r26
8000B0C0 7F64DB78 8000B0C0 7F64DB78 8000B0C0 7F64DB78 8000B0C0 7F64DB78 8000B0C0 7F64DB78 8000B0C0 7F64DB78 8000B0C0 7F64DB78 8000B0C0 7F64DB78 mr r4, r27
8000B0C4 7F85E378 8000B0C4 7F85E378 8000B0C4 7F85E378 8000B0C4 7F85E378 8000B0C4 7F85E378 8000B0C4 7F85E378 8000B0C4 7F85E378 8000B0C4 7F85E378 mr r5, r28
8000B0C8 7FA6EB78 8000B0C8 7FA6EB78 8000B0C8 7FA6EB78 8000B0C8 7FA6EB78 8000B0C8 7FA6EB78 8000B0C8 7FA6EB78 8000B0C8 7FA6EB78 8000B0C8 7FA6EB78 mr r6, r29
8000B0CC 7FC7F378 8000B0CC 7FC7F378 8000B0CC 7FC7F378 8000B0CC 7FC7F378 8000B0CC 7FC7F378 8000B0CC 7FC7F378 8000B0CC 7FC7F378 8000B0CC 7FC7F378 mr r7, r30
8000B0D0 7FE8FB78 8000B0D0 7FE8FB78 8000B0D0 7FE8FB78 8000B0D0 7FE8FB78 8000B0D0 7FE8FB78 8000B0D0 7FE8FB78 8000B0D0 7FE8FB78 8000B0D0 7FE8FB78 mr r8, r31
8000B0D4 39200001 8000B0D4 39200001 8000B0D4 39200001 8000B0D4 39200001 8000B0D4 39200001 8000B0D4 39200001 8000B0D4 39200001 8000B0D4 39200001 li r9, 0x0001
8000B0D8 48100835 8000B0D8 48100A35 8000B0D8 48100AC9 8000B0D8 481009B5 8000B0D8 48100AD9 8000B0D8 48100AD9 8000B0D8 481009C5 8000B0D8 48100BB5 bl +0x00100AD8 /* 8010BBB0 */
8000B0DC 48102CC0 8000B0DC 48102EC0 8000B0DC 4810300C 8000B0DC 48102E4C 8000B0DC 48102F64 8000B0DC 48102F64 8000B0DC 48102E5C 8000B0DC 48103040 b +0x00102F64 /* 8010E040 */
8000C3F8 28040000 8000C3F8 28040000 8000C3F8 28040000 8000C3F8 28040000 8000C3F8 28040000 8000C3F8 28040000 8000C3F8 28040000 8000C3F8 28040000 cmplwi r4, 0
8000C3FC 4D820020 8000C3FC 4D820020 8000C3FC 4D820020 8000C3FC 4D820020 8000C3FC 4D820020 8000C3FC 4D820020 8000C3FC 4D820020 8000C3FC 4D820020 beqlr
8000C400 9421FFF0 8000C400 9421FFF0 8000C400 9421FFF0 8000C400 9421FFF0 8000C400 9421FFF0 8000C400 9421FFF0 8000C400 9421FFF0 8000C400 9421FFF0 stwu [r1 - 0x0010], r1
8000C404 481AD3B4 8000C404 481AD820 8000C404 481B0898 8000C404 481AD8EC 8000C404 481AD7A0 8000C404 481AD7A0 8000C404 481AD950 8000C404 481ADE0C b +0x001AD7A0 /* 801B9BA4 */
8000C408 9421FFE0 8000C408 9421FFE0 8000C408 9421FFE0 8000C408 9421FFE0 8000C408 9421FFE0 8000C408 9421FFE0 8000C408 9421FFE0 8000C408 9421FFE0 stwu [r1 - 0x0020], r1
8000C40C 7C0802A6 8000C40C 7C0802A6 8000C40C 7C0802A6 8000C40C 7C0802A6 8000C40C 7C0802A6 8000C40C 7C0802A6 8000C40C 7C0802A6 8000C40C 7C0802A6 mflr r0
8000C410 90010024 8000C410 90010024 8000C410 90010024 8000C410 90010024 8000C410 90010024 8000C410 90010024 8000C410 90010024 8000C410 90010024 stw [r1 + 0x0024], r0
8000C414 BF410008 8000C414 BF410008 8000C414 BF410008 8000C414 BF410008 8000C414 BF410008 8000C414 BF410008 8000C414 BF410008 8000C414 BF410008 stmw [r1 + 0x0008], r26
8000C418 7C7F1B78 8000C418 7C7F1B78 8000C418 7C7F1B78 8000C418 7C7F1B78 8000C418 7C7F1B78 8000C418 7C7F1B78 8000C418 7C7F1B78 8000C418 7C7F1B78 mr r31, r3
8000C41C 4BFFFFDD 8000C41C 4BFFFFDD 8000C41C 4BFFFFDD 8000C41C 4BFFFFDD 8000C41C 4BFFFFDD 8000C41C 4BFFFFDD 8000C41C 4BFFFFDD 8000C41C 4BFFFFDD bl -0x00000024 /* 8000C3F8 */
8000C420 3BC00000 8000C420 3BC00000 8000C420 3BC00000 8000C420 3BC00000 8000C420 3BC00000 8000C420 3BC00000 8000C420 3BC00000 8000C420 3BC00000 li r30, 0x0000
8000C424 3BBF0D04 8000C424 3BBF0D04 8000C424 3BBF0D04 8000C424 3BBF0D04 8000C424 3BBF0D04 8000C424 3BBF0D04 8000C424 3BBF0D04 8000C424 3BBF0D04 addi r29, r31, 0x0D04
8000C428 837F032C 8000C428 837F032C 8000C428 837F032C 8000C428 837F032C 8000C428 837F032C 8000C428 837F032C 8000C428 837F032C 8000C428 837F032C lwz r27, [r31 + 0x032C]
8000C42C 839D0000 8000C42C 839D0000 8000C42C 839D0000 8000C42C 839D0000 8000C42C 839D0000 8000C42C 839D0000 8000C42C 839D0000 8000C42C 839D0000 lwz r28, [r29]
8000C430 7F83E379 8000C430 7F83E379 8000C430 7F83E379 8000C430 7F83E379 8000C430 7F83E379 8000C430 7F83E379 8000C430 7F83E379 8000C430 7F83E379 mr. r3, r28
8000C434 41820018 8000C434 41820018 8000C434 41820018 8000C434 41820018 8000C434 41820018 8000C434 41820018 8000C434 41820018 8000C434 41820018 beq +0x00000018 /* 8000C44C */
8000C438 38800001 8000C438 38800001 8000C438 38800001 8000C438 38800001 8000C438 38800001 8000C438 38800001 8000C438 38800001 8000C438 38800001 li r4, 0x0001
8000C43C 480FEADD 8000C43C 480FECDD 8000C43C 480FEDC9 8000C43C 480FEC5D 8000C43C 480FED81 8000C43C 480FED81 8000C43C 480FEC6D 8000C43C 480FEE5D bl +0x000FED80 /* 8010B1BC */
8000C440 7F83E378 8000C440 7F83E378 8000C440 7F83E378 8000C440 7F83E378 8000C440 7F83E378 8000C440 7F83E378 8000C440 7F83E378 8000C440 7F83E378 mr r3, r28
8000C444 38800001 8000C444 38800001 8000C444 38800001 8000C444 38800001 8000C444 38800001 8000C444 38800001 8000C444 38800001 8000C444 38800001 li r4, 0x0001
8000C448 480FEC4D 8000C448 480FEE4D 8000C448 480FEF49 8000C448 480FEDCD 8000C448 480FEEF1 8000C448 480FEEF1 8000C448 480FEDDD 8000C448 480FEFCD bl +0x000FEEF0 /* 8010B338 */
8000C44C 3BBD0004 8000C44C 3BBD0004 8000C44C 3BBD0004 8000C44C 3BBD0004 8000C44C 3BBD0004 8000C44C 3BBD0004 8000C44C 3BBD0004 8000C44C 3BBD0004 addi r29, r29, 0x0004
8000C450 3BDE0001 8000C450 3BDE0001 8000C450 3BDE0001 8000C450 3BDE0001 8000C450 3BDE0001 8000C450 3BDE0001 8000C450 3BDE0001 8000C450 3BDE0001 addi r30, r30, 0x0001
8000C454 2C1E000D 8000C454 2C1E000D 8000C454 2C1E000D 8000C454 2C1E000D 8000C454 2C1E000D 8000C454 2C1E000D 8000C454 2C1E000D 8000C454 2C1E000D cmpwi r30, 13
8000C458 4180FFD4 8000C458 4180FFD4 8000C458 4180FFD4 8000C458 4180FFD4 8000C458 4180FFD4 8000C458 4180FFD4 8000C458 4180FFD4 8000C458 4180FFD4 blt -0x0000002C /* 8000C42C */
8000C45C 937F032C 8000C45C 937F032C 8000C45C 937F032C 8000C45C 937F032C 8000C45C 937F032C 8000C45C 937F032C 8000C45C 937F032C 8000C45C 937F032C stw [r31 + 0x032C], r27
8000C460 BB410008 8000C460 BB410008 8000C460 BB410008 8000C460 BB410008 8000C460 BB410008 8000C460 BB410008 8000C460 BB410008 8000C460 BB410008 lmw r26, [r1 + 0x0008]
8000C464 80010024 8000C464 80010024 8000C464 80010024 8000C464 80010024 8000C464 80010024 8000C464 80010024 8000C464 80010024 8000C464 80010024 lwz r0, [r1 + 0x0024]
8000C468 7C0803A6 8000C468 7C0803A6 8000C468 7C0803A6 8000C468 7C0803A6 8000C468 7C0803A6 8000C468 7C0803A6 8000C468 7C0803A6 8000C468 7C0803A6 mtlr r0
8000C46C 38210020 8000C46C 38210020 8000C46C 38210020 8000C46C 38210020 8000C46C 38210020 8000C46C 38210020 8000C46C 38210020 8000C46C 38210020 addi r1, r1, 0x0020
8000C470 4E800020 8000C470 4E800020 8000C470 4E800020 8000C470 4E800020 8000C470 4E800020 8000C470 4E800020 8000C470 4E800020 8000C470 4E800020 blr
8010B970 4BEFF72C 8010BB70 4BEFF52C 8010BC04 4BEFF498 8010BAF0 4BEFF5AC 8010BC14 4BEFF488 8010BC14 4BEFF488 8010BB00 4BEFF59C 8010BCF0 4BEFF3AC b -0x00100B78 /* 8000B09C */
8010DD98 4BEFD31C 8010DF98 4BEFD11C 8010E0E4 4BEFCFD0 8010DF24 4BEFD190 8010E03C 4BEFD078 8010E03C 4BEFD078 8010DF34 4BEFD180 8010E118 4BEFCF9C b -0x00102F88 /* 8000B0B4 */
801B97B4 4BE52C54 801B9C20 4BE527E8 801BCC98 4BE4F770 801B9CEC 4BE5271C 801B9BA0 4BE52868 801B9BA0 4BE52868 801B9D50 4BE526B8 801BA20C 4BE521FC b -0x001AD798 /* 8000C408 */
801B9A88 4BE51600 801B9EF4 4BE51194 801BCF6C 4BE4E11C 801B9FC0 4BE510C8 801B9E74 4BE51214 801B9E74 4BE51214 801BA024 4BE51064 801BA4E0 4BE50BA8 b -0x001AEDEC /* 8000B088 */
Unit Present Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000C640 54800673 8000C640 54800673 8000C640 54800673 8000C640 54800673 8000C640 54800673 8000C640 54800673 8000C640 54800673 8000C640 54800673 rlwinm. r0, r4, 0, 25, 25
8000C644 41820008 8000C644 41820008 8000C644 41820008 8000C644 41820008 8000C644 41820008 8000C644 41820008 8000C644 41820008 8000C644 41820008 beq +0x00000008 /* 8000C64C */
8000C648 38800000 8000C648 38800000 8000C648 38800000 8000C648 38800000 8000C648 38800000 8000C648 38800000 8000C648 38800000 8000C648 38800000 li r4, 0x0000
8000C64C 38040009 8000C64C 38040009 8000C64C 38040009 8000C64C 38040009 8000C64C 38040009 8000C64C 38040009 8000C64C 38040009 8000C64C 38040009 addi r0, r4, 0x0009
8000C650 4810C694 8000C650 4810C8B0 8000C650 4810C98C 8000C650 4810C848 8000C650 4810C938 8000C650 4810C938 8000C650 4810C858 8000C650 4810CA30 b +0x0010C938 /* 80118F88 */
80118CE0 4BEF3960 80118EFC 4BEF3744 80118FD8 4BEF3668 80118E94 4BEF37AC 80118F84 4BEF36BC 80118F84 4BEF36BC 80118EA4 4BEF379C 8011907C 4BEF35C4 b -0x0010C944 /* 8000C640 */
Bank Item Stacking Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000C6D0 38000001 8000C6D0 38000001 8000C6D0 38000001 8000C6D0 38000001 8000C6D0 38000001 8000C6D0 38000001 8000C6D0 38000001 8000C6D0 38000001 li r0, 0x0001
8000C6D4 901D0054 8000C6D4 901D0054 8000C6D4 901D0054 8000C6D4 901D0054 8000C6D4 901D0054 8000C6D4 901D0054 8000C6D4 901D0054 8000C6D4 901D0054 stw [r29 + 0x0054], r0
8000C6D8 807D0024 8000C6D8 807D0024 8000C6D8 807D0024 8000C6D8 807D0024 8000C6D8 807D0024 8000C6D8 807D0024 8000C6D8 807D0024 8000C6D8 807D0024 lwz r3, [r29 + 0x0024]
8000C6DC 482109C0 8000C6DC 48211324 8000C6DC 48212210 8000C6DC 48211FC4 8000C6DC 48211244 8000C6DC 48211244 8000C6DC 482122F8 8000C6DC 48211B90 b +0x00211244 /* 8021D920 */
8000C6E0 38000001 8000C6E0 38000001 8000C6E0 38000001 8000C6E0 38000001 8000C6E0 38000001 8000C6E0 38000001 8000C6E0 38000001 8000C6E0 38000001 li r0, 0x0001
8000C6E4 901F0378 8000C6E4 901F0378 8000C6E4 901F0378 8000C6E4 901F0378 8000C6E4 901F0378 8000C6E4 901F0378 8000C6E4 901F0378 8000C6E4 901F0378 stw [r31 + 0x0378], r0
8000C6E8 807F0024 8000C6E8 807F0024 8000C6E8 807F0024 8000C6E8 807F0024 8000C6E8 807F0024 8000C6E8 807F0024 8000C6E8 807F0024 8000C6E8 807F0024 lwz r3, [r31 + 0x0024]
8000C6EC 48165AA0 8000C6EC 482147D4 8000C6EC 482156C0 8000C6EC 48215474 8000C6EC 482146F4 8000C6EC 482146F4 8000C6EC 482157A8 8000C6EC 48215040 b +0x002146F4 /* 80220DE0 */
8021D098 4BDEF638 8021D9FC 4BDEECD4 8021E8E8 4BDEDDE8 8021E69C 4BDEE034 8021D91C 4BDEEDB4 8021D91C 4BDEEDB4 8021E9D0 4BDEDD00 8021E268 4BDEE468 b -0x0021124C /* 8000C6D0 */
80172188 4BE9A558 80220EBC 4BDEB824 80221DA8 4BDEA938 80221B5C 4BDEAB84 80220DDC 4BDEB904 80220DDC 4BDEB904 80221E90 4BDEA850 80221728 4BDEAFB8 b -0x002146FC /* 8000C6E0 */
Dropped Mag Colour Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80114378 38000012 8011458C 38000012 80114634 38000012 80114524 38000012 8011461C 38000012 8011461C 38000012 80114534 38000012 8011470C 38000012 li r0, 0x0012
Meseta Drop System Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80107478 4800000C 80107654 4800000C 80107708 4800000C 801075D4 4800000C 8010771C 4800000C 8010771C 4800000C 801075E4 4800000C 801077D4 4800000C b +0x0000000C /* 80107728 */
8010748C 7C030378 80107668 7C030378 8010771C 7C030378 801075E8 7C030378 80107730 7C030378 80107730 7C030378 801075F8 7C030378 801077E8 7C030378 mr r3, r0
Present Colour Bug Fix (TODO: which versions need this?)
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80101C14 60000000 60000000 60000000 60000000 80101EB8 60000000 80101EB8 60000000 60000000 60000000 nop
Offline Quests Drop Table Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80104B48 4182000C 80104D24 4182000C 80104DE0 4182000C 80104CA4 4182000C 80104DEC 4182000C 80104DEC 4182000C 80104CB4 4182000C 80104EA4 4182000C beq +0x0000000C /* 80104DF8 */
Mag Revival Priority Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000C8A0 1C00000A 8000C8A0 1C00000A 8000C8A0 1C00000A 8000C8A0 1C00000A 8000C8A0 1C00000A 8000C8A0 1C00000A 8000C8A0 1C00000A 8000C8A0 1C00000A mulli r0, r0, 10
8000C8A4 57E407BD 8000C8A4 57E407BD 8000C8A4 57E407BD 8000C8A4 57E407BD 8000C8A4 57E407BD 8000C8A4 57E407BD 8000C8A4 57E407BD 8000C8A4 57E407BD rlwinm. r4, r31, 0, 30, 30
8000C8A8 41820008 8000C8A8 41820008 8000C8A8 41820008 8000C8A8 41820008 8000C8A8 41820008 8000C8A8 41820008 8000C8A8 41820008 8000C8A8 41820008 beq +0x00000008 /* 8000C8B0 */
8000C8AC 7FA00734 8000C8AC 7FA00734 8000C8AC 7FA00734 8000C8AC 7FA00734 8000C8AC 7FA00734 8000C8AC 7FA00734 8000C8AC 7FA00734 8000C8AC 7FA00734 extsh r0, r29
8000C8B0 48105DB8 8000C8B0 48105FB8 8000C8B0 48106190 8000C8B0 48105F44 8000C8B0 4810605C 8000C8B0 4810605C 8000C8B0 48105F54 8000C8B0 48106138 b +0x0010605C /* 8011290C */
80112664 4BEFA23C 80112864 4BEFA03C 80112A3C 4BEF9E64 801127F0 4BEFA0B0 80112908 4BEF9F98 80112908 4BEF9F98 80112800 4BEFA0A0 801129E4 4BEF9EBC b -0x00106068 /* 8000C8A0 */
Mag Revival Challenge & Quest Mode Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
801CA1F4 48000010 801CA6E0 48000010 801CB5EC 48000010 801CA7AC 48000010 801CA610 48000010 801CA610 48000010 801CA810 48000010 801CACCC 48000010 b +0x00000010 /* 801CA620 */
Chat Bubble Window TAB Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80250264 60000000 80250CB0 60000000 80251CA4 60000000 802519A4 60000000 80250AEC 60000000 80250AEC 60000000 80251C68 60000000 802514B0 60000000 nop
Chat Log Window LF/Tab Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80267DDC 60000000 80268A88 60000000 80269AE4 60000000 80269898 60000000 80268788 60000000 80268788 60000000 80269B5C 60000000 802693A4 60000000 nop
Dark/Hell Special GFX Bug Fix (makes Dark/Hell display graphic on success like in PSO BB)
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000E1E0 7FC802A6 8000E1E0 7FC802A6 8000E1E0 7FC802A6 8000E1E0 7FC802A6 8000E1E0 7FC802A6 8000E1E0 7FC802A6 8000E1E0 7FC802A6 8000E1E0 7FC802A6 mflr r30
8000E1E4 38A00000 8000E1E4 38A00000 8000E1E4 38A00000 8000E1E4 38A00000 8000E1E4 38A00000 8000E1E4 38A00000 8000E1E4 38A00000 8000E1E4 38A00000 li r5, 0x0000
8000E1E8 38C0001E 8000E1E8 38C0001E 8000E1E8 38C0001E 8000E1E8 38C0001E 8000E1E8 38C0001E 8000E1E8 38C0001E 8000E1E8 38C0001E 8000E1E8 38C0001E li r6, 0x001E
8000E1EC 38E00040 8000E1EC 38E00040 8000E1EC 38E00040 8000E1EC 38E00040 8000E1EC 38E00040 8000E1EC 38E00040 8000E1EC 38E00040 8000E1EC 38E00040 li r7, 0x0040
8000E1F0 480782B1 8000E1F0 4807859D 8000E1F0 48078715 8000E1F0 480786C5 8000E1F0 4807853D 8000E1F0 4807853D 8000E1F0 480786D5 8000E1F0 4807869D bl +0x0007853C /* 8008672C */
8000E1F4 7FC803A6 8000E1F4 7FC803A6 8000E1F4 7FC803A6 8000E1F4 7FC803A6 8000E1F4 7FC803A6 8000E1F4 7FC803A6 8000E1F4 7FC803A6 8000E1F4 7FC803A6 mtlr r30
8000E1F8 4E800020 8000E1F8 4E800020 8000E1F8 4E800020 8000E1F8 4E800020 8000E1F8 4E800020 8000E1F8 4E800020 8000E1F8 4E800020 8000E1F8 4E800020 blr
80355960 388001E8 80356D64 388001E8 803582C0 388001E8 80358074 388001E8 80356814 388001E8 80356858 388001E8 80358440 388001E8 80357834 388001E8 li r4, 0x01E8
80355984 4BCB885D 80356D88 4BCB7459 803582E4 4BCB5EFD 80358098 4BCB6149 80356838 4BCB79A9 8035687C 4BCB7965 80358464 4BCB5D7D 80357858 4BCB6989 bl -0x00348658 /* 8000E1E0 */
803559F4 388001E8 80356DF8 388001E8 80358354 388001E8 80358108 388001E8 803568A8 388001E8 803568EC 388001E8 803584D4 388001E8 803578C8 388001E8 li r4, 0x01E8
80355A04 4BCB87DD 80356E08 4BCB73D9 80358364 4BCB5E7D 80358118 4BCB60C9 803568B8 4BCB7929 803568FC 4BCB78E5 803584E4 4BCB5CFD 803578D8 4BCB6909 bl -0x003486D8 /* 8000E1E0 */
Gol Dragon Camera Bug Fix (makes the camera after Gol Dragon display "normally")
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
802FB99C 2C030001 802FC968 2C030001 802FDE60 2C030001 802FDB6C 2C030001 802FC2F4 2C030001 802FC338 2C030001 802FDD28 2C030001 802FD100 2C030001 cmpwi r3, 1
Box/Fence Fadeout Bug Fix (stops boxes and other environmental objects fading in and out as you approach)
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80189A54 60000000 80189E2C 60000000 80189F90 60000000 80189EF0 60000000 80189E20 60000000 80189E20 60000000 80189F54 60000000 8018A418 60000000 nop
801933DC 60000000 801937B0 60000000 80193914 60000000 80193874 60000000 801937A8 60000000 801937A8 60000000 801938D8 60000000 80193D9C 60000000 nop
TP Bar Colour Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8026DA74 3884AAFA 8026E738 3884AAFA 8026F794 3884AAFA 8026F548 3884AAFA 8026E2D4 3884AAFA 8026E2D4 3884AAFA 8026F6FC 3884AAFA 8026EF44 3884AAFA subi r4, r4, 0x5506
8026DB88 3863AAFA 8026E84C 3863AAFA 8026F8A8 3863AAFA 8026F65C 3863AAFA 8026E3E8 3863AAFA 8026E3E8 3863AAFA 8026F810 3863AAFA 8026F058 3863AAFA subi r3, r3, 0x5506
8026DC10 3883AAFA 8026E8D4 3883AAFA 8026F930 3883AAFA 8026F6E4 3883AAFA 8026E470 3883AAFA 8026E470 3883AAFA 8026F898 3883AAFA 8026F0E0 3883AAFA subi r4, r3, 0x5506
804CBB40 FF0074EE 804CF290 FF0074EE 804D17E0 FF0074EE 804D1580 FF0074EE 804CC310 FF0074EE 804CC7F0 FF0074EE 804D0E58 FF0074EE 804D1248 FF0074EE fsel f24, f0, f14, f19
Devil's and Demon's Special Damage Display Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8001306C 4BFFFCC0 8001309C 4BFFFCC0 80013364 4BFFFCC0 8001304C 4BFFFCC0 80013084 4BFFFCC0 80013084 4BFFFCC0 8001304C 4BFFFCC0 800130C4 4BFFFCC0 b -0x00000340 /* 80012D44 */
Christmas Trees Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000B5C8 80630098 8000B5C8 80630098 8000B5C8 80630098 8000B5C8 80630098 8000B5C8 80630098 8000B5C8 80630098 8000B5C8 80630098 8000B5C8 80630098 lwz r3, [r3 + 0x0098]
8000B5CC 483D46F5 8000B5CC 483D70D1 8000B5CC 483D8F71 8000B5CC 483D8D21 8000B5CC 483D5999 8000B5CC 483D59F1 8000B5CC 483D90F1 8000B5CC 483D7BE1 bl +0x003D5998 /* 803E0F64 */
8000B5D0 807F042C 8000B5D0 807F042C 8000B5D0 807F042C 8000B5D0 807F042C 8000B5D0 807F042C 8000B5D0 807F042C 8000B5D0 807F042C 8000B5D0 807F042C lwz r3, [r31 + 0x042C]
8000B5D4 809F0430 8000B5D4 809F0430 8000B5D4 809F0430 8000B5D4 809F0430 8000B5D4 809F0430 8000B5D4 809F0430 8000B5D4 809F0430 8000B5D4 809F0430 lwz r4, [r31 + 0x0430]
8000B5D8 481788C0 8000B5D8 48178C88 8000B5D8 48178DEC 8000B5D8 48178D4C 8000B5D8 48178C7C 8000B5D8 48178C7C 8000B5D8 48178DB0 8000B5D8 48179274 b +0x00178C7C /* 80184254 */
80183E94 4BE87734 8018425C 4BE8736C 801843C0 4BE87208 80184320 4BE872A8 80184250 4BE87378 80184250 4BE87378 80184384 4BE87244 80184848 4BE86D80 b -0x00178C88 /* 8000B5C8 */
80183ED4 60000000 8018429C 60000000 80184400 60000000 80184360 60000000 80184290 60000000 80184290 60000000 801843C4 60000000 80184888 60000000 nop
Rain Drops Colour Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
804B3738 70808080 804B6E58 70808080 804B92F8 70808080 804B90B8 70808080 804B3EF0 70808080 804B43D0 70808080 804B8990 70808080 804B8E10 70808080 andi. r0, r4, 0x8080
804B373C 60707070 804B6E5C 60707070 804B92FC 60707070 804B90BC 60707070 804B3EF4 60707070 804B43D4 60707070 804B8994 60707070 804B8E14 60707070 ori r16, r3, 0x7070
Reverser Target Lock Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
801C5EA4 389F02FC 801C6360 389F02FC 801C6604 389F02FC 801C642C 389F02FC 801C62C0 389F02FC 801C62C0 389F02FC 801C6490 389F02FC 801C694C 389F02FC addi r4, r31, 0x02FC
Deband/Shifta/Resta Target Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8022CF84 41810630 8022D920 41810630 8022E85C 41810630 8022E5C0 41810630 8022D840 41810630 8022D840 41810630 8022E8F4 41810630 8022E18C 41810630 bgt +0x00000630 /* 8022DE70 */
8022D278 4181033C 4181033C 4181033C 4181033C 8022DB34 4181033C 8022DB34 4181033C 4181033C 4181033C bgt +0x0000033C /* 8022DE70 */
8022D36C 41810248 41810248 41810248 41810248 8022DC28 41810248 8022DC28 41810248 41810248 41810248 bgt +0x00000248 /* 8022DE70 */
Tech Auto Targetting Bug Fix
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8022C850 60000000 8022D1EC 60000000 8022E128 60000000 8022DE8C 60000000 8022D10C 60000000 8022D10C 60000000 8022E1C0 60000000 8022DA58 60000000 nop
804C6EE4 0000001E 804CA61C 0000001E 804CCB6C 0000001E 804CC90C 0000001E 804C76B4 0000001E 804C7B94 0000001E 804CC1E4 0000001E 804CC5D4 0000001E .invalid
804C6F3C 00000028 804CA674 00000028 804CCBC4 00000028 804CC964 00000028 804C770C 00000028 804C7BEC 00000028 804CC23C 00000028 804CC62C 00000028 .invalid
804C6F68 00000032 804CA6A0 00000032 804CCBF0 00000032 804CC990 00000032 804C7738 00000032 804C7C18 00000032 804CC268 00000032 804CC658 00000032 .invalid
804C6F94 0000003C 804CA6CC 0000003C 804CCC1C 0000003C 804CC9BC 0000003C 804C7764 0000003C 804C7C44 0000003C 804CC294 0000003C 804CC684 0000003C .invalid
804C6FA4 0018003C 804CA6DC 0018003C 804CCC2C 0018003C 804CC9CC 0018003C 804C7774 0018003C 804C7C54 0018003C 804CC2A4 0018003C 804CC694 0018003C .invalid
804C71FC 00000028 804CA934 00000028 804CCE84 00000028 804CCC24 00000028 804C79CC 00000028 804C7EAC 00000028 804CC4FC 00000028 804CC8EC 00000028 .invalid
Enable Trap Animations
BugFixes
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000BBD0 809F0370 8000BBD0 809F0370 8000BBD0 809F0370 8000BBD0 809F0370 8000BBD0 809F0370 8000BBD0 809F0370 8000BBD0 809F0370 8000BBD0 809F0370 lwz r4, [r31 + 0x0370]
8000BBD4 3884FC00 8000BBD4 3884FC00 8000BBD4 3884FC00 8000BBD4 3884FC00 8000BBD4 3884FC00 8000BBD4 3884FC00 8000BBD4 3884FC00 8000BBD4 3884FC00 subi r4, r4, 0x0400
8000BBD8 909F0370 8000BBD8 909F0370 8000BBD8 909F0370 8000BBD8 909F0370 8000BBD8 909F0370 8000BBD8 909F0370 8000BBD8 909F0370 8000BBD8 909F0370 stw [r31 + 0x0370], r4
8000BBDC 807F0014 8000BBDC 807F0014 8000BBDC 807F0014 8000BBDC 807F0014 8000BBDC 807F0014 8000BBDC 807F0014 8000BBDC 807F0014 8000BBDC 807F0014 lwz r3, [r31 + 0x0014]
8000BBE0 28030000 8000BBE0 28030000 8000BBE0 28030000 8000BBE0 28030000 8000BBE0 28030000 8000BBE0 28030000 8000BBE0 28030000 8000BBE0 28030000 cmplwi r3, 0
8000BBE4 41820008 8000BBE4 41820008 8000BBE4 41820008 8000BBE4 41820008 8000BBE4 41820008 8000BBE4 41820008 8000BBE4 41820008 8000BBE4 41820008 beq +0x00000008 /* 8000BBEC */
8000BBE8 90830060 8000BBE8 90830060 8000BBE8 90830060 8000BBE8 90830060 8000BBE8 90830060 8000BBE8 90830060 8000BBE8 90830060 8000BBE8 90830060 stw [r3 + 0x0060], r4
8000BBEC 4816506C 8000BBEC 48165420 8000BBEC 48165678 8000BBEC 481654E4 8000BBEC 48165428 8000BBEC 48165428 8000BBEC 48165548 8000BBEC 48165A0C b +0x00165428 /* 80171014 */
80170C54 4BE9AF7C 80171008 4BE9ABC8 80171260 4BE9A970 801710CC 4BE9AB04 80171010 4BE9ABC0 80171010 4BE9ABC0 80171130 4BE9AAA0 801715F4 4BE9A5DC b -0x00165440 /* 8000BBD0 */
80170C74 60800420 80171028 60800420 80171280 60800420 801710EC 60800420 80171030 60800420 80171030 60800420 80171150 60800420 80171614 60800420 ori r0, r4, 0x0420
Extended Word Select
ChatFeatures
*** name=Chat
*** desc=Enable extended\nWord Select and\nstop the Log Window\nfrom scrolling by\nholding L+R
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8034445C 38600000 803457AC 38600000 80346CCC 38600000 80346A80 38600000 8034525C 38600000 803452A0 38600000 80346E4C 38600000 8034627C 38600000 li r3, 0x0000
Chat Log Window: Lock Scrolling with L+R
ChatFeatures
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000D6A0 3C608051 8000D6A0 3C608051 8000D6A0 3C608051 8000D6A0 3C608051 8000D6A0 3C608051 8000D6A0 3C608051 8000D6A0 3C608051 8000D6A0 3C608051 lis r3, 0x8051
8000D6A4 A0638AD0 8000D6A4 A063C590 8000D6A4 A063EBD0 8000D6A4 A063E970 8000D6A4 A06393B0 8000D6A4 A0639890 8000D6A4 A063E270 8000D6A4 A063F290 lhz r3, [r3 - 0x6C50]
8000D6A8 70600003 8000D6A8 70600003 8000D6A8 70600003 8000D6A8 70600003 8000D6A8 70600003 8000D6A8 70600003 8000D6A8 70600003 8000D6A8 70600003 andi. r0, r3, 0x0003
8000D6AC 28000003 8000D6AC 28000003 8000D6AC 28000003 8000D6AC 28000003 8000D6AC 28000003 8000D6AC 28000003 8000D6AC 28000003 8000D6AC 28000003 cmplwi r0, 3
8000D6B0 41820008 8000D6B0 41820008 8000D6B0 41820008 8000D6B0 41820008 8000D6B0 41820008 8000D6B0 41820008 8000D6B0 41820008 8000D6B0 41820008 beq +0x00000008 /* 8000D6B8 */
8000D6B4 D03C0084 8000D6B4 D03C0084 8000D6B4 D03C0084 8000D6B4 D03C0084 8000D6B4 D03C0084 8000D6B4 D03C0084 8000D6B4 D03C0084 8000D6B4 D03C0084 stfs [r28 + 0x0084], f1
8000D6B8 4825A814 8000D6B8 4825B4C0 8000D6B8 4825C51C 8000D6B8 4825C2D0 8000D6B8 4825B1C0 8000D6B8 4825B1C0 8000D6B8 4825C594 8000D6B8 4825BDDC b +0x0025B1C0 /* 80268878 */
80267EC8 4BDA57D8 80268B74 4BDA4B2C 80269BD0 4BDA3AD0 80269984 4BDA3D1C 80268874 4BDA4E2C 80268874 4BDA4E2C 80269C48 4BDA3A58 80269490 4BDA4210 b -0x0025B1D4 /* 8000D6A0 */
Improved Draw Distance of most objects
DrawDistance
*** name=DrawDistance
*** desc=Extend the draw\ndistance of many\nobjects
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000DFA0 C3C2C1F8 8000DFA0 C3C2C1F8 8000DFA0 C3C2C1F8 8000DFA0 C3C2C1F8 8000DFA0 C3C2C200 8000DFA0 C3C2C200 8000DFA0 C3C2C200 8000DFA0 C3C2C200 lfs f30, [r2 - 0x3E00]
8000DFA4 EFDE0072 8000DFA4 EFDE0072 8000DFA4 EFDE0072 8000DFA4 EFDE0072 8000DFA4 EFDE0072 8000DFA4 EFDE0072 8000DFA4 EFDE0072 8000DFA4 EFDE0072 fmuls f30, f30, f1
8000DFA8 4E800020 8000DFA8 4E800020 8000DFA8 4E800020 8000DFA8 4E800020 8000DFA8 4E800020 8000DFA8 4E800020 8000DFA8 4E800020 8000DFA8 4E800020 blr
8000DFAC C042C1F8 8000DFAC C042C1F8 8000DFAC C042C1F8 8000DFAC C042C1F8 8000DFAC C042C200 8000DFAC C042C200 8000DFAC C042C200 8000DFAC C042C200 lfs f2, [r2 - 0x3E00]
8000DFB0 C01E001C 8000DFB0 C01E001C 8000DFB0 C01E001C 8000DFB0 C01E001C 8000DFB0 C01E001C 8000DFB0 C01E001C 8000DFB0 C01E001C 8000DFB0 C01E001C lfs f0, [r30 + 0x001C]
8000DFB4 EC0000B2 8000DFB4 EC0000B2 8000DFB4 EC0000B2 8000DFB4 EC0000B2 8000DFB4 EC0000B2 8000DFB4 EC0000B2 8000DFB4 EC0000B2 8000DFB4 EC0000B2 fmuls f0, f0, f2
8000DFB8 4E800020 8000DFB8 4E800020 8000DFB8 4E800020 8000DFB8 4E800020 8000DFB8 4E800020 8000DFB8 4E800020 8000DFB8 4E800020 8000DFB8 4E800020 blr
8000DFBC C382C1F8 8000DFBC C382C1F8 8000DFBC C382C1F8 8000DFBC C382C1F8 8000DFBC C382C200 8000DFBC C382C200 8000DFBC C382C200 8000DFBC C382C200 lfs f28, [r2 - 0x3E00]
8000DFC0 EF9C00B2 8000DFC0 EF9C00B2 8000DFC0 EF9C00B2 8000DFC0 EF9C00B2 8000DFC0 EF9C00B2 8000DFC0 EF9C00B2 8000DFC0 EF9C00B2 8000DFC0 EF9C00B2 fmuls f28, f28, f2
8000DFC4 4E800020 8000DFC4 4E800020 8000DFC4 4E800020 8000DFC4 4E800020 8000DFC4 4E800020 8000DFC4 4E800020 8000DFC4 4E800020 8000DFC4 4E800020 blr
8000DFC8 C002C1F8 8000DFC8 C002C1F8 8000DFC8 C002C1F8 8000DFC8 C002C1F8 8000DFC8 C002C200 8000DFC8 C002C200 8000DFC8 C002C200 8000DFC8 C002C200 lfs f0, [r2 - 0x3E00]
8000DFCC C023000C 8000DFCC C023000C 8000DFCC C023000C 8000DFCC C023000C 8000DFCC C023000C 8000DFCC C023000C 8000DFCC C023000C 8000DFCC C023000C lfs f1, [r3 + 0x000C]
8000DFD0 EC000072 8000DFD0 EC000072 8000DFD0 EC000072 8000DFD0 EC000072 8000DFD0 EC000072 8000DFD0 EC000072 8000DFD0 EC000072 8000DFD0 EC000072 fmuls f0, f0, f1
8000DFD4 D003000C 8000DFD4 D003000C 8000DFD4 D003000C 8000DFD4 D003000C 8000DFD4 D003000C 8000DFD4 D003000C 8000DFD4 D003000C 8000DFD4 D003000C stfs [r3 + 0x000C], f0
8000DFD8 3C60804C 8000DFD8 3C60804C 8000DFD8 3C60804D 8000DFD8 3C60804D 8000DFD8 3C60804C 8000DFD8 3C60804C 8000DFD8 3C60804D 8000DFD8 3C60804D lis r3, 0x804C
8000DFDC 4E800020 8000DFDC 4E800020 8000DFDC 4E800020 8000DFDC 4E800020 8000DFDC 4E800020 8000DFDC 4E800020 8000DFDC 4E800020 8000DFDC 4E800020 blr
801008E8 4BF0D6B9 80100AD0 4BF0D4D1 80100B74 4BF0D42D 80100A50 4BF0D551 80100B8C 4BF0D415 80100B8C 4BF0D415 80100A60 4BF0D541 80100C50 4BF0D351 bl -0x000F2BEC /* 8000DFA0 */
80156D00 4BEB72AD 801570B4 4BEB6EF9 80157218 4BEB6D95 80157178 4BEB6E35 801570BC 4BEB6EF1 801570BC 4BEB6EF1 801571DC 4BEB6DD1 801576A0 4BEB690D bl -0x00149110 /* 8000DFAC */
801A1C64 4BE6C359 801A203C 4BE6BF81 801A21A0 4BE6BE1D 801A2100 4BE6BEBD 801A2040 4BE6BF7D 801A2040 4BE6BF7D 801A2164 4BE6BE59 801A2628 4BE6B995 bl -0x00194084 /* 8000DFBC */
801A1E64 4BE6C13D 801A223C 4BE6BD65 801A23A0 4BE6BC01 801A2300 4BE6BCA1 801A2240 4BE6BD61 801A2240 4BE6BD61 801A2364 4BE6BC3D 801A2828 4BE6B779 bl -0x001942A0 /* 8000DFA0 */
80205044 4BE08F85 802058B8 4BE08711 80206640 4BE07989 802063F4 4BE07BD5 80205840 4BE08789 80205840 4BE08789 80206728 4BE078A1 80206124 4BE07EA5 bl -0x001F7878 /* 8000DFC8 */
802057E8 4BE087E1 8020605C 4BE07F6D 80206DE4 4BE071E5 80206B98 4BE07431 80205FE4 4BE07FE5 80205FE4 4BE07FE5 80206ECC 4BE070FD 802068C8 4BE07701 bl -0x001F801C /* 8000DFC8 */
805C83A8 47AFC800 805D29A8 47AFC800 805D9E48 47AFC800 805D9BE8 47AFC800 805C8CB0 47AFC800 805CFCD0 47AFC800 805D94F0 47AFC800 805D5730 47AFC800 .invalid sc
805C9254 47742400 805D3854 47742400 805DACF4 47742400 805DAA94 47742400 805C9B5C 47742400 805D0B7C 47742400 805DA39C 47742400 805D65DC 47742400 .invalid sc
805C987C 491C4000 805D3E7C 491C4000 805DB31C 491C4000 805DB0BC 491C4000 805CA184 491C4000 805D11A4 491C4000 805DA9C4 491C4000 805D6C04 491C4000 b +0x011C4000 /* 8178E184 */
805CA708 47AFC800 805D4D08 47AFC800 805DC1A8 47AFC800 805DBF48 47AFC800 805CB010 47AFC800 805D2030 47AFC800 805DB850 47AFC800 805D7A90 47AFC800 .invalid sc
805CAC98 44AF0000 805D5298 44AF0000 805DC738 44AF0000 805DC4D8 44AF0000 805CB5A0 44AF0000 805D25C0 44AF0000 805DBDE0 44AF0000 805D8020 44AF0000 .invalid sc
Show Enemy HP Bars
EnemyHPBars
*** name=Enemy HP bars
*** desc=Show HP bars in\nenemy info windows
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
802612C4 4BFE1541 80261E9C 4BFE1349 80262EE4 4BFE0665 80262C98 4BFE1241 80261B9C 4BFE1545 80261B9C 4BFE1545 80262F5C 4BFE12B1 802627A4 4BFE12B1 bl -0x0001EABC /* 802430E0 */
804CAF00 42300000 804CE650 42300000 804D0BA0 42300000 804D0940 42300000 804CB6D0 42300000 804CBBB0 42300000 804D0218 42300000 804D0608 42300000 bdnz cr4, +0x00000000 /* 804CB6D0 */
804CAF1C FF00FF15 804CE66C FF00FF15 804D0BBC FF00FF15 804D095C FF00FF15 804CB6EC FF00FF15 804CBBCC FF00FF15 804D0234 FF00FF15 804D0624 FF00FF15 .invalid FC, 0
805CBFBC 42A00000 805D65BC 42A00000 805DDA5C 42A00000 805DD7FC 42A00000 805CC8C4 42A00000 805D38E4 42A00000 805DD104 42A00000 805D9344 42A00000 b +0x00000000 /* 805CC8C4 */
804CAE40 42640000 804CE590 42640000 804D0AE0 42640000 804D0880 42640000 804CB610 42640000 804CBAF0 42640000 804D0158 42640000 804D0548 42640000 bc 19, 4, +0x00000000 /* 804CB610 */
804CAE4C 42640000 804CE59C 42640000 804D0AEC 42640000 804D088C 42640000 804CB61C 42640000 804CBAFC 42640000 804D0164 42640000 804D0554 42640000 bc 19, 4, +0x00000000 /* 804CB61C */
804CAE58 42640000 804CE5A8 42640000 804D0AF8 42640000 804D0898 42640000 804CB628 42640000 804CBB08 42640000 804D0170 42640000 804D0560 42640000 bc 19, 4, +0x00000000 /* 804CB628 */
804CAE64 42640000 804CE5B4 42640000 804D0B04 42640000 804D08A4 42640000 804CB634 42640000 804CBB14 42640000 804D017C 42640000 804D056C 42640000 bc 19, 4, +0x00000000 /* 804CB634 */
PSO DC Reticle Colours
DCReticleColors
*** name=DC targets
*** desc=Change the target\nreticle colors to\nthose used on the\nDreamcast
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
802AB3FC 3C8000FF 802AC2A4 3C8000FF 802AD3D0 3C8000FF 802AD184 3C8000FF 802ABDB8 3C8000FF 802ABDFC 3C8000FF 802AD338 3C8000FF 802ACACC 3C8000FF lis r4, 0x00FF
802AB410 388000FF 802AC2B8 388000FF 802AD3E4 388000FF 802AD198 388000FF 802ABDCC 388000FF 802ABE10 388000FF 802AD34C 388000FF 802ACAE0 388000FF li r4, 0x00FF
802AB424 3884FF00 802AC2CC 3884FF00 802AD3F8 3884FF00 802AD1AC 3884FF00 802ABDE0 3884FF00 802ABE24 3884FF00 802AD360 3884FF00 802ACAF4 3884FF00 subi r4, r4, 0x0100
804A1F18 3F800000 804A5638 3F800000 804A7AD8 3F800000 804A7898 3F800000 804A26C8 3F800000 804A2BA8 3F800000 804A7168 3F800000 804A75E8 3F800000 lis r28, 0x0000
804A1F1C 00000000 804A563C 00000000 804A7ADC 00000000 804A789C 00000000 804A26CC 00000000 804A2BAC 00000000 804A716C 00000000 804A75EC 00000000 .invalid
804A1F28 3F800000 804A5648 3F800000 804A7AE8 3F800000 804A78A8 3F800000 804A26D8 3F800000 804A2BB8 3F800000 804A7178 3F800000 804A75F8 3F800000 lis r28, 0x0000
804A1F2C 00000000 804A564C 00000000 804A7AEC 00000000 804A78AC 00000000 804A26DC 00000000 804A2BBC 00000000 804A717C 00000000 804A75FC 00000000 .invalid
804A1F38 3F800000 804A5658 3F800000 804A7AF8 3F800000 804A78B8 3F800000 804A26E8 3F800000 804A2BC8 3F800000 804A7188 3F800000 804A7608 3F800000 lis r28, 0x0000
804A1F3C 3F800000 804A565C 3F800000 804A7AFC 3F800000 804A78BC 3F800000 804A26EC 3F800000 804A2BCC 3F800000 804A718C 3F800000 804A760C 3F800000 lis r28, 0x0000
804A1F40 00000000 804A5660 00000000 804A7B00 00000000 804A78C0 00000000 804A26F0 00000000 804A2BD0 00000000 804A7190 00000000 804A7610 00000000 .invalid
804A1F48 00000000 804A5668 00000000 804A7B08 00000000 804A78C8 00000000 804A26F8 00000000 804A2BD8 00000000 804A7198 00000000 804A7618 00000000 .invalid
804A1F50 3F800000 804A5670 3F800000 804A7B10 3F800000 804A78D0 3F800000 804A2700 3F800000 804A2BE0 3F800000 804A71A0 3F800000 804A7620 3F800000 lis r28, 0x0000
804A1F58 3ECCCCCD 804A5678 3ECCCCCD 804A7B18 3ECCCCCD 804A78D8 3ECCCCCD 804A2708 3ECCCCCD 804A2BE8 3ECCCCCD 804A71A8 3ECCCCCD 804A7628 3ECCCCCD subis r22, r12, 0x3333
804A1F5C 3DCCCCCD 804A567C 3DCCCCCD 804A7B1C 3DCCCCCD 804A78DC 3DCCCCCD 804A270C 3DCCCCCD 804A2BEC 3DCCCCCD 804A71AC 3DCCCCCD 804A762C 3DCCCCCD subis r14, r12, 0x3333
804A1F60 3DCCCCCD 804A5680 3DCCCCCD 804A7B20 3DCCCCCD 804A78E0 3DCCCCCD 804A2710 3DCCCCCD 804A2BF0 3DCCCCCD 804A71B0 3DCCCCCD 804A7630 3DCCCCCD subis r14, r12, 0x3333
PSOX / BB Reticle Colours
PSOXReticleColors
*** name=Xbox/BB targets
*** desc=Change the target\nreticle colors to\nthose used on the\nXbox and Blue Burst
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
802AB424 388000FF 802AC2CC 388000FF 802AD3F8 388000FF 802AD1AC 388000FF 802ABDE0 388000FF 802ABE24 388000FF 802AD360 388000FF 802ACAF4 388000FF li r4, 0x00FF
804A1F38 00000000 804A5658 00000000 804A7AF8 00000000 804A78B8 00000000 804A26E8 00000000 804A2BC8 00000000 804A7188 00000000 804A7608 00000000 .invalid
804A1F3C 00000000 804A565C 00000000 804A7AFC 00000000 804A78BC 00000000 804A26EC 00000000 804A2BCC 00000000 804A718C 00000000 804A760C 00000000 .invalid
804A1F40 3F800000 804A5660 3F800000 804A7B00 3F800000 804A78C0 3F800000 804A26F0 3F800000 804A2BD0 3F800000 804A7190 3F800000 804A7610 3F800000 lis r28, 0x0000
Show Rare Items on Area & Radar Map
RareDropNotifications
*** name=Rare alerts
*** desc=Show rare items on\nthe map and play a\nsound when a rare\nitem drops
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000C660 881F00EF 8000C660 881F00EF 8000C660 881F00EF 8000C660 881F00EF 8000C660 881F00EF 8000C660 881F00EF 8000C660 881F00EF 8000C660 881F00EF lbz r0, [r31 + 0x00EF]
8000C664 28000004 8000C664 28000004 8000C664 28000004 8000C664 28000004 8000C664 28000004 8000C664 28000004 8000C664 28000004 8000C664 28000004 cmplwi r0, 4
8000C668 40820018 8000C668 40820018 8000C668 40820018 8000C668 40820018 8000C668 40820018 8000C668 40820018 8000C668 40820018 8000C668 40820018 bne +0x00000018 /* 8000C680 */
8000C66C 387F0038 8000C66C 387F0038 8000C66C 387F0038 8000C66C 387F0038 8000C66C 387F0038 8000C66C 387F0038 8000C66C 387F0038 8000C66C 387F0038 addi r3, r31, 0x0038
8000C670 3C80FFFF 8000C670 3C80FFFF 8000C670 3C80FFFF 8000C670 3C80FFFF 8000C670 3C80FFFF 8000C670 3C80FFFF 8000C670 3C80FFFF 8000C670 3C80FFFF lis r4, 0xFFFF
8000C674 38A00001 8000C674 38A00001 8000C674 38A00001 8000C674 38A00001 8000C674 38A00001 8000C674 38A00001 8000C674 38A00001 8000C674 38A00001 li r5, 0x0001
8000C678 38C00000 8000C678 38C00000 8000C678 38C00000 8000C678 38C00000 8000C678 38C00000 8000C678 38C00000 8000C678 38C00000 8000C678 38C00000 li r6, 0x0000
8000C67C 481ECE15 8000C67C 481ED4B1 8000C67C 481ED709 8000C67C 481ED4BD 8000C67C 481ED381 8000C67C 481ED381 8000C67C 481ED511 8000C67C 481EDA8D bl +0x001ED380 /* 801F99FC */
8000C680 7FE3FB78 8000C680 7FE3FB78 8000C680 7FE3FB78 8000C680 7FE3FB78 8000C680 7FE3FB78 8000C680 7FE3FB78 8000C680 7FE3FB78 8000C680 7FE3FB78 mr r3, r31
8000C684 480F5F9C 8000C684 480F6178 8000C684 480F6788 8000C684 480F60F8 8000C684 480F6240 8000C684 480F6240 8000C684 480F6108 8000C684 480F62F8 b +0x000F6240 /* 801028C4 */
8010261C 4BF0A044 801027F8 4BF09E68 80102E08 4BF09858 80102778 4BF09EE8 801028C0 4BF09DA0 801028C0 4BF09DA0 80102788 4BF09ED8 80102978 4BF09CE8 b -0x000F6260 /* 8000C660 */
Rare Item Drops: Play SFX
RareDropNotifications
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000C690 28030000 8000C690 28030000 8000C690 28030000 8000C690 28030000 8000C690 28030000 8000C690 28030000 8000C690 28030000 8000C690 28030000 cmplwi r3, 0
8000C694 41820020 8000C694 41820020 8000C694 41820020 8000C694 41820020 8000C694 41820020 8000C694 41820020 8000C694 41820020 8000C694 41820020 beq +0x00000020 /* 8000C6B4 */
8000C698 880300EF 8000C698 880300EF 8000C698 880300EF 8000C698 880300EF 8000C698 880300EF 8000C698 880300EF 8000C698 880300EF 8000C698 880300EF lbz r0, [r3 + 0x00EF]
8000C69C 28000004 8000C69C 28000004 8000C69C 28000004 8000C69C 28000004 8000C69C 28000004 8000C69C 28000004 8000C69C 28000004 8000C69C 28000004 cmplwi r0, 4
8000C6A0 40820014 8000C6A0 40820014 8000C6A0 40820014 8000C6A0 40820014 8000C6A0 40820014 8000C6A0 40820014 8000C6A0 40820014 8000C6A0 40820014 bne +0x00000014 /* 8000C6B4 */
8000C6A4 3C600005 8000C6A4 3C600005 8000C6A4 3C600005 8000C6A4 3C600005 8000C6A4 3C600005 8000C6A4 3C600005 8000C6A4 3C600005 8000C6A4 3C600005 lis r3, 0x0005
8000C6A8 60632813 8000C6A8 60632813 8000C6A8 60632813 8000C6A8 60632813 8000C6A8 60632813 8000C6A8 60632813 8000C6A8 60632813 8000C6A8 60632813 ori r3, r3, 0x2813
8000C6AC 38800000 8000C6AC 38800000 8000C6AC 38800000 8000C6AC 38800000 8000C6AC 38800000 8000C6AC 38800000 8000C6AC 38800000 8000C6AC 38800000 li r4, 0x0000
8000C6B0 48026FFD 8000C6B0 4802702D 8000C6B0 48027049 8000C6B0 48026FDD 8000C6B0 4802721D 8000C6B0 4802721D 8000C6B0 480271E5 8000C6B0 4802725D bl +0x0002721C /* 800338CC */
8000C6B4 80010024 8000C6B4 80010024 8000C6B4 80010024 8000C6B4 80010024 8000C6B4 80010024 8000C6B4 80010024 8000C6B4 80010024 8000C6B4 80010024 lwz r0, [r1 + 0x0024]
8000C6B8 4810E64C 8000C6B8 4810E868 8000C6B8 4810EA38 8000C6B8 4810E800 8000C6B8 4810E8F0 8000C6B8 4810E8F0 8000C6B8 4810E810 8000C6B8 4810E9E8 b +0x0010E8F0 /* 8011AFA8 */
8011AD00 4BEF1990 8011AF1C 4BEF1774 8011B0EC 4BEF15A4 8011AEB4 4BEF17DC 8011AFA4 4BEF16EC 8011AFA4 4BEF16EC 8011AEC4 4BEF17CC 8011B09C 4BEF15F4 b -0x0010E914 /* 8000C690 */
Play SFX for Hungry Mag
HungryMagSound
*** name=MAG alert
*** desc=Play a sound when\nyour MAG is hungry
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000BF30 9421FFF0 8000BF30 9421FFF0 8000BF30 9421FFF0 8000BF30 9421FFF0 8000BF30 9421FFF0 8000BF30 9421FFF0 8000BF30 9421FFF0 8000BF30 9421FFF0 stwu [r1 - 0x0010], r1
8000BF34 7C0802A6 8000BF34 7C0802A6 8000BF34 7C0802A6 8000BF34 7C0802A6 8000BF34 7C0802A6 8000BF34 7C0802A6 8000BF34 7C0802A6 8000BF34 7C0802A6 mflr r0
8000BF38 90010014 8000BF38 90010014 8000BF38 90010014 8000BF38 90010014 8000BF38 90010014 8000BF38 90010014 8000BF38 90010014 8000BF38 90010014 stw [r1 + 0x0014], r0
8000BF3C 3C600002 8000BF3C 3C600002 8000BF3C 3C600002 8000BF3C 3C600002 8000BF3C 3C600002 8000BF3C 3C600002 8000BF3C 3C600002 8000BF3C 3C600002 lis r3, 0x0002
8000BF40 60632825 8000BF40 60632825 8000BF40 60632825 8000BF40 60632825 8000BF40 60632825 8000BF40 60632825 8000BF40 60632825 8000BF40 60632825 ori r3, r3, 0x2825
8000BF44 38800000 8000BF44 38800000 8000BF44 38800000 8000BF44 38800000 8000BF44 38800000 8000BF44 38800000 8000BF44 38800000 8000BF44 38800000 li r4, 0x0000
8000BF48 48027765 8000BF48 48027795 8000BF48 480277B1 8000BF48 48027745 8000BF48 48027985 8000BF48 48027985 8000BF48 4802794D 8000BF48 480279C5 bl +0x00027984 /* 800338CC */
8000BF4C 80010014 8000BF4C 80010014 8000BF4C 80010014 8000BF4C 80010014 8000BF4C 80010014 8000BF4C 80010014 8000BF4C 80010014 8000BF4C 80010014 lwz r0, [r1 + 0x0014]
8000BF50 7C0803A6 8000BF50 7C0803A6 8000BF50 7C0803A6 8000BF50 7C0803A6 8000BF50 7C0803A6 8000BF50 7C0803A6 8000BF50 7C0803A6 8000BF50 7C0803A6 mtlr r0
8000BF54 38210010 8000BF54 38210010 8000BF54 38210010 8000BF54 38210010 8000BF54 38210010 8000BF54 38210010 8000BF54 38210010 8000BF54 38210010 addi r1, r1, 0x0010
8000BF58 4E800020 8000BF58 4E800020 8000BF58 4E800020 8000BF58 4E800020 8000BF58 4E800020 8000BF58 4E800020 8000BF58 4E800020 8000BF58 4E800020 blr
80110D94 4BEFB19C 80110F94 4BEFAF9C 80111080 4BEFAEB0 80110F20 4BEFB010 80111038 4BEFAEF8 80111038 4BEFAEF8 80110F30 4BEFB000 80111114 4BEFAE1C b -0x00105108 /* 8000BF30 */
Invisible Mag
InvisibleMag
*** name=Invisible MAG
*** desc=Make MAGs invisible
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80114F04 480000D4 80115118 480000D4 8011521C 480000D4 801150B0 480000D4 801151A8 480000D4 801151A8 480000D4 801150C0 480000D4 80115298 480000D4 b +0x000000D4 /* 8011527C */
16:9 Aspect Ratio
169AspectRatioV1
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
80000088 C04210F0 80000088 C0421120 80000088 C0421130 80000088 C0421130 80000088 C0421108 80000088 C0421108 80000088 C0421138 80000088 C0421128 lfs f2, [r2 + 0x1108]
8000008C EFBD00B2 8000008C EFBD00B2 8000008C EFBD00B2 8000008C EFBD00B2 8000008C EFBD00B2 8000008C EFBD00B2 8000008C EFBD00B2 8000008C EFBD00B2 fmuls f29, f29, f2
80000090 FC40E890 80000090 FC40E890 80000090 FC40E890 80000090 FC40E890 80000090 FC40E890 80000090 FC40E890 80000090 FC40E890 80000090 FC40E890 fmr f2, f29
80000094 483D1D98 80000094 483D47A0 80000094 483D6640 80000094 483D63F0 80000094 483D3068 80000094 483D30C0 80000094 483D67C0 80000094 483D52B0 b +0x003D3068 /* 803D30FC */
803D1E28 4BC2E260 803D4830 4BC2B858 803D66D0 4BC299B8 803D6480 4BC29C08 803D30F8 4BC2CF90 803D3150 4BC2CF38 803D6850 4BC29838 803D5340 4BC2AD48 b -0x003D3070 /* 80000088 */
16:9 Aspect Ratio V2
169AspectRatioV2
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000BE4C C01C0040 8000BE4C C01C0040 8000BE4C C01C0040 8000BE4C C01C0040 8000BE4C C01C0040 8000BE4C C01C0040 8000BE4C C01C0040 8000BE4C C01C0040 lfs f0, [r28 + 0x0040]
8000BE50 C062F7C0 8000BE50 C062F7C8 8000BE50 C062F7C8 8000BE50 C062F7C8 8000BE50 C062F7D0 8000BE50 C062F7D0 8000BE50 C062F7D0 8000BE50 C062F7D0 lfs f3, [r2 - 0x0830]
8000BE54 EC4100FA 8000BE54 EC4100FA 8000BE54 EC4100FA 8000BE54 EC4100FA 8000BE54 EC4100FA 8000BE54 EC4100FA 8000BE54 EC4100FA 8000BE54 EC4100FA fmadds f2, f1, f0, f3
8000BE58 C062E3EC 8000BE58 C062E3F4 8000BE58 C062E3F4 8000BE58 C062E3F4 8000BE58 C062E3FC 8000BE58 C062E3FC 8000BE58 C062E3FC 8000BE58 C062E3FC lfs f3, [r2 - 0x1C04]
8000BE5C 48253B0C 8000BE5C 482546E4 8000BE5C 48255768 8000BE5C 482554E0 8000BE5C 482543E4 8000BE5C 482543E4 8000BE5C 482557A4 8000BE5C 48254FEC b +0x002543E4 /* 80260240 */
8000BE60 C0030010 8000BE60 C0030010 8000BE60 C0030010 8000BE60 C0030010 8000BE60 C0030010 8000BE60 C0030010 8000BE60 C0030010 8000BE60 C0030010 lfs f0, [r3 + 0x0010]
8000BE64 C0240000 8000BE64 C0240000 8000BE64 C0240000 8000BE64 C0240000 8000BE64 C0240000 8000BE64 C0240000 8000BE64 C0240000 8000BE64 C0240000 lfs f1, [r4]
8000BE68 EC210028 8000BE68 EC210028 8000BE68 EC210028 8000BE68 EC210028 8000BE68 EC210028 8000BE68 EC210028 8000BE68 EC210028 8000BE68 EC210028 fsubs f1, f1, f0
8000BE6C C082F7C0 8000BE6C C082F7C8 8000BE6C C082F7C8 8000BE6C C082F7C8 8000BE6C C082F7D0 8000BE6C C082F7D0 8000BE6C C082F7D0 8000BE6C C082F7D0 lfs f4, [r2 - 0x0830]
8000BE70 EC84007A 8000BE70 EC84007A 8000BE70 EC84007A 8000BE70 EC84007A 8000BE70 EC84007A 8000BE70 EC84007A 8000BE70 EC84007A 8000BE70 EC84007A fmadds f4, f4, f0, f1
8000BE74 C0030038 8000BE74 C0030038 8000BE74 C0030038 8000BE74 C0030038 8000BE74 C0030038 8000BE74 C0030038 8000BE74 C0030038 8000BE74 C0030038 lfs f0, [r3 + 0x0038]
8000BE78 48250454 8000BE78 48250FFC 8000BE78 48251FCC 8000BE78 48251CF0 8000BE78 48250D2C 8000BE78 48250D2C 8000BE78 48251FB4 8000BE78 482517FC b +0x00250D2C /* 8025CBA4 */
8000BE7C C01E0008 8000BE7C C01E0008 8000BE7C C01E0008 8000BE7C C01E0008 8000BE7C C01E0008 8000BE7C C01E0008 8000BE7C C01E0008 8000BE7C C01E0008 lfs f0, [r30 + 0x0008]
8000BE80 C082F7C0 8000BE80 C082F7C8 8000BE80 C082F7C8 8000BE80 C082F7C8 8000BE80 C082F7D0 8000BE80 C082F7D0 8000BE80 C082F7D0 8000BE80 C082F7D0 lfs f4, [r2 - 0x0830]
8000BE84 EC040032 8000BE84 EC040032 8000BE84 EC040032 8000BE84 EC040032 8000BE84 EC040032 8000BE84 EC040032 8000BE84 EC040032 8000BE84 EC040032 fmuls f0, f4, f0
8000BE88 ECA400F2 8000BE88 ECA400F2 8000BE88 ECA400F2 8000BE88 ECA400F2 8000BE88 ECA400F2 8000BE88 ECA400F2 8000BE88 ECA400F2 8000BE88 ECA400F2 fmuls f5, f4, f3
8000BE8C 48235FE0 8000BE8C 482369C0 8000BE8C 48237920 8000BE8C 482376B4 8000BE8C 482368BC 8000BE8C 482368BC 8000BE8C 482379E8 8000BE8C 48237230 b +0x002368BC /* 80242748 */
8000BE90 C082F7C0 8000BE90 C082F7C8 8000BE90 C082F7C8 8000BE90 C082F7C8 8000BE90 C082F7D0 8000BE90 C082F7D0 8000BE90 C082F7D0 8000BE90 C082F7D0 lfs f4, [r2 - 0x0830]
8000BE94 EC04083A 8000BE94 EC04083A 8000BE94 EC04083A 8000BE94 EC04083A 8000BE94 EC04083A 8000BE94 EC04083A 8000BE94 EC04083A 8000BE94 EC04083A fmadds f0, f4, f1, f0
8000BE98 EC8400F2 8000BE98 EC8400F2 8000BE98 EC8400F2 8000BE98 EC8400F2 8000BE98 EC8400F2 8000BE98 EC8400F2 8000BE98 EC8400F2 8000BE98 EC8400F2 fmuls f4, f4, f3
8000BE9C 48236030 8000BE9C 48236A10 8000BE9C 48237970 8000BE9C 48237704 8000BE9C 4823690C 8000BE9C 4823690C 8000BE9C 48237A38 8000BE9C 48237280 b +0x0023690C /* 802427A8 */
8000BEA0 C0060000 8000BEA0 C0060000 8000BEA0 C0060000 8000BEA0 C0060000 8000BEA0 C0060000 8000BEA0 C0060000 8000BEA0 C0060000 8000BEA0 C0060000 lfs f0, [r6]
8000BEA4 C042F7C0 8000BEA4 C042F7C8 8000BEA4 C042F7C8 8000BEA4 C042F7C8 8000BEA4 C042F7D0 8000BEA4 C042F7D0 8000BEA4 C042F7D0 8000BEA4 C042F7D0 lfs f2, [r2 - 0x0830]
8000BEA8 EC020032 8000BEA8 EC020032 8000BEA8 EC020032 8000BEA8 EC020032 8000BEA8 EC020032 8000BEA8 EC020032 8000BEA8 EC020032 8000BEA8 EC020032 fmuls f0, f2, f0
8000BEAC 482411F8 8000BEAC 48241C44 8000BEAC 48242B84 8000BEAC 48242938 8000BEAC 48241A80 8000BEAC 48241A80 8000BEAC 48242BFC 8000BEAC 48242444 b +0x00241A80 /* 8024D92C */
8000BEB0 C04210F0 8000BEB0 C0421120 8000BEB0 C0421130 8000BEB0 C0421130 8000BEB0 C0421108 8000BEB0 C0421108 8000BEB0 C0421138 8000BEB0 C0421128 lfs f2, [r2 + 0x1108]
8000BEB4 EFBD00B2 8000BEB4 EFBD00B2 8000BEB4 EFBD00B2 8000BEB4 EFBD00B2 8000BEB4 EFBD00B2 8000BEB4 EFBD00B2 8000BEB4 EFBD00B2 8000BEB4 EFBD00B2 fmuls f29, f29, f2
8000BEB8 FC40E890 8000BEB8 FC40E890 8000BEB8 FC40E890 8000BEB8 FC40E890 8000BEB8 FC40E890 8000BEB8 FC40E890 8000BEB8 FC40E890 8000BEB8 FC40E890 fmr f2, f29
8000BEBC 483C5F70 8000BEBC 483C8978 8000BEBC 483CA818 8000BEBC 483CA5C8 8000BEBC 483C7240 8000BEBC 483C7298 8000BEBC 483CA998 8000BEBC 483C9488 b +0x003C7240 /* 803D30FC */
80241E68 4BDCA014 80242848 4BDC9634 802437A8 4BDC86D4 8024353C 4BDC8940 80242744 4BDC9738 80242744 4BDC9738 80243870 4BDC860C 802430B8 4BDC8DC4 b -0x002368C8 /* 8000BE7C */
80241E74 EC25007A 80242854 EC25007A 802437B4 EC25007A 80243548 EC25007A 80242750 EC25007A 80242750 EC25007A 8024387C EC25007A 802430C4 EC25007A fmadds f1, f5, f0, f1
80241EC8 4BDC9FC8 802428A8 4BDC95E8 80243808 4BDC8688 8024359C 4BDC88F4 802427A4 4BDC96EC 802427A4 4BDC96EC 802438D0 4BDC85C0 80243118 4BDC8D78 b -0x00236914 /* 8000BE90 */
80241ED0 EC04007A 802428B0 EC04007A 80243810 EC04007A 802435A4 EC04007A 802427AC EC04007A 802427AC EC04007A 802438D8 EC04007A 80243120 EC04007A fmadds f0, f4, f0, f1
8024D0A0 4BDBEE00 8024DAEC 4BDBE3B4 8024EA2C 4BDBD474 8024E7E0 4BDBD6C0 8024D928 4BDBE578 8024D928 4BDBE578 8024EAA4 4BDBD3FC 8024E2EC 4BDBDBB4 b -0x00241A88 /* 8000BEA0 */
8025C2C8 4BDAFB98 8025CE70 4BDAEFF0 8025DE40 4BDAE020 8025DB64 4BDAE2FC 8025CBA0 4BDAF2C0 8025CBA0 4BDAF2C0 8025DE28 4BDAE038 8025D670 4BDAE7F0 b -0x00250D40 /* 8000BE60 */
8025C324 60000000 8025CECC 60000000 8025DE9C 60000000 8025DBC0 60000000 8025CBFC 60000000 8025CBFC 60000000 8025DE84 60000000 8025D6CC 60000000 nop
8025F964 4BDAC4E8 8026053C 4BDAB910 802615C0 4BDAA88C 80261338 4BDAAB14 8026023C 4BDABC10 8026023C 4BDABC10 802615FC 4BDAA850 80260E44 4BDAB008 b -0x002543F0 /* 8000BE4C */
8025F974 EC421828 8026054C EC421828 802615D0 EC421828 80261348 EC421828 8026024C EC421828 8026024C EC421828 8026160C EC421828 80260E54 EC421828 fsubs f2, f2, f3
803D1E28 4BC3A088 803D4830 4BC37680 803D66D0 4BC357E0 803D6480 4BC35A30 803D30F8 4BC38DB8 803D3150 4BC38D60 803D6850 4BC35660 803D5340 4BC36B70 b -0x003C7248 /* 8000BEB0 */
8044B3E0 432A0000 8044E200 432A0000 80450268 432A0000 80450030 432A0000 8044C170 432A0000 8044C5F0 432A0000 8044FEE8 432A0000 8044FCE8 432A0000 bc 25, 10, +0x00000000 /* 8044C170 */
8044B3F0 43FB8000 8044E210 43FB8000 80450278 43FB8000 80450040 43FB8000 8044C180 43FB8000 8044C600 43FB8000 8044FEF8 43FB8000 8044FCF8 43FB8000 bc 31, 27, -0x00008000 /* 80444180 */
8044B488 43540000 8044E2A8 43540000 80450310 43540000 804500D8 43540000 8044C218 43540000 8044C698 43540000 8044FF90 43540000 8044FD90 43540000 bc 26, 20, +0x00000000 /* 8044C218 */
8044B490 43860000 8044E2B0 43860000 80450318 43860000 804500E0 43860000 8044C220 43860000 8044C6A0 43860000 8044FF98 43860000 8044FD98 43860000 bc 28, 6, +0x00000000 /* 8044C220 */
8044B858 42B00000 8044E678 42B00000 804506E0 42B00000 804504A8 42B00000 8044C5E8 42B00000 8044CA68 42B00000 80450360 42B00000 80450160 42B00000 b cr4, +0x00000000 /* 8044C5E8 */
8044B968 430A0000 8044E788 430A0000 804507F0 430A0000 804505B8 430A0000 8044C6F8 430A0000 8044CB78 430A0000 80450470 430A0000 80450270 430A0000 bc 24, 10, +0x00000000 /* 8044C6F8 */
8044B970 43160000 8044E790 43160000 804507F8 43160000 804505C0 43160000 8044C700 43160000 8044CB80 43160000 80450478 43160000 80450278 43160000 bc 24, 22, +0x00000000 /* 8044C700 */
804CBCA8 44420000 804CF3F8 44420000 804D1948 44420000 804D16E8 44420000 804CC478 44420000 804CC958 44420000 804D0FC0 44420000 804D13B0 44420000 .invalid sc
804EA678 42780000 804EDDF8 42780000 804F0410 42780000 804F01B0 42780000 804EAEB0 42780000 804EB390 42780000 804EFAC0 42780000 804F0998 42780000 bc 19, 24, +0x00000000 /* 804EAEB0 */
804EA680 42B00000 804EDE00 42B00000 804F0418 42B00000 804F01B8 42B00000 804EAEB8 42B00000 804EB398 42B00000 804EFAC8 42B00000 804F09A0 42B00000 b cr4, +0x00000000 /* 804EAEB8 */
805CBB58 00000000 805D6158 00000000 805DD5F8 00000000 805DD398 00000000 805CC460 00000000 805D3480 00000000 805DCCA0 00000000 805D8EE0 00000000 .invalid
805CC360 44214000 805D6968 44214000 805DDE08 44214000 805DDBA8 44214000 805CCC70 44214000 805D3C90 44214000 805DD4B0 44214000 805D96F0 44214000 .invalid sc
805CC36C 43A48000 805D6974 43A48000 805DDE14 43A48000 805DDBB4 43A48000 805CCC7C 43A48000 805D3C9C 43A48000 805DD4BC 43A48000 805D96FC 43A48000 b cr1, -0x00008000 /* 805C4C7C */
805CC390 44214000 805D6998 44214000 805DDE38 44214000 805DDBD8 44214000 805CCCA0 44214000 805D3CC0 44214000 805DD4E0 44214000 805D9720 44214000 .invalid sc
805CC768 42280000 805D6D70 42280000 805DE210 42280000 805DDFB0 42280000 805CD078 42280000 805D4098 42280000 805DD8B8 42280000 805D9AF8 42280000 bdnz cr2, +0x00000000 /* 805CD078 */
805CCFAC 3F800000 805D75B4 3F800000 805DEA54 3F800000 805DE7F4 3F800000 805CD8BC 3F800000 805D48DC 3F800000 805DE0FC 3F800000 805DA33C 3F800000 lis r28, 0x0000
805CCFC0 41980000 805D75C8 41980000 805DEA68 41980000 805DE808 41980000 805CD8D0 41980000 805D48F0 41980000 805DE110 41980000 805DA350 41980000 blt cr6, +0x00000000 /* 805CD8D0 */
805CCFE0 43180000 805D75E8 43180000 805DEA88 43180000 805DE828 43180000 805CD8F0 43180000 805D4910 43180000 805DE130 43180000 805DA370 43180000 bdnz cr6, +0x00000000 /* 805CD8F0 */
Water & Light Effects Aspect Ratio Fix (for use with a 16:9 code)
169AmbientEffectsFix
JP12------------- JP13------------- JP14------------- JP15------------- US10------------- US11------------- US12------------- EU--------------- DISASSEMBLY (US10)
8000BDF0 C36210F0 8000BDF0 C3621120 8000BDF0 C3621130 8000BDF0 C3621130 8000BDF0 C3621108 8000BDF0 C3621108 8000BDF0 C3621138 8000BDF0 C3621128 lfs f27, [r2 + 0x1108]
8000BDF4 EC4206F2 8000BDF4 EC4206F2 8000BDF4 EC4206F2 8000BDF4 EC4206F2 8000BDF4 EC4206F2 8000BDF4 EC4206F2 8000BDF4 EC4206F2 8000BDF4 EC4206F2 fmuls f2, f2, f27
8000BDF8 FF601090 8000BDF8 FF601090 8000BDF8 FF601090 8000BDF8 FF601090 8000BDF8 FF601090 8000BDF8 FF601090 8000BDF8 FF601090 8000BDF8 FF601090 fmr f27, f2
8000BDFC 48366614 8000BDFC 48368D80 8000BDFC 4836AC1C 8000BDFC 4836A9D0 8000BDFC 48367658 8000BDFC 4836769C 8000BDFC 4836AD9C 8000BDFC 483698C4 b +0x00367658 /* 80373454 */
8037240C 4BC999E4 80374B78 4BC97278 80376A14 4BC953DC 803767C8 4BC95628 80373450 4BC989A0 80373494 4BC9895C 80376B94 4BC9525C 803756BC 4BC96734 b -0x00367660 /* 8000BDF0 */
+2785
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

+3
View File
@@ -0,0 +1,3 @@
.\data\help2-0-ja.png
.\data\help0-4-ja.png
.\data\help0-5-ja.png
+6
View File
@@ -0,0 +1,6 @@
.\data\help2-0-ja.png
.\data\help0-0-ja.png
.\data\help0-1-ja.png
.\data\help0-2-ja.png
.\data\help0-3-ja.png
.\data\help0-7-ja.png
+1
View File
@@ -0,0 +1 @@
.\data\help1-1-ja.png
+1
View File
@@ -0,0 +1 @@
.\data\help1-0-ja.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,829 @@
.version BB_V4
.quest_num 65535
.episode Episode1
.max_players 0
.name "title dummy"
.short_desc "intro dummy"
.long_desc "detail dummy"
start@0x0000:
ret
label0001@0x0001:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "Greetings."
message ...
arg_pushs "We\'ve got an emergency\nsituation happening on\nRagol."
add_msg ...
arg_pushs "We need skilled hunters\nsuch as yourself to help\nus out."
add_msg ...
mesend
ret
label0002@0x0002:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0003@0x0003:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0004@0x0004:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0005@0x0005:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0006@0x0006:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0007@0x0007:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0008@0x0008:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0009@0x0009:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0014@0x0014:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "A meteor impact formed\nan enormous Crater on\nRagol\'s surface."
message ...
arg_pushs "We believe that it may\nhold some clues as to\nwhat\'s going on, now."
add_msg ...
arg_pushs "Please, help us in\nwhatever way you can."
add_msg ...
mesend
ret
label0015@0x0015:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0016@0x0016:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0017@0x0017:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0018@0x0018:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0019@0x0019:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "NO_TEXT"
message ...
mesend
ret
label001E@0x001E:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "I\'ve been thinking for a\nwhile, now, and I find\nit strange."
message ...
arg_pushs "We had already detected\nthe meteor beforehand,\nright?"
add_msg ...
arg_pushs "So, then, how come..."
add_msg ...
mesend
ret
label001F@0x001F:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0020@0x0020:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0021@0x0021:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0022@0x0022:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0023@0x0023:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0024@0x0024:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0025@0x0025:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0026@0x0026:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0032@0x0032:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "There\'s been a meteor\nstrike!"
message ...
arg_pushs "A meteor!"
add_msg ...
arg_pushs "It looks like we were\nokay this time, but\nwhat if more come?"
add_msg ...
arg_pushs "We need to leave this\nplanet now!"
add_msg ...
arg_pushs "Err... Sorry, I guess\nI\'m overreacting."
add_msg ...
mesend
ret
label0033@0x0033:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0034@0x0034:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0035@0x0035:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0036@0x0036:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0037@0x0037:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "NO_TEXT"
message ...
mesend
ret
label003C@0x003C:
// Could not determine data type; disassembling as code
arg_pushl 0x000003F4
arg_pushs "There\'s been a lot of\nmovement from people in\nuniform recently."
message ...
arg_pushs "There\'s talk of a simple\ninvestigation of the\nCrater, but..."
add_msg ...
arg_pushs "They seem a bit too tense\nfor such a \"simple\"\ninvestigation."
add_msg ...
mesend
ret
label0046@0x0046:
// Could not determine data type; disassembling as code
arg_pushl 0x000003F5
arg_pushs "Have you heard?"
message ...
arg_pushs "That shockwave was caused\nby a meteor that almost\nhit Pioneer 2!"
add_msg ...
arg_pushs "Evidently, it impacted\non the surface of\nRagol."
add_msg ...
arg_pushs "The whole situation\nseems weird."
add_msg ...
mesend
ret
label0050@0x0050:
// Could not determine data type; disassembling as code
arg_pushl 0x000003F6
arg_pushs "The people coming through\nhere seem to be getting\nmore and more nervous."
message ...
arg_pushs "Things on Pioneer 2 seem\nokay, but what\'s going on\ndown on Ragol?"
add_msg ...
mesend
ret
label005A@0x005A:
// Could not determine data type; disassembling as code
arg_pushl 0x000003F7
arg_pushs "That shaking we felt was\nbecause of the meteor!"
message ...
arg_pushs "It gave me quite a\nshock, but I\'m glad\neveryone\'s okay!"
add_msg ...
mesend
ret
label0064@0x0064:
// Could not determine data type; disassembling as code
arg_pushl 0x000003F8
arg_pushs "You!\nYou!\nYou!"
message ...
arg_pushs "This is no time to\ngoof off!"
add_msg ...
arg_pushs "That shaking had my\neyes popping out of\nmy head!"
add_msg ...
arg_pushs "Aw, I\'m just teasing you.\nStill, this situation is\njust incredible!"
add_msg ...
mesend
ret
label006E@0x006E:
// Could not determine data type; disassembling as code
arg_pushl 0x000003FA
arg_pushs "If you\'re hurt, head to\nthe Medical Center for\nsome aid!"
message ...
arg_pushs "Sometimes, courage is\nknowing when it\'s\nbetter to retreat."
add_msg ...
arg_pushs "Do your best, but\ndon\'t overdo it!"
add_msg ...
mesend
ret
label0078@0x0078:
// Could not determine data type; disassembling as code
arg_pushl 0x000003FB
arg_pushs "This teleporter will take\nyou down to the surface\nof Ragol."
message ...
arg_pushs "The investigation of the\nmeteor impact is not\nyet complete."
add_msg ...
arg_pushs "Please be prepared for\nany and all possible\ncontingencies."
add_msg ...
mesend
ret
label0082@0x0082:
// Could not determine data type; disassembling as code
arg_pushl 0x000003FC
arg_pushs "The military must be\ndispatched to deal with\nthis crisis."
message ...
arg_pushs "We must give our all,\nfor the sake of the\npeople."
add_msg ...
arg_pushs "That is a soldier\'s\nultimate duty."
add_msg ...
mesend
ret
label008C@0x008C:
// Could not determine data type; disassembling as code
arg_pushl 0x000003FD
arg_pushs "It\'s shopping day!\nAnd yet again, I end\nup here..."
message ...
arg_pushs "..."
add_msg ...
arg_pushs "...hey, were you\njust listening in\non me?"
add_msg ...
mesend
ret
label0096@0x0096:
// Could not determine data type; disassembling as code
arg_pushl 0x000003FF
arg_pushs "This teleporter leads to\na battle training\nsimulator."
message ...
arg_pushs "The goal is to defeat as\nmany opponents as\npossible in a set time."
add_msg ...
arg_pushs "The simulator has been\ndesigned by the\ngovernment itself."
add_msg ...
mesend
ret
label00A0@0x00A0:
// Could not determine data type; disassembling as code
arg_pushl 0x00000400
arg_pushs "I wonder which one of\nus is stronger, between\nyou and I."
message ...
arg_pushs "I mean, I don\'t bear you\nany ill will, I\'m just\ncurious."
add_msg ...
arg_pushs "The simulator can make\nfor a good test of your\ntrue abilities."
add_msg ...
arg_pushs "In a real contest,\nthough, it all comes\ndown to luck."
add_msg ...
arg_pushs "The stronger opponent\ndoesn\'t always\nnecessarily succeed."
add_msg ...
mesend
ret
label00AA@0x00AA:
// Could not determine data type; disassembling as code
arg_pushl 0x00000401
arg_pushs "Experience and items here\ncan\'t be used elsewhere."
message ...
arg_pushs "My dad said that you\ncan\'t save them, and you\ncan\'t take them with you."
add_msg ...
arg_pushs "But I\'m just a kid. I\nreally don\'t know what\nhe\'s talking about."
add_msg ...
mesend
ret
label00B4@0x00B4:
// Could not determine data type; disassembling as code
arg_pushl 0x00000402
arg_pushs "Make sure that you don\'t\nget caught in your own\nTraps!"
message ...
arg_pushs "That\'s why my grandpa\nsaid. But I\'m just a kid,\nso I don\'t get it."
add_msg ...
mesend
ret
label00BE@0x00BE:
// Could not determine data type; disassembling as code
arg_pushl 0x00000404
arg_pushs "This teleporter won\'t \ntake you to Ragol."
message ...
arg_pushs "It\'ll bring you to a\ngovernment-designed\ntraining simulator."
add_msg ...
arg_pushs "I heard that it ranks\nhunters."
add_msg ...
arg_pushs "What a great simulator!"
add_msg ...
mesend
ret
label00C8@0x00C8:
// Could not determine data type; disassembling as code
arg_pushl 0x00000405
arg_pushs "Each stage has its own\nset of rules. Read them\nbefore starting a game."
message ...
arg_pushs "When a stage has been\ncleared, a title is given\nto allow you to progress."
add_msg ...
arg_pushs "You can play the same\nstages even after you\nhave cleared them."
add_msg ...
arg_pushs "I\'ve heard you\'ll receive\nwonderful rewards after\nclearing all the stages."
add_msg ...
arg_pushs "Good luck!"
add_msg ...
mesend
ret
label00D2@0x00D2:
// Could not determine data type; disassembling as code
arg_pushl 0x00000406
arg_pushs "Experience and items only\napply to the stage they\nwere earned on."
message ...
arg_pushs "That\'s what my dad told\nme, but I\'m just a kid.\nI don\'t understand."
add_msg ...
mesend
ret
label00DC@0x00DC:
// Could not determine data type; disassembling as code
arg_pushl 0x00000407
arg_pushs "Press TAB to see the\ntitle that you received."
message ...
arg_pushs "My grandpa told me that\nbefore, but I didn\'t pay\nattention then."
add_msg ...
mesend
ret
label00E6@0x00E6:
// Could not determine data type; disassembling as code
arg_pushl 0x00000408
arg_pushs "The emphasis of this\nsimulation is to help\nothers!"
message ...
arg_pushs "The simulation will end\nwhen any player in your\ngroup is dead."
add_msg ...
arg_pushs "Pay attention to each\nother\'s condition and\nhelp each other."
add_msg ...
arg_pushs "For example, when you\nhave a Force, give health\nitems to him or her."
add_msg ...
arg_pushs "Good luck!"
add_msg ...
mesend
ret
label00E7@0x00E7:
// Could not determine data type; disassembling as code
arg_pushl 0x00000408
arg_pushs "The emphasis of this\nsimulation is to help\nothers!"
message ...
arg_pushs "The simulation will end\nwhen all players in the\ngroup are dead."
add_msg ...
arg_pushs "Pay attention to each\nother\'s condition and\nhelp each other."
add_msg ...
arg_pushs "For example, when you\nhave a Force, give health\nitems to him or her."
add_msg ...
arg_pushs "Good luck!"
add_msg ...
mesend
ret
label0320@0x0320:
// Could not determine data type; disassembling as code
arg_pushl 0x00000000
bb_p2_menu ...
ret
label032A@0x032A:
// Could not determine data type; disassembling as code
arg_pushl 0x00000002
bb_p2_menu ...
ret
label0334@0x0334:
// Could not determine data type; disassembling as code
arg_pushl 0x00000003
bb_p2_menu ...
ret
label033E@0x033E:
// Could not determine data type; disassembling as code
gget 0x000B, r200
gget 0x000C, r201
gget 0x000D, r202
gget 0x000E, r203
gget 0x000F, r204
gget 0x0010, r205
gget 0x0011, r206
gget 0x0012, r207
gget 0x0013, r208
gget 0x0014, r209
gget 0x0015, r210
gget 0x0016, r211
gget 0x0017, r212
gget 0x0018, r213
gget 0x0019, r214
gget 0x001A, r215
gget 0x001E, r216
gget 0x001F, r217
gget 0x0020, r218
gget 0x0021, r219
gget 0x0022, r220
gget 0x0028, r221
gget 0x0029, r222
gget 0x002A, r223
gget 0x002B, r224
gget 0x002C, r225
gget 0x002D, r226
gget 0x002E, r227
gget 0x002F, r228
gget 0x0030, r229
jmpi_eq r208, 0x00000001, label033F /* 22F7 */
arg_pushl 0x00000006
bb_p2_menu ...
gset 0x0013
ret
label033F@0x033F:
arg_pushl 0x00000006
bb_p2_menu ...
ret
label0348@0x0348:
// Could not determine data type; disassembling as code
arg_pushl 0x00000005
bb_p2_menu ...
ret
label0352@0x0352:
// Could not determine data type; disassembling as code
arg_pushl 0x00000004
bb_p2_menu ...
ret
label035C@0x035C:
// Could not determine data type; disassembling as code
arg_pushl 0x00000001
bb_p2_menu ...
ret
label0366@0x0366:
// Could not determine data type; disassembling as code
gget 0x000B, r200
gget 0x000C, r201
gget 0x000D, r202
gget 0x000E, r203
gget 0x000F, r204
gget 0x0010, r205
gget 0x0011, r206
gget 0x0012, r207
gget 0x0013, r208
gget 0x0014, r209
gget 0x0015, r210
gget 0x0016, r211
gget 0x0017, r212
gget 0x0018, r213
gget 0x0019, r214
gget 0x001A, r215
gget 0x001E, r216
gget 0x001F, r217
gget 0x0020, r218
gget 0x0021, r219
gget 0x0022, r220
gget 0x0028, r221
gget 0x0029, r222
gget 0x002A, r223
gget 0x002B, r224
gget 0x002C, r225
gget 0x002D, r226
gget 0x002E, r227
gget 0x002F, r228
gget 0x0030, r229
gget 0x03FA, r230
jmpi_eq r230, 0x00000001, label0367 /* 24F6 */
arg_pushl 0x00000419
arg_pushs "How do you do?\nI\'m the new receptionist\nclerk, here!"
message ...
arg_pushs "My name is <color 5>Momoka<color 0>."
add_msg ...
arg_pushs "If you need help or would\nlike to see what we\'re\noffering, come see me."
add_msg ...
mesend
gset 0x03FA
arg_pushl 0x00000007
bb_p2_menu ...
ret
label0367@0x0367:
arg_pushl 0x00000007
bb_p2_menu ...
ret
label0370@0x0370:
// Could not determine data type; disassembling as code
arg_pushl 0x00000418
arg_pushs "I am Coren Tsu, a wandering merchant,\nyou could say."
message ...
arg_pushs "Please take some time to look at\nthe rare and wonderous goods\nI have been collecting."
add_msg ...
arg_pushs "If you spend a little meseta,\nyou could win a wonderful prize."
add_msg ...
arg_pushs "Well? Wanna try?"
add_msg ...
mesend
arg_pushb 0x64
arg_pushs "Yes\nNo"
list ...
switch_jmp r100, [label0371 /* 1750 */, label0372 /* 18C1 */]
ret
label0371@0x0371:
bb_get_number_in_pack r100
jmpi_eq r100, 0x0000001E, label0373 /* 1984 */
arg_pushl 0x00000418
arg_pushs "You may win,\nyou may lose."
message ...
arg_pushs "But if you don't win,\ndon't take it out on me."
add_msg ...
arg_pushs "That's just the way\ngambling is, yes?"
add_msg ...
arg_pushs "Well then, how much\nmeseta do you want to pay?"
add_msg ...
arg_pushs "As long as you pay me,\nI'll give you a great service."
add_msg ...
mesend
arg_pushb 0x65
arg_pushs "1000 Meseta\n10000 Meseta\n100000 Meseta\nI'll stop"
list ...
switch_jmp r101, [label0374 /* 19FD */, label0375 /* 1A12 */, label0376 /* 1A27 */, label0377 /* 1A3C */]
ret
label0372@0x0372:
arg_pushl 0x00000418
arg_pushs "Huh?"
message ...
arg_pushs "That's too bad..."
add_msg ...
arg_pushs "Well, these kind of things usually\nhave a chance to lose money. "
add_msg ...
arg_pushs "Let's keep this discreet."
add_msg ...
arg_pushs "If you feel up to it,\ntalk to me again."
add_msg ...
mesend
ret
label0373@0x0373:
arg_pushl 0x00000418
arg_pushs "It seems you have\ntoo many items."
message ...
arg_pushs "First, go and\norganize your items,"
add_msg ...
arg_pushs "Then speak to me again."
add_msg ...
mesend
ret
label0374@0x0374:
get_slot_meseta r102
jmpi_lt r102, 0x000003E8, label0378 /* 1AA3 */
leti r102, 0x000003E8
jmp label0379 /* 1B02 */
ret
label0375@0x0375:
get_slot_meseta r102
jmpi_lt r102, 0x00002710, label0378 /* 1AA3 */
leti r102, 0x00002710
jmp label0379 /* 1B02 */
ret
label0376@0x0376:
get_slot_meseta r102
jmpi_lt r102, 0x000186A0, label0378 /* 1AA3 */
leti r102, 0x000186A0
jmp label0379 /* 1B02 */
ret
label0377@0x0377:
arg_pushl 0x00000418
arg_pushs "What?"
message ...
arg_pushs "You said you'd try,\nthen you said no."
add_msg ...
arg_pushs "People like that\nfail at everything."
add_msg ...
mesend
ret
label0378@0x0378:
arg_pushl 0x00000418
arg_pushs "What the...?"
message ...
arg_pushs "You don't have the\nmeseta to pay me?"
add_msg ...
arg_pushs "I won't work with such\ncold hearted people."
add_msg ...
mesend
ret
label0379@0x0379:
get_client_id r100
let r103, r100
let r104, r102
clear r105
take_slot_meseta r103-r104, r105
jmpi_eq r105, 0x00000000, label0378 /* 1AA3 */
arg_pushl 0x00000418
arg_pushs "You better pray..."
message ...
arg_pushs "for something good..."
add_msg ...
mesend
clear r100
label037A@0x037A:
arg_pushl 0x00000010
se ...
sync
sync
sync
sync
sync
sync
sync
sync
sync
sync
sync
sync
sync
sync
addi r100, 0x0000000F
jmpi_le r100, 0x0000005A, label037A /* 1B84 */
arg_pushr r101
bb_send_6xE2 ...
clear r106
clear r100
label037B@0x037B:
sync
bb_get_6xE3_status r106
jmpi_eq r106, 0x00000001, label037C /* 1BEA */
jmpi_eq r106, 0x00000002, label037D /* 1D24 */
addi r100, 0x00000001
jmpi_le r100, 0x0000012C, label037B /* 1BAE */
arg_pushs "SERVER SEND ERROR"
window_msg ...
winend
ret
label037C@0x037C:
sync
arg_pushl 0x00000001
bgm ...
arg_pushs "<bk>\nObtained <color 4><meseta_slot_prize><color 0>!"
window_msg ...
winend
sync
arg_pushl 0x00000418
arg_pushs "Look here!\nTake it!"
message ...
arg_pushs "Even if you had bad luck,\nsomething good will come out of it."
add_msg ...
arg_pushs "You'll win someday!"
add_msg ...
arg_pushs "In case you want to try again,\ncome back to me once more."
add_msg ...
mesend
ret
label037D@0x037D:
arg_pushs "COMMAND EXECUTION ERROR"
window_msg ...
winend
ret
nop
nop
@@ -0,0 +1,828 @@
.version BB_V4
.quest_num 65535
.episode Episode1
.max_players 0
.name "title dummy"
.short_desc "intro dummy"
.long_desc "detail dummy"
start@0x0000:
ret
label0001@0x0001:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "私が総督のタイレルだ。"
message ...
arg_pushs "現在、ラグオルでは\n異常事態が発生しておる。"
add_msg ...
arg_pushs "優秀なハンターズである\n君たちにも、ぜひ協力を頼む。"
add_msg ...
mesend
ret
label0002@0x0002:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0003@0x0003:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0004@0x0004:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0005@0x0005:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0006@0x0006:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0007@0x0007:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0008@0x0008:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0009@0x0009:
// Could not determine data type; disassembling as code
arg_pushl 0x000003E9
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0014@0x0014:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "隕石の落下により、\nラグオル地表に大規模な\nクレーターができました。"
message ...
arg_pushs "そこを発端とした\n一連の異常事態収拾に\nお力をお貸し下さい。"
add_msg ...
arg_pushs "ご協力をどうか\nよろしくお願いします。"
add_msg ...
mesend
ret
label0015@0x0015:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0016@0x0016:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0017@0x0017:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0018@0x0018:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0019@0x0019:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EA
arg_pushs "NO_TEXT"
message ...
mesend
ret
label001E@0x001E:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "この前から、ずっと\n考えていたのですが、\nおかしいんです。"
message ...
arg_pushs "あの隕石については\n我々も以前から\n察知はしていました。"
add_msg ...
arg_pushs "それなのに……"
add_msg ...
mesend
ret
label001F@0x001F:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0020@0x0020:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0021@0x0021:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0022@0x0022:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0023@0x0023:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0024@0x0024:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0025@0x0025:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0026@0x0026:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EB
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0032@0x0032:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "隕石が落ちたんだぞ!"
message ...
arg_pushs "隕石が!"
add_msg ...
arg_pushs "今、我々が無事だったとは言え、\nいつまた落ちてくるのかわからん!"
add_msg ...
arg_pushs "一刻も早く、この惑星から\n遠く離れるべきなんだよ!"
add_msg ...
arg_pushs "……おっと失礼。\n興奮しすぎたようだ。"
add_msg ...
mesend
ret
label0033@0x0033:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0034@0x0034:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0035@0x0035:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0036@0x0036:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "NO_TEXT"
message ...
mesend
ret
label0037@0x0037:
// Could not determine data type; disassembling as code
arg_pushl 0x000003EC
arg_pushs "NO_TEXT"
message ...
mesend
ret
label003C@0x003C:
// Could not determine data type; disassembling as code
arg_pushl 0x000003F4
arg_pushs "最近、あの制服のやつらの\n動きがあわただしい。"
message ...
arg_pushs "隕石の調査だと言っているが\nはたして……?"
add_msg ...
arg_pushs "それにしても、\nあまりにも緊迫感があるが。"
add_msg ...
mesend
ret
label0046@0x0046:
// Could not determine data type; disassembling as code
arg_pushl 0x000003F5
arg_pushs "知っているか……?"
message ...
arg_pushs "この前、このパイオニア2が\n激しく揺れたのは隕石が\nすぐ近くをかすめたせいさ。"
add_msg ...
arg_pushs "その隕石はその直後\nラグオルヘと衝突したらしい。"
add_msg ...
arg_pushs "しかし謎だらけだよ。\nこの事態は……"
add_msg ...
mesend
ret
label0050@0x0050:
// Could not determine data type; disassembling as code
arg_pushl 0x000003F6
arg_pushs "ここのところ、\nこのあたりを通る人に\n緊張感が感じられるわ。"
message ...
arg_pushs "パイオニア2の中は\n大丈夫だけど、ラグオルは\n大変なのかしら?"
add_msg ...
mesend
ret
label005A@0x005A:
// Could not determine data type; disassembling as code
arg_pushl 0x000003F7
arg_pushs "この前の大きな揺れは\n隕石のせいだったんだね!"
message ...
arg_pushs "びっくりしたけど、\nみんなが無事でよかったよ。"
add_msg ...
mesend
ret
label0064@0x0064:
// Could not determine data type; disassembling as code
arg_pushl 0x000003F8
arg_pushs "あんた!\nあんた!\nあんた!"
message ...
arg_pushs "そんなに、のんきに\nしている場合じゃないわよ!"
add_msg ...
arg_pushs "この前のあのすごい揺れ!\nあたしゃ目ん玉が飛び出たわよ!"
add_msg ...
arg_pushs "まぁ、冗談だけどね……\nそれくらいスゴかったってことよ!"
add_msg ...
mesend
ret
label006E@0x006E:
// Could not determine data type; disassembling as code
arg_pushl 0x000003FA
arg_pushs "疲れて傷ついた体は\nメディカルセンターで\nリフレッシュ!"
message ...
arg_pushs "戦う勇気も必要だけど、\n時には撤退する勇気も必要よ。"
add_msg ...
arg_pushs "決して無理をせずに\nがんばってね!"
add_msg ...
mesend
ret
label0078@0x0078:
// Could not determine data type; disassembling as code
arg_pushl 0x000003FB
arg_pushs "ここの転送装置から\n惑星ラグオルヘと通じている。"
message ...
arg_pushs "惑星ラグオルは\n隕石衝突後の収拾が\n未だ完全ではない。"
add_msg ...
arg_pushs "何があろうと動じない\n準備と心構えを怠らぬようにな。"
add_msg ...
mesend
ret
label0082@0x0082:
// Could not determine data type; disassembling as code
arg_pushl 0x000003FC
arg_pushs "我々軍部は、\n今回のような一大事では\n先陣を切って動かなければならん。"
message ...
arg_pushs "皆のために体を張って……"
add_msg ...
arg_pushs "軍人とはそういうものだ。"
add_msg ...
mesend
ret
label008C@0x008C:
// Could not determine data type; disassembling as code
arg_pushl 0x000003FD
arg_pushs "今日はお買い物日和ね。\nって、私ったら、\nまたここに来ちゃったわ。"
message ...
arg_pushs "…………"
add_msg ...
arg_pushs "……あら、聞こえちゃった?"
add_msg ...
mesend
ret
label0096@0x0096:
// Could not determine data type; disassembling as code
arg_pushl 0x000003FF
arg_pushs "バトルの申し込みをしたら、\n政府が 訓練のために作った\nシミュレータに転送されるよ。"
message ...
arg_pushs "決められた時間内に、どれだけ\n相手を倒したかを競うんだってさ。"
add_msg ...
arg_pushs "よくできた シミュレータだよねぇ!"
add_msg ...
mesend
ret
label00A0@0x00A0:
// Could not determine data type; disassembling as code
arg_pushl 0x00000400
arg_pushs "オレとお前、\nどっちが強いんだろう?"
message ...
arg_pushs "…って、ハンターズ同士で\n思ったことない?"
add_msg ...
arg_pushs "そんなときは、この訓練用\nシミュレータを使えば、\nあなたの 今の実力が判るわよ。"
add_msg ...
arg_pushs "勝負は 時の運…"
add_msg ...
arg_pushs "実力だけで\nおしはかれないことも あるけどね。"
add_msg ...
mesend
ret
label00AA@0x00AA:
// Could not determine data type; disassembling as code
arg_pushl 0x00000401
arg_pushs "経験値やアイテムは その場限り。"
message ...
arg_pushs "セーブされないし\n持ち込んでも\n無くなることはねぇぜ。"
add_msg ...
arg_pushs "…って 父ちゃんが言ってたけど、\nボク 子供だから 何のことだか\nよく わからないや。"
add_msg ...
mesend
ret
label00B4@0x00B4:
// Could not determine data type; disassembling as code
arg_pushl 0x00000402
arg_pushs "トラップは、置いてしばらくすると\n起動するから、自分で\n巻き込まれないよう 気をつけるんじゃぞ。"
message ...
arg_pushs "…って おじいちゃんが言ってたけど、\nボク 子供だから 何のことだか\nよく わからないや。"
add_msg ...
mesend
ret
label00BE@0x00BE:
// Could not determine data type; disassembling as code
arg_pushl 0x00000404
arg_pushs "このエリアの転送装置は\nラグオルへ向かうものじゃないよ。"
message ...
arg_pushs "政府が 訓練のために作った\nシミュレータなんだ。"
add_msg ...
arg_pushs "ハンターのランク付けをするための\nものらしいよ。"
add_msg ...
arg_pushs "よくできた シミュレータだよねぇ!"
add_msg ...
mesend
ret
label00C8@0x00C8:
// Could not determine data type; disassembling as code
arg_pushl 0x00000405
arg_pushs "ステージごとに設定された状態から\nゲームをスタート!"
message ...
arg_pushs "ステージを制覇すると\nその証明に 称号が与えられ、\n次のステージに 進めるようになるの。"
add_msg ...
arg_pushs "一度クリアしたステージも、\n何度でも挑戦できるんだって。"
add_msg ...
arg_pushs "で、全ステージを制覇すると\n素敵なごほうびがもらえるらしいわ。"
add_msg ...
arg_pushs "がんばってね!"
add_msg ...
mesend
ret
label00D2@0x00D2:
// Could not determine data type; disassembling as code
arg_pushl 0x00000406
arg_pushs "経験値やアイテムは その場限り。\nセーブはされないよ。"
message ...
arg_pushs "…って 父ちゃんが言ってたけど、\nボク 子供だから 何のことだか\nよく わからないや。"
add_msg ...
mesend
ret
label00DC@0x00DC:
// Could not determine data type; disassembling as code
arg_pushl 0x00000407
arg_pushs "与えられた称号は、ロビーで\nTabキーを押すと見ることが\nできるんじゃよ。"
message ...
arg_pushs "…って おじいちゃんが言ってたけど、\nボク 子供だから 何のことだか\nよく わからないや。"
add_msg ...
mesend
ret
label00E6@0x00E6:
// Could not determine data type; disassembling as code
arg_pushl 0x00000408
arg_pushs "このシミュレータのテーマは\n「助け合いの試練」であぁる!"
message ...
arg_pushs "参加者のうち 1人でも\n戦えなくなったら、その時点で\nシミュレーションは終了となぁる!"
add_msg ...
arg_pushs "他の参加者のステータスに注意し、\nお互い助けあいながら\n進むがよかろう!"
add_msg ...
arg_pushs "フォースのように体力の弱い者が\n参加する場合は、回復系アイテム等を\nマメに渡してあげたりするといいぞぉ。"
add_msg ...
arg_pushs "では、健闘を祈る!"
add_msg ...
mesend
ret
label00E7@0x00E7:
// Could not determine data type; disassembling as code
arg_pushl 0x00000408
arg_pushs "このシミュレータのテーマは\n「助け合いの試練」であぁる!"
message ...
arg_pushs "参加者 全員が\n戦えなくなったら、その時点で\nシミュレーションは終了となぁる!"
add_msg ...
arg_pushs "他の参加者のステータスに注意し、\nお互い助けあいながら\n進むがよかろう!"
add_msg ...
arg_pushs "フォースのように体力の弱い者が\n参加する場合は、回復系アイテム等を\nマメに渡してあげたりするといいぞぉ。"
add_msg ...
arg_pushs "では、健闘を祈る!"
add_msg ...
mesend
ret
label0320@0x0320:
// Could not determine data type; disassembling as code
arg_pushl 0x00000000
bb_p2_menu ...
ret
label032A@0x032A:
// Could not determine data type; disassembling as code
arg_pushl 0x00000002
bb_p2_menu ...
ret
label0334@0x0334:
// Could not determine data type; disassembling as code
arg_pushl 0x00000003
bb_p2_menu ...
ret
label033E@0x033E:
// Could not determine data type; disassembling as code
gget 0x000B, r200
gget 0x000C, r201
gget 0x000D, r202
gget 0x000E, r203
gget 0x000F, r204
gget 0x0010, r205
gget 0x0011, r206
gget 0x0012, r207
gget 0x0013, r208
gget 0x0014, r209
gget 0x0015, r210
gget 0x0016, r211
gget 0x0017, r212
gget 0x0018, r213
gget 0x0019, r214
gget 0x001A, r215
gget 0x001E, r216
gget 0x001F, r217
gget 0x0020, r218
gget 0x0021, r219
gget 0x0022, r220
gget 0x0028, r221
gget 0x0029, r222
gget 0x002A, r223
gget 0x002B, r224
gget 0x002C, r225
gget 0x002D, r226
gget 0x002E, r227
gget 0x002F, r228
gget 0x0030, r229
jmpi_eq r208, 0x00000001, label033F /* 14A3 */
arg_pushl 0x00000006
bb_p2_menu ...
gset 0x0013
ret
label033F@0x033F:
arg_pushl 0x00000006
bb_p2_menu ...
ret
label0348@0x0348:
// Could not determine data type; disassembling as code
arg_pushl 0x00000005
bb_p2_menu ...
ret
label0352@0x0352:
// Could not determine data type; disassembling as code
arg_pushl 0x00000004
bb_p2_menu ...
ret
label035C@0x035C:
// Could not determine data type; disassembling as code
arg_pushl 0x00000001
bb_p2_menu ...
ret
label0366@0x0366:
// Could not determine data type; disassembling as code
gget 0x000B, r200
gget 0x000C, r201
gget 0x000D, r202
gget 0x000E, r203
gget 0x000F, r204
gget 0x0010, r205
gget 0x0011, r206
gget 0x0012, r207
gget 0x0013, r208
gget 0x0014, r209
gget 0x0015, r210
gget 0x0016, r211
gget 0x0017, r212
gget 0x0018, r213
gget 0x0019, r214
gget 0x001A, r215
gget 0x001E, r216
gget 0x001F, r217
gget 0x0020, r218
gget 0x0021, r219
gget 0x0022, r220
gget 0x0028, r221
gget 0x0029, r222
gget 0x002A, r223
gget 0x002B, r224
gget 0x002C, r225
gget 0x002D, r226
gget 0x002E, r227
gget 0x002F, r228
gget 0x0030, r229
gget 0x03FA, r230
jmpi_eq r230, 0x00000001, label0367 /* 1612 */
arg_pushl 0x00000419
arg_pushs "はじめましてぇ。\n新しく総督府の受付事務員として\n配属となりました…"
message ...
arg_pushs "<color 5>モモカ<color 0>です。"
add_msg ...
arg_pushs "ふつつかものですが、\n今後とも よろしくお願いしますねぇ。"
add_msg ...
mesend
gset 0x03FA
arg_pushl 0x00000007
bb_p2_menu ...
ret
label0367@0x0367:
arg_pushl 0x00000007
bb_p2_menu ...
ret
label0370@0x0370:
// Could not determine data type; disassembling as code
arg_pushl 0x00000418
arg_pushs "オレの名前はコレン・ツだ。\n人はオレを放浪商人と呼ぶ。"
message ...
arg_pushs "オレがかき集めた\nレアでアレなアイテムを\nここらでちょいとサバこうかと。"
add_msg ...
arg_pushs "それなりのお代を頂戴すれば、\n豪華商品が当たるやもしれない。\nいやいや、当たらぬかもしれない。"
add_msg ...
arg_pushs "ホラホラホラホラ、\nひとつヤッてみるかい?"
add_msg ...
mesend
arg_pushb 0x64
arg_pushs "はい\nいいえ"
list ...
switch_jmp r100, [label0371 /* 1750 */, label0372 /* 18C1 */]
ret
label0371@0x0371:
bb_get_number_in_pack r100
jmpi_eq r100, 0x0000001E, label0373 /* 1984 */
arg_pushl 0x00000418
arg_pushs "当たるも八卦、\n当たらぬも八卦。"
message ...
arg_pushs "ロクなものが当たらぬ時は\nニブい自分をおうらみなさい。\nこれぞ合わせて八卦でござい。"
add_msg ...
arg_pushs "ギャンブルなんて\nそんなモン。"
add_msg ...
arg_pushs "さてさて、いかほどメセタを\nいただけるんで?"
add_msg ...
arg_pushs "お代の払いが縁の始まり、\n払いの額を選んでちょうだいな。"
add_msg ...
mesend
arg_pushb 0x65
arg_pushs "1000メセタ\n10000メセタ\n100000メセタ\nやっぱり止める"
list ...
switch_jmp r101, [label0374 /* 19FD */, label0375 /* 1A12 */, label0376 /* 1A27 */, label0377 /* 1A3C */]
ret
label0372@0x0372:
arg_pushl 0x00000418
arg_pushs "ん?"
message ...
arg_pushs "そいつぁ残念だな。"
add_msg ...
arg_pushs "まあ、こういうモンはたいてい\n損をするかもしれないからな。"
add_msg ...
arg_pushs "慎重なのも悪かぁない。"
add_msg ...
arg_pushs "だけどソデ摺りあうも他生の縁。\n気が向いたら、また話しかけてくれ。"
add_msg ...
mesend
ret
label0373@0x0373:
arg_pushl 0x00000418
arg_pushs "こいつぁアイテムが\nいっぱいみたいだな。"
message ...
arg_pushs "マズは、アイテムを\n整理してきてくれ。"
add_msg ...
arg_pushs "オレとの縁はそれからだ。"
add_msg ...
mesend
ret
label0374@0x0374:
get_slot_meseta r102
jmpi_lt r102, 0x000003E8, label0378 /* 1AA3 */
leti r102, 0x000003E8
jmp label0379 /* 1B02 */
ret
label0375@0x0375:
get_slot_meseta r102
jmpi_lt r102, 0x00002710, label0378 /* 1AA3 */
leti r102, 0x00002710
jmp label0379 /* 1B02 */
ret
label0376@0x0376:
get_slot_meseta r102
jmpi_lt r102, 0x000186A0, label0378 /* 1AA3 */
leti r102, 0x000186A0
jmp label0379 /* 1B02 */
ret
label0377@0x0377:
arg_pushl 0x00000418
arg_pushs "なんだ?"
message ...
arg_pushs "一度、やると言ったのに\n止めルのか。"
add_msg ...
arg_pushs "そういうヤツは\nなにやっても失敗するぞ。"
add_msg ...
mesend
ret
label0378@0x0378:
arg_pushl 0x00000418
arg_pushs "なんだ?"
message ...
arg_pushs "払うといった額のメセタを\n満たしてないのか?"
add_msg ...
arg_pushs "冷やかしならお断りだよ。"
add_msg ...
mesend
ret
label0379@0x0379:
get_client_id r100
let r103, r100
let r104, r102
clear r105
take_slot_meseta r103-r104, r105
jmpi_eq r105, 0x00000000, label0378 /* 1AA3 */
arg_pushl 0x00000418
arg_pushs "当たる八卦は末広がりか。\nはたまた渋々うなだれ坊主か。"
message ...
arg_pushs "いいモンが当たる様に\n念じることだな。"
add_msg ...
mesend
clear r100
label037A@0x037A:
arg_pushl 0x00000010
se ...
sync
sync
sync
sync
sync
sync
sync
sync
sync
sync
sync
sync
sync
sync
addi r100, 0x0000000F
jmpi_le r100, 0x0000005A, label037A /* 1B84 */
arg_pushr r101
bb_send_6xE2 ...
clear r106
clear r100
label037B@0x037B:
sync
bb_get_6xE3_status r106
jmpi_eq r106, 0x00000001, label037C /* 1BEA */
jmpi_eq r106, 0x00000002, label037D /* 1D24 */
addi r100, 0x00000001
jmpi_le r100, 0x0000012C, label037B /* 1BAE */
arg_pushs "サーバーセンドエラー"
window_msg ...
winend
ret
label037C@0x037C:
sync
arg_pushl 0x00000001
bgm ...
arg_pushs "<bk>\n<color 4><meseta_slot_prize><color 0>を入手した!"
window_msg ...
winend
sync
arg_pushl 0x00000418
arg_pushs "ほらよ!\nもっていきな!"
message ...
arg_pushs "ロクなモンが当たらなくても\n恨んじゃダメだよ、最初に言った。"
add_msg ...
arg_pushs "「ホラホラホラホラ」\nご了承済み。"
add_msg ...
arg_pushs "だけど今度は必ず当たる!"
add_msg ...
arg_pushs "かもしれないから、\nまたきてくれよ。"
add_msg ...
mesend
ret
label037D@0x037D:
arg_pushs "コマンド実行エラー"
window_msg ...
winend
ret
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,96 @@
###########################################################
NPC: Coren Tsu - The Wanderer
AREAS: Pioneer 2
Translations by: apexseals (discord: apexseals)
Proofing & Debugging by: nolrinale (github.com/nolrinale)
###########################################################
presentation:
I am Coren Tsu, a wandering merchant,
you could say.
Please take some time to look at
the rare and wonderous goods
I have been collecting.
If you spend a little meseta,
you could win a wonderful prize.
Well? Wanna try?
You may win,
you may lose.
But if you don't win,
don't take it out on me.
That's just the way
gambling is, yes?
Well then, how much
meseta do you want to pay?
As long as you pay me,
I'll give you a great service.
Huh?
That's too bad...
Well, these kind of things usually
have a chance to lose money.
Let's keep this discreet.
If you feel up to it, talk to me again.
It seems you have
too many items.
First, go and
organize your items,
Then speak to me again.
What?
You said you'd try,
then you said no.
People like that
fail at everything.
What the...?
You don't have the
meseta to pay me?
I won't work with such
cold hearted people.
Alright, let's do it.
You better pray
for something good...
Look here!
Take it!
Even if you had bad luck,
something good will come out of it.
You'll win someday!
In case you want to try again,
come back to me once more.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+39
View File
@@ -0,0 +1,39 @@
PSOBB SUPPORT FILES, NOTES & RESOURCES
--------------------------------------------------------------------------------
CLIENT LOCALIZATION
By default PSOBB loads everything in Japanese so it requires some extra files
to properly implement the English localization from SOA, these files are offered
here inside the usbb-resources folder for your convenience they are the same ones
from the old official USBB client
To use them, you just need to drag and drop all its contents into your client's
data folder. Then if the client's internal lang flag is set correctly to English
will load all the correct texts from these files.
In case you want to play in Japanese, just use the default Tethealla client and
delete all the files including _e or _eng in the names and then the game will
default everything to its original Japanese language.
Just in case, there's the jpbb-resources folder with the latest localization
changes made on the official JPBB for an extra backup.
---------------------------------------------------------------------------------
PSOBB EP1,2,4 ORIGINAL VANILLA DROP TABLES/RATES
Included in the vanilla-tables folder I placed the original files I created for the
Schtserv vanilla for backup purposes as they are already implemented into the main
newserv logic.
These tables will offer you the experience as close as possible to the original SEGA
servers for PSOBB JP up to the latest patch before the servers shutdown, so besides a
fully functional Episode IV experience, the tables also include the latest special items
which where added to some Episode 1 and Episode 2 in Ultimate for certain section ID's
Vanilla Tables and rates are the same ones as the Schtserv Wiki for reference:
https://bbwiki.schtserv.com/index.php/Drops-ep1
https://bbwiki.schtserv.com/index.php/Drops-ep2
https://bbwiki.schtserv.com/index.php/Drops-ep4
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

+3
View File
@@ -0,0 +1,3 @@
.\data\help2-0-en.png
.\data\help0-4-en.png
.\data\help0-5-en.png
+6
View File
@@ -0,0 +1,6 @@
.\data\help2-0-en.png
.\data\help0-0-en.png
.\data\help0-1-en.png
.\data\help0-2-en.png
.\data\help0-3-en.png
.\data\help0-7-en.png
+1
View File
@@ -0,0 +1 @@
.\data\help1-1-en.png
+1
View File
@@ -0,0 +1 @@
.\data\help1-0-en.png
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1538
View File
File diff suppressed because it is too large Load Diff
+35 -24
View File
@@ -1,39 +1,50 @@
#!/bin/env python3
import argparse
import os
import subprocess
import sys
def get_ip_address(ifname):
data = subprocess.check_output(['ifconfig', ifname])
for line in data.splitlines():
line = line.strip()
if line.startswith(b'inet '):
return line.split()[1].decode('ascii')
raise RuntimeError('cannot get address for interface ' + ifname)
data = subprocess.check_output(["ifconfig", ifname])
for line in data.splitlines():
line = line.strip()
if line.startswith(b"inet "):
return line.split()[1].decode("ascii")
raise RuntimeError("cannot get address for interface " + ifname)
def main(argv):
if len(argv) < 2:
raise RuntimeError(f'Usage: {argv[0]} <original-destination> [new-destination]')
if os.geteuid() != 0:
raise RuntimeError('You must use sudo to run this script')
original_destination = argv[1]
new_destination = argv[2] if len(argv) > 2 else get_ip_address('en0')
parser = argparse.ArgumentParser()
parser.add_argument("--pid", "-p", type=int, default=0)
parser.add_argument("orig_destination", type=str)
parser.add_argument("new_destination", type=str, default=None, nargs="?")
args = parser.parse_args()
print(f'Finding occurrences of \"{original_destination}\"')
addresses_str = subprocess.check_output(['memwatch', 'Flycast.app', 'find', f'\"{original_destination}\"'])
for line in addresses_str.splitlines():
# line is like '(0) 00007FFF038500A0 (rw-)' (we care only about the address)
tokens = line.split()
if len(tokens) != 3:
continue
print(f'Replacing \"{original_destination}\" with \"{new_destination}\" at {tokens[1]} in Flycast')
subprocess.check_call(['memwatch', 'Flycast.app', 'write', tokens[1], f'\"{new_destination}\" 00'])
if os.geteuid() != 0:
raise RuntimeError("You must use sudo to run this script")
new_destination = args.new_destination or get_ip_address("en0")
proc_arg = "Flycast.app" if args.pid == 0 else str(args.pid)
return 0
print(f'Finding occurrences of "{args.orig_destination}"')
addresses_str = subprocess.check_output(
["memwatch", proc_arg, "find", f'"{args.orig_destination}"']
)
for line in addresses_str.splitlines():
# line is like '(0) 00007FFF038500A0 (rw-)' (we care only about the address)
tokens = line.split()
if len(tokens) != 3:
continue
print(
f'Replacing "{args.orig_destination}" with "{new_destination}" at {tokens[1]} in Flycast'
)
subprocess.check_call(
["memwatch", proc_arg, "write", tokens[1], f'"{new_destination}" 00']
)
return 0
if __name__ == '__main__':
sys.exit(main(sys.argv))
if __name__ == "__main__":
sys.exit(main(sys.argv))
BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 364 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 442 B

+34 -4
View File
@@ -9,7 +9,7 @@
using namespace std;
AFSArchive::AFSArchive(std::shared_ptr<const std::string> data)
AFSArchive::AFSArchive(shared_ptr<const string> data)
: data(data) {
struct FileHeader {
be_uint32_t magic;
@@ -23,7 +23,7 @@ AFSArchive::AFSArchive(std::shared_ptr<const std::string> data)
StringReader r(*this->data);
const auto& header = r.get<FileHeader>();
if (header.magic != 0x41465300) {
if (header.magic != 0x41465300) { // 'AFS\0'
throw runtime_error("file is not an AFS archive");
}
@@ -33,7 +33,7 @@ AFSArchive::AFSArchive(std::shared_ptr<const std::string> data)
}
}
std::pair<const void*, size_t> AFSArchive::get(size_t index) const {
pair<const void*, size_t> AFSArchive::get(size_t index) const {
const auto& entry = this->entries.at(index);
if (entry.offset > this->data->size()) {
throw out_of_range("entry begins beyond end of archive");
@@ -45,7 +45,7 @@ std::pair<const void*, size_t> AFSArchive::get(size_t index) const {
return make_pair(this->data->data() + entry.offset, entry.size);
}
std::string AFSArchive::get_copy(size_t index) const {
string AFSArchive::get_copy(size_t index) const {
auto ret = this->get(index);
return string(reinterpret_cast<const char*>(ret.first), ret.second);
}
@@ -54,3 +54,33 @@ StringReader AFSArchive::get_reader(size_t index) const {
auto ret = this->get(index);
return StringReader(ret.first, ret.second);
}
string AFSArchive::generate(const vector<string>& files, bool big_endian) {
return big_endian ? AFSArchive::generate_t<true>(files) : AFSArchive::generate_t<false>(files);
}
template <bool IsBigEndian>
string AFSArchive::generate_t(const vector<string>& files) {
using U32T = typename std::conditional<IsBigEndian, be_uint32_t, le_uint32_t>::type;
StringWriter w;
w.put_u32b(0x41465300); // 'AFS\0'
w.put<U32T>(files.size());
// It seems entries are aligned to 0x800-byte boundaries, and the file's
// header is always 0x80000 (!) bytes, most of which is unused
uint32_t data_offset = 0x80000;
for (const auto& file : files) {
w.put<U32T>(data_offset);
w.put<U32T>(file.size());
data_offset = (data_offset + file.size() + 0x7FF) & (~0x7FF);
}
w.extend_to(0x80000);
for (const auto& file : files) {
w.write(file);
w.extend_to((w.size() + 0x7FF) & (~0x7FF));
}
return std::move(w.str());
}
+5
View File
@@ -25,7 +25,12 @@ public:
std::string get_copy(size_t index) const;
StringReader get_reader(size_t index) const;
static std::string generate(const std::vector<std::string>& files, bool big_endian);
private:
template <bool IsBigEndian>
static std::string generate_t(const std::vector<std::string>& files);
std::shared_ptr<const std::string> data;
std::vector<Entry> entries;
};
+14
View File
@@ -0,0 +1,14 @@
#pragma once
#include <stdexcept>
#include <string>
#include <utility>
#include <vector>
inline void run_ar_code_translator(const std::string&, const std::string&, const std::string&) {
throw std::runtime_error("resource_file is not available; install it and rebuild newserv");
}
inline std::vector<std::pair<uint32_t, std::string>> diff_dol_files(const std::string&, const std::string&) {
throw std::runtime_error("resource_file is not available; install it and rebuild newserv");
}
+401
View File
@@ -0,0 +1,401 @@
#include "ARCodeTranslator.hh"
#include <array>
#include <future>
#include <phosg/Filesystem.hh>
#include <phosg/Strings.hh>
#include <resource_file/ExecutableFormats/DOLFile.hh>
using namespace std;
class ARCodeTranslator {
public:
enum class ExpandMethod {
FORWARD = 0,
FORWARD_WITH_BARRIER,
BACKWARD,
BACKWARD_WITH_BARRIER,
BOTH,
BOTH_WITH_BARRIER,
BOTH_IGNORE_ORIGIN,
};
static const char* name_for_expand_method(ExpandMethod method) {
switch (method) {
case ExpandMethod::FORWARD:
return "FORWARD";
case ExpandMethod::FORWARD_WITH_BARRIER:
return "FORWARD_WITH_BARRIER";
case ExpandMethod::BACKWARD:
return "BACKWARD";
case ExpandMethod::BACKWARD_WITH_BARRIER:
return "BACKWARD_WITH_BARRIER";
case ExpandMethod::BOTH:
return "BOTH";
case ExpandMethod::BOTH_WITH_BARRIER:
return "BOTH_WITH_BARRIER";
case ExpandMethod::BOTH_IGNORE_ORIGIN:
return "BOTH_IGNORE_ORIGIN";
default:
throw logic_error("invalid expand method");
}
}
ARCodeTranslator(const string& directory)
: log("[ar-trans] "),
directory(directory) {
while (ends_with(this->directory, "/")) {
this->directory.pop_back();
}
for (const auto& filename : list_directory(this->directory)) {
if (ends_with(filename, ".dol")) {
string name = filename.substr(0, filename.size() - 4);
string path = directory + "/" + filename;
this->files.emplace(name, make_shared<DOLFile>(path.c_str()));
this->log.info("Loaded %s", name.c_str());
}
}
}
~ARCodeTranslator() = default;
const string& get_source_filename() const {
return this->src_filename;
}
void set_source_file(const string& filename) {
this->src_filename = filename;
this->src_file = files.at(this->src_filename);
}
void find_rtoc_global_regs() const {
for (const auto& it : files) {
bool r2_high_found = false;
bool r2_low_found = false;
bool r13_high_found = false;
bool r13_low_found = false;
uint32_t r2 = 0;
uint32_t r13 = 0;
for (const auto& section : it.second->sections) {
if (!section.is_text) {
continue;
}
StringReader r(section.data);
while (!r.eof() && r.where()) {
uint32_t opcode = r.get_u32b();
if ((opcode & 0xFFFF0000) == 0x3DA00000) {
if (r13_high_found) {
throw runtime_error("multiple values for r13_high");
}
r13_high_found = true;
r13 |= (opcode << 16);
} else if ((opcode & 0xFFFF0000) == 0x3C400000) {
if (r2_high_found) {
throw runtime_error("multiple values for r2_high");
}
r2_high_found = true;
r2 |= (opcode << 16);
} else if ((opcode & 0xFFFF0000) == 0x61AD0000) {
if (r13_low_found) {
throw runtime_error("multiple values for r13_low");
}
r13_low_found = true;
r13 |= (opcode & 0xFFFF);
} else if ((opcode & 0xFFFF0000) == 0x60420000) {
if (r2_low_found) {
throw runtime_error("multiple values for r2_low");
}
r2_low_found = true;
r2 |= (opcode & 0xFFFF);
}
}
}
if (r2_low_found && r2_high_found) {
fprintf(stderr, "(%s) r2 = %08" PRIX32 "\n", it.first.c_str(), r2);
} else {
fprintf(stderr, "(%s) r2 = __MISSING__\n", it.first.c_str());
}
if (r13_low_found && r13_high_found) {
fprintf(stderr, "(%s) r13 = %08" PRIX32 "\n", it.first.c_str(), r13);
} else {
fprintf(stderr, "(%s) r13 = __MISSING__\n", it.first.c_str());
}
}
}
uint32_t find_match(shared_ptr<const DOLFile> dest_file, uint32_t src_address, ExpandMethod expand_method) const {
if (!this->src_file) {
throw runtime_error("no source file selected");
}
const DOLFile::Section* src_section = nullptr;
for (const auto& sec : this->src_file->sections) {
if (src_address >= sec.address && src_address < sec.address + sec.data.size()) {
src_section = &sec;
break;
}
}
if (!src_section) {
throw runtime_error("source address not within any section");
}
const char* method_token = this->name_for_expand_method(expand_method);
size_t src_offset = src_address - src_section->address;
size_t src_bytes_available_before = src_offset;
size_t src_bytes_available_after = src_section->data.size() - src_offset - 4;
this->log.info("(find_match/%s) Source offset = %08zX with %zX/%zX bytes available before/after",
method_token, src_offset, src_bytes_available_before, src_bytes_available_after);
size_t match_bytes_before = 0;
size_t match_bytes_after = 0;
while (match_bytes_before + match_bytes_after + 4 < 0x100) {
size_t num_matches = 0;
size_t last_match_address = 0;
size_t match_length = match_bytes_before + match_bytes_after + 4;
StringReader src_r(src_section->data.data() + src_offset - match_bytes_before, match_length);
for (const auto& dest_section : dest_file->sections) {
for (size_t dest_match_offset = 0;
dest_match_offset < dest_section.data.size();
dest_match_offset += 4) {
src_r.go(0);
StringReader dest_r(dest_section.data.data() + dest_match_offset, match_length);
size_t z;
for (z = 0; z < match_length; z += 4) {
if (expand_method == ExpandMethod::BOTH_IGNORE_ORIGIN && z == match_bytes_before) {
src_r.skip(4);
dest_r.skip(4);
} else if (src_section->is_text) {
uint32_t src_opcode = src_r.get_u32b();
uint32_t dest_opcode = dest_r.get_u32b();
uint32_t src_class = src_opcode & 0xFC000000;
if (src_class != (dest_opcode & 0xFC000000)) {
break;
}
if (src_class == 0x48000000) {
// b +-offset
src_opcode &= 0xFC000003;
dest_opcode &= 0xFC000003;
} else if (((src_opcode & 0xAC1F0000) == 0x800D0000) || ((src_opcode & 0xAC1F0000) == 0x80020000)) {
// lwz/lfs rXX/fXX, [r2/r13 +- offset] OR stw/stfs [r2/r13 +- offset], rXX/fXX
src_opcode &= 0xFFFF0000;
dest_opcode &= 0xFFFF0000;
}
if (src_opcode != dest_opcode) {
break;
}
} else {
uint32_t src_data = src_r.get_u32b();
uint32_t dest_data = dest_r.get_u32b();
if ((src_data & 0xFE000000) == 0x80000000) {
src_data &= 0xFE000003;
}
if ((dest_data & 0xFE000000) == 0x80000000) {
dest_data &= 0xFE000003;
}
if (src_data != dest_data) {
break;
}
}
}
if (z == match_length) {
num_matches++;
last_match_address = dest_section.address + dest_match_offset + match_bytes_before;
}
}
}
this->log.info("(find_match/%s) For match length %zX, %zu matches found", method_token, match_length, num_matches);
if (num_matches == 1) {
return last_match_address;
} else if (num_matches == 0) {
throw runtime_error("did not find exactly one match");
}
bool can_expand_backward = false;
bool can_expand_forward = false;
switch (expand_method) {
case ExpandMethod::BACKWARD_WITH_BARRIER:
can_expand_backward = (src_r.pget_u32b(0) != 0x4E800020) &&
(src_bytes_available_before >= match_bytes_before + 4);
break;
case ExpandMethod::BACKWARD:
can_expand_backward = (src_bytes_available_before >= match_bytes_before + 4);
break;
case ExpandMethod::FORWARD_WITH_BARRIER:
can_expand_forward = (src_r.pget_u32b(src_r.size() - 4) != 0x4E800020) &&
(src_bytes_available_after >= match_bytes_after + 4);
break;
case ExpandMethod::FORWARD:
can_expand_forward = (src_bytes_available_after >= match_bytes_after + 4);
break;
case ExpandMethod::BOTH_WITH_BARRIER:
case ExpandMethod::BOTH_IGNORE_ORIGIN:
can_expand_backward = (src_r.pget_u32b(0) != 0x4E800020) &&
(src_bytes_available_before >= match_bytes_before + 4);
can_expand_forward = (src_r.pget_u32b(src_r.size() - 4) != 0x4E800020) &&
(src_bytes_available_after >= match_bytes_after + 4);
break;
case ExpandMethod::BOTH:
can_expand_backward = (src_bytes_available_before >= match_bytes_before + 4);
can_expand_forward = (src_bytes_available_after >= match_bytes_after + 4);
break;
default:
throw logic_error("invalid expand method");
}
if (!can_expand_backward && !can_expand_forward) {
throw runtime_error("no further expansion is allowed");
}
if (can_expand_backward) {
match_bytes_before += 4;
}
if (can_expand_forward) {
match_bytes_after += 4;
}
}
throw runtime_error("scan field too long; too many matches");
}
void find_all_matches(uint32_t src_addr) const {
if (!this->src_file) {
throw runtime_error("no source file selected");
}
unordered_map<string, uint32_t> results;
for (const auto& it : files) {
if (it.second == this->src_file) {
log.info("(%s) %08" PRIX32 " (from source)", it.first.c_str(), src_addr);
results.emplace(it.first, src_addr);
} else {
array<future<uint32_t>, 7> futures;
static const array<ExpandMethod, 7> methods = {
ExpandMethod::FORWARD,
ExpandMethod::FORWARD_WITH_BARRIER,
ExpandMethod::BACKWARD,
ExpandMethod::BACKWARD_WITH_BARRIER,
ExpandMethod::BOTH,
ExpandMethod::BOTH_WITH_BARRIER,
ExpandMethod::BOTH_IGNORE_ORIGIN,
};
for (size_t z = 0; z < methods.size(); z++) {
futures[z] = async(&ARCodeTranslator::find_match, this, it.second, src_addr, methods[z]);
}
unordered_set<uint32_t> match_addrs;
for (size_t z = 0; z < futures.size(); z++) {
const char* method_name = this->name_for_expand_method(methods[z]);
try {
uint32_t ret = futures[z].get();
log.info("(%s) (%s) %08" PRIX32, it.first.c_str(), method_name, ret);
match_addrs.emplace(ret);
} catch (const exception& e) {
log.error("(%s) (%s) failed: %s", it.first.c_str(), method_name, e.what());
}
}
if (match_addrs.empty()) {
log.error("(%s) no match found", it.first.c_str());
} else if (match_addrs.size() > 1) {
log.error("(%s) different matches found by different methods", it.first.c_str());
} else {
results.emplace(it.first, *match_addrs.begin());
}
}
}
for (const auto& it : results) {
fprintf(stdout, "%s => %08" PRIX32 "\n", it.first.c_str(), it.second);
}
}
void handle_command(const string& command) {
auto tokens = split(command, ' ');
if (tokens.empty()) {
throw runtime_error("no command given");
}
strip_trailing_whitespace(tokens[tokens.size() - 1]);
if (tokens[0] == "use") {
this->set_source_file(tokens.at(1));
} else if (tokens[0] == "match") {
this->find_all_matches(stoul(tokens.at(1), nullptr, 16));
} else if (tokens[0] == "find-globals") {
this->find_rtoc_global_regs();
} else if (!tokens[0].empty()) {
throw runtime_error("unknown command");
}
}
void run_shell() {
while (!feof(stdin)) {
if (!this->src_filename.empty()) {
fprintf(stdout, "ar-trans:%s/%s> ", this->directory.c_str(), this->src_filename.c_str());
} else {
fprintf(stdout, "ar-trans:%s> ", this->directory.c_str());
}
fflush(stdout);
string command = fgets(stdin);
try {
this->handle_command(command);
} catch (const exception& e) {
this->log.error("Failed: %s", e.what());
}
}
fputc('\n', stdout);
}
private:
PrefixedLogger log;
string directory;
unordered_map<string, shared_ptr<const DOLFile>> files;
string src_filename;
shared_ptr<const DOLFile> src_file;
};
void run_ar_code_translator(const std::string& directory, const std::string& use_filename, const std::string& command) {
ARCodeTranslator trans(directory);
if (!use_filename.empty()) {
trans.set_source_file(use_filename);
}
if (!command.empty()) {
trans.handle_command(command);
} else {
trans.run_shell();
}
}
vector<pair<uint32_t, string>> diff_dol_files(const string& a_filename, const string& b_filename) {
DOLFile a(a_filename.c_str());
DOLFile b(b_filename.c_str());
auto a_mem = make_shared<MemoryContext>();
auto b_mem = make_shared<MemoryContext>();
a.load_into(a_mem);
b.load_into(b_mem);
uint32_t min_addr = 0xFFFFFFFF;
uint32_t max_addr = 0x00000000;
for (const auto& sec : a.sections) {
min_addr = min<uint32_t>(min_addr, sec.address);
max_addr = max<uint32_t>(max_addr, sec.address + sec.data.size());
}
for (const auto& sec : b.sections) {
min_addr = min<uint32_t>(min_addr, sec.address);
max_addr = max<uint32_t>(max_addr, sec.address + sec.data.size());
}
vector<pair<uint32_t, string>> ret;
for (uint32_t addr = min_addr; addr < max_addr; addr += 4) {
bool a_exists = a_mem->exists(addr, 4);
bool b_exists = b_mem->exists(addr, 4);
if (a_exists && b_exists) {
string a_value = a_mem->read(addr, 4);
string b_value = b_mem->read(addr, 4);
if (a_value != b_value) {
if (!ret.empty() && (ret.back().first + ret.back().second.size() == addr)) {
ret.back().second += b_value;
} else {
ret.emplace_back(make_pair(addr, b_value));
}
}
}
}
return ret;
}
+10
View File
@@ -0,0 +1,10 @@
#pragma once
#include <stdint.h>
#include <string>
#include <utility>
#include <vector>
void run_ar_code_translator(const std::string& initial_directory, const std::string& use_file, const std::string& command);
std::vector<std::pair<uint32_t, std::string>> diff_dol_files(const std::string& a_filename, const std::string& b_filename);

Some files were not shown because too many files have changed in this diff Show More