Commit Graph

644 Commits

Author SHA1 Message Date
Seth Barberee
db05ce306f
More PMD grind (#50)
* more sese grind

* match sub_802ABF8

* some more work
2021-09-01 18:05:30 -07:00
Seth Barberee
459171cf48
Decomp most of friend_rescue (#49)
* decomp most of friend_rescue

* dump corresponding data

* more data dumping and name some personality test funcs

* dump more text
2021-08-20 22:10:15 -05:00
Seth Barberee
d988394595
More data dumping and some code cleaning (#46)
* more data dumping and some code cleaning

* split out cutscene scripts

* initial start at script conversion

* more script work

* use correct type

* clearer up struct field names

* split known scripts into seperate files

* no need to preproc pure ascii strings in debug

* more cutscene work

* split out personality test scripts

* solidify text macros and doc some dungeon fields

* more scripting work
2021-08-12 17:26:01 -07:00
Dennis
bad7f7f688
More item related decomp (#45)
* decompile sub_80918EC

* some more item related functions

* more item functions

* more decomp, fix types in other places

* more small functions

* more item related decomp

* one more weird branching item function

* fix global.h includes

* figured out branch pattern

* decompile sub_8090F58

* make temporary struct for function

* 🦀 items.s is gone 🦀

* some renaming

* rename some obvious item related constants

* fix spelling error
2021-07-17 09:45:13 -07:00
Seth Barberee
a65d358927 minor code cleanup 2021-07-12 17:50:19 -05:00
Dennis
da7b30612f
More work on item related functions (#44)
* decompile sub_8091290

* decompile sub_80912c8

* rename functions / struct field

* more names

* decompile 80913A0

* decompile GetItemMove

* decompile sub_80913E0

* rename function

* decompile CanSellItem function

* rename inventory struct

* add some item check functions

* fix renaming stuff

* this file shouldnt have been here

* forgot merge conflict

* decompile more item functions

* rename some stuff

* fix HM/TM naming

* Update src/code_801AFA4.c

Use enum value for USED_TM

* Fix incorrect value

* decompile sub_80915F4

* decompile HasGummiItem

* decompiled another function and renamed stuff

* decompile 2 smaller functions

* more functions

* more decompiling and renaming

* redo change that was undone in the merge
2021-07-12 14:10:32 -05:00
Dennis
92a8e55fdd
Decompiled some item related functions (#42)
* decompile sub_8091290

* decompile sub_80912c8

* rename functions / struct field

* more names

* decompile 80913A0

* decompile GetItemMove

* decompile sub_80913E0

* rename function

* decompile CanSellItem function

* rename inventory struct

* add some item check functions

* fix renaming stuff

* this file shouldnt have been here

* forgot merge conflict

* decompile more item functions

* rename some stuff

* fix HM/TM naming

* Update src/code_801AFA4.c

Use enum value for USED_TM

* Fix incorrect value

Co-authored-by: Seth Barberee <seth.barberee@gmail.com>
2021-07-10 11:23:20 -05:00
Seth Barberee
6aa475c631 Sese's vacation work 2021-07-07 11:39:34 -05:00
Seth Barberee
7d9a587432 convert remaining floorID headers to JSON 2021-06-26 00:32:51 -05:00
Seth Barberee
139aef4531 convert all story line floorIDs to JSON 2021-06-25 17:19:47 -05:00
Seth Barberee
c89c711083 convert Sky Tower and Sky Tower Summit to JSON 2021-06-24 23:27:39 -05:00
Seth Barberee
966b1fe5b6 convert MagmaCavern pokemon data 2021-06-24 18:55:27 -05:00
Seth Barberee
d168537968 Finish out game options and FatalError
Some data cleanup as well. Thanks pika for the noreturn tip for
FatalError.
2021-06-23 17:35:37 -05:00
Seth Barberee
f1fdcc2b0a more splitting and labeling with some decomp 2021-06-18 17:56:20 -05:00
Seth Barberee
377bd14ea6
Dungeon pokemon/Floor ID JSON Part 1 (#39)
* move Thunderwave and Tiny Woods pokemon to json

* rule tweaking to actually build tool before parsing JSON

* delete .inc pokemon for tiny Woods and Thunderwave

* silence git complaining about br_ips and ips_patch

* use defines for species and pass the header file for species

* convert sinister woods

* convert MtThunderPeak

* convert silent chasm

* add trial floor_id w/ tiny woods

* change make rule name to fix compile

* MtSteel converted and bugfix

* convert few floor headers and great canyon pokemon

* code cleanup

* unify unkData into UnkTextStruct2

* more code cleanup and some text decomp

* doc more funcs and decomp/split some stuff

* document more save stuff

* more save work and move some data

* pika sniped UpdateNatureTotal

* decomp a litle and convert a few more dungeons

* better scanning for json files

* mt freeze and peak
2021-06-09 22:54:21 -05:00
Seth Barberee
eaa141c612
Keep on keepin on (#38)
* end of may dump of work

* move save text to src

* decomp a little more
2021-05-23 16:19:35 -05:00
Seth Barberee
f402e46cd3
Sese's April/May Dump (#37)
* splitting lots of pokemon square and labeling lots of other things

* actually commit this stuff

* more moving data and things

* more screen work

* split out some pokemon dungeon data

* lots of data work

* push more data work

* split kecleon, decomp another kanghaskhan func, and try to doc UpdateBGControl more

* lots of item work

* label more item things

* subtype -> category and doc types/category
2021-05-15 18:59:55 -05:00
Seth Barberee
d316d1e359
Preproc all the data (#35)
* actually put C files in preproc and use it for formatted type names. Cleaned up makefile like pokeemerald

* finish adding all colors and text macros to charmap

* preproc all the data and use text macros

* move all of wonder_mail_1 to src

* unify wonder_mail and wonder_mail_mid

* small code cleanup

* name two more exclusive pokemon funcs

* decomp a few more wonder mail funcs

* clean up MemoryFill call

* doc more of wonder mail in main menu
2021-04-05 22:05:09 -05:00
Seth Barberee
22fec43f18
More menu work (#33)
* split adventure log menu out and decompile

* add most adventure log matchings w/ 2 nonmatchings and move some relevant data

* more work on other menus

* fully decomp debug stuff around 203B3F0

* more debug menu work

* fix CreatePartnerSelectionMenu nonmatch

* move more data and clean some data up
2021-04-03 20:44:48 -05:00
Seth Barberee
a2d206665c
Move some data and Splitting (#32)
* move friend area settings to src

* split out playtime into different C file and decomp a few more funcs

* time -> play_time

* fix include

* split out more wonder mail stuff

* unify 203B2C0 and unkDungeon structs. snuck in a decomp func too

* split out more menu screens

* work some more on trade items

* doc a few more things

* add a close nonmatch and decomp nullsub and small func

* rollback struct attempt since it causes nonmatchings

* only one func left in asm

* death to trade_item asm and unify into one C file

* more docing and cleanup

* label main menu and trade items menu global menu struct

* doc itemMode
2021-03-30 13:11:51 -05:00
Seth Barberee
2fd4f339b4
Miscellaneous Work (Again) (#31)
* move some personality data from asm to C

* combine personality_test files and add my close attempt at RedrawPartnerSelectionMenu

* decomp some more wonder mail funcs and label some more data

* lots of data splitting and move some to src

* split out more dungeon data

* continue splitting out more dungeon data

* doc rescue team rank/pts funcs/data and exclusive pokemon ewram

* doc more sound things and decomp a func

* decomp LoadTeamRankBadge and label some data members

* split out rescue team and text util stuff

* forgot a constant

* match a few funcs and clean up a few

* cleaned up sub_80A28B4
2021-03-23 12:11:10 -05:00
Seth Barberee
7b142311a7
Miscellaneous Work (Again) (#30)
* work on debug menu and document that and main menu

* split, decomp, label more funcs

* split exclusive pokemon data out into C

* macro-ize exlusive pokemon data

* decomp 2 more funcs

* decomp a few more

* finally match PromptNewQuestion

* woot 7% aka more debug menu stuff
2021-03-12 15:39:07 -06:00
Seth Barberee
d72e17b5f5
Miscellaneous decomp/labeling/splitting (#29)
* lots of wonder mail work, credits and label some stuff

* nonmatch one intr func, match another, and label unused intr func

* seperate credits out

* split out debug menu and other stuff that isn't main menu

* label another func

* label some more funcs
2021-02-27 12:16:45 -06:00
Seth Barberee
7fa4f1a92b
Fully decomp save.s (#28)
* some work on decomping more save stuff

* code cleanup and decomp another save func

* fully decomp save and combine split save c files

* fix two nonmatchings
2021-02-21 13:13:55 -06:00
Seth Barberee
c754c2a046
Decomp more of personality_test (#27)
* decomp most of personality_test

* just gonna move the funcs to src in assembly for now so I can combine stuff

* label another func and some cleanup

* one func of personality test left in asm

* small cleanups and labeling of funcs
2021-02-19 18:01:53 -06:00
Seth Barberee
8dfd044ef3
Some Personality and data (#26)
* decomp few personality funcs and clean up some pointers in the dungeon data

* de-pointer-ify friend area dialogue

* clean pointers on a personality test question

* decomp a few more main menu funcs and dump some more data

* label some funcs
2021-02-07 21:10:12 -06:00
Seth Barberee
74daf03fd7
Main Menu and Scripts (#25)
* label more funcs, dump scripts/text, and decomp main menu

* decomp vram func and dump more data

* add forgotten file

* get rid of goto in UpdateMenu
2021-01-31 19:07:31 -06:00
Seth Barberee
076ff9ce59 small dungeon work.. to trigger webhook 2021-01-28 18:57:21 -06:00
Seth Barberee
cb77386b65 more headway on Pokemon funcs and labeled in asm 2021-01-22 10:39:42 -06:00
Seth Barberee
10cda4ba81 split out all dungeon floor id data 2021-01-22 10:26:43 -06:00
Seth Barberee
d010378f72 mass doc'ing of symbols and some tiny decomp work 2021-01-20 16:02:26 -06:00
Seth Barberee
87cd9885a9
Friend Area Decomp Work (#15)
split out and work on friend area stuff
2020-12-31 18:30:16 -06:00
Seth Barberee
f90f3affeb
Wonder mail Pt. 1 (#11)
Some work on decomping/labeling wonder mail. Renamed corresponding assembly/C files. Labeled a few strings in data too.
2020-12-15 16:28:03 -06:00
Mateusz Naściszewski
efdaf621cb
Translating Decompression
Hopefully part one of many, some NONMATCHINGs in the larger functions, sadly.
2020-12-15 00:51:45 +01:00
Mateusz Naściszewski
c0ae9ddc9e
Continue dumping and documenting strings 2020-12-13 00:30:31 +01:00
Mateusz Naściszewski
0f877a3561
Improve calcrom, add incbin counting, fix a few existing issues (#7) 2020-12-12 14:44:18 -06:00
Seth Barberee
448de33aef dump/label more data from data_800D090 2020-12-12 14:12:37 -06:00
Mateusz Naściszewski
5e2842c698
Text data cleanup! (#6)
* Text data cleanup!

Reformatted and fixed up all of data/text/, and extended charmap.txt

The `#P` metacharacter (prompt) acts like a newline, so I reformatted it as such.
All `.string` macros followed by `.byte 0x00` have been replaced with `.asciz` where possible, and `.string "...\0"` elsewhere, note that `.asciz` does not respect the charmap, so characters such as 'é' in 'Pokémon' or the various buttons would be incorrectly encoded.
Also cleaned up occurences of `.byte 0x24`, which should just be a literal '$' inside the string.

* Nuke all instances of `.asciz`

As discussed on Discord, globally replaced all `.asciz` macros with `.string "...\0"`, as `.asciz` did not respect the charmap.

* Minor string consistency fixes
2020-12-12 12:30:04 -06:00
Mateusz Naściszewski
1b9aeaf518
Move personality test data out of data_80EBA18 (#5) 2020-12-11 14:54:07 -06:00
Mateusz Naściszewski
7e2c662672
data_80F4278.s dumping (#4)
* Dumping menu text, part 1

* Continuing to dump text

* Renamed actions array according to suggestion
2020-12-11 12:28:28 -06:00
Mateusz Naściszewski
5fd50012a4
Resolve a few text incbins (#3) 2020-12-11 11:44:12 -06:00
Seth Barberee
d6b218ebf5 split more main_data off 2020-12-05 14:14:09 -06:00
Seth Barberee
c3f879ce16 splitting more dungeon floor data 2020-12-04 17:00:36 -06:00
Seth Barberee
0d5c196bff split out more floor data 2020-12-03 21:10:35 -06:00
Seth Barberee
a4fdac9553 slight cleanup
Found a few things when I attempted to decompile GameLoop.
2020-12-02 15:13:09 -06:00
z80rotom
3829eabfd2
Added missing personality test results (#2) 2020-12-02 14:57:26 -06:00
Seth Barberee
4d8d319b1f fix up matching 2020-11-24 17:00:01 -06:00
Seth Barberee
02df19855d Revert "more data dumping"
This reverts commit 88cac20034.
2020-11-24 16:53:42 -06:00
Seth Barberee
88cac20034 more data dumping 2020-11-24 11:21:46 -06:00
Seth Barberee
0c3daaaabd some more data dump work 2020-11-21 20:09:25 -06:00
Seth Barberee
2832112389 dumping some more text 2020-11-20 11:18:59 -06:00
Seth Barberee
0f6b5a1649 data dumping and doc'ing 2020-11-17 13:10:13 -06:00
Seth Barberee
3b75b10bbb more decomping and some data dumping 2020-11-14 17:44:04 -06:00
Seth Barberee
a1cd2ce87f some data dumping and doc # of friend areas 2020-11-07 19:01:11 -06:00
Seth Barberee
df9385ed9e continue my slow pace 2020-11-07 17:29:46 -06:00
Seth Barberee
1c2975874b remove tiny text data file 2020-11-03 14:12:29 -06:00
Seth Barberee
c6cef4c839 start converting personality descriptions 2020-11-03 14:03:13 -06:00
Seth Barberee
83cc1bbd4d conntinue datadumping 2020-11-03 11:27:42 -06:00
Seth Barberee
c7158dcc65 some more data dumping 2020-11-02 11:48:58 -06:00
Seth Barberee
d842f0e072 more data sifting 2020-10-31 00:09:55 -05:00
Seth Barberee
73d44f33ac stringify categories 1-2 on personality test 2020-10-30 20:11:06 -05:00
Seth Barberee
36790d5591 seperate each personality question 2020-10-30 11:27:34 -05:00
Seth Barberee
30f301d727 doc some strings 2020-10-29 23:02:43 -05:00
Seth Barberee
3ba62db61d pointer up these strings 2020-10-29 21:19:24 -05:00
Seth Barberee
de91e24ec8 add pointers for shifting stuff around 2020-10-29 19:42:05 -05:00
Seth Barberee
8c2d6a42c8 splitting more post story floor data 2020-10-29 18:26:06 -05:00
Seth Barberee
2e3f461e42 main data from story line dungeon split out 2020-10-29 15:17:49 -05:00
Seth Barberee
ab788bce63 split out main story dungeon floor data 2020-10-29 11:46:35 -05:00
Seth Barberee
fed56ed5e0 continue splitting dungeon floor id data by dungeon 2020-10-28 22:59:48 -05:00
Seth Barberee
69bf0084ce for some reason, this was breaking the build... troubleshoot later when we actually use these 2020-10-24 02:49:39 -05:00
Seth Barberee
1d308ccaa4 more labeling of stuff with rom map (thx MegaMinerd) 2020-10-23 19:26:51 -05:00
Seth Barberee
2613adee4f more work on dungeon data 2020-10-22 11:48:48 -05:00
Seth Barberee
769dba859e split sinister woods data off 2020-10-22 11:31:46 -05:00
Seth Barberee
787c832231 start moving dungeon data to respective directories 2020-10-22 10:52:57 -05:00
Seth Barberee
f8ae7ddc96 some more laabeling and organization of data 2020-10-22 00:45:46 -05:00
Seth Barberee
bc1d2ce330 dumped system sbin 2020-10-18 19:16:26 -05:00
Seth Barberee
01dde719bb split dungeon sbin so I can work on the main dungeon floor data 2020-10-18 01:43:22 -05:00
Seth Barberee
9b8e49226f start moving some data into c of personality test 2020-10-17 12:27:49 -05:00
Seth Barberee
597a69e9df the great dungeon data dump of 2020 2020-10-17 01:50:34 -05:00
Seth Barberee
3c986032f8 docing and one decomp of a function 2020-10-13 17:30:44 -05:00
Seth Barberee
fc0a7eae93 some data dumping 2020-10-09 16:57:49 -05:00
Seth Barberee
303d06bf99 seperate out each color in the palette 2020-10-07 13:57:29 -05:00
Seth Barberee
4aea176d63 formatting data for each personality question 2020-10-06 01:06:02 -05:00
Seth Barberee
6f92f93530 sorting out more data 2020-10-05 23:26:49 -05:00
Seth Barberee
18308a1190 some doc'ing and decomp work 2020-10-05 22:32:47 -05:00
Seth Barberee
e0c5aa20a8 dump unk_data and doc according to datacrystal 2020-10-05 22:32:12 -05:00
Seth Barberee
182a678071 starting to make sense of some of the data stuff 2020-10-03 20:34:07 -05:00
Seth Barberee
dd42ca2108 more data dumping 2020-10-03 19:43:19 -05:00
Seth Barberee
89bfb94399 lotsa data dumping and split one asm file 2020-10-03 18:16:34 -05:00
Seth Barberee
51de478e60 changed hex boundary to decimal and format corresponding data 2020-10-01 13:48:10 -05:00
Seth Barberee
ef82d0f951 some more dumping and one decomp 2020-09-30 14:48:13 -05:00
Seth Barberee
5617c22107 continue identifying personality question locations 2020-09-29 11:10:52 -05:00
Seth Barberee
7188253401 slowly format data for cleaner reading 2020-09-28 12:21:52 -05:00
Seth Barberee
28cdf9a94f mark miscellaneous personality test questions 2020-09-27 21:59:29 -05:00
Seth Barberee
f756b415ee dumped raw bytes.. will do byte -> charmap of this one slowly 2020-09-27 19:40:26 -05:00
Seth Barberee
0b4a7ac24e More data dumping 2020-09-24 15:48:41 -05:00
Seth Barberee
e41b0b6a35 finally found the personality test stuff. now I can work on some of that now 2020-09-24 01:12:49 -05:00
Seth Barberee
a808cea8ea more data dumping 2020-09-22 14:58:19 -05:00
Seth Barberee
a14f61bc6a yes data dumping go brrr 2020-09-21 19:31:59 -05:00
Seth Barberee
d227929420 more datadumping and some decomp work 2020-09-19 23:28:48 -05:00
Seth Barberee
1ee2ec16ae further splitting and decompile one func 2020-09-18 00:00:39 -05:00
Seth Barberee
ab156ce3d7 more datadumping 2020-09-17 15:34:15 -05:00
Seth Barberee
95b06d5d6b split to decomp type name string functions 2020-09-17 12:18:11 -05:00
Seth Barberee
cbe3f0265b dumped friend area names 2020-09-16 21:42:44 -05:00
Seth Barberee
e88a5526d7 ahhh more string pointers. that's what that stuff was 2020-09-15 16:49:29 -05:00
Seth Barberee
fef46aeb0c more work on personality test data 2020-09-13 23:32:12 -05:00
Seth Barberee
8e58bc7515 adding more align stuff 2020-09-13 18:57:39 -05:00
Seth Barberee
4a094ea355 convert to using asciz for handling all the 0x00 bytes 2020-09-13 18:53:09 -05:00
Seth Barberee
7fa7e54165 more datadumping and starting to doc ewram components 2020-09-11 21:26:19 -05:00
Seth Barberee
5f1e84aa39 split friend area stuff to seperate file and work on more friend area warp scripts 2020-09-10 19:53:41 -05:00
Seth Barberee
f3317cbc11 dumped some friend area warp scripts 2020-09-10 19:26:38 -05:00
Seth Barberee
705f61a7a6 doc some script commands in personality test 2020-09-10 19:03:15 -05:00
Seth Barberee
8d788ca347 split personality test data to different file and doc personality nature text table 2020-09-10 18:47:55 -05:00
Seth Barberee
acbe5a62e1 dumped starters a and partners 2020-09-10 18:04:23 -05:00
Seth Barberee
dad1e6c847 doc'ing more data from datacrytal 2020-09-09 20:31:02 -05:00
Seth Barberee
adc3a5e6bb The great text dump of 2020 2020-09-08 18:46:58 -05:00
Seth Barberee
1661de58b2 doc a data thing 2020-09-08 17:21:48 -05:00
Seth Barberee
2a800c35f5 jobs/mail strings 2020-09-07 13:39:57 -05:00
Seth Barberee
9eb45b8f71 seems like some friend area strings 2020-09-07 13:32:30 -05:00
Seth Barberee
3fa8784821 more save string dumping 2020-09-07 13:09:06 -05:00
Seth Barberee
236e9a6715 more string dumping 2020-09-07 12:57:01 -05:00
Seth Barberee
0336f6e943 dumping dumping dumping 2020-09-07 12:41:31 -05:00
Seth Barberee
19c4992afc dumped Yes/No strings 2020-09-07 12:33:32 -05:00
Seth Barberee
129156fcf1 another random efob string 2020-09-07 12:22:28 -05:00
Seth Barberee
b8fe22c7dd dump random string 2020-09-07 12:20:21 -05:00
Seth Barberee
b22a2ac19e document Team RnRanks 2020-09-05 13:56:17 -05:00
Seth Barberee
3f14389d35 got the type names figured. some junk in the top 2020-09-05 13:48:49 -05:00
Seth Barberee
b7d1fe09f0 start dumping unformatted_type_names 2020-09-05 13:42:43 -05:00
Seth Barberee
253dab4bc5 dumped another pksdir0 string 2020-09-05 09:59:17 -05:00
Seth Barberee
e4b9df868f dump none text 2020-09-04 21:29:54 -05:00
Seth Barberee
eadf34a632 did first datadummp, woo 2020-09-04 21:10:21 -05:00
shinny
cef20f5b34 decomp dungeon data getters 2020-06-02 14:56:12 -04:00
nullableVoidPtr
0a3b060d29 Fix perms and linebreaks 2019-08-04 09:47:55 +00:00
nullableVoidPtr
81f6704f3c Use preprocessor for data asms, clean up sound/ and dump some text 2018-11-22 20:59:37 +08:00
nullableVoidPtr
ff37bfefe0 Dump gMPlayTable and gSongTable 2018-11-20 19:50:34 +08:00
nullableVoidPtr
c7045ae369 Identify, split, decompile m4a, and more
ResetSprites, gCharMemCursor, gSpriteCount; analysed subheaps; identified more file pointers
2018-11-20 15:04:02 +08:00
PikalaxALT
666f5d4e3a Link newlib 2017-12-16 21:43:34 -05:00
PikalaxALT
f95a4a9324 Import newlib and create makefile 2017-12-15 09:39:34 -05:00
scnorton
bd3e8ec8d7 More labels; add WIP build script 2017-12-14 19:38:05 -05:00
scnorton
6b3751d15e (01/??) Identify several libc functions by name in newlib, and identify newlib object boundaries within libc, part 1 2017-12-14 17:26:42 -05:00
scnorton
9ed4ba3d7e Decompile libc data 2017-12-14 16:05:40 -05:00
sceptillion
d08ba1f023 decompile some of file_system 2017-12-12 00:17:17 -08:00
sceptillion
b268532079 split file archives 2017-12-11 02:44:20 -08:00
sceptillion
d07afbc081 initial commit 2017-12-10 22:41:46 -08:00