<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>README.md - +/pokedex @ main</title>
<meta name="description" content="README.md in +/pokedex at main.">
<meta property="og:title" content="README.md - +/pokedex @ main">
<meta property="og:description" content="README.md in +/pokedex at main.">
<meta property="og:type" content="website">
<meta property="og:site_name" content="git.julia.blue">
<link rel="stylesheet" href="/css/style.css?v=62">
<script type="module" src="/js/main.js?v=62"></script>
</head>
<body>
<main data-ref="main" data-tip="2e697dba0a98806199f9411eeedddd68bb22022d">
<noscript>
  <div class="callout">
    <p>
      hey! this is a static git repo viewer. commit diffs, file history,
      older commits and other revisions won't load without javascript.
    </p>
    <p>
      you are still able to view source files on branch/tag tips,
      but the experience is degraded.
    </p>
  </div>
</noscript>
<header class="repo"><div>
<h1>+/pokedex</h1>
<p class="desc">cli pokedex that reads data from roms</p>
</div>
<pre class="clone">git clone https://git.julia.blue/+/pokedex</pre>
</header>
<p class="snapshot-commit"><span class="commit-author">Julia Ryan</span><span class="commit-message" data-commit="a89f8b0d606ab40d3b552a43c1ba6fde6b9775bd">read random rom from xdg dir</span><span class="snapshot-sha sha" data-commit="a89f8b0d606ab40d3b552a43c1ba6fde6b9775bd">a89f8b0</span><time datetime="2026-10-20T09:40:29+02:00" title="2026-10-20 09:40:29 +0200">2026-10-20</time></p>
<header class="topbar"><details class="switcher"><summary>main</summary><div class="menu"><strong>branches</strong><a class="current" href="/%2B/pokedex/ref/main/">main</a><a class="all" href="/%2B/pokedex/refs">all refs →</a></div></details><nav class="crumbs"><a href="/%2B/pokedex/">pokedex</a> / <span class="cur">README.md</span></nav>
<span class="view-stats"><span>8.0 KiB</span><span>159 lines</span></span><span class="actions"><a class="raw" href="/%2B/pokedex/raw/0d9ef4d137441b30f7353b629b9f4028c7e8d166/README.md">raw</a></span></header>
<div class="markdown-view"><input type="radio" name="markdown-view" id="markdown-rendered" checked><label for="markdown-rendered">rendered</label><input type="radio" name="markdown-view" id="markdown-code"><label for="markdown-code">code</label><section class="readme rendered"><h2>Why does this exist</h2>
<p>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.</p>
<p><a href="https://eev.ee/blog/2017/08/02/datamining-pokemon/">eevee's blog post</a> 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. <a href="https://github.com/eevee/porigon-z/blob/master/porigonz/nds/util/sprites.py">eevee's toolkit</a> for data extraction (or the <a href="https://github.com/pret/pokeheartgold/blob/master/include/constants/sprites.h">hg/ss decompilation</a>) can probably get those icon-sized sprites too, but I didn't bother checking.</p>
<p><a href="https://github.com/Tenchi2xh/pokedex-cli">This</a> 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.</p>
<pre class="language-bash"><a-f>🍍</a-f> file diamond.nds <a-o>&amp;&amp;</a-o> <a-f>md5sum</a-f> diamond.nds
<a-f>diamond.nds:</a-f> Nintendo DS ROM image: <a-s>&quot;POKEMON D&quot;</a-s> (<a-f>ADAE01,</a-f> Rev.05) (<a-f>decrypted</a-f>)
<a-f>02a1af2a677d101394b1d99164a8c249</a-f>  diamond.nds</pre>
<p>Side note: it's cool that <code>file</code> has support for these ROMs, I went and <a href="https://github.com/file/file/blame/7f9a0931f46282ab158c4a8a9474fba6611baba0/magic/Magdir/console#L475">found the source</a> because I was pleasantly surprised that it just worked.</p>
<h2>Scope Creep</h2>
<p>There's lots of pokemon games and they've got lots of art/data, but the <em>maximum</em> I'd be interested in covering are:</p>
<p>Games:</p>
<ul>
<li>Fire Red/Leaf Green</li>
<li>Ruby/Sapphire/Emerald</li>
<li>Heart Gold/Soul Silver</li>
<li>Diamond/Pearl/Platinum</li>
<li>maybe b/w/b2/w2?? after i play them?</li>
</ul>
<p>Info (priority list):</p>
<ul>
<li>box sprites</li>
<li>pokedex prose description</li>
<li>pokedex attributes (height/weight)</li>
<li>type/stats</li>
<li>evolutions</li>
<li>hg/ss overworld sprites (2 frames for all 4 directions)</li>
<li>abilities</li>
<li>front sprites</li>
<li>moves? learnset/teachset/egg/tutor/description/power/acc/probabilities</li>
<li>back sprites</li>
<li>pokeball/other item sprites</li>
</ul>
<p>Trainer teams with full level/stat/moveset info and the trainersprite would be cool but wayyyy too much work</p>
<p>remember to double check for exact sprite re-use (I've heard some platinum sprites just swapped frame 1/2)</p>
<p>Functionality:</p>
<ul>
<li>dex entries:
<ul>
<li>name/nick/num</li>
<li>height/weight</li>
<li>sprite, change the pool based on dimensions
<ul>
<li>random version or arg to lock a gen/game/type/shiny</li>
</ul>
</li>
<li>type/strengths/weaknesses (including 0/4x)</li>
<li>stats</li>
<li>evolution chart</li>
<li>2 frame box sprite animations seem doable, and I'll at least get static versions of both large frames but probably not the more dynamic animations from emerald and onward.</li>
<li>ability/learnset</li>
</ul>
</li>
<li>type chart</li>
<li>region</li>
<li>cli
<ul>
<li>hyphen option completion, otherwise name/number(id) and gender/form for second positional arg</li>
</ul>
</li>
</ul>
<h3>Ideas</h3>
<ul>
<li>levenshein distance or fuzzy search for names?</li>
<li><a href="https://pokemondb.net/mechanics/natures">natures grid</a></li>
<li><a href="https://pokemondb.net/type/old">type chart</a>
<ul>
<li>single and double type effectivenesses</li>
</ul>
</li>
<li>move coverage calculator?</li>
<li>search for mons that can learn certain move(s) alongside certain abilities with certain type(s), filter thresholds or sort by stats?
<ul>
<li><a href="https://github.com/purplecraft999/rsdex">this cli pokedex</a> has some cute filter options</li>
</ul>
</li>
<li>favorite picker</li>
</ul>
<h2>References</h2>
<ul>
<li>great historical background and technical breakdown of the <a href="https://www.copetti.org/writings/consoles/game-boy-advance/">gba</a> and <a href="https://www.copetti.org/writings/consoles/nintendo-ds">nds</a></li>
<li>comprehensive gba/ds technical resource including file formats: <a href="https://problemkaputt.de/gbatek.htm">GBATEK</a></li>
<li><a href="https://voliol.neocities.org/articles/genIIIpalettes">gen 3 color palettes</a> explanation</li>
<li>hgss had an unnamed filesystem but some resources like <a href="https://projectpokemon.org/home/docs/gen-4/hgss-file-system-r21/">this</a> have guides to which file is which</li>
<li>data format <a href="https://projectpokemon.org/rawdb">notes and dumps</a> for all gen 4 games</li>
<li>more detailed hg/ss data format <a href="https://hirotdk.neocities.org/FileSpecs#Pokemon">docs</a> for hg/ss</li>
<li>rom hacking guide with <a href="https://ds-pokemon-hacking.github.io/docs/generation-iv/guides/editing_moves/#location">great info</a> on movesets (if i wanted to do add move tutor support this is a good starting place)</li>
<li>another <a href="http://dsibrew.org/wiki/DSi_cartridge_header">ds rom header breakdown</a> with the extra dsi bits (maybe relevant if I ever want to support b/w/b2/w2)</li>
<li><a href="https://gist.github.com/eevee/15a92e26088d79a77fca">list</a> of pokemon with forms</li>
<li><a href="https://github.com/KalaayPT/uxie">uxie</a> is a project that implements most of the functionality I'd like to write. If I weren't writing this tool for fun I'd just use this as a library.</li>
<li><a href="https://loveemu.hatenablog.com/entry/20091002/nds_formats">backup</a> of a great resource on ds file formats which includes the formats used for sprites</li>
<li><a href="https://projectpokemon.org/home/docs/other/compression-r9">blz compression explanation</a> for the arm9 in hg/ss</li>
</ul>
<p>eevee's blog posts:</p>
<ul>
<li>https://eev.ee/blog/2016/08/05/storing-pok%C3%A9mon-without-sql</li>
<li>https://eev.ee/blog/2017/08/02/datamining-pokemon</li>
</ul>
<p>tools and resources to read/dump nitro filesystem:</p>
<ul>
<li>high quality rust <a href="https://lib.rs/crates/ds-rom">library + cli</a></li>
<li>another <a href="https://lib.rs/crates/nitro_fs">rust library</a> and a <a href="https://lib.rs/crates/nds">less complete one</a></li>
<li>https://github.com/pret/ds_disassembly_tools</li>
<li>https://scenegate.github.io/Ekona/</li>
<li>cute <a href="https://imrannazar.com/The-Smallest-NDS-File">blog post</a> on making the smallest nds file possible</li>
</ul>
<p>tools to dump narcs:</p>
<ul>
<li>https://github.com/nickworonekin/narchive</li>
<li>https://ndspy.readthedocs.io/en/latest/api/narc.html</li>
</ul>
<p>hacking tools/editors that probably already have all the info I want:</p>
<ul>
<li>https://github.com/magical/pokemon-nds-sprites for gen4 sprites</li>
<li>https://github.com/haven1433/HexManiacAdvance for gen3</li>
<li>https://github.com/turtleisaac/PokEditor for gen4</li>
</ul>
<p>other terminal pokemon sprite renderers:</p>
<ul>
<li>https://github.com/Tenchi2xh/pokedex-cli</li>
<li>https://github.com/yannjor/krabby and <a href="https://github.com/altair-39/kingler">this fork</a></li>
<li>https://github.com/talwat/pokeget-rs</li>
<li>https://github.com/31marcosalsa/pokeTerm</li>
<li>https://github.com/Findarato/pokemon-colorscripts</li>
<li>https://github.com/possatti/pokemonsay</li>
<li>https://github.com/HRKings/pokemonsay-newgenerations</li>
</ul>
<p>msg file string parsing:</p>
<ul>
<li>https://github.com/yakoswg/chatot</li>
<li>https://codeberg.org/AyashiBox/pkmn-strings</li>
</ul>
<p>possible online sources for fallback data that I don't derive like encounter tables:</p>
<ul>
<li>veekun (TODO: check if their database has this and maybe use it offline?)</li>
<li>serebii</li>
<li>bulbapedia</li>
<li>pokemondb</li>
<li>pokeapi using <a href="https://github.com/zitronenjoghurt/poke-data">either</a> of <a href="https://github.com/mlemesle/rustemon">these</a> libraries</li>
</ul>
<p>existing sprite databases to check against:</p>
<ul>
<li><a href="http://git.veekun.com/pokedex-media.git/tree/HEAD:/pokemon/icons">veekun's</a> (they also have a convenient <a href="https://veekun.com/dex/downloads">separate download</a>)</li>
<li><a href="https://msikma.github.io/pokesprite/">pokesprite</a></li>
<li>pokemondb/pokemondb/serebii have structured urls so i could scrape</li>
</ul>
<h2>notes</h2>
<ul>
<li>msg.narc (i looked in diamond, soul silver, and platinum) TODO: check, since according to https://ds-pokemon-hacking.github.io/docs/generation-iv/guides/editing_moves/#move-name-description--battle-texts, the narc entries are different per game for various things
<ul>
<li>16 names</li>
<li>190 natures</li>
<li>192 pokemon nickname suggestions</li>
<li>205 statuses</li>
<li>310 names... japanese?</li>
<li>326 trade pokemon nicknames</li>
<li>343 item desc</li>
<li>344 item</li>
<li>362 POKEMON</li>
<li>373 berry types</li>
<li>382 place names</li>
<li>414 poffin types</li>
<li>495 stat names</li>
<li>552 abilities</li>
<li>554 ability descriptions</li>
<li>559 trainers</li>
<li>560 trainer titles</li>
<li>565 types</li>
<li>587 move descriptions</li>
<li>588 moves</li>
<li>615 pokedex entry</li>
<li>619 weight</li>
<li>620 height</li>
<li>621 "___ pokemon"</li>
</ul>
</li>
<li>in diamond and pearl hypnosis accuracy is 70, but in all the other gen 4 games it's 60. that's the only difference in their move data tables</li>
</ul>
</section><div class="code-panel"><pre class="code src language-markdown"><span class="code-line"><a class="ln" id="L1" href="#L1">1</a><span class="code-text"><a-p>##</a-p> <a-tt>Why does this exist</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L2" href="#L2">2</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L3" href="#L3">3</a><span class="code-text">I was Feeling Restless at work. I haven&#39;t gotten to write a non-trivial amount of rust recently. I&#39;ve also been doing a LOT of small tweaks to various software I use as I bring up my new laptop and I&#39;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.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L4" href="#L4">4</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L5" href="#L5">5</a><span class="code-text">[eevee&#39;s blog post](https://eev.ee/blog/2017/08/02/datamining-pokemon/) 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&#39;s toolkit](https://github.com/eevee/porigon-z/blob/master/porigonz/nds/util/sprites.py) for data extraction (or the [hg/ss decompilation](https://github.com/pret/pokeheartgold/blob/master/include/constants/sprites.h)) can probably get those icon-sized sprites too, but I didn&#39;t bother checking.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L6" href="#L6">6</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L7" href="#L7">7</a><span class="code-text">[This](https://github.com/Tenchi2xh/pokedex-cli) one had the coolest UI out of the dozen or so I looked at, so it&#39;s what I&#39;ll try to recreate. That means I need not only sprites, but names, nicknames, evolutions, types, height/weight, and pokedex prose.</span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L8" href="#L8">8</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L9" href="#L9">9</a><span class="code-text"><a-p>```</a-p><a-tl> shell</a-tl></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L10" href="#L10">10</a><span class="code-text"><a-p>🍍 file diamond.nds &amp;&amp; md5sum diamond.nds</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L11" href="#L11">11</a><span class="code-text"><a-p>diamond.nds: Nintendo DS ROM image: &quot;POKEMON D&quot; (ADAE01, Rev.05) (decrypted)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L12" href="#L12">12</a><span class="code-text"><a-p>02a1af2a677d101394b1d99164a8c249  diamond.nds</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L13" href="#L13">13</a><span class="code-text"><a-p>```</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L14" href="#L14">14</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L15" href="#L15">15</a><span class="code-text"><a-p>Side note: it&#39;s cool that `file` has support for these ROMs, I went and [found the source](https://github.com/file/file/blame/7f9a0931f46282ab158c4a8a9474fba6611baba0/magic/Magdir/console#L475) because I was pleasantly surprised that it just worked.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L16" href="#L16">16</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L17" href="#L17">17</a><span class="code-text"><a-p>## </a-p><a-tt>Scope Creep</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L18" href="#L18">18</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L19" href="#L19">19</a><span class="code-text"><a-p>There&#39;s lots of pokemon games and they&#39;ve got lots of art/data, but the _maximum_ I&#39;d be interested in covering are:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L20" href="#L20">20</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L21" href="#L21">21</a><span class="code-text"><a-p>Games:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L22" href="#L22">22</a><span class="code-text"><a-p>- Fire Red/Leaf Green</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L23" href="#L23">23</a><span class="code-text"><a-p>- Ruby/Sapphire/Emerald</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L24" href="#L24">24</a><span class="code-text"><a-p>- Heart Gold/Soul Silver</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L25" href="#L25">25</a><span class="code-text"><a-p>- Diamond/Pearl/Platinum</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L26" href="#L26">26</a><span class="code-text"><a-p>- maybe b/w/b2/w2?? after i play them?</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L27" href="#L27">27</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L28" href="#L28">28</a><span class="code-text"><a-p>Info (priority list):</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L29" href="#L29">29</a><span class="code-text"><a-p>- box sprites</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L30" href="#L30">30</a><span class="code-text"><a-p>- pokedex prose description</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L31" href="#L31">31</a><span class="code-text"><a-p>- pokedex attributes (height/weight)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L32" href="#L32">32</a><span class="code-text"><a-p>- type/stats</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L33" href="#L33">33</a><span class="code-text"><a-p>- evolutions</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L34" href="#L34">34</a><span class="code-text"><a-p>- hg/ss overworld sprites (2 frames for all 4 directions)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L35" href="#L35">35</a><span class="code-text"><a-p>- abilities</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L36" href="#L36">36</a><span class="code-text"><a-p>- front sprites</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L37" href="#L37">37</a><span class="code-text"><a-p>- moves? learnset/teachset/egg/tutor/description/power/acc/probabilities</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L38" href="#L38">38</a><span class="code-text"><a-p>- back sprites</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L39" href="#L39">39</a><span class="code-text"><a-p>- pokeball/other item sprites</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L40" href="#L40">40</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L41" href="#L41">41</a><span class="code-text"><a-p>Trainer teams with full level/stat/moveset info and the trainersprite would be cool but wayyyy too much work</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L42" href="#L42">42</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L43" href="#L43">43</a><span class="code-text"><a-p>remember to double check for exact sprite re-use (I&#39;ve heard some platinum sprites just swapped frame 1/2)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L44" href="#L44">44</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L45" href="#L45">45</a><span class="code-text"><a-p>Functionality:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L46" href="#L46">46</a><span class="code-text"><a-p>- dex entries:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L47" href="#L47">47</a><span class="code-text"><a-p>  - name/nick/num</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L48" href="#L48">48</a><span class="code-text"><a-p>  - height/weight</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L49" href="#L49">49</a><span class="code-text"><a-p>  - sprite, change the pool based on dimensions</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L50" href="#L50">50</a><span class="code-text"><a-p>    - random version or arg to lock a gen/game/type/shiny</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L51" href="#L51">51</a><span class="code-text"><a-p>  - type/strengths/weaknesses (including 0/4x)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L52" href="#L52">52</a><span class="code-text"><a-p>  - stats</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L53" href="#L53">53</a><span class="code-text"><a-p>  - evolution chart</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L54" href="#L54">54</a><span class="code-text"><a-p>  - 2 frame box sprite animations seem doable, and I&#39;ll at least get static versions of both large frames but probably not the more dynamic animations from emerald and onward.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L55" href="#L55">55</a><span class="code-text"><a-p>  - ability/learnset</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L56" href="#L56">56</a><span class="code-text"><a-p>- type chart</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L57" href="#L57">57</a><span class="code-text"><a-p>- region</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L58" href="#L58">58</a><span class="code-text"><a-p>- cli</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L59" href="#L59">59</a><span class="code-text"><a-p>  - hyphen option completion, otherwise name/number(id) and gender/form for second positional arg</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L60" href="#L60">60</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L61" href="#L61">61</a><span class="code-text"><a-p>### </a-p><a-tt>Ideas</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L62" href="#L62">62</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L63" href="#L63">63</a><span class="code-text"><a-p>- levenshein distance or fuzzy search for names?</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L64" href="#L64">64</a><span class="code-text"><a-p>- [natures grid](https://pokemondb.net/mechanics/natures)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L65" href="#L65">65</a><span class="code-text"><a-p>- [type chart](https://pokemondb.net/type/old)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L66" href="#L66">66</a><span class="code-text"><a-p>  - single and double type effectivenesses</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L67" href="#L67">67</a><span class="code-text"><a-p>- move coverage calculator?</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L68" href="#L68">68</a><span class="code-text"><a-p>- search for mons that can learn certain move(s) alongside certain abilities with certain type(s), filter thresholds or sort by stats?</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L69" href="#L69">69</a><span class="code-text"><a-p>  - [this cli pokedex](https://github.com/purplecraft999/rsdex) has some cute filter options</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L70" href="#L70">70</a><span class="code-text"><a-p>- favorite picker</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L71" href="#L71">71</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L72" href="#L72">72</a><span class="code-text"><a-p>## </a-p><a-tt>References</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L73" href="#L73">73</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L74" href="#L74">74</a><span class="code-text"><a-p>- great historical background and technical breakdown of the [gba](https://www.copetti.org/writings/consoles/game-boy-advance/) and [nds](https://www.copetti.org/writings/consoles/nintendo-ds)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L75" href="#L75">75</a><span class="code-text"><a-p>- comprehensive gba/ds technical resource including file formats: [GBATEK](https://problemkaputt.de/gbatek.htm)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L76" href="#L76">76</a><span class="code-text"><a-p>- [gen 3 color palettes](https://voliol.neocities.org/articles/genIIIpalettes) explanation</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L77" href="#L77">77</a><span class="code-text"><a-p>- hgss had an unnamed filesystem but some resources like [this](https://projectpokemon.org/home/docs/gen-4/hgss-file-system-r21/) have guides to which file is which</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L78" href="#L78">78</a><span class="code-text"><a-p>- data format [notes and dumps](https://projectpokemon.org/rawdb) for all gen 4 games</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L79" href="#L79">79</a><span class="code-text"><a-p>- more detailed hg/ss data format [docs](https://hirotdk.neocities.org/FileSpecs#Pokemon) for hg/ss</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L80" href="#L80">80</a><span class="code-text"><a-p>- rom hacking guide with [great info](https://ds-pokemon-hacking.github.io/docs/generation-iv/guides/editing_moves/#location) on movesets (if i wanted to do add move tutor support this is a good starting place)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L81" href="#L81">81</a><span class="code-text"><a-p>- another [ds rom header breakdown](http://dsibrew.org/wiki/DSi_cartridge_header) with the extra dsi bits (maybe relevant if I ever want to support b/w/b2/w2)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L82" href="#L82">82</a><span class="code-text"><a-p>- [list](https://gist.github.com/eevee/15a92e26088d79a77fca) of pokemon with forms</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L83" href="#L83">83</a><span class="code-text"><a-p>- [uxie](https://github.com/KalaayPT/uxie) is a project that implements most of the functionality I&#39;d like to write. If I weren&#39;t writing this tool for fun I&#39;d just use this as a library.</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L84" href="#L84">84</a><span class="code-text"><a-p>- [backup](https://loveemu.hatenablog.com/entry/20091002/nds_formats) of a great resource on ds file formats which includes the formats used for sprites</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L85" href="#L85">85</a><span class="code-text"><a-p>- [blz compression explanation](https://projectpokemon.org/home/docs/other/compression-r9) for the arm9 in hg/ss</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L86" href="#L86">86</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L87" href="#L87">87</a><span class="code-text"><a-p>eevee&#39;s blog posts:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L88" href="#L88">88</a><span class="code-text"><a-p>- https://eev.ee/blog/2016/08/05/storing-pok%C3%A9mon-without-sql</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L89" href="#L89">89</a><span class="code-text"><a-p>- https://eev.ee/blog/2017/08/02/datamining-pokemon</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L90" href="#L90">90</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L91" href="#L91">91</a><span class="code-text"><a-p>tools and resources to read/dump nitro filesystem:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L92" href="#L92">92</a><span class="code-text"><a-p>- high quality rust [library + cli](https://lib.rs/crates/ds-rom)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L93" href="#L93">93</a><span class="code-text"><a-p>- another [rust library](https://lib.rs/crates/nitro_fs) and a [less complete one](https://lib.rs/crates/nds)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L94" href="#L94">94</a><span class="code-text"><a-p>- https://github.com/pret/ds_disassembly_tools</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L95" href="#L95">95</a><span class="code-text"><a-p>- https://scenegate.github.io/Ekona/</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L96" href="#L96">96</a><span class="code-text"><a-p>- cute [blog post](https://imrannazar.com/The-Smallest-NDS-File) on making the smallest nds file possible</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L97" href="#L97">97</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L98" href="#L98">98</a><span class="code-text"><a-p>tools to dump narcs:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L99" href="#L99">99</a><span class="code-text"><a-p>- https://github.com/nickworonekin/narchive</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L100" href="#L100">100</a><span class="code-text"><a-p>- https://ndspy.readthedocs.io/en/latest/api/narc.html</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L101" href="#L101">101</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L102" href="#L102">102</a><span class="code-text"><a-p>hacking tools/editors that probably already have all the info I want:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L103" href="#L103">103</a><span class="code-text"><a-p>- https://github.com/magical/pokemon-nds-sprites for gen4 sprites</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L104" href="#L104">104</a><span class="code-text"><a-p>- https://github.com/haven1433/HexManiacAdvance for gen3</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L105" href="#L105">105</a><span class="code-text"><a-p>- https://github.com/turtleisaac/PokEditor for gen4</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L106" href="#L106">106</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L107" href="#L107">107</a><span class="code-text"><a-p>other terminal pokemon sprite renderers:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L108" href="#L108">108</a><span class="code-text"><a-p>- https://github.com/Tenchi2xh/pokedex-cli</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L109" href="#L109">109</a><span class="code-text"><a-p>- https://github.com/yannjor/krabby and [this fork](https://github.com/altair-39/kingler)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L110" href="#L110">110</a><span class="code-text"><a-p>- https://github.com/talwat/pokeget-rs</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L111" href="#L111">111</a><span class="code-text"><a-p>- https://github.com/31marcosalsa/pokeTerm</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L112" href="#L112">112</a><span class="code-text"><a-p>- https://github.com/Findarato/pokemon-colorscripts</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L113" href="#L113">113</a><span class="code-text"><a-p>- https://github.com/possatti/pokemonsay</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L114" href="#L114">114</a><span class="code-text"><a-p>- https://github.com/HRKings/pokemonsay-newgenerations</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L115" href="#L115">115</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L116" href="#L116">116</a><span class="code-text"><a-p>msg file string parsing:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L117" href="#L117">117</a><span class="code-text"><a-p>- https://github.com/yakoswg/chatot</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L118" href="#L118">118</a><span class="code-text"><a-p>- https://codeberg.org/AyashiBox/pkmn-strings</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L119" href="#L119">119</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L120" href="#L120">120</a><span class="code-text"><a-p>possible online sources for fallback data that I don&#39;t derive like encounter tables:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L121" href="#L121">121</a><span class="code-text"><a-p>- veekun (TODO: check if their database has this and maybe use it offline?)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L122" href="#L122">122</a><span class="code-text"><a-p>- serebii</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L123" href="#L123">123</a><span class="code-text"><a-p>- bulbapedia</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L124" href="#L124">124</a><span class="code-text"><a-p>- pokemondb</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L125" href="#L125">125</a><span class="code-text"><a-p>- pokeapi using [either](https://github.com/zitronenjoghurt/poke-data) of [these](https://github.com/mlemesle/rustemon) libraries</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L126" href="#L126">126</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L127" href="#L127">127</a><span class="code-text"><a-p>existing sprite databases to check against:</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L128" href="#L128">128</a><span class="code-text"><a-p>- [veekun&#39;s](http://git.veekun.com/pokedex-media.git/tree/HEAD:/pokemon/icons) (they also have a convenient [separate download](https://veekun.com/dex/downloads))</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L129" href="#L129">129</a><span class="code-text"><a-p>- [pokesprite](https://msikma.github.io/pokesprite/)</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L130" href="#L130">130</a><span class="code-text"><a-p>- pokemondb/pokemondb/serebii have structured urls so i could scrape</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L131" href="#L131">131</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L132" href="#L132">132</a><span class="code-text"><a-p>## </a-p><a-tt>notes</a-tt></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L133" href="#L133">133</a><span class="code-text"></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L134" href="#L134">134</a><span class="code-text"><a-p>- msg.narc (i looked in diamond, soul silver, and platinum) TODO: check, since according to https://ds-pokemon-hacking.github.io/docs/generation-iv/guides/editing_moves/#move-name-description--battle-texts, the narc entries are different per game for various things</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L135" href="#L135">135</a><span class="code-text"><a-p>  - 16 names</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L136" href="#L136">136</a><span class="code-text"><a-p>  - 190 natures</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L137" href="#L137">137</a><span class="code-text"><a-p>  - 192 pokemon nickname suggestions</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L138" href="#L138">138</a><span class="code-text"><a-p>  - 205 statuses</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L139" href="#L139">139</a><span class="code-text"><a-p>  - 310 names... japanese?</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L140" href="#L140">140</a><span class="code-text"><a-p>  - 326 trade pokemon nicknames</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L141" href="#L141">141</a><span class="code-text"><a-p>  - 343 item desc</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L142" href="#L142">142</a><span class="code-text"><a-p>  - 344 item</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L143" href="#L143">143</a><span class="code-text"><a-p>  - 362 POKEMON</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L144" href="#L144">144</a><span class="code-text"><a-p>  - 373 berry types</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L145" href="#L145">145</a><span class="code-text"><a-p>  - 382 place names</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L146" href="#L146">146</a><span class="code-text"><a-p>  - 414 poffin types</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L147" href="#L147">147</a><span class="code-text"><a-p>  - 495 stat names</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L148" href="#L148">148</a><span class="code-text"><a-p>  - 552 abilities</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L149" href="#L149">149</a><span class="code-text"><a-p>  - 554 ability descriptions</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L150" href="#L150">150</a><span class="code-text"><a-p>  - 559 trainers</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L151" href="#L151">151</a><span class="code-text"><a-p>  - 560 trainer titles</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L152" href="#L152">152</a><span class="code-text"><a-p>  - 565 types</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L153" href="#L153">153</a><span class="code-text"><a-p>  - 587 move descriptions</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L154" href="#L154">154</a><span class="code-text"><a-p>  - 588 moves</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L155" href="#L155">155</a><span class="code-text"><a-p>  - 615 pokedex entry</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L156" href="#L156">156</a><span class="code-text"><a-p>  - 619 weight</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L157" href="#L157">157</a><span class="code-text"><a-p>  - 620 height</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L158" href="#L158">158</a><span class="code-text"><a-p>  - 621 &quot;___ pokemon&quot;</a-p></span><span class="code-break">
</span></span><span class="code-line"><a class="ln" id="L159" href="#L159">159</a><span class="code-text"><a-p>- </a-p>in diamond and pearl hypnosis accuracy is 70, but in all the other gen 4 games it&#39;s 60. that&#39;s the only difference in their move data tables</span></span></pre></div></div>
</main>
</body>
</html>
