Skip to main content

Library and CLI tool for extracting and analyzing Mii files from Nintendo console database dumps

Project description

mii-lib

https://jackharrhy.github.io/mii-lib/

https://pypi.org/project/mii-lib/

Library and CLI for extracting .mii files from misc. Wii/Dolphin data dumps, and extracting information from them (name, fav. color, gender, etc.)

Installation

  • Library only: pip install mii-lib
  • With CLI: pip install mii-lib[cli] / uvx mii-cli --help / etc.

Usage

from pathlib import Path
from mii import MiiDatabase, MiiParser, MiiType

database = MiiDatabase(Path("RFL_DB.dat"), MiiType.WII_PLAZA)
mii = database[0]
print(mii.name)
print(mii.favorite_color)

for mii in database:
    print(f"{mii.name} by {mii.creator_name}")

with open("WII_PL00000.mii", "rb") as f:
    mii_data = f.read()

mii = MiiParser.parse(mii_data)
print(mii.get_birthday_string())

More complete examples can be found in examples/library_usage.py

RFL_DB.dat

This is all based around reading from a RFL_DB.dat file.

After having used the Mii Channel in Dolphin, and assuming its saved the contents of it to disk at some point, you'll find it in one of the following folders:

  • C:\Users\<Your Username>\Documents\Dolphin Emulator\Wii\shared2\menu\FaceLib\
  • C:\Users\<Your Username>\AppData\Roaming\Dolphin Emulator\Wii\shared2\menu\FaceLib\
  • ~/.dolphin-emu/Wii/shared2/menu/FaceLib/

If none of these exist, check where Dolphin is savings its data to in its settings.


Originally based on https://github.com/PuccamiteTech/PyMii/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mii_lib-0.1.1.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mii_lib-0.1.1-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file mii_lib-0.1.1.tar.gz.

File metadata

  • Download URL: mii_lib-0.1.1.tar.gz
  • Upload date:
  • Size: 21.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for mii_lib-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d0c506465bed1d6d0e7886a6dd54370c76014d893e06e828c235e29446c7dea7
MD5 8a0e9b269fc125d2e04222934fc2f27a
BLAKE2b-256 26014128fe1606b774961ecca6c3b2f6fee5746eb496521c467d7f3566293787

See more details on using hashes here.

File details

Details for the file mii_lib-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mii_lib-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 23.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for mii_lib-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 6b512e8d6663dc47e270d579c768fa86fb8bd974e5cc908b4be4b0dbb98a6bef
MD5 99f0a8dcce57100d0531fe3408277738
BLAKE2b-256 2c88b408ee023822305a34fdae952387060724d94d95effc1f186d7ceb666eba

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page