Commit Graph

254 Commits

Author SHA1 Message Date
h2o-DS
a9c85d657b Decompile zukan_data NARC 2024-08-31 16:12:08 -04:00
Nomura
2137819bce Use makelcf from NitroSDK subproject 2024-08-10 22:03:52 +02:00
Rachel
e3e56040e9
Merge pull request #257 from Fexty12573/spl
Match SPL
2024-07-29 16:19:56 -07:00
Fexty12573
58d5d2a75a PR feedback: mwrap noipa argument 2024-07-28 22:02:20 +02:00
Fexty12573
b233b392b9 last bits of spl code + fix function layout 2024-07-28 16:32:19 +02:00
Rachel
c86dc1ef14 Use native arm-none-eabi-gcc to assemble field and battle scripts 2024-07-16 12:04:35 -07:00
cbt6
74feb9477a Name BgEvent struct 2024-06-09 10:03:28 +08:00
Rachel
fbf73e4541 Set up m2ctx for decomp.me context generation 2024-06-03 13:50:03 -07:00
Rachel
ce08786ddf Clean up build logic and file structure 2024-05-19 23:02:48 -07:00
Rachel
f5702cd16f Generate tutorable moves table; use source data in make_species_tables.py 2024-05-19 22:55:57 -07:00
Bepis
b402d1397b Generate footprint size data table 2024-05-19 22:34:00 -07:00
Bepis
0ed8f42727 Species table generation code 2024-05-19 22:28:32 -07:00
Rachel
f6cfe2d046 Atomize individual generated constants-headers 2024-05-18 22:53:57 -07:00
Rachel
69608af4a4 Re-dump pl_otherpoke with separated JASC palette files 2024-05-12 01:04:25 -07:00
Rachel
2095f847ae Redump pl_pokegra with separated JASC palette files 2024-05-12 00:03:45 -07:00
Rachel
fefa621f09 Name battle subscript files and specify NARC file order 2024-05-07 19:23:49 -07:00
Rachel
b0f81a7057 Convert hyphens to underscores in generated GMM header's include-guard 2024-04-18 09:30:15 -07:00
cbt6
394c802aa4 "movement_range_y" -> "movement_range_z" 2024-04-14 12:58:14 +08:00
Rachel
86021bdfc2 Flip y and z nomenclature in events structure 2024-04-06 09:48:58 -07:00
cbt6
51182992f4 Change assertion to explicitly raise error 2024-04-03 09:54:46 +08:00
cbt6
ee17cf87c7 Dump field events 2024-04-03 00:48:01 +08:00
mid-kid
c706718afa Fix out of tree builds
This allows the build directory to be located outside of the source tree.
Arguably, this has no tangible benefit, but it's more "proper" in the
meson spirit.

Depends on the following PRs:
- https://github.com/pret/pokeplatinum/pull/155
- https://github.com/Nomura-RH/libvct/pull/1
- https://github.com/Nomura-RH/NitroDWC/pull/2
- https://github.com/Nomura-RH/NitroSDK/pull/1
- https://github.com/Nomura-RH/NitroWiFi/pull/1
2024-03-08 22:49:11 +01:00
mid-kid
dd3b06a923 mwrap: Separate source and build directory
This allows the project to be built outside of the source directory of
the repository.
2024-03-08 22:35:16 +01:00
mid-kid
bde65af476 mwrap: Improve pathsep shenanigans 2024-03-08 22:35:16 +01:00
Rachel
87427b6b47 Add provide section to subproject tool wraps 2024-03-08 09:48:07 -08:00
Rachel
7e30219da5 Import knarc as a subproject 2024-03-08 09:39:14 -08:00
rek
e779cfde62
Merge branch 'pret:main' into SDAT 2024-02-14 20:30:57 -05:00
wildfire
57280da3e4 switch exp tables to csv format 2024-02-14 12:05:11 +00:00
wildfire
f3989111c9 Build pl_growtbl.narc from json 2024-02-13 11:32:22 +00:00
Bepis
7e2ab88011
Rename forms to movesets 2024-02-12 05:03:33 +11:00
Bepis
661aa74990
Determine required pokedex expansion constants 2024-02-12 05:03:33 +11:00
FroggestSpirit
fcb47d4b25 Initial SDAT Decompilation 2024-02-10 20:23:33 -05:00
wildfire
b813f7fcff Make narc build scripts take correct arguments 2024-02-10 15:07:15 +00:00
wildfire
331d1aeaa1 Build pl_pokezukan.narc and shinzukan.narc from json 2024-02-08 13:33:35 +00:00
Rachel
05288e102d Delete leftover json2bin consts definitions 2024-02-06 22:32:43 -08:00
Rachel
4dcd0bdd7b Migrate movedata.py to constgen headers 2024-02-06 22:32:43 -08:00
Rachel
fc3d1f102b Migrate trainer_data.py to constgen headers 2024-02-06 22:32:40 -08:00
Rachel
646db45f4a Migrate pokemon_wotbl_data.py to constgen headers 2024-02-06 22:29:26 -08:00
Rachel
71d2e0fa1b Migrate pokemon_personal_data.py to constgen headers 2024-02-06 22:29:26 -08:00
Rachel
3f630c978e Migrate pl_poke_data.py to constgen headers 2024-02-06 22:29:26 -08:00
Rachel
58fbb5c3aa Migrate evo.py to constgen headers 2024-02-06 22:29:26 -08:00
Rachel
2021ba8eaa Migrate encounters.py to constgen headers 2024-02-06 22:29:26 -08:00
Rachel
b4d2a18077 Use an env for json2bin to support constgen modules 2024-02-06 22:29:26 -08:00
Rachel
b6626c5c6b
Merge pull request #118 from pret/feature/clangd_compatible_compile_commands
GCC-friendly compile_commands.json maker
2024-01-31 08:34:14 -08:00
Rachel
24b821fda9
Convert Nitro palette for pl_poke_icon to JASC (#136) 2024-01-30 15:54:44 -08:00
Rachel
30f15cf146 Update json2bin for python3.8 compatibility 2024-01-27 13:49:49 -08:00
Rachel
ec549c8f6f Wire up OK build for battle-script NARCs 2024-01-23 21:26:45 -08:00
Rachel
2e15638e45 Integrate constgen as a subproject 2024-01-06 21:02:09 -08:00
Rachel
f7632b1d53 Wire up OK build for decompiled height.narc and pl_poke_data.narc 2023-11-28 13:29:07 -08:00
Rachel
30d80d6df3 Refactor json2bin to support single-file output mode 2023-11-28 13:16:32 -08:00
PikalaxALT
da192b1170
GCC-friendly compile_commands.json maker 2023-11-21 10:01:07 -05:00
Khandoker Munif Ahmed
08454c8857 Build evo.narc from data files in res/pokemon
Begin archiving evolution methods

Make suggested chagnes

Update rom.rsf to use evo.py and fix some bugs with evo.py

Update pokemon data files to append EVO and MOVE to evolution entries

use updated j2b register function for evo.py
2023-11-18 18:02:24 -08:00
Rachel
cfec633df8
Merge pull request #111 from Kurausukun/matching
Start Matching Remaining Functions
2023-11-09 13:13:45 -08:00
Rachel
771e19e1d0 Add json2bin support for different processing modes for optional fields 2023-11-03 22:25:03 -07:00
Rachel
6ef491cf70 Build matching trpoke.narc from source files 2023-11-02 20:57:19 -07:00
Rachel
48ee765515 Build matching trdata.narc from source files 2023-11-02 20:57:15 -07:00
Kurausukun
b4a3e4f7cb fix asmdiff directory 2023-10-26 15:19:09 -04:00
Rachel
5506b54588 Add support for build on Mac OSX <= 10.14 2023-10-23 00:27:55 -07:00
wildfire
7b787bcff3 Fix wotbl script, add byte align function to j2b 2023-09-30 20:08:56 +01:00
wildfire
d0b3d627e3 Misc cleanup 2023-09-30 18:53:46 +01:00
wildfire
6d1c2fabbe Build wotbl.narc using mon data 2023-09-30 18:53:45 +01:00
lhearachel
cb6ff6e646 Allow for optional fields and multiple registrations per field 2023-09-29 15:26:10 -07:00
Rachel
e0b48cbd62
Merge pull request #49 from lhearachel/pl_pokegra-decomp
Dump the contents of pl_pokegra and pl_otherpoke and rebuild from PNGs
2023-09-27 14:04:02 -07:00
lhearachel
fdef5b6f2a Use gen4 move names for consts + data files 2023-09-26 13:11:18 -07:00
lhearachel
94c136de5c Wire up OK build for pl_otherpoke 2023-09-25 19:38:05 -07:00
lhearachel
1d1193eab5 Wire up OK build for pl_pokegra 2023-09-25 19:29:15 -07:00
Nomura
35fa0c7aca Split encounter data and convert it to json 2023-09-24 19:36:09 +02:00
Rachel
d7a65cd001 Wire up OK build from icon PNGs 2023-09-23 23:23:16 -07:00
wildfire
29ee0f7abd Misc. cleanup 2023-09-20 11:49:21 +01:00
wildfire
c994192564 Add build tool for pl_personal.narc 2023-09-19 17:10:22 +01:00
wildfire
61c04f8781 Add list indexing to json2bin paths 2023-09-19 16:22:36 +01:00
wildfire
0256f82225 make json2bin use meson private_dir argument 2023-09-19 15:18:24 +01:00
Nomura
f10dd5a591 Simplify message data build rules with generator 2023-09-18 18:45:11 +02:00
Nomura
6636a8adec Make msgenc store encryption keys in gmm files 2023-09-18 17:45:18 +02:00
lhearachel
9f667bf04f Remove non-functional single-file mode 2023-09-10 19:44:54 -07:00
lhearachel
673846b824 Rebuild pl_waza_tbl.narc from move data files using json2bin 2023-09-10 19:39:22 -07:00
lhearachel
e9a826786d New tool: json2bin 2023-09-10 19:31:30 -07:00
Nomura
a4809c2133 Include sdk subprojects as wraps 2023-09-04 15:39:07 +02:00
Nomura
9cc259cd25 Hardcode -std=c++17 for knarc 2023-09-01 21:19:12 +02:00
Nomura
3c098ab803 Match dwc_common.c 2023-08-30 15:50:49 +02:00
Nomura
489495797d Match more of NitroSDK 2023-08-22 13:41:42 +02:00
Nomura
740b39287c Remove extra #endif in MSL_C/math.h 2023-08-20 19:26:15 +02:00
Nomura
9c796efb35 Move msl under cw and link prebuilt libraries 2023-08-15 22:32:19 +02:00
mid-kid
fa8ffe4d6b Implement manual fallback for nitrogfx
This makes it possible to pass default_options to the subproject
2023-08-02 18:04:58 +00:00
Nomura
aae349f4f5 Use nitrogfx's own meson.build instead of patch_directory 2023-08-02 18:04:58 +00:00
Nomura
df329a1868 Add nitrogfx as a subproject and libpng, zlib as wraps 2023-08-01 00:02:16 +02:00
Nomura
8fd523cb43 Move subprojects to 'subprojects' directory 2023-08-01 00:02:16 +02:00
mid-kid
e2cc60ba13 Fix CRC calculation in msgenc 2023-07-29 11:28:22 +02:00
Nomura
19546973d7 Decompile text messages 2023-07-28 20:44:03 +02:00
Nomura
6625a62c79 Unpack res/data/mmodel/mmodel.narc 2023-07-27 22:26:46 +02:00
Nomura
b37088cc54 Decompile wild encounters 2023-07-27 20:22:38 +02:00
mid-kid
1d71c945f1 mwrap: Forward the exit status of the compiler properly on linux 2023-07-26 21:27:13 +02:00
mid-kid
d5c8ac701f Rewrite metrowerks wrapper in C 2023-07-24 23:40:18 +02:00
mid-kid
69ad69e2ed Remove unnecessary build system fixes 2023-07-20 03:10:58 +02:00
mid-kid
9581ed2178 Initial implementation of metrowerks wrapper 2023-07-20 00:37:05 +02:00
Nomura
f108a13303 Add new tools and meson build files for existing tools 2023-07-18 18:49:22 +02:00
Nomura
ef8cd95c12 Move gen_fx_consts to NitroSDK folder 2023-07-18 18:45:56 +02:00
Nomura
f0d62a4ade Remove makefiles 2023-07-18 16:11:22 +02:00
PikalaxALT
488c510e64 Unignore tools/asmdiff/asmdiff.sh 2023-01-11 07:40:45 -05:00
luckytyphlosion
a46fcc3646 Add yml to gitattributes, fix ntr_merge_elf.sh permissions 2022-12-22 18:10:28 -05:00
luckytyphlosion
bc37ded222 Enable ntr_merge_elf.sh 2022-12-22 17:55:29 -05:00
PikalaxALT
a33633c089 Real-match ov86 by defining .itcm section properties; add asmdiff 2022-11-28 18:09:15 -05:00
luckytyphlosion
1ba896038c Builds all sbins, main.sbin not matching. 2022-11-23 16:28:35 -05:00
luckytyphlosion
dfbfbcc218 Partial untested work on buildsystem. 2022-11-23 12:42:52 -05:00