sovereignx/tools
Martin Griffin 8bd5ac2e7a
Competitive-formatted parties (#3545)
$ python3 migration_scripts/convert_parties.py src/data/trainers.h src/data/trainer_parties.h src/data/npc_trainers.party
Is available to convert Trainer Control-formatted trainers/parties into
Competitive-formatted ones.

Multiple '#include's can be placed in the trainer section of src/data.c
to support spreading the trainers across multiple .party files.

trainerproc does not interpret the values, leaving that job to the C
compiler, so we use '#line' to associate those errors with the lines in
the .party file(s). Because the columns don't make sense we use
-fno-show-column and -fno-diagostics-show-caret. We might want to move
gTrainers into its own file so that the rest of src/data.c isn't
affected by those flags.

Extensions (misfeatures, imo):
- .party files are passed through cpp, so '#define's are supported, and so
  are '// ...' and '/* ... */' comments.
- .party files also support writing, e.g. 'SPECIES_PIKACHU' instead of
  'Pikachu'. This allows people to write constants explicitly if they
  like.

Pragmas:
- '#pragma trainerproc ivs explicit' requires an explicit 'IVs:' line
  rather than defaulting to 31s.
- '#pragma trainerproc ivs <IVs>' changes the default IVs.
- '#pragma trainerproc level explicit' requires an explicit 'Level:'
  line rather than defaulting to 100.
- '#pragma trainerproc level <level>' changes the default level.

Co-authored-by: Eduardo Quezada <eduardo602002@gmail.com>
Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
2024-04-06 15:05:15 -03:00
..
aif2pcm Remove all leading whitespace 2023-10-23 13:24:38 -05:00
bin2c [Round 3] Apply all source related changes for the new INSTALL.md in one commit. 2020-12-16 21:24:44 -05:00
gbafix Merge branch 'master' of https://github.com/pret/pokeemerald 2021-05-23 10:51:26 -04:00
gbagfx gbagfx bit depth upconversion fix 2024-01-27 14:29:31 -08:00
jsonproc jsonproc: filter out every non-alphanumeric character 2024-01-27 19:29:29 -08:00
learnset_helpers Updated teacheable learnests to Indigo Disk data (#4155) 2024-02-08 17:27:26 +01:00
mapjson Merge branch 'master' of https://github.com/pret/pokeemerald into rhhpretmerge 2023-05-12 13:48:52 +02:00
mgba Test moves, items, and abilities in battle 2023-02-01 13:53:57 +00:00
mgba-rom-test-hydra Added passing "KNOWN_FAILING" to test summary (#4063) 2024-01-29 17:01:50 -03:00
mid2agb use floats for tempo calculation 2022-06-28 00:11:59 -04:00
patchelf Hydra OSX support 2023-05-03 15:36:17 +02:00
preproc Added automatic runtime decapitalization. 2024-01-07 20:21:14 -05:00
ramscrgen [Round 3] Apply all source related changes for the new INSTALL.md in one commit. 2020-12-16 21:24:44 -05:00
rsfont Fix finding libpng in gbagfx and rsfont 2022-03-16 14:41:12 +01:00
scaninc Remove all leading whitespace 2023-10-23 13:24:38 -05:00
trainerproc Competitive-formatted parties (#3545) 2024-04-06 15:05:15 -03:00