Commit Graph

274 Commits

Author SHA1 Message Date
dannye dd79fb04cd Misc section refactoring
- Finish bank 4b
- Move bank4b.asm and bank4c.asm to gfx.o
- Reorder things to be more linear
- Other minor cleanup
2025-10-06 17:47:55 -05:00
dannye 8954020e51 Rename some scripting engine variables 2025-10-06 15:07:40 -05:00
dannye 0841f8f93d Rename script command routines 2025-10-06 13:37:49 -05:00
dannye 6dead0f02f Annotate more NPC ID routine arguments 2025-10-06 12:43:43 -05:00
dannye 9764a06be7 Merge pull request #32 from earthoul/maptexts
Label texts for disassembled map events +refactoring
2025-10-06 12:42:18 -05:00
earthoul 2b2f4d69c3 Label texts for disassembled map events +refactoring 2025-10-06 22:31:30 +09:00
dannye 7e24598a7e Rename OW_* constants to NPC_* 2025-10-06 01:02:56 -05:00
dannye 5287357d41 Rename NPC_* constants to *_PIC 2025-10-06 00:21:53 -05:00
dannye 9feca4378f Update more script macro arguments 2025-10-05 21:36:37 -05:00
dannye 3a4940b28c Update some script macro arguments 2025-10-05 11:42:58 -05:00
dannye 32c26e2035 Rename script command macros 2025-10-05 10:57:16 -05:00
dannye 27d5f6a429 Create script command macros 2025-10-04 19:21:02 -05:00
dannye e78fd395f3 Minor cleanup 2025-10-04 16:38:33 -05:00
dannye d8276dc491 Merge pull request #31 from mdraves91/all-map-header-ptrs
dumping entire MapHeaderPtrs table and associated data structures
2025-10-04 16:37:32 -05:00
dannye 379587834e Fix typo
and other minor cleanup
2025-10-04 15:15:00 -05:00
dannye c25cb55c7a Merge pull request #28 from earthoul/scripts
Disassemble script commands
2025-10-04 15:13:52 -05:00
mdraves91 89c14c506c dumping entire MapHeaderPtrs table and associated data structures
this is the output directly from map_header_extractor with no edits. function pointers in data structures are left as raw bytes, instead of creating labels and disassembling all of them.
2025-10-04 12:37:49 -05:00
mdraves91 9c851d75c8 special handling for 3 maps that had missed data structures in parsing 2025-10-04 12:34:37 -05:00
mdraves91 a0b5cbcada adding newlines between blobs in script output
makes it easier to copy and paste large chunks into the bank0x files
2025-10-04 12:33:55 -05:00
mdraves91 7729b8c890 adding SECTIONs to script output 2025-10-04 12:03:07 -05:00
mdraves91 72afa608c3 wrote script to parse the entire MapHeaderPtrs table 2025-10-04 12:01:31 -05:00
earthoul 3ace35773d Refactor part 5 2025-10-04 22:58:57 +09:00
earthoul e97f5886e8 Refactor part 4 2025-10-03 17:54:24 +09:00
dannye e98b3173b1 Add EOF newline 2025-10-02 23:06:13 -05:00
dannye 5f72af085a Fix typo 2025-10-02 22:59:28 -05:00
dannye ecb352809d Merge pull request #29 from mdraves91/bank-0b-map-data
disassemble bank 0b map data tables
2025-10-02 22:58:35 -05:00
dannye 2e25e17036 script_extractor.py: don't add address comments after labels by default 2025-10-02 22:34:51 -05:00
dannye c16903f567 script_extractor.py: handle far call and ret better 2025-10-02 18:07:43 -05:00
mdraves91 1e1aac2078 cleanup: missed constants on a few blocks of NPCs 2025-10-02 14:18:45 -05:00
mdraves91 fdeeba9453 refactor: naming Data labels to match the new names in bank0b 2025-10-02 14:18:43 -05:00
mdraves91 e25b915a15 bank0b: putting MAP_* constants in map_exits 2025-10-02 14:18:40 -05:00
mdraves91 d7efd2ea4f adding MAP_* constant values 2025-10-02 14:18:38 -05:00
mdraves91 0573a3a284 renaming MAP_* consstants to MAP_GFX_*
there are two different sets of constant IDs used for maps and their graphics. this set is used for the graphics (hence why there is a Lightning Club 1 and 2, for example). A different set of IDs is used for loading maps and executing their scripts
2025-10-02 14:18:35 -05:00
mdraves91 8c58b98519 bank0b: new macros to simplify map data structures 2025-10-02 14:18:32 -05:00
mdraves91 35997a51cb bank0b: naming and documenting Map data structures
intentionally skipped the third byte of the xxx_StepEvents data for now. they are the target map to warp to, but they use a different set of map IDs than the current MAP_* constants.
2025-10-02 14:18:29 -05:00
mdraves91 4b411faf49 bank0b: disassembling big chunks of map data
map exits, NPCs, and interactable OW objects

followed pointers from functions to find these.
2025-10-02 14:18:27 -05:00
earthoul e25e3dc568 Refactor part 3 2025-10-03 03:27:51 +09:00
earthoul cb9f5ec9bb Refactor part 2 2025-10-02 19:56:00 +09:00
dannye 6d8362f2a6 Fix argument order 2025-10-02 01:41:06 -05:00
dannye 9480e9c094 Add script_extractor.py 2025-10-02 01:18:24 -05:00
earthoul 97d6774835 Refactor part 1 2025-10-01 13:31:37 +09:00
earthoul a29aa4219d Fix labels 2025-09-30 15:54:22 +09:00
earthoul 83840cef3b Disassemble script commands
TODO: refactor everything
2025-09-30 01:16:23 +09:00
dannye 54b87fb212 tcg2disasm.py: use integer division for bank calculations 2025-09-28 13:42:13 -05:00
dannye 4b16341575 Minor renames and cleanup 2025-09-28 11:52:07 -05:00
Mitchell Draves 61c41296eb Partial disassembly of bank0b by following pointers in Data_c651 (#26) 2025-09-28 11:51:19 -05:00
dannye 138bcd918c Fix alignment 2025-09-27 11:12:45 -05:00
dannye e564b02a5a Merge pull request #24 from earthoul/bank03
Disassemble Bank 3 sections with const/label refactorings
2025-09-27 10:58:03 -05:00
earthoul cf44933f76 Disassemble functions 0xdd91 to 0xded4 2025-09-25 16:01:20 +09:00
earthoul ef279f5320 Update comments 2025-09-24 18:57:50 +09:00