Commit Graph

198 Commits

Author SHA1 Message Date
AnonymousRandomPerson a5296a2f99 Merge remote-tracking branch 'upstream/master' 2022-02-26 13:29:30 -05:00
AnonymousRandomPerson 6e56b9f034 Decomped CanUseStatusMove() 2022-02-24 23:38:21 -05:00
AnonymousRandomPerson 598a588589 Decomped CanAttackInFront() 2022-02-21 17:03:34 -05:00
AnonymousRandomPerson 4aafa434a6 Decomped IsTileGround() 2022-02-20 23:43:06 -05:00
AnonymousRandomPerson 96372eb336 Decomped CanUseOnSelfWithStatusChecker() 2022-02-20 21:59:22 -05:00
Seth Barberee 6bf6f8ded1 finish moving data to load_screen 2022-02-17 18:59:56 -06:00
Seth Barberee ee5fb3584d move data from data to wonder_mail 2022-02-17 18:59:56 -06:00
Seth Barberee b2e109dab1 Move some data to src and add some more headers
- Finish moving all data for main menu to src
- Move some more data to wonder_mail
- Add some headers to clean up some externs
2022-02-17 18:54:59 -06:00
AnonymousRandomPerson a9b5977d4c Decomped MoveMatchesChargingStatus 2022-02-05 20:23:01 -05:00
AnonymousRandomPerson f728e7e90e Decomped DecideAttack() 2022-02-04 23:13:01 -05:00
AnonymousRandomPerson 5dc5b3b1f9 Used official or more common names for music tracks 2022-01-26 00:07:18 -05:00
AnonymousRandomPerson 154c442505 Decomped CanMoveInDirection() 2022-01-25 22:46:40 -05:00
AnonymousRandomPerson 74d89a6fe4 Made recruit rate signed in species data 2022-01-16 23:45:59 -05:00
AnonymousRandomPerson 453618864e Decomped HasStatusAffectingActions() 2022-01-13 22:56:30 -05:00
AnonymousRandomPerson 52e7368f30 Labeled CalculateFacingDir() 2022-01-08 00:08:00 -06:00
AnonymousRandomPerson 393e6e9eb0 Fixed typo with Munchlax 2022-01-06 22:48:26 -06:00
AnonymousRandomPerson d9b1ef43a6 Labeled Warp Scarf variables 2022-01-06 21:52:23 -06:00
AnonymousRandomPerson 2fa42b2987 Moved some constants from data to source 2022-01-04 23:34:35 -06:00
AnonymousRandomPerson d40d2e55a3 Decomped IsTargetStraightAhead() 2021-12-28 21:38:42 -06:00
Seth Barberee e7a59a1a21 move pokemon mail data to src 2021-12-22 17:00:21 -06:00
Seth Barberee 7a1956f51d Merge pull request #87 from SethBarberee/personality_test_data_2
Personality test data 2
2021-12-21 15:05:05 -06:00
mid-kid 99a038284b Translate all .include to #include
This decision was made to reduce the complexity of using .include whilst
juggling with tools/scaninc and tools/preproc:
- tools/scaninc doesn't apply the proper search rules for .include (it
  assumes #include behavior). In particular, it doesn't consider paths
  starting from $PWD, and doesn't scan the included files as a result.
- .include had to be processed before #include by preproc in many cases,
  as code was being included that had to be preprocessed by CPP (think
  of #define). This contradicts standard GCC behavior.

To make include paths consistent across the asm/ data/ and src/
directories, the following files were moved:
- constants/ → include/asm/constants/
- asm/macros/ → include/asm/macros/
- asm/macros.inc → include/asm/macros.inc
- include/macros/m4a.inc → include/asm/macros/m4a.inc

As part of the necessary changes for this to work, the scaninc method in
the makefile was improved to generate .d files that don't choke when
files are missing.
2021-12-20 16:29:12 +01:00
mid-kid bc43a77380 Finish de-incbinning data_80E59A8.s and data_80E7D40.s 2021-12-20 16:16:37 +01:00
mid-kid 51bff00712 Finish de-incbinning data_80D47B8.s and data_80DED44.s 2021-12-20 16:11:19 +01:00
AnonymousRandomPerson 7acad69795 Renamed inconsistent color macros 2021-12-19 17:19:13 -06:00
Seth Barberee 2ec7cc5bad fix nonmatch and move question references 2021-12-19 14:59:10 -08:00
Seth Barberee 3021ae9077 all data moved except questions 2021-12-19 14:59:10 -08:00
AnonymousRandomPerson b458476078 Swapped out more text macros 2021-12-14 22:54:04 -05:00
AnonymousRandomPerson cd9a8c5a38 Decomped CanTarget() 2021-12-14 22:54:03 -05:00
mid-kid 087405b9d9 Dump and document status sprites 2021-12-13 10:44:48 -06:00
mid-kid 8213467c21 Dump status names and descriptions 2021-12-13 10:44:48 -06:00
mid-kid ca10fd795e Dump unidentified tables 2021-12-13 10:44:48 -06:00
mid-kid 2fcfbc2266 Finish de-incbinning data.s 2021-12-13 10:44:48 -06:00
Seth Barberee 4fc272fea6 No wifi + 2 days on train = more decomp (#80)
* No wifi + 2 days on train = more decomp

* layin some more

* one func, one file
2021-12-01 14:33:06 -08:00
Cheng Hann Gan 938a88551f Labeled more symbols (#77)
* Labeled more symbols

* Fixed comment typo

* Renamed some functions
2021-11-20 08:47:46 -08:00
Geotale 1355271988 Add some labels and convert some strings for some data (#74)
* Adding in all missing strings and labels

Quite a few strings and labels were missing. This should fix all of them. "NaiveQuest1Answers" might have the second option incorrect, but it's kinda hard to count bytes and this does seem to be a valid answer, and should be checked in the future.

* Add all strings, labels, and update pointers

Like the previous commit, I have 0 clue if this builds lol -- I can't quite test this, because I can't run a compiler to do so, and I don't own a copy of the game. Should still match I would think. JobHeadline may have something incorrect about trailing 0 bytes, but it seems to have been an observational mistake on my end on it having 5 of them rather than 4?

* Fix consistency with previous labels (+typo fix)

Basically just "Message" with "Text", and replace "Headlline" with "Headline"

* Fix mistyped labels from previous commit

It seems I'm not very good at this assembly thing. "NewFriendAreas" -> "NewFriendArea", like originally.

* Replace the rest of "Message" with "Text"

I forgot to replace some stuff

* Forgot an A

Insert an A to create "BraveQuest2A_Ignore" instead of "BraveQuest2_Ignore"

* Forgot a space, remove more

Removed some extra whitespace, add a space between ".string" and a quotation mark that I had missed. Hope this didn't break anything somehow.

* Add back all comments, fix missing pointer

I accidentally deleted all comments. I've now fixed that, and added in a pointer to NaiveQuest1_Love because I had missed it somewhere else.

* Add in TimidQuest3 answer pointers I had missed

This should be the last of the missing pointers?

* Tabs -> Spaces

Fixed formatting by converting all tabs to spaces. I don't actually know when I changed them to tabs, but I'd guess I did pretty early on...

* Add some labels

A few labels were missing, tried to fill them in.

* Made a data assembler!

I can now basically ensure that the files match! Found an error with two labels reversed, but that seems to be the only thing that was incorrect.

* Left out a space somehow

Simply just adds a space between a ".string" and the actual string

* Make the files actually match

Took a bit of time, but I believe I've finally got this file actually matching!
I was lazy with strings when first encoding and wrote decimal offsets for octal character encodings sometimes which is fun. All instances of this should now be fixed!

* Fix some labels

I believe this was just missing two labels that I forgot to change when copy-pasting them for the general format...
Meh, still, glad to have it fixed.

* Replace hexadecimal string escapes with octal ones

I tried committing this before but it doesn't seem to have worked for some reason -- Just in case it did and I'm rewriting this on accident.
I should have done some research apparently -- ARM asm doesn't support hexadecimal escape sequences, only octal ones. Should be fixed now!

* Replace octal escape sequences with ".byte"

It turns out those aren't supported either -- That's okay, though it looks a bit more messy imo.

* Update data/pokemon_mail.s

* fix up conflicts and labels

Co-authored-by: Seth Barberee <seth.barberee@gmail.com>
2021-11-18 10:19:20 -08:00
Cheng Hann Gan a432de845c Expanded charmap usage (#76)
* Added item icons/Hiragana to charmap

* Use color formatting charmap macros

* Removed redundant text formatting macros
2021-11-18 09:21:00 -08:00
Seth Barberee bfaa55f2fe Label and doc iq skills and tactics info (#75)
* label/doc iq skills/tactics info

* decomp a few more dungeon_util and label some funcs

* doc the IQSkills field
2021-11-15 11:02:26 -08:00
mid-kid 681ca68ac9 Disassemble some more tables and the first graphic (#71)
* Sync tools/ directory with pokeemerald

We really ought to have a central repository for this mess

* Make incremental builds faster

Scientists hate him!
He made NODEP disappear with this ONE SIMPLE TRICK!!!
Want to know more? -> __click here__ <-

* Disassemble some more tables and the first graphic
2021-11-04 14:07:26 -07:00
mid-kid 8f162f70ba Disassemble a script-related table 2021-11-04 02:10:38 +01:00
Seth Barberee 3a1db3dfac Moves and some friend_area_action_menu 2021-11-02 16:31:16 -07:00
mid-kid 412a2d1dbe Extract shop dialogue 2021-11-03 00:08:22 +01:00
Cheng Hann Gan dd128d78c6 Decomped more dungeon AI (#67)
* Decomped IsMovingClient()

* Fixed typos in boss dialogue

* Fixed spelling of Pelipper

* Decomped CannotUseItems

* Decomped ShouldAvoidEnemies()

* Decomped HasAbility()

* Decomped HasTactic()

* Decomped CannotMove

* Decomped CannotAct() and IsCharging()
2021-10-28 09:01:07 -07:00
Seth Barberee 3e5dd1d047 Death by 74 files (#65)
* death by 74 files

* 20% reached

* doc move stuff in pokemon

* fix undef reference

* doc more and plumb a few more constanst for num party members and num moves

* that struct is def PokemonMove.. clean up all code with it
2021-10-22 10:01:07 -07:00
FieryMewtwo 18726d97cf More text cleanup (#62)
* Update build.yml

temporarily so that I can edit without having to try to figure out why my Git client keeps crashing

* Fix references to the old save.inc text labels

* Labels 

welp here we go again

* Give Wonder Mail client 'thanks' text more descriptive function label names

* Change back the workflow
2021-10-11 09:04:44 -07:00
Seth Barberee 25794a39c3 Finish main menu decomp (#59)
* decomp rest of main_menu

* move some main menu data over

* decomp some more wonder mail

* decomp the dungeon dialogue scene switches

* more wonder mail

* consolidate struct_802F204

* another wonder mail func

* more wonder mail

* slight cleanup
2021-10-11 09:03:17 -07:00
Cheng Hann Gan 2d4c802d76 Extracted species/item/move strings (#63)
* Extracted species/item/move strings

* Used binary strings for bitwise flag variables
2021-10-10 07:59:35 -07:00
FieryMewtwo fb7a3a03e7 Update Luminous Cave text to use more descriptive labels (#61)
* Update luminous_cave.inc

* Fix pointers

* Fix pointers

again

* Fix pointers

finally done
2021-10-08 13:24:23 -07:00
Cheng Hann Gan 78632822c3 Added move data JSON (#60)
* Added move data JSON

* Fixed typo

* Fixed name of placeholder move
2021-10-05 17:09:53 -07:00
Cheng Hann Gan c15bd01b90 Fixed CRLF->LF (#58)
Co-authored-by: Cheng Hann Gan <chenghann_gan@ultimatesoftware.com>
2021-10-01 13:31:27 -07:00