Commit Graph

253 Commits

Author SHA1 Message Date
Rachel
e526ae4c4f
Generate an NAIX for pl_poke_icon (#740)
Some checks are pending
build / build (push) Waiting to run
2025-09-07 13:03:23 -04:00
scbroede
fa6c4657d3
Embed the arrow cursor bitmap in menu.c from a PNG source (#741) 2025-09-07 12:56:55 -04:00
Gudf
831a867c78
nitrogfx: Fix UB during NANR encoding (#742) 2025-09-07 11:45:10 -04:00
Rachel
79277693f1 nitrogfx: Support outputting an embeddable header-file for converted 4bpps 2025-09-07 00:16:32 -07:00
scbroede
a217343993
nitrogfx: various cell fixes (#735)
Some checks are pending
build / build (push) Waiting to run
2025-09-05 18:54:52 -07:00
Rachel
a2ac59a73b
Use constant identifiers for CoordEvent variables in events files (#730) 2025-09-06 01:16:49 +08:00
Rachel
bf232756b6
Store nitrogfx in the source tree (#734)
Some checks are pending
build / build (push) Waiting to run
2025-09-04 21:24:55 -07:00
scbroede
3d88a2b728
move frontier trainer messages to individual files (#719) 2025-08-31 19:09:50 -07:00
scbroede
1474478c46
move frontier trainer names to individual files (#707)
Some checks failed
build / build (push) Has been cancelled
2025-08-26 21:40:13 -07:00
scbroede
feb3dd49c0
generate trainer names text bank from trainer data (#700) 2025-08-23 17:21:45 -07:00
scbroede
5bb32ff3ec
unpack trtbl.narc and trtblofs.narc (#656) 2025-08-23 11:47:37 -07:00
Rachel
3afc75266e Fix msgenc compilation error on macOS 2025-08-19 07:25:42 -07:00
Rachel
fd199edf9b Use JSON text banks in the build 2025-08-17 15:50:14 -07:00
Rachel
81d9c678d6 Refactor make_species_text_banks + support for JSON output 2025-08-17 15:48:40 -07:00
Rachel
cedef43489 Implement JSON text banks in msgenc and fix program errors 2025-08-17 15:48:40 -07:00
h2o-DS
825e31c361
Refactor footprints to use cells and generators (#691) 2025-08-16 21:33:37 -07:00
h2o-DS
e6fa1b9819
Move Footprint Types to Species Data Files (#664) 2025-08-04 14:22:00 -07:00
h2o-DS
2daed9b09e
Move Egg Moves and Icon Palettes to Species Data (#635) 2025-07-28 10:17:07 -07:00
James Petersen
d0691ecf57
Add Link Step to Script Build Process (#628) 2025-07-15 10:35:38 -07:00
h2o-DS
e29eb0b295
Generate Dex Sizes and Polish Species Related Scripts (#617) 2025-07-15 10:18:32 -07:00
Bilel MEDIMEGH
038b78ca41
Added debug logging functionality (#548) 2025-06-23 12:41:08 -07:00
tillgeissler
69497b4d00
Unpack Battle Tower trainers and Pokemon sets (#514)
Some checks failed
build / build (push) Has been cancelled
* Unpack b_pl_btdpm.narc

* fix nature name NATURE_QUIRKY

* Unpack pl_btdtr.narc

* Refactor frontier pokemon structure

* Remove prebuilt pl_btdtr.narc

* Replace frontier trainers setIds by available set names

* Add datagen_frontier.cpp to pack pl_btdpm.narc and pl_btdtr.narc

* Cleanup json2bin changes

* fix formatting
2025-06-15 10:37:47 -07:00
Fexty
fa28708ae1
Fix typo in gen_compile_commands.py (#535) 2025-06-03 12:42:29 -07:00
Rachel
6f0b6bcf30
Update compilation database generator for metroskrew (#528) 2025-05-26 00:12:17 -07:00
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
1a68c758eb
Integrate metroskrew as the default compiler (#482)
Some checks are pending
build / build (push) Waiting to run
* Remove extraneous `include/` directory level from brightness_controller

* Wrap WSL_ACCESSING_WINDOWS detection in realpath

* Integrate metroskrew as the default compiler

* Remove tools/cw contents
2025-05-09 22:00:48 -07:00
h2o-DS
0cba5ddceb
Generate pms.narc (#502)
Some checks failed
build / build (push) Has been cancelled
* Generate pms

Added offspring field to species data files
Added pms.narc to datagen_species

* Document Comments

Added pms.narc to header comments

* Remove Hardcode

* Optimization
2025-05-07 20:46:30 -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
Rachel
1240a632ce Directly exit when failing to read datagen inputs 2025-04-29 11:46:20 -07:00
Rachel
307b39125e Enrich datagen's JSON errors 2025-04-28 02:10:36 -07:00
narf0708@gmail.com
4aa9f3cef8 Add exception handling to json data parsing 2025-04-27 18:16:54 -04:00
Eduardo Quezada
b157da484e
Use flag defines in map object event JSON files (#475)
* Generate vars and flags

* Convert Event flags map data

* Convert numbers to flags

* Fix type
2025-04-21 08:00:31 -07:00
Rachel
7f67d6f9c0
Replace makerom and makebanner with nitrorom (#478) 2025-04-21 07:00:33 -07:00
Rachel
7fb18f939f
Merge pull request #437 from ravepossum/map_bins
Dump map data binaries, texture sets, and matrices
2025-03-19 16:08:06 +00:00
RavePossum
5bb9556a4c Dump map matrices 2025-03-17 17:39:12 -04:00
Rachel
4fc59bfe4c
Merge pull request #329 from lhearachel/make-venv
Some checks are pending
build / build (push) Waiting to run
Pull Meson as a subproject
2025-03-12 08:26:37 -07:00
Rachel
44915351ee
Merge pull request #424 from ravepossum/mon_sprites
Document PokemonSprite and related structs
2025-03-12 07:59:02 -07:00
Eduardo Quezada
1d33088d8c Merge branch 'main' into document12 2025-03-09 22:11:08 -03:00
RavePossum
7c701a376d Document mon sprite magic numbers, generate otherpoke naix 2025-03-09 19:29:06 -04:00
Rachel
ce1493c36b Clone meson instead of asking users to download it
This squash also removes the calcrom webhook, which serves no purpose
at this stage of the project.
2025-03-09 16:21:19 -07:00
Rachel
8c316409f3 Fix scripts with shebangs that were not marked as executable 2025-03-08 21:43:52 -08:00
Rachel
90229682d0 Overhaul CONTRIBUTING.md + integrate editorconfig and pre-commit 2025-03-08 21:43:47 -08:00
Eduardo Quezada
7e36d72ab5 Version changes 2025-03-06 22:18:26 -03:00
h2o-DS
8f0da81c9d Merge remote-tracking branch 'upstream/main' into Pokedex_Menu_Text 2025-02-25 06:24:57 -05:00
cbt6
4f1e58ee21 Use map header constants in field events 2025-02-25 11:19:53 +08:00
cbt6
2b50c2ee48 Use bg event dir constants in field events 2025-02-25 11:17:07 +08:00
cbt6
aabc9efc77 Use trainer type constants in field events 2025-02-25 11:15:35 +08:00
cbt6
a8aa814e85 Use object event constants in field events 2025-02-25 11:13:29 +08:00
cbt6
bdc430f8b1 Use movement type constants in field events 2025-02-25 11:12:06 +08:00
Rachel
0ba0d64eee Use a flag to forbid using ScriptEntry after ScriptEntryEnd 2025-02-21 11:06:49 -08:00
h2o-DS
9d7b5d107b Resolve Merge Conflicts 2025-02-15 17:17:19 -05:00
mid-kid
f6a62ca3a2 Update INSTALL.md to reflect the removal of LM_LICENSE_FILE 2025-02-14 23:28:17 +01:00
mid-kid
95ae7e70dc Replace lmgr8c to beat license verification 2025-02-14 20:52:02 +01:00
cbt6
452e7af67c Unpack fld_trade.narc 2025-02-13 12:18:00 +08:00
Rachel
f6d8ad29a5
Merge pull request #356 from h2o-DS/Pokedex_Menu_Text
Some checks are pending
build / build (push) Waiting to run
Generate Foreign Dex Entries
2025-02-03 00:26:16 -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
7e5f0e62b8 Port trainer data archive packing to C++ 2025-01-31 19:42:24 -08: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
8d627416f9 Refactor PCH + script dependencies and use a 2-stage pipeline 2025-01-27 20:46:36 -08:00
Rachel
26db7b2f7e Migrate constants used by battle and AI scripting to metang 2025-01-27 20:46:35 -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
c0f35c0910 Migrate evolution methods to metang 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
Rachel
465d8cae75 Document and clean-up Pokemon_GetEvolutionTargetSpecies 2025-01-21 22:46:38 -08:00
Adrienn Tindall
089afc8e94
Merge branch 'main' into main 2025-01-17 23:24:34 -05:00
Adrienn Tindall
5a7b4091dd More pokedex documentation 2025-01-14 07:37:32 -05:00
iriv24
c3328afd54 Add script to repack ppark.narc, delete res/prebuilt/arc/ppark.narc 2025-01-12 00:24:26 -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
89411afb93 Merge remote-tracking branch 'upstream/main' 2024-11-30 17:03:45 -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
Rachel
f003c44d02 Refactor generation of trainer data files 2024-11-18 17:49:39 -08: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
8ff4bfa4c2 Merge remote-tracking branch 'upstream/main' 2024-11-17 19:01:46 -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
Rachel
62d7949073 Refactor generation of event data files and packing of zone_event.narc 2024-11-15 11:51:08 -08:00
Rachel
64ad9e3dd9 Extract direct to_bytes conversions from encounter.py to shareable lib 2024-11-15 11:50:59 -08:00
h2o-DS
fd0c228e54 Merge remote-tracking branch 'upstream/main' 2024-11-12 22:22:15 -05:00
Rachel
364945a85f Refactor generation of encounter data files and packing of pl_enc_data.narc 2024-11-11 11:38:37 -08: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
8deecd8dd8 Merge remote-tracking branch 'upstream/main' into zukan_data.narc 2024-10-26 00:11:32 -04:00
Joshua Smith
207d85fdff some code cleanup and commenting to make decisions more clear 2024-10-21 14:41:42 -05:00
Joshua Smith
133f80ac2b partial overlay breakpoint support via GDB 2024-10-20 13:43:19 -05:00
Joshua Smith
33ac4aa146 integrate debugedit tool into meson build process 2024-10-20 13:43:19 -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