Skip to content

Commit

Permalink
Merge pull request #102 from lhearachel/trdata-decomp
Browse files Browse the repository at this point in the history
Decompile trdata+trpoke NARCs and recompile from JSON sources
  • Loading branch information
lhearachel authored Nov 4, 2023
2 parents e651833 + 6ef491c commit b31e95b
Show file tree
Hide file tree
Showing 939 changed files with 31,523 additions and 14 deletions.
7 changes: 5 additions & 2 deletions platinum.us/rom.rsf
Original file line number Diff line number Diff line change
Expand Up @@ -216,11 +216,14 @@ RomSpec
Root /poketool/personal
HostRoot res/pokemon
File wotbl.narc

Root /poketool/trainer
HostRoot res/trainers
File trdata.narc
File trpoke.narc

Root /
HostRoot res/prebuilt
File poketool/trainer/trdata.narc
File poketool/trainer/trpoke.narc
File poketool/trmsg/trtbl.narc
File poketool/trmsg/trtblofs.narc
File battle/graphic/b_bag_gra.narc
Expand Down
1 change: 1 addition & 0 deletions res/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ subdir('field')
subdir('items')
subdir('pokemon')
subdir('text')
subdir('trainers')
1 change: 0 additions & 1 deletion res/prebuilt/poketool/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ subdir('poke_edit')
subdir('pokeanm')
subdir('pokefoot')
subdir('pokegra')
subdir('trainer')
subdir('trgra')
subdir('trmsg')
subdir('waza')
Expand Down
8 changes: 0 additions & 8 deletions res/prebuilt/poketool/trainer/meson.build

This file was deleted.

Binary file removed res/prebuilt/poketool/trainer/trdata.narc
Binary file not shown.
Binary file removed res/prebuilt/poketool/trainer/trpoke.narc
Binary file not shown.
8 changes: 8 additions & 0 deletions res/trainers/0000.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"name": "-",
"class": "TRAINER_CLASS_PLAYER_MALE",
"items": [],
"ai_flags": [],
"double_battle": false,
"party": []
}
20 changes: 20 additions & 0 deletions res/trainers/0001.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Tristan",
"class": "TRAINER_CLASS_YOUNGSTER",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_STARLY",
"form": 0,
"level": 5,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
}
]
}
22 changes: 22 additions & 0 deletions res/trainers/0002.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "Logan",
"class": "TRAINER_CLASS_YOUNGSTER",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_BURMY",
"form": 0,
"level": 5,
"item": null,
"moves": [
"MOVE_TACKLE"
],
"power": 0,
"ball_seal": 0
}
]
}
21 changes: 21 additions & 0 deletions res/trainers/0003.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Natalie",
"class": "TRAINER_CLASS_LASS",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC",
"AI_FLAG_EXPERT"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_BIDOOF",
"form": 0,
"level": 5,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
}
]
}
29 changes: 29 additions & 0 deletions res/trainers/0004.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"name": "Michael",
"class": "TRAINER_CLASS_YOUNGSTER",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_KRICKETOT",
"form": 0,
"level": 7,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
},
{
"species": "SPECIES_ZUBAT",
"form": 0,
"level": 6,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
}
]
}
20 changes: 20 additions & 0 deletions res/trainers/0005.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Mickey",
"class": "TRAINER_CLASS_CAMPER",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_RATTATA",
"form": 0,
"level": 5,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
}
]
}
20 changes: 20 additions & 0 deletions res/trainers/0006.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Mickey",
"class": "TRAINER_CLASS_CAMPER",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_RATTATA",
"form": 0,
"level": 5,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
}
]
}
20 changes: 20 additions & 0 deletions res/trainers/0007.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Angelica",
"class": "TRAINER_CLASS_PICNICKER",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_RATTATA",
"form": 0,
"level": 5,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
}
]
}
20 changes: 20 additions & 0 deletions res/trainers/0008.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Angelica",
"class": "TRAINER_CLASS_PICNICKER",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_RATTATA",
"form": 0,
"level": 5,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
}
]
}
20 changes: 20 additions & 0 deletions res/trainers/0009.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Mickey",
"class": "TRAINER_CLASS_YOUNGSTER",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_RATTATA",
"form": 0,
"level": 5,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
}
]
}
20 changes: 20 additions & 0 deletions res/trainers/0010.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "Tyler",
"class": "TRAINER_CLASS_YOUNGSTER",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_MAGIKARP",
"form": 0,
"level": 8,
"item": null,
"moves": null,
"power": 10,
"ball_seal": 0
}
]
}
21 changes: 21 additions & 0 deletions res/trainers/0011.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Samantha",
"class": "TRAINER_CLASS_LASS",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC",
"AI_FLAG_EXPERT"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_BUDEW",
"form": 0,
"level": 7,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
}
]
}
21 changes: 21 additions & 0 deletions res/trainers/0012.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "Sarah",
"class": "TRAINER_CLASS_LASS",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC",
"AI_FLAG_EXPERT"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_SHINX",
"form": 0,
"level": 7,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
}
]
}
36 changes: 36 additions & 0 deletions res/trainers/0013.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"name": "Brandon",
"class": "TRAINER_CLASS_BUG_CATCHER",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC",
"AI_FLAG_EVAL_ATTACK"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_WURMPLE",
"form": 0,
"level": 10,
"item": null,
"moves": [
"MOVE_TACKLE",
"MOVE_STRING_SHOT",
"MOVE_POISON_STING"
],
"power": 0,
"ball_seal": 0
},
{
"species": "SPECIES_KRICKETOT",
"form": 0,
"level": 11,
"item": null,
"moves": [
"MOVE_BIDE"
],
"power": 0,
"ball_seal": 0
}
]
}
30 changes: 30 additions & 0 deletions res/trainers/0014.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "Taylor",
"class": "TRAINER_CLASS_AROMA_LADY",
"items": [],
"ai_flags": [
"AI_FLAG_BASIC",
"AI_FLAG_EXPERT"
],
"double_battle": false,
"party": [
{
"species": "SPECIES_BUDEW",
"form": 0,
"level": 9,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
},
{
"species": "SPECIES_CHERUBI",
"form": 0,
"level": 11,
"item": null,
"moves": null,
"power": 0,
"ball_seal": 0
}
]
}
Loading

0 comments on commit b31e95b

Please sign in to comment.