Commit Graph

53 Commits

Author SHA1 Message Date
h2o-DS
57fbaeca7e
Unopack pokefoot.narc and Document pokedex_footprint (#513)
* generate pokefoot.narc

Unpacked pokefoot.narc
Each species folder now contains a `footprint.png`
Documented `pokedex_foot`

* Check parent folders

Added a check to make sure the species folders exist for the NCGR files.

* Function Names

Gave pokedex_foot functions more accurate names

* format header

* pal crlf

Force palettes to crlf

* naix

Added naix and order file generation for pokefoot.narc
make_pokefoot uses species constants instead of subdirs
renamed pokedex_foot and its functions

* fix merge
2025-05-21 23:50:52 -07:00
Rachel
7f6125d4fb
Separate out f-string expressions using backslashed-characters (#496)
Some checks are pending
build / build (push) Waiting to run
2025-04-30 08:44:02 -07:00
narf0708@gmail.com
4aa9f3cef8 Add exception handling to json data parsing 2025-04-27 18:16:54 -04:00
RavePossum
7c701a376d Document mon sprite magic numbers, generate otherpoke naix 2025-03-09 19:29:06 -04:00
Rachel
8c316409f3 Fix scripts with shebangs that were not marked as executable 2025-03-08 21:43:52 -08:00
Rachel
0ba0d64eee Use a flag to forbid using ScriptEntry after ScriptEntryEnd 2025-02-21 11:06:49 -08:00
h2o-DS
fb1f061a1c Language Codes
Changed languages to ISO-639 codes
Gave forms pokedex data fields
moved name to pokedex data
pokedex_text_banks -> species_text_banks
2025-02-02 21:32:17 -05:00
h2o-DS
e0f9fbee28 Simplify f Strings 2025-02-01 17:07:03 -05:00
h2o-DS
ac56f124e1 Foreign_Dex
Added foreign languages to res/pokemon/<species>/data/json pokedex_data
Removed prebuilt pokedex gmm files
Renamed message banks 698-723
2025-02-01 16:49:28 -05:00
Rachel
5957413979 Move footprint header generation into datagen-species 2025-01-29 23:19:17 -08:00
Rachel
7c99b08629 Refactor dependency chain on pokedex data NARCs and text banks
- All affected targets no longer take a list of source files as input
and instead derive source-files from the SPECIES environment variable.
- Text banks no longer depend on auto-generated constants, which means
that changing a constant does not implicitly soil the text bank archive.
2025-01-29 23:06:05 -08:00
Rachel
2e4e858081 Migrate remaining generated constants to metang 2025-01-29 22:43:45 -08:00
Rachel
ab09fd604e Use a static ordering for text archives + refactor terminology + unify includes 2025-01-27 20:53:13 -08:00
Rachel
80215e6e71 Output a depfile while building field scripts 2025-01-27 20:46:35 -08:00
Rachel
2c410b8046 Replace python scripts for packing species archives with C++
This new code is responsible for packing the following archives:

- `pl_personal` -> basic information for each species: stats, types, etc.
- `evo` -> evolution lines for each species
- `wotbl` -> by-level learnsets for each species
- `ppark` -> catching show data for each species
- `height` -> y-offsets for front and back sprites for each species
- `pl_poke_data` -> sprite-rendering data for each species: animation
  ID, frame data, shadow size and offsets, etc.

Additionally, the following headers are generated:

- `res/pokemon/tutorable_moves.h` -> A listing of moves taught by each
  tutor and how much each move costs to be tutored
- `res/pokemon/species_learnsets_by_tutor.h` -> An array of bitmasks for
  each species designating which moves can be tutored to that species
2025-01-21 22:46:39 -08:00
Rachel
7361ba16b2 Update species data structures 2025-01-21 22:46:39 -08:00
Rachel
92cd212dea Integrate metang as a subproject + migrate species data constants 2025-01-21 22:46:38 -08:00
Adrienn Tindall
5a7b4091dd More pokedex documentation 2025-01-14 07:37:32 -05:00
Rachel
c8cf600719 Replace knarc with libnarc 2024-12-31 20:15:30 -08:00
h2o-DS
8adde9b5e5 Refactored encdata_ex 2024-12-08 15:50:57 -05:00
h2o-DS
f671b0ee0e Removed Globs
Figured out how to pass src files from meson to python.
Removed all file names from scripts so that can all be handled in meson
2024-11-30 17:03:33 -05:00
h2o-DS
38bca5acb9 Removed File Names From Script
Removed encounter_ex file names from make_pokedex_enc_platinum.py so that files are only named in meson.build
2024-11-18 00:31:35 -05:00
h2o-DS
6bcd55ef64 Merged Directories and Renamed Encounter Files
Removed encounters_ex directory, moving/merging files to encounters
Renamed encounter files to match the location name
created an order file for pl_enc_data.narc
Moved move_tutors.json from res/field to res/pokemon
2024-11-17 19:01:07 -05:00
h2o-DS
6fc7719a36 Generate encdata_ex.narc and move prebuilt
Created tool make_encdata_ex.py to generate encdata_ex
Created res/field/encounters_ex to house encdata_ex info
Removed temporary fields from res/field/encounters/*.json
Moved locations of pokedex data narcs
Added json inputs for pokedex data narcs
2024-11-10 00:58:22 -05:00
h2o-DS
b7b9298e21 Merge remote-tracking branch 'upstream/main' into zukan_data.narc 2024-10-20 00:07:37 -04:00
h2o-DS
bffc52cf48 Improved make tool
Improved efficiency of make_enc_platinum.py
Improved access of files in other folders
Renamed UnkStruct_ov21_021D5890 to fieldCoordinates
Renamed UnkStruct_ov21_021D5868 to dungeonCoordinates
Added enums for caughtStatus and encounter gategory
Removed redundant struct UnkStruct_ov21_021D0D80_1
2024-10-19 23:15:03 -04:00
h2o-DS
e4c73dd999 Generate zukan_enc_platinum.narc
Named a bunch of variables
Created make_pokedex_enc_platinum tool
Added pokedex categories to encounter json files
Changed wildEncountersArchiveID to decimal
2024-10-13 12:19:46 -04:00
Rachel
05e79c479d Flatten pokedex_message_banks content into res/text/meson.build 2024-10-01 21:08:53 -07:00
h2o-DS
e77596d92d Applied Polish
Implemented camelCase
Use unicode characters in data.json
Removed double escape from data.json
Gave names to generated message files
2024-09-23 17:25:32 -04:00
h2o-DS
e1aeb030c7 Generate Pokedex Messages 2024-09-06 15:56:22 -04:00
h2o-DS
6acead7f46 Identify Pokedex Source Code
Renamed unk_02098988 to pokedex_data_index
Renamed unk_02098700 to pokedex_heightweight
Made variable names within more identifiable
Changed make_pokedex_data.py to accommodate additional types and body shapes
2024-09-02 20:06:04 -04:00
h2o-DS
ab38b6a7d2 Translation and Giratina forms
Changed zukan to pokedex where possible.
Organized pokedex data for each pokemon
added functionality for zukan_data_gira
2024-09-01 16:00:47 -04:00
h2o-DS
a9c85d657b Decompile zukan_data NARC 2024-08-31 16:12:08 -04:00
Rachel
c86dc1ef14 Use native arm-none-eabi-gcc to assemble field and battle scripts 2024-07-16 12:04:35 -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
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
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
71d2e0fa1b Migrate pokemon_personal_data.py to constgen headers 2024-02-06 22:29:26 -08:00
Rachel
24b821fda9
Convert Nitro palette for pl_poke_icon to JASC (#136) 2024-01-30 15:54:44 -08:00
Rachel
ec549c8f6f Wire up OK build for battle-script NARCs 2024-01-23 21:26:45 -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