#file-format #pokemon #dungeon #mystery #parser #image #wan

bin+lib pmd_wan

A library that can read wan file, a sprite format used in pokemon mystery dungeon games

13 stable releases (4 major)

5.1.1 Jan 29, 2023
4.0.0 Feb 25, 2022
3.0.1 Dec 2, 2021
2.0.1 Nov 27, 2021
1.1.1 Jun 12, 2020

#608 in Parser implementations

Download history 380/week @ 2023-12-18 502/week @ 2023-12-25 532/week @ 2024-01-01 416/week @ 2024-01-08 63/week @ 2024-01-15 121/week @ 2024-01-22 265/week @ 2024-01-29 13/week @ 2024-02-05 70/week @ 2024-02-12 79/week @ 2024-02-19 103/week @ 2024-02-26 303/week @ 2024-03-04 144/week @ 2024-03-11 39/week @ 2024-03-18 541/week @ 2024-03-25 424/week @ 2024-04-01

1,153 downloads per month

CC0 license

140KB
3K SLoC

forthebadge

Licensed under the creative–common 0 license (TODO: just put a LICENSE file)

pmd_wan

Note that the information written bellow is outdated, and new function has been added. None has been removed, thought. (Still have to update it).

read wan sprites, used in pokemon mystery dungeon: Explorers and Rescue Team (only tested with Explorers of Sky)

reading : production ready. Should never panic, and has been fuzzed

  • m_attack.bin can sometimes errors

writing : does not provide a nice API for high level stuff for now, but should work correctly, and produce readable images by the game

Shiren

I’m currently trying to read images from the Shiren The Wanderer on DS. They are similar in some point, and dissimilar in others.

For now, I focus on being able to read them.

It’s behind a feature flag. It is mostly experimental code for now.

Executing benchs

The benchs use real image not under the license of this repo, that you need to provide yourself.

  • parse use the bulbasaur.wan in the m_ground.bin file. Can be exported with SkyTemple or another .bin EOS extractor.
  • find_fragment use the White Kyurem sprite by FunnyKecleonMeme. It can be downloaded here : (TODO: actually put the download link)

Dependencies

~11MB
~52K SLoC