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.
The library automatically checks for database files in known Dolphin Emulator locations:
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 the database file is not in your current directory, the library will automatically search these locations. If none of these exist, check where Dolphin is saving its data to in its settings, and provide the full path when creating a MiiDatabase.
Originally based on https://github.com/PuccamiteTech/PyMii/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mii_lib-0.2.0.tar.gz.
File metadata
- Download URL: mii_lib-0.2.0.tar.gz
- Upload date:
- Size: 8.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f80f0d38a1246cbd4918377e7f5783a4b79b37ae9c58798b208124c638ae3b8
|
|
| MD5 |
cc482de58feef433195bf567b2822659
|
|
| BLAKE2b-256 |
8a1c2c76b68b9594032c46cbe103cc8fd589c92a6be6171b668c22497d748599
|
File details
Details for the file mii_lib-0.2.0-py3-none-any.whl.
File metadata
- Download URL: mii_lib-0.2.0-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
310bbd75e27d1d982f4dbc3456d2c62faf3445f78bee028c107606b9d2e3be3d
|
|
| MD5 |
53e3d7f6d11dcd158863aa4a52e870fe
|
|
| BLAKE2b-256 |
a86879bfef73b0baf07c4a2aa9f9da10f9664f53fe85b6b8be409c728471373f
|