main.tweaks for MKWii
100% client-side. Detects disc variant, patches Region ID algorithm bytes, changes loading screen color, edits FaceLib Mii colors, then downloads a patched main.dol.

1) Load main.dol No uploads — everything stays local.

…or drag & drop your main.dol here
Loaded file
Detected disc variant
Override variant
FaceLib base
Changed entries
0
Verification & detection details
Variant / PathOffsetFound byteMeaning
Region-byte scan matches the algorithm offsets from Vega's documentation; PAL and JP have two code paths. Values map to 00..06 = Japan, Americas, Europe, AUS/NZ, Taiwan, South Korea, China.

2) Patch Region ID bytes (line colors / matchmaking region)

Load a file to inspect and patch region bytes.
Variant / PathOffsetCurrent byteMeaningSelect
PAL and NTSC-J normally patch both valid code paths. The global revert button restores both region-byte and FaceLib edits.

3) Patch loading screen color (RGB immediate patch)

Load a file to inspect the loading screen color routine.
Routine offset
Routine state
Current RGB
This patch replaces three lbz instructions with immediate loads for red, green, and blue. The alpha load remains untouched.

4) Edit all Mii colors (FaceLib element colors)

Load a file to populate the editor.

Notes

  • Disc variant detection reads the known Region ID algorithm result byte inside main.dol at offsets: 0x6113 (RMCE01), 0x614F / 0x61AF (RMCP01), 0x60A3 / 0x60D3 (RMCJ01), 0x625F (RMCK01). PAL and JP have two valid paths.
  • Loading screen color routine offsets: PAL 0x210784, NTSC-U 0x2106E4, NTSC-J 0x2106A4, NTSC-K 0x210AF8. The patch converts the RGB loads into immediate values while leaving alpha untouched.
  • FaceLib base addresses for Mario Kart Wii: PAL 0x2479B0, NTSC-U 0x247678, NTSC-J 0x247340, NTSC-K 0x247788. All element color offsets are relative to this base.
  • Colors are stored as 32-bit big-endian RGBA words. The HTML color input edits RGB; alpha can be adjusted separately (0-255).
  • Back up your original file. To patch a full ISO/WBFS, extract main.dol, patch here, then rebuild with Wiimm's WIT or your preferred tool. Alternatively use in My Stuff on packs that allow it.
  • Credits to Vega for the documented region-byte offsets, to hazel for the loading screen color documentation, and to Tockdom for the Main.dol file documentation.