Commit Graph

64 Commits

Author SHA1 Message Date
Seth Barberee 4e0df8371c Merge pull request #480 from evanc577/window-bg
Document windowing functions
2026-05-01 10:13:12 -07:00
Kurausukun e5cc85e893 C23 compatibility 2026-05-01 12:31:40 -04:00
Evan Chang 056d35bff0 Remove Makefile modern no-warning 2026-04-30 21:32:39 -04:00
Evan Chang 45c89481d5 Document window bg variables 2026-04-30 21:32:37 -04:00
darsh 446e18f0c8 Convert dungeon item instruction encodings to JSON 2025-09-26 11:06:31 -04:00
DizzyEggg 120c882461 make tidy removes built modern 2025-06-07 11:12:35 +02:00
DizzyEggg 2f2232f3da remove fno top level reorder 2025-06-07 11:00:20 +02:00
DizzyEggg 13c0e59640 modern without ewram/iwram syms 2025-06-06 18:53:38 +02:00
DizzyEggg 0df9d39097 fix miniprintf formatting 2025-05-26 14:11:42 +02:00
DizzyEggg 7bf162955f modern working 2025-05-26 13:36:54 +02:00
DizzyEggg 802adc4bdb convert ld script.txt to ld_script.ld 2025-05-16 16:21:48 +02:00
DizzyEggg bdae856769 iwram init done 2024-12-18 12:09:22 +01:00
DizzyEggg 0c53d4011f start iwram init 2024-12-18 11:28:07 +01:00
DizzyEggg 69e94917a9 merge ewram init 2024-12-17 16:13:45 +01:00
DizzyEggg 30b316ad9b sound work 2024-12-16 16:55:46 +01:00
DizzyEggg edd2454349 remove EWRAM_DATA_2 2024-12-15 21:12:36 +01:00
DizzyEggg d59d39a0d7 sym ewram init.txt 2024-12-15 12:56:22 +01:00
DizzyEggg 76931b997a sync m4a_1.s with pokeemerald and move to src 2024-12-14 19:25:43 +01:00
DizzyEggg f972f7b3be sub_806B404 2024-11-23 21:26:58 +01:00
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