Skip to content

Commit

Permalink
Replace python scripts for packing species archives with C++
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lhearachel committed Jan 21, 2025
1 parent 4916bcb commit d72931c
Show file tree
Hide file tree
Showing 1,060 changed files with 3,425 additions and 4,620 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
/subprojects/knarc/
/subprojects/narc/
/subprojects/metang/
/subprojects/rapidjson-*/

# CLion folders
.idea/
Expand Down
2 changes: 1 addition & 1 deletion asm/macros/scrcmd.inc
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#include "generated/items.h"
#include "generated/moves.h"
#include "generated/species.h"
#include "generated/catching_show_points_category.h"
.include "macros/movement.inc"
.include "consts/badges.inc"
.include "consts/catching_show.inc"
.include "consts/game_records.inc"
.include "consts/journal.inc"
.include "consts/map.inc"
Expand Down
34 changes: 0 additions & 34 deletions consts/catching_show.json

This file was deleted.

6 changes: 3 additions & 3 deletions consts/meson.build
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# This must be moved here during the refactor to move all constants to metang.
constgen_py = find_program('constgen_py', native: true)

consts_manifest_basenames = [
'badges',
'battle',
'battle_subscripts',
'btlcmd',
'catching_show',
'game_records',
'gender',
'journal',
Expand All @@ -14,8 +16,6 @@ consts_manifest_basenames = [
'poketch',
'scrcmd',
'sdat',
'shadows',
'tm_learnset',
'trainer',
'trainer_ai',
]
Expand Down
13 changes: 0 additions & 13 deletions consts/shadows.json

This file was deleted.

111 changes: 0 additions & 111 deletions consts/tm_learnset.json

This file was deleted.

Loading

0 comments on commit d72931c

Please sign in to comment.