← back

+/pokedex

cli pokedex that reads data from roms

git clone https://git.julia.blue/+/pokedex

Julia Ryanadd args for animation and rom path2e697db

main
2 folders7 files
languages

files

examples/
src/
.envrc10 B
.gitignore25 B
Cargo.lock11.8 KiB
Cargo.toml335 B
README.md8.0 KiB
flake.lock1.4 KiB
flake.nix310 B

Why does this exist

I was Feeling Restless at work. I haven't gotten to write a non-trivial amount of rust recently. I've also been doing a LOT of small tweaks to various software I use as I bring up my new laptop and I'm exhausted from that and want to stop worrying about those big programs and their various shortcomings by writing a teeny program that perfectly satisfies my use case.

eevee's blog post does this for the full-size sprites, but I want the smaller menu/box sprites to display in my terminal. once I realized this I decided to go do it myself for fun. eevee's toolkit for data extraction (or the hg/ss decompilation) can probably get those icon-sized sprites too, but I didn't bother checking.

This one had the coolest UI out of the dozen or so I looked at, so it's what I'll try to recreate. That means I need not only sprites, but names, nicknames, evolutions, types, height/weight, and pokedex prose.

🍍 file diamond.nds && md5sum diamond.nds
diamond.nds: Nintendo DS ROM image: "POKEMON D" (ADAE01, Rev.05) (decrypted)
02a1af2a677d101394b1d99164a8c249  diamond.nds

Side note: it's cool that file has support for these ROMs, I went and found the source because I was pleasantly surprised that it just worked.

Scope Creep

There's lots of pokemon games and they've got lots of art/data, but the maximum I'd be interested in covering are:

Games:

Info (priority list):

Trainer teams with full level/stat/moveset info and the trainersprite would be cool but wayyyy too much work

remember to double check for exact sprite re-use (I've heard some platinum sprites just swapped frame 1/2)

Functionality:

Ideas

References

eevee's blog posts:

tools and resources to read/dump nitro filesystem:

tools to dump narcs:

hacking tools/editors that probably already have all the info I want:

other terminal pokemon sprite renderers:

msg file string parsing:

possible online sources for fallback data that I don't derive like encounter tables:

existing sprite databases to check against:

notes