Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate Foreign dex entries #324

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 0 additions & 12 deletions include/overlay021/ov21_021D5600.h

This file was deleted.

12 changes: 12 additions & 0 deletions include/overlay021/pokedex_text.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#ifndef POKEPLATINUM_POKEDEX_TEXT_H
#define POKEPLATINUM_POKEDEX_TEXT_H

#include "strbuf.h"

void PokedexText_Free(Strbuf *strbuf);
int PokedexText_ForeignLanguage(int languageIndex);
Strbuf *PokedexText_NameNumber(int species, int language, int heapID);
Strbuf *PokedexText_Category(int species, int language, int heapID);
Strbuf *PokedexText_DexEntry(int species, int language, int entryOffset, int heapID);

#endif // POKEPLATINUM_POKEDEX_TEXT_H
9 changes: 9 additions & 0 deletions include/pokedex_language.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#ifndef POKEPLATINUM_POKEDEX_LANGUAGE_H
#define POKEPLATINUM_POKEDEX_LANGUAGE_H

#define NUM_LANGUAGES 6

int PokedexLanguage_LanguageToIndex(int language);
int PokedexLanguage_IndexToLanguage(int languageIndex);

#endif // POKEPLATINUM_POKEDEX_LANGUAGE_H
7 changes: 0 additions & 7 deletions include/unk_020986CC.h

This file was deleted.

4 changes: 2 additions & 2 deletions platinum.us/main.lsf
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ Static main
Object main.nef.p/src_unk_02097B18.c.o
Object main.nef.p/src_unk_02098218.c.o
Object main.nef.p/src_unk_020985E4.c.o
Object main.nef.p/src_unk_020986CC.c.o
Object main.nef.p/src_pokedex_language.c.o
Object main.nef.p/src_pokedex_heightweight.c.o
Object main.nef.p/src_pokedex_data_index.c.o
Object main.nef.p/src_unk_020F6824.c.o
Expand Down Expand Up @@ -792,7 +792,7 @@ Overlay overlay21
Object main.nef.p/src_overlay021_ov21_021D4C0C.c.o
Object main.nef.p/src_overlay021_ov21_021D4EE4.c.o
Object main.nef.p/src_overlay021_pokedex_field_map.c.o
Object main.nef.p/src_overlay021_ov21_021D5600.c.o
Object main.nef.p/src_overlay021_pokedex_text.c.o
Object main.nef.p/src_overlay021_pokedex_enc_data.c.o
Object main.nef.p/src_overlay021_ov21_021D5AEC.c.o
Object main.nef.p/src_overlay021_ov21_021D76B0.c.o
Expand Down
31 changes: 29 additions & 2 deletions res/pokemon/000/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,34 @@
"pokemon_pos_f": 22,
"trainer_pos_m": 9,
"pokemon_pos_m": 22,
"entry_text": null,
"category": "????? Pokémon"
"english": {
"category": "????? Pokémon",
"entry_text": ""
},
"french": {
"name": "----------",
"category": "Pokémon ?????",
"entry_text": ""
},
"german": {
"name": "----------",
"category": "?????",
"entry_text": ""
},
"italian": {
"name": "----------",
"category": "Pokémon ?????",
"entry_text": ""
},
"spanish": {
"name": "----------",
"category": "Pokémon (?)",
"entry_text": ""
},
"japanese": {
"name": "-----",
"category": "?????ポケモン",
"entry_text": ""
}
}
}
31 changes: 29 additions & 2 deletions res/pokemon/abomasnow/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,34 @@
"pokemon_pos_f": 4,
"trainer_pos_m": 15,
"pokemon_pos_m": 4,
"entry_text": "They appear when the snow flowers\nbloom. When the petals fall, they\nretreat to places unknown again.",
"category": "Frost Tree Pokémon"
"english": {
"category": "Frost Tree Pokémon",
"entry_text": "They appear when the snow flowers\nbloom. When the petals fall, they\nretreat to places unknown again."
},
"french": {
"name": "BLIZZAROI",
"category": "Pokémon Arbregelé",
"entry_text": "C’est l’abominable homme des\nneiges. Il ensevelit les montagnes\nsous ses blizzards."
},
"german": {
"name": "REXBLISAR",
"category": "Frostbaum",
"entry_text": "Es löst in den Bergen, wo ewiger\nSchnee liegt, Blizzards aus. Es ist\nein scheußlicher Schneemann."
},
"italian": {
"name": "Abomasnow",
"category": "Pokémon Albergelo",
"entry_text": "Crea bufere di neve sui monti\nricoperti da nevi perenni.\nÈ l’abominevole essere delle nevi."
},
"spanish": {
"name": "Abomasnow",
"category": "Pokémon Árbol Nieve",
"entry_text": "Es el abominable hombre de las\nnieves. Produce ventiscas en las\nmontañas cubiertas de nieve."
},
"japanese": {
"name": "ユキノオ-",
"category": "じゅひょうポケモン",
"entry_text": "まんねんゆきの つもる やまで\nくらし ブリザ-ドを まきおこす。\nゆきおとこの しょうたいだ。"
}
h2o-DS marked this conversation as resolved.
Show resolved Hide resolved
}
}
31 changes: 29 additions & 2 deletions res/pokemon/abra/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,34 @@
"pokemon_pos_f": 25,
"trainer_pos_m": 9,
"pokemon_pos_m": 25,
"entry_text": "Using its psychic power is such a\nstrain on its brain that it needs\nto sleep for 18 hours a day.",
"category": "Psi Pokémon"
"english": {
"category": "Psi Pokémon",
"entry_text": "Using its psychic power is such a\nstrain on its brain that it needs\nto sleep for 18 hours a day."
},
"french": {
"name": "ABRA",
"category": "Pokémon Psy",
"entry_text": "Il dort 18 heures par jour. Même\néveillé, il ne prend pas la peine\nde se lever pour se téléporter."
},
"german": {
"name": "ABRA",
"category": "Psi",
"entry_text": "18 Stunden am Tag schläft es. Und\nwenn es wach ist, teleportiert es\nsich, während es sitzen bleibt."
},
"italian": {
"name": "Abra",
"category": "Pokémon Psico",
"entry_text": "Dorme per 18 ore al giorno.\nAnche da sveglio, si teletrasporta\nrimanendo seduto."
},
"spanish": {
"name": "Abra",
"category": "Pokémon Psi",
"entry_text": "Duerme 18 horas al día. Cuando\nestá despierto no se levanta ni\npara teletransportarse."
},
"japanese": {
"name": "ケ-シィ",
"category": "ねんりきポケモン",
"entry_text": "まいにち 18じかん ねむる。\nめざめている ときも すわったまま\nテレポ-トで いどうする。"
}
}
}
31 changes: 29 additions & 2 deletions res/pokemon/absol/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,34 @@
"pokemon_pos_f": 14,
"trainer_pos_m": 9,
"pokemon_pos_m": 14,
"entry_text": "Rumored to sense disasters with its\nhorn, it became a target. It fled\ndeep into the mountains.",
"category": "Disaster Pokémon"
"english": {
"category": "Disaster Pokémon",
"entry_text": "Rumored to sense disasters with its\nhorn, it became a target. It fled\ndeep into the mountains."
},
"french": {
"name": "ABSOL",
"category": "Pokémon Désastre",
"entry_text": "Il pressent les catastrophes et\nn’apparaît aux gens que pour les\nprévenir d’un danger imminent."
},
"german": {
"name": "ABSOL",
"category": "Desaster",
"entry_text": "Es spürt drohende Katastrophen\nund erscheint nur dann, wenn es\nandere vor der Gefahr warnen will."
},
"italian": {
"name": "Absol",
"category": "Pokémon Catastrofe",
"entry_text": "Percepisce l’arrivo di disastri na-\nturali e appare alla gente solo per\navvisarla del pericolo imminente."
},
"spanish": {
"name": "Absol",
"category": "Pokémon Catástrofe",
"entry_text": "Presiente desastres inminentes\ny se aparece a la gente para\nadvertir del peligro."
},
"japanese": {
"name": "アブソル",
"category": "わざわいポケモン",
"entry_text": "さいがいの よかんを かんじとる。\nきけんを しらせる ときだけ\nひとまえに あらわれるという。"
}
}
}
31 changes: 29 additions & 2 deletions res/pokemon/aerodactyl/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,34 @@
"pokemon_pos_f": 4,
"trainer_pos_m": 9,
"pokemon_pos_m": 4,
"entry_text": "A Pokémon that roamed the skies\nin the dinosaur era. Its teeth are\nlike saw blades.",
"category": "Fossil Pokémon"
"english": {
"category": "Fossil Pokémon",
"entry_text": "A Pokémon that roamed the skies\nin the dinosaur era. Its teeth are\nlike saw blades."
},
"french": {
"name": "PTERA",
"category": "Pokémon Fossile",
"entry_text": "Un Pokémon qui arpentait le ciel\nau temps des dinosaures. Ses \ncrocs sont pareils à des scies."
},
"german": {
"name": "AERODACTYL",
"category": "Fossil",
"entry_text": "Dieses PKMN flog zu Zeiten der\nDinosaurier am Himmel. Seine\nZähne sind wie Sägeblätter."
},
"italian": {
"name": "Aerodactyl",
"category": "Pokémon Fossile",
"entry_text": "Un Pokémon che vagava nei cieli\nnell’era dei dinosauri. Le sue zanne\nsono affilate come lame."
},
"spanish": {
"name": "Aerodactyl",
"category": "Pokémon Fósil",
"entry_text": "Este Pokémon surcó los cielos\nen la época de los dinosaurios.\nSus colmillos son muy afilados."
},
"japanese": {
"name": "プテラ",
"category": "かせきポケモン",
"entry_text": "きょうりゅうじだいの おおぞらを\nとびまわっていた ポケモン。\nのこぎりのような キバを もつ。"
}
}
}
31 changes: 29 additions & 2 deletions res/pokemon/aggron/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,34 @@
"pokemon_pos_f": 6,
"trainer_pos_m": 15,
"pokemon_pos_m": 6,
"entry_text": "While seeking iron for food, it\ndigs tunnels by breaking through\nbedrock with its steel horns.",
"category": "Iron Armor Pokémon"
"english": {
"category": "Iron Armor Pokémon",
"entry_text": "While seeking iron for food, it\ndigs tunnels by breaking through\nbedrock with its steel horns."
},
"french": {
"name": "GALEKING",
"category": "Pokémon Armurfer",
"entry_text": "Il creuse des galeries à travers la\npierre avec ses cornes d’acier\npour trouver le fer qu’il apprécie. "
},
"german": {
"name": "STOLLOSS",
"category": "Eisenpanzer",
"entry_text": "Auf der Suche nach Eisen, seiner\nNahrung, gräbt es mit seinen Stahl-\nhörnern sogar Tunnel durch Felsen."
},
"italian": {
"name": "Aggron",
"category": "Pokémon Corazza",
"entry_text": "Cerca ferro da mangiare scavando\ntunnel nella roccia con le sue\ncorna d’acciaio."
},
"spanish": {
"name": "Aggron",
"category": "Pokémon Cor. Férrea",
"entry_text": "Mientras busca hierro para comer,\nexcava túneles en la roca con sus\npotentes cuernos de acero."
},
"japanese": {
"name": "ボスゴドラ",
"category": "てつヨロイポケモン",
"entry_text": "はがねの ツノで かたい がんばんを\nつきくずしながら しょくりょうの\nてつを さがして トンネルを ほる。"
}
}
}
31 changes: 29 additions & 2 deletions res/pokemon/aipom/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,34 @@
"pokemon_pos_f": 15,
"trainer_pos_m": 9,
"pokemon_pos_m": 15,
"entry_text": "It lives high among the treetops.\nIt can use its tail as freely and\ncleverly as its hands.",
"category": "Long Tail Pokémon"
"english": {
"category": "Long Tail Pokémon",
"entry_text": "It lives high among the treetops.\nIt can use its tail as freely and\ncleverly as its hands."
},
"french": {
"name": "CAPUMAIN",
"category": "Pokémon Longqueue",
"entry_text": "Il utilise sa queue pour cueillir les\nfruits inaccessibles. Elle est plus\nagile que ses mains."
},
"german": {
"name": "GRIFFEL",
"category": "Langschweif",
"entry_text": "Mit dem Schweif pflückt es hochhän-\ngende Früchte. Mit ihm ist es\ngeschickter als mit den Händen."
},
"italian": {
"name": "Aipom",
"category": "Pokémon Lungacoda",
"entry_text": "Usa la coda per raccogliere i\nfrutti che sono fuori portata. La\nsua coda è più agile delle mani."
},
"spanish": {
"name": "Aipom",
"category": "Pokémon Cola Larga",
"entry_text": "Usa su cola para recoger la fruta\nque no está a su alcance. Su cola\nes más hábil que sus manos."
},
"japanese": {
"name": "エイパム",
"category": "おながポケモン",
"entry_text": "てを のばしても とどかない えだに\nはえる くだものを しっぽで とる。\nほんものの うでよりも きよう。"
}
}
}
31 changes: 29 additions & 2 deletions res/pokemon/alakazam/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,34 @@
"pokemon_pos_f": 7,
"trainer_pos_m": 9,
"pokemon_pos_m": 7,
"entry_text": "The spoons clutched in its hands\nare said to have been created by\nits psychic powers.",
"category": "Psi Pokémon"
"english": {
"category": "Psi Pokémon",
"entry_text": "The spoons clutched in its hands\nare said to have been created by\nits psychic powers."
},
"french": {
"name": "ALAKAZAM",
"category": "Pokémon Psy",
"entry_text": "Grâce à sa mémoire exceptionnelle,\nil n’a rien oublié depuis sa \nnaissance. Il a un Q.I. de 5 000."
},
"german": {
"name": "SIMSALA",
"category": "Psi",
"entry_text": "Es besitzt ein fantastisches Ge-\ndächtnis und erinnert sich an alles\nseit seiner Geburt. IQ: Über 5 000."
},
"italian": {
"name": "Alakazam",
"category": "Pokémon Psico",
"entry_text": "La sua incredibile memoria gli\nfa ricordare ogni evento fin dalla\nnascita. Il suo QI supera 5000."
},
"spanish": {
"name": "Alakazam",
"category": "Pokémon Psi",
"entry_text": "Su gran memoria le permite\nrecordar todo desde su nacimiento.\nSu CI es superior a 5000."
},
"japanese": {
"name": "フ-ディン",
"category": "ねんりきポケモン",
"entry_text": "うまれてから たいけんした すべてを\nおぼえているほどの きおくりょく。\nちのうしすうは 5000を こえる。"
}
}
}
Loading
Loading