Commit Graph

243 Commits

Author SHA1 Message Date
Rangi
2bc8cf5fc1 Revise some constant definitions 2021-03-16 18:08:25 -04:00
Rangi
0d185fbd88 Define MAPGROUP_* constants and verify MapGroup_* table sizes 2021-03-10 21:21:12 -05:00
Rangi
472051eb5e Verify wild data sizes with def_grass/water_wildmons and end_grass/water_wildmons macros 2021-03-05 16:18:43 -05:00
Rangi
5454e1e0de Verify data table sizes with table_width and assert_table_length macros
It also uncovered some off-by-one issues with defining some constants.

A few structs now use rsreset/_RS to define their offset constants.
2021-03-05 16:10:25 -05:00
Rangi
edbc734b84 Fix typo 2021-02-05 12:46:34 -05:00
Rangi
4c43fa538d The 'tmhm' macro adjusts to the number of TMs/HMs 2021-01-06 10:20:29 -05:00
Rangi
524f57703f Rename some labels
- Remove "Buffer" suffix from some byte and word quantities
- Change "Ptr" to "Pointer"
2020-12-23 16:46:49 -05:00
Rangi
79d7682b03 Clarify signed magnitude in the growth_rate macro 2020-12-20 23:35:32 -05:00
Rangi
653e92d803 Use assert to ensure correct base data size 2020-11-17 16:14:41 -05:00
Rangi
ca957dd503 Correct some filename comments 2020-11-17 10:59:56 -05:00
Rangi
dd73b278b5 Resolve some "???" comments 2020-11-17 10:56:28 -05:00
Rangi
dbcab434fb Rename "dummy game" to "memory game" 2020-11-08 19:32:52 -05:00
Rangi
b56c1b6351 More syncing with pokecrystal 2020-11-03 10:12:54 -05:00
Rangi
c9bf53310f Identify an unused intro sprite animation from pokegold-spaceworld 2020-11-02 09:30:29 -05:00
Rangi
a75527df25 Make some labels more consistent 2020-11-01 12:36:53 -05:00
Rangi
eecff60284 UnusedSpriteAnimGFX was to sprite anims as AnimObjGFX is to battle anims 2020-10-30 17:32:04 -04:00
Rangi
6063bd1dfb Identify wSpriteAnimDict key constants 2020-10-30 15:38:56 -04:00
Rangi
b89636769c Updates to more closely sync with pokecrystal 2020-10-29 23:23:44 -04:00
Rangi
7062ce2ffa Identify the remaining uses of another WRAM union 2020-10-29 14:45:52 -04:00
Rangi
b47bfbd813 Identify more WRAM labels, and start a <X>_DummyFunction label convention 2020-10-28 14:39:52 -04:00
Rangi
9483cf47dd Replace many '; unused' with '; unreferenced' 2020-10-28 10:21:24 -04:00
Rangi
6e142eb5b3 Create data/collision/ for tile collision-related data 2020-10-27 10:00:51 -04:00
Rangi
46f6cc4d41 Comment, remove, or revise many unreferenced labels 2020-10-26 20:30:09 -04:00
Elliot
3c8bf3c01d
Name symbols in link.asm (#63)
Identify remaining link.asm labels
2020-10-23 13:37:12 -04:00
Rangi
0d681c25b9 Identify some more map object labels and constants 2020-10-22 17:41:42 -04:00
Rangi
0b6b706ffc Identify some more labels (a few link-related) 2020-10-22 00:53:59 -04:00
Rangi
5838d479a2 Identify battle bg effects functions and constants 2020-10-06 16:18:05 -04:00
Rangi
4289216de1 Identify anim object constants 2020-10-04 15:34:31 -04:00
Rangi
ec88087f30 Identify battle animation functions 2020-10-03 22:17:19 -04:00
mid-kid
aa04a13578 GS_INTRO_STAR/SPARKLE -> GS_GAMEFREAK_LOGO_STAR/SPARKLE
These two sprite animations are related to the Game Freak Logo splash
screen, not the actual intro.
2020-08-27 15:17:53 +02:00
Rangi
2556704a43 Consistent constants for radio data table sizes (could still be better) 2020-08-13 13:47:57 -04:00
Rangi
8b40e990d3 Generate the Stadium 2 checksum data with pfero's tool instead of raw INCBINs 2020-07-23 23:49:30 -04:00
Rangi
f9f438473f Move EngineFlags and SpecialsPointers into data/engine/ 2020-07-22 20:25:22 -04:00
Rangi
31287c6aaa Revert "Factor out tables into data/overworld/"
This reverts commit 3f392c2792.
2020-07-22 20:23:19 -04:00
Rangi
3f392c2792 Factor out tables into data/overworld/ 2020-07-22 15:23:02 -04:00
Rangi
53d4a649b9 Treat map setup commands like trade script commands 2020-07-22 13:37:52 -04:00
Rangi
0bb3d0e472 Define NUM_FLYPOINTS 2020-07-21 11:48:46 -04:00
Rangi
a7360edd39 SPRITE_GYM_GUY -> SPRITE_GYM_GUIDE 2020-07-17 13:01:36 -04:00
Rangi
a304573fcb Define map setup commands as macros like other script commands 2020-07-13 20:49:57 -04:00
Rangi
4eeab8973c Disassemble the final English debug ROMs 2020-07-13 10:59:22 -04:00
Rangi
61598ad925 Eliminate enum: use const instead, with case-by-case parallel const implementations 2020-07-09 11:27:10 -04:00
Rangi
e3a815bf4a add_tm and add_hm define TM##_MOVE and HM##_MOVE constants, to avoid repeating the move names in tmhm_moves.asm 2020-07-06 16:49:46 -04:00
Rangi
92f96e8c78 Use STRCMP, not ==, to compare multi-character strings 2020-07-02 11:46:39 -04:00
Rangi
e6f7543292 Identify more labels, and use the jumptable macro when possible 2020-07-01 13:13:40 -04:00
Rangi
f680408489 Comment more ROM labels as unreferenced
(Some unreferenced labels are above code which is still used via fallthrough!)
2020-06-21 18:33:40 -04:00
Rangi
9dee89fae3 Replace "Unreferenced" labels with "; unreferenced" comments 2020-06-21 16:27:29 -04:00
Rangi
815d22201a Identify some more Unknown labels 2020-06-20 18:52:20 -04:00
entrpntr
9d0c8dbf8e Rename labels to stop cheating the unnamed.py script. 2020-06-19 07:35:14 -04:00
Rangi
97c1f9dd27 ReplaceChrisSprite -> UpdatePlayerSprite 2020-06-16 19:37:50 -04:00
Rangi
fda549a27a [in progress] Harmonize more constant and data files with pokecrystal 2020-06-16 14:32:48 -04:00
Rangi
b3e38f1246 Remove Crystal-only CaughtData 2020-06-15 17:41:02 -04:00
Rangi
03e93e5a70 WiseTriosRoom -> EcruteakTinTowerBackEntrance 2020-06-15 17:32:11 -04:00
Rangi
42c5aab5e3 Remove unused map scene IDs 2020-06-15 17:23:27 -04:00
Rangi
dac20d6dd2 SPRITE_BUENA -> SPRITE_BEAUTY 2020-06-15 17:12:24 -04:00
entrpntr
2fb48b556e Padding -> unused beta pics in base stats. 2020-06-15 14:30:57 -04:00
entrpntr
e9b6a2fc62 Miscellaneous cleanups. 2020-06-15 14:08:24 -04:00
Rangi
54bbefeed1 Treat std scripts like specials and predefs (ported from pokecrystal) 2020-06-15 13:25:56 -04:00
Rangi
9f01e33a04 Port miscellaneous recent updates from pokecrystal 2020-06-15 13:12:56 -04:00
Rangi
b6b573152c Derive Pokémon frontpic dimensions using tools/png_dimensions 2020-06-14 19:00:34 -04:00
Rangi
1521f52e37 Make .gbcpal files for Pokémon and trainer sprites
Pokémon use their back sprites since front sprites differ between Gold and Silver.
2020-06-14 18:32:33 -04:00
entrpntr
d6a0b6347c Fix file permissions. 2020-06-14 08:52:40 -04:00
entrpntr
80b52ec275 Finish adding/improving labels for now. 2020-06-10 18:59:52 -04:00
entrpntr
2c9fbba109
Merge pull request #45 from libjet/bank3e
Disassemble bank $3e
2020-06-06 15:09:50 -04:00
libjet
5f0eb65d5a Add engine/battle/misc.asm 2020-06-06 02:36:04 +01:00
libjet
5ea5b0d901 Add engine/events/magikarp.asm 2020-06-06 02:22:45 +01:00
libjet
dd65caf511 Add engine/pokedex/unown_dex.asm 2020-06-06 02:17:01 +01:00
libjet
3edaf4635e Add time_capsule_2.asm and new_pokedex_entry.asm 2020-06-06 02:15:06 +01:00
libjet
44229a6cd6 Add engine/events/name_rater.asm 2020-06-06 02:03:29 +01:00
libjet
29e2695d6e Add engine/link/time_capsule.asm 2020-06-06 01:56:28 +01:00
entrpntr
e28325211c Fix file permissions. 2020-06-05 16:42:33 -04:00
libjet
5356c4013b add engine/battle_anims/functions.asm 2020-06-05 19:06:10 +01:00
libjet
ba16844446 Add engine/battle_anims/helpers.asm, and the rest of data/battle_anims 2020-06-05 18:23:26 +01:00
libjet
81a8e61f6d Add data/battle_anims/objects.asm 2020-06-05 17:31:50 +01:00
entrpntr
3ceee7fd9e Fill out oam.asm, final cleanups for now. 2020-06-03 15:50:35 -04:00
entrpntr
4dd118c2a7 Label jumptable entries. 2020-06-03 04:48:34 -04:00
entrpntr
20f612793e Start cleaning up. 2020-06-03 03:08:25 -04:00
libjet
991832399b Add engine/gfx/mon_icons.asm 2020-06-02 02:50:34 +01:00
libjet
61b87613c2 Updated oam.asm for Silver 2020-06-01 21:00:11 +01:00
libjet
36e5b6f564 Update data/sprite_anims/oam.asm 2020-06-01 18:44:33 +01:00
libjet
c743b31b89 Update data/sprite_anims/framesets.asm 2020-06-01 02:34:06 +01:00
libjet
68123f3682 Start on sprites.asm, partially disassemble sprite_anims.asm 2020-05-31 18:49:09 +01:00
entrpntr
3a9930b9d4 Remove unnecessary 2bpp files, plus some minor fixes. 2020-05-28 22:10:29 -04:00
entrpntr
33e45dea92 Changes for hall of fame and credits. 2020-05-28 21:54:13 -04:00
libjet
0cf765a4f5 Add halloffame.asm and credits.asm 2020-05-28 19:47:18 +01:00
entrpntr
2321448d13
Merge pull request #36 from entrpntr/misc-dump
Disassemble banks $70 and $3f, add tileset data
2020-05-27 18:42:13 -04:00
entrpntr
418ac97a9c
Merge pull request #37 from libjet/bank14
Disassemble bank $14
2020-05-26 14:28:16 -04:00
entrpntr
14f6ddbe3c Finish disassembling banks 7 and 8. 2020-05-25 17:04:16 -04:00
entrpntr
f84274fb73 Whoops, missed a bank somehow. 2020-05-25 17:00:02 -04:00
entrpntr
1fe8afcdba Add remaining collision files, plus unused Johto files. 2020-05-25 16:59:26 -04:00
entrpntr
df0f27e3df Make separate tileset object, add similar collision files. 2020-05-25 16:57:43 -04:00
libjet
00578c7b61 Add data/pokemon/unused_pic_banks.asm 2020-05-25 15:53:12 +01:00
libjet
2c54d71504 Add engine/pokemon/experience.asm 2020-05-25 15:38:13 +01:00
entrpntr
3a50abc46a Add engine/events/mom_phone.asm and engine/link/mystery_gift_3.asm. 2020-05-23 00:51:50 -04:00
entrpntr
bfddbf6b11 Add engine/events/npc_trade.asm. 2020-05-22 23:52:45 -04:00
entrpntr
88badff0e1
Merge pull request #33 from entrpntr/phone
Disassemble phone scripts and text (bank $41)
2020-05-22 12:11:22 -04:00
entrpntr
d2ea8f80d1 Add credits strings pointers and constants. 2020-05-21 17:12:46 -04:00
entrpntr
0de451da50 Dump tileset metatiles. 2020-05-21 14:55:45 -04:00
entrpntr
7525a47ef2 Dump credits strings. 2020-05-21 14:20:38 -04:00
libjet
768e0477f9 Add getgen1trainerclassname.asm 2020-05-21 16:26:10 +01:00
libjet
eb88ad0d19 Add engine/pokemon/types.asm 2020-05-21 16:00:49 +01:00