84 Commits

Author SHA1 Message Date
earthoul e2707242b8 Refactor Game Center Lobby and Entrance scripts 2026-02-16 23:13:48 +09:00
earthoul 044a45c6d0 Refactor Grand Master Cup engine funcs 2026-02-04 00:03:16 +09:00
earthoul a87bc7fc1e Label Grand Master Cup sequence 2026-02-01 00:40:49 +09:00
earthoul a57de27eee Label scripts in Pokemon Dome main hall and Final Cup 2026-01-30 15:54:01 +09:00
earthoul b2929dced0 Label Ishihara scenes 2026-01-30 00:59:48 +09:00
earthoul 904528ef2e Refactor Challenge Machine functions 2026-01-14 01:39:53 +09:00
earthoul 3347118112 Refactor save functions and buffers 2026-01-12 00:13:57 +09:00
earthoul 88b8839218 Identify the rest overworld modes 2026-01-10 18:47:58 +09:00
earthoul 0419c93561 Rename Chip HUD commands
Co-authored-by: dannye <33dannye@gmail.com>
2026-01-09 20:01:29 +09:00
earthoul 4ac919eaa7 Refactor Challenge Cups 2026-01-09 19:49:55 +09:00
earthoul 2bfe31659e Label warp overworld modes and postprocess functions 2026-01-06 16:30:43 +09:00
earthoul 8b4d4f4311 Label idle and script overworld modes, and related buffers 2026-01-04 17:38:19 +09:00
earthoul 84c981ffb8 Label map trasnfer buffers and overworld move mode 2026-01-04 16:12:29 +09:00
earthoul 9c34622a72 Label overworld modes for step events and NPCs
thanks: @mdraves91
2025-12-29 23:55:11 +09:00
earthoul 52d70ee29c Identify music overworld modes for music-override events 2025-12-29 23:34:46 +09:00
earthoul b5d135b391 Identify interaction overworld-mode
thanks: @mdraves91
2025-12-29 22:59:09 +09:00
earthoul b317403e1f Relabel map-related functions 2025-12-27 04:38:40 +09:00
earthoul f1cb9284a9 Identify game events and modes with menu and other handlers 2025-12-24 15:33:52 +09:00
earthoul 96c65d2ab4 Label Card Dungeon progress, disassemble pop-up menus 2025-12-21 15:29:57 +09:00
earthoul 3c206a095e Label Airport dialogues 2025-12-21 15:29:30 +09:00
earthoul dc8c1bf669 tcg2disasm.py: Add handling for cp16- and add- variants 2025-12-14 22:39:55 +09:00
earthoul 02d4c043ba Identify Challenge Cup prize data 2025-12-14 02:23:48 +09:00
earthoul 7f94ee6ebb Identify Grand Master Cup data 2025-12-14 00:46:30 +09:00
dannye fc6d216c17 Merge pull request #50 from ElectroDeoxys/master
Extract and document effect commands
2025-12-06 15:08:50 -06:00
dannye d129e4eef5 Improve mail data macros
and other minor cleanup
2025-12-06 11:28:07 -06:00
Electro 7af67c323a Extract and document effect commands 2025-12-03 15:11:15 +00:00
mdraves91 eec0aa5c59 send_mail script command
missed adding this file two commits ago, oops
2025-11-16 13:20:24 -06:00
dannye bebad8d219 Merge pull request #45 from mdraves91/tcg2disasm-recursive
enhance tcg2disasm.py to recursively dump unknown called functions
2025-11-08 15:00:37 -06:00
earthoul 5754313c10 Update music constants 2025-11-06 18:43:06 +09:00
mdraves91 790c5022ab fix: bank1calls to functions that were not yet disassembled were generating Func_xxx labels that did not point to bank1 2025-11-05 10:39:38 -06:00
earthoul 8f3db0ab88 Fix tileset labels + refactoring 2025-11-05 21:39:40 +09:00
earthoul 31130185df Fix GR Blimp labels and file names 2025-11-05 19:02:58 +09:00
earthoul f25a04fb76 Identify songs and slot SFXs
Also refactor song labels and files
2025-11-05 18:54:49 +09:00
earthoul 6d55435c70 Update SFX file names
Also identify TCG1 leftovers and re-organize a few labels
2025-11-05 14:48:57 +09:00
mdraves91 65c9e971c4 fix: jr opcodes being output twice 2025-11-04 21:30:05 -06:00
mdraves91 de2035f223 change the way tcg2disasm.py handles "end" offsets provided to the script, and allow multiple addresses to be passed for disassembly
This allows a more flexible script when working with or without the new recursive feature.

Also, the previous behavior was very unintuitive, and probably not that helpful.

Before, if you provided an "end" offset, the script would go AT LEAST as far as that offset, but would not terminate if it still hadn't found a ret command, and had satisfied all of the other stop conditions. This made it very easy to pass an "end" argument that caused the script to disassemble past the real end of the function, and in many cases get stuck in an infinite loop.

However, if you also provided the "dry-run" arg, it would set the "hard stop" flag, which instead made it so that the disassembler would actually stop dead when hitting the "end" offset.

Now, you must pass the stop offset to the --hard-stop arg, and it will act like the previous dry-run/hard-stop. The other behavior (that likes to get stuck in infinite loops) is no longer available.
2025-11-04 19:22:08 -06:00
mdraves91 9746b0537f adding new args to tcg2disasm.py: --recurse and --sections 2025-11-04 19:20:06 -06:00
earthoul 485bf674dd Update SFX and Duel Anim labels
TODO: Rename files and re-sort SFX functions
2025-11-03 23:18:59 +09:00
dannye e30afed737 Misc bank04 cleanup
and other minor cleanup
2025-11-01 19:10:33 -05:00
mdraves91 fd481d3699 fix: forgot to swap golbat and magnemite coin order 2025-10-25 21:24:06 -05:00
mdraves91 c9432f228e add COIN_GR_START to GR_COIN_PIECE constants so that they have the correct value in give_coin commands 2025-10-25 19:10:41 -05:00
mdraves91 3efc22cdd0 feat: parse more complex NPCMovement data
now handles NPCs that move backwards, and those that move at running speed
2025-10-25 19:09:49 -05:00
Mitchell Draves 75b705cc10 Enhance map_header_extractor.py to also dump all referenced routines and scripts (#33)
Also make script_extractor into a class.

This makes it possible to support the various command-line args (--address-comments, etc) without various functions referencing a global args variable.

That in turn makes it possible to more cleanly call the ScriptExtractor from tcg2disasm.py.
2025-10-25 11:45:54 -05:00
dannye 18ac2956d3 Parse movement data 2025-10-24 17:36:47 -05:00
dannye 99790d81fa Parse booster pack list data
and improve ScriptCommand_GiveBoosterPacks and give_booster_packs accordingly.
2025-10-24 14:30:34 -05:00
dannye a25b8d5af7 Fix constants declarations 2025-10-23 12:26:18 -05:00
mdraves91 b18335c9ad refactor: enumerate DUEL_REQUIREMENT_* constants for use in scripts 2025-10-23 09:48:37 -05:00
dannye 00bea3e45b Fixup GR Coin constants 2025-10-20 13:40:08 -05:00
mdraves91 6ef04e7934 fix: swapping coin and event constants for GOLBAT_COIN and MAGNEMITE_COIN 2025-10-12 12:12:05 -05:00
mdraves91 d504b61182 adding COIN_GR_PIECE* constants
these values are used in some event scripts
2025-10-11 11:10:33 -05:00