Commit Graph

45 Commits

Author SHA1 Message Date
Seth Barberee
13a5895b81 fix: fix Makefile to not zero out the ROM header 2024-04-29 15:47:05 -07:00
Kermalis
88785ba4ee Split kangaskhan storage and kecleon bros 2023-09-07 00:13:17 -04:00
Kermalis
5919f5c74d kecleon_items to kecleon_bros (more descriptive) 2023-08-05 11:11:22 -04:00
Kermalis
8e2075af8f Merge kecleon_items and kecleon_items_1 2023-08-05 11:08:08 -04:00
Seth Barberee
68bc0c0b6d start wiring up ramscrgen for files 2023-05-08 13:51:08 -07:00
AnonymousRandomPerson
97496603de Dumped dungeon parameters 2023-02-14 00:02:52 -05:00
AnonymousRandomPerson
0e67eae75c Auto-generate learnset_ptrs.s 2023-01-30 18:35:03 -05:00
AnonymousRandomPerson
88a6b44677 Merge branch 'master' of https://github.com/pret/pmd-red 2023-01-30 18:01:24 -05:00
AnonymousRandomPerson
2c2d250bc2 Dumped learnset data 2023-01-29 21:58:44 -05:00
Seth Barberee
cfcdd467d2 add rule to create syms file 2023-01-29 11:15:59 -08:00
Seth Barberee
022eb8f024 convert sym files to use ramscrgen 2023-01-28 09:37:16 -08:00
AnonymousRandomPerson
b22feb80af Merge remote-tracking branch 'upstream/master' 2023-01-13 22:36:16 -05:00
Seth Barberee
48c250b676 Makefile: make it more like pokeemerald 2023-01-08 09:47:04 -08: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
343f50e441 finish almost all of kecleon 2022-07-10 16:10:28 -07: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
010d641899 Explicitly declare dependencies for generated files
These are harder to pick up automatically, and will only change when the
tools are edited, anyway...

Any other methods for solving this issue can always be reconsidered
later down the line...
2021-12-20 16:29:19 +01: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
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
Seth Barberee
386299d1f4
Makefile and Install.md Revamp (#41)
* Makefile: move over to gcc for preproc and ditch cpp

* INSTALL: rewrite INSTALL

* README: add CI badge

* Makefile: make tools build before anything else
2021-07-09 19:35:12 -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
02f3b08f8c switch from build_tools to make tools 2021-01-14 13:49:59 -06:00
Kermalis
d2ac123186
Fix Windows build (#1) 2020-11-21 18:01:50 -06:00
Seth Barberee
0271952426 Merge remote-tracking branch 'nullablevoid/master' into master
Port m4a from pokeemerald into pmd-red
2020-10-20 13:08:42 -05:00
Seth Barberee
a0aac0e9d2 static-link libagbsyscall similar to pokeemerald... Thx Pika 2020-10-20 13:02:58 -05:00
nullableVoidPtr
8834fdd3e2 Port m4a from pokeemerald 2019-08-11 14:37:57 +00:00
nullableVoidPtr
6211b0c5ec Add compare to Makefile 2019-08-04 10:07:21 +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
fbe7d0d3bb Merge remote-tracking branch 'PikalaxALT/libc'
Added dependency scanning, used standard flags to link libs
2018-11-20 21:11:50 +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
nullableVoidPtr
f4ef62bb41 Renamed primary heap variables and partial cleanup m4a.s 2018-11-20 15:04:00 +08:00
nullableVoidPtr
961ab7ccaf Fix makefile and decompile some functions.
Partial memory.c, save.c and bg_palette_buffer.c decompilation, along with some asm/ cleanup.
2018-11-18 18:29:52 +08:00
nullableVoidPtr
9e5147a9ad Makefile overhaul
Addition of a build directory, and more flexible to allow for possible blue build.
2018-11-18 18:29:52 +08:00
PikalaxALT
0429b2e5bb Fix Windows 2018-01-21 20:26:38 -05:00
scnorton
2695f8d39a Include <string.h> in global.h and add dependency scanning 2018-01-21 14:57:28 -05:00
scnorton
00df1bf797 Use standard flags to link libc, libgcc 2018-01-21 12:51:52 -05:00
PikalaxALT
a6c1ed4716 Use libc from agbcc instead of standalone newlib\nYou must have AGBCC commit 80d029caec189587f8b9294b6c8a5a489b8f5f88 in order to compile pmd_red.gba 2018-01-03 17:39:24 -07: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
sceptillion
d07afbc081 initial commit 2017-12-10 22:41:46 -08:00