Sunday, 10 April 2011

Mario Sports Mix: More File IDs



Recently, Treeki and I got into a discussion, regarding the compressed Mario Sports Mix files. He did give me a c++ script, which could decompress most .mdl, .mot, and .bin files. Of course, it does crash with certain files.

Anyway, with that decompressing script, I was able to dig deeper, in terms of what the files held. Apparently, a lot of the .mdl, .mot, and .bin files are actually BRRES files, but there are also some that are ARC files that contain BRRES archives.

Here's a basic list of what the character and stage files hold...

Character IDs

Note: ## stands for numerical values; Ex.: 00, 01, 02, 10, 11.

c##B##.mdl = Playable Character Model (Behemoth Battle)
c##C##.mdl = Playable Character Model (Common)
c##H##.mdl = Playable Character Model (Hockey)

m##B##.mdl = Mii (Behemoth Battle)
m##C##.mdl = Mii (Common)
m##H##.mdl = Mii (Hockey)

n##C##.mdl = Non-Playable Character Models

Menu.mdl = Main Menu Character Models
Tour.mdl = Tournament Character Models

c##BA.mot = Playable Character Animation Data (Basketball)
c##BO.mot = Playable Character Animation Data (Behemoth Battle)
c##DO.mot = Playable Character Animation Data (Dodgeball)
c##HO.mot = Playable Character Animation Data (Hockey)
c##TE.mot = Playable Character Animation Data (Tournament)
c##VO.mot = Playable Character Animation Data (Volleyball)

m##BA.mot = Mii Animation Data (Basketball)
m##BO.mot = Mii Animation Data (Behemoth Battle)
m##DO.mot = Mii Animation Data (Dodgeball)
m##HO.mot = Mii Animation Data (Hockey)
m##TE.mot = Mii Animation Data (Tournament)
m##VO.mot = Mii Animation Data (Volleyball)

n##BA.mot = Non-Playable Character Animation Data (Basketball)
n##BO.mot = Non-Playable Character Animation Data (Behemoth Battle)
n##DO.mot = Non-Playable Character Animation Data (Dodgeball)
n##HO.mot = Non-Playable Character Animation Data (Hockey)
n##VO.mot = Non-Playable Character Animation Data (Volleyball)

Menu.mot = Main Menu Character Animation Data
Tour.mot = Tournament Character Animation Data

Stage IDs

Note: ## stands for numerical values; Ex.: 00, 01, 02, 10, 11.

s##BA.bin = Stage Model (Basketball)
s##DO.bin = Stage Model (Dodgeball)
s##HO.bin = Stage Model (Hockey)
s##VO.bin = Stage Model (Volleyball)

Other Various Files

cmn_test.bin = Item Related

TPL Archives

Decompressing the ISO files has also helped me with figuring out where the .tpl files are found. They're apparently stored in the lyt folder, which contains folders for different languages. The languages used are depended on your Wii's language settings, along with the region of your ISO.

lc00_JaJa = Japanese (NTSC-J ISO only)

lc10_UsEn = English (NTSC-U ISO only)
lc11_UsFr = French (NTSC-U ISO only)
lc12_UsSp = Spanish (NTSC-U ISO only)

lc20_EuEn = English (PAL ISO only)
lc21_EuGe = German (PAL ISO only)
lc22_EuFr = French (PAL ISO only)
lc23_EuIt = Italian (PAL ISO only)
lc24_EuSp = Spanish (PAL ISO only)
lc25_EuDu = Dutch (PAL ISO only)

Inside those folders are some more folders; cockpit, main, select. Each of those folders contain .bin files, which hold the TPL contents.

cockpit

cptBA.bin = Basketball Related
cptBA0.bin = Basketball Related
cptBA2.bin = Basketball Related
cptBO.bin = Behemoth Battle Related
cptBO0.bin = Behemoth Battle Related
cptDO.bin = Dodgeball Related
cptDO0.bin = Dodgeball Related
cptDO2.bin = Dodgeball Related
cptDO012.bin = Dodgeball Related
cptDO013.bin = Dodgeball Related
cptHO.bin = Hockey Related
cptHO0.bin = Hockey Related
cptHO2.bin = Hockey Related
cptTO.bin = Tournament Related
cptTO1.bin = Tournament Related
cptUL.bin = Unlockable Related
cptVO.bin = Volleyball Related
cptVO0.bin = Volleyball Related
cptVO1.bin = Volleyball Related
cptVO2.bin = Volleyball Related
cptVO010.bin = Volleyball Related
cptVO020.bin = Volleyball Related
cptVO021.bin = Volleyball Related
cptVS.bin = Wi-Fi Related

main

load.bin = Loading Screen
main.bin = Main Menu Related

select

selBgSe.bin = Main Menu Related
selCha.bin = CSS Related
selEnt.bin = No. of Players Menu
selExNo.bin = Main Menu Related
selFrCo.bin = Unknown Usage
selMain.bin = Main Menu Contents
selMii.bin = Mii Related
selMult.bin = Multiplayer Related
selOpt.bin = Unknown Usage
selRule.bin = Rules Related
selScor.bin = Records Menu
selTitle.bin = Title Screen
selWiFi.bin = Wi-Fi Related

Conclusions

Now, while it has been possible to decompress most of the ISO files, it's still not possible to compress the files back to their original state, meaning that the game still isn't hackable at this point. However, Treeki did give me the following statement...

No idea if that will happen -- I can't do it; I know very little about compression. The decompressor is just a direct translation from the game's decompression code.

It's more likely than you think, though -- it's not specific to this game. I don't know all the details; but it's one of the lesser-known compression formats supported by the Wii SDK. This is the first game we've found that uses it, but there are probably others.

There's a leaked version of the SDK out (from mid-2006) which doesn't include this format, so it must have been added afterwards. (Most games I've seen use LZ77 or Yaz0. The latter is not part of the SDK.) That might be why no one has managed to write a compressor yet...


Anyway, I'm trying to get people involved in figuring out this compression method. The more the merrier after all; if you want to help out, head to the following XeNTaX forums link...

Mario Sports Mix Compressed Files; .mdl, .mot, .bin, .cmp

7 comments:

  1. If you could decompress this game I'd be so thankful. I'd be able to use white mage's model in ssbb (super smash bros brawl)

    ReplyDelete
  2. Don't thanks me, thank Treeki. He's the one who did up the script. Sadly, we can't recompress the files yet; refer to Treeki's quote.

    ReplyDelete
  3. does mario sports mix have sound files for characters like if they said something

    ReplyDelete
  4. The game does contain BRSTM files, which are BrawlBox compatible. A BRSAR file also exists in the ISO.

    ReplyDelete
  5. I would love you and treeki to push forward and find a way to crack the code! :D You will eventualy find a way. Mario sports mix has loads of hacking possibilities, like custom stages! Giving up is not an option only going forward! :D I would love to play as blue and red yoshi! xD

    ReplyDelete
  6. Eventually, but I doubt that Treeki will be of much help; again he's not an expert with compressions.

    Anyway, I actually have my first set of Mario Sports Mix texture hacks all set up. The only thing in my way is the compression method, and how to recreate it.

    ReplyDelete
  7. Are you able to post the sound files of the characters? if you could I'd soooooooooo HAPPY! :)

    ReplyDelete