Skip to main content

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

Project description

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.0.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.0-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mii_lib-0.1.0.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.0.tar.gz
Algorithm Hash digest
SHA256 a62fec918d0b85ddd341e2304558f59d071d142dd1d936f3512f2c6c99a8420c
MD5 1d9f2824b52db8300fd2f6dd6954187c
BLAKE2b-256 0864c01c1d31b07c3d31879ee07ec6e83dd5a62f8630ca8d9feb9cb60018b57c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: mii_lib-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cd9543cb57552cee920d194da8f03fe474a4b42aaab665e7726f8ae8d069baf7
MD5 d03186872183105cab53ddec883c3f1a
BLAKE2b-256 4de9b685e53945bfac85b94d4d1df8bfc1aeeacd41afcd1180c5fcbb27627026

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