Commit Graph

30 Commits

Author SHA1 Message Date
アリス
700856387b Pulling changes from pret/pokeemerald#1645 to fix Apple Silicon builds 2023-03-16 21:44:23 +00:00
AnonymousRandomPerson
1446ae3d57 Labeled last unknown dungeon data field 2023-02-14 16:17:59 -05:00
AnonymousRandomPerson
62f51f6d28 Fixed some labels on dungeon data struct 2023-02-14 15:09:39 -05:00
AnonymousRandomPerson
97496603de Dumped dungeon parameters 2023-02-14 00:02:52 -05:00
AnonymousRandomPerson
7c8572c519 Dumped move range strings 2023-02-05 22:12:46 -05:00
AnonymousRandomPerson
0e67eae75c Auto-generate learnset_ptrs.s 2023-01-30 18:35:03 -05:00
AnonymousRandomPerson
ce86d2686a Added NONMATCHING for learnset access functions 2023-01-30 00:42:21 -05:00
AnonymousRandomPerson
0934aa95d2 Added learnset pointers 2023-01-29 22:27:35 -05:00
AnonymousRandomPerson
2c2d250bc2 Dumped learnset data 2023-01-29 21:58:44 -05:00
AnonymousRandomPerson
39ef57251f Labeled spawnAmountRange 2023-01-28 18:34:04 -05:00
AnonymousRandomPerson
be20f60ee0 Synced some symbol names with EoS hacking 2023-01-08 04:23:00 -05:00
Seth Barberee
56415343db build dungeon trap data in JSON and make it shiftable 2022-10-06 20:48:18 -07:00
Seth Barberee
e6faf1b8b9 rename unk12 to maxPowerBoost 2022-05-30 09:59:18 -07:00
AnonymousRandomPerson
6e56b9f034 Decomped CanUseStatusMove() 2022-02-24 23:38:21 -05:00
Seth Barberee
4fd4208364
Delete build artifacts on clean target (#89)
* delete build artifacts on clean target

* clean out the graphics files too

* fix up auto-gen message on pokemon_found and move END_OF_TABLE to actual end of table
2021-12-21 14:47:46 -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
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
Seth Barberee
3a1db3dfac Moves and some friend_area_action_menu 2021-11-02 16:31:16 -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
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
12aec1bb71
Created species/item data JSONs (#57)
* Created species data JSON

* Added item data JSON

* Removed address field from JSONs

-Moved constants/item.h import to item.h.

* Used default values for some JSON fields

-Use item ID macros for item evolutions.
2021-09-28 09:50:36 -07:00
Cheng Hann Gan
8237e29a16
Defined more in-dungeon structs and enums (#53)
* Defined DungeonEntity

* Rename EntityType enums

* Revert EntityType rename

* Defined more in-dungeon structs and enums

* Added more dungeon global structs/enums

* Prefixed dungeonGlobalData with g

* Fixed compile errors

* Removed some CRLFs

* Fixed compile after merge

* Revert Makefile

* Rename DungeonEntityData.entityType

Co-authored-by: Seth Barberee <seth.barberee@gmail.com>

* Renamed symbols per PR comments

Co-authored-by: Cheng Hann Gan <chenghann_gan@ultimatesoftware.com>
Co-authored-by: Seth Barberee <seth.barberee@gmail.com>
2021-09-09 16:22:48 -07:00
Dennis
645c45431b
Pokemon related decomp (#47)
* decompile last function in pokemon_1.s

* some pokemon related decomp

* more decomp

* decomp another function

* decompile function

* another one

* decompile GetPokemonLevelData

* decompile more

* more decomp

* more structure and decomp

* decomp another function (need to do some renaming)

* rename some stuff

* I cant do anything without committing these 2 files
2021-07-25 21:11:01 -07:00
Seth Barberee
a65d358927 minor code cleanup 2021-07-12 17:50:19 -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
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
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
9bd9b71d1e inital try at GithubCI 2021-01-28 10:01:56 -06:00
shinny
4f88655a79 update tools 2020-06-02 14:51:57 -04:00
PikalaxALT
250a331df9 Track tools srcs 2019-07-11 21:16:23 -04:00