Converting a Turbo Duo Wii Virtual Console game to bin/cue?

GammaGulp

Well-Known Member
OP
Newcomer
Joined
Jul 1, 2007
Messages
51
Trophies
1
XP
217
Country
United States
I extracted the contents of my dumped Lords of Thunder WAD (using ShowMiiWADs) after dumping the WAD from the vWii mode of my Wii U, and the contents are quite different from the bin/cue format I usually see with Turbo Duo CD games.

Is there a guide or steps to convert this to make it work like a usual Turbo Duo rip (multi-bin + cue)? Having difficulty finding anything pertaining to Turbo Duo on Wii Virtual Console, in particular.

turboduodump.PNG
 

smf

Well-Known Member
Member
Joined
Feb 23, 2009
Messages
6,651
Trophies
2
XP
5,907
Country
United Kingdom
. First link seems to end with no conclusion. The reddit thread has more to it but the decomp.py code shared in that thread just results in an error:
That looks like python is having some issues parsing your command line.


sys.argv is the list of command line arguments passed to a Python script, where sys.argv[0] is the script name itself.

It is erroring out because you are not passing any commandline argument, and thus sys.argv has length 1 and so sys.argv[1] is out of bounds.



Maybe it doesn't like such long paths, or spaces in it. You could also try:

python decomp.py whateveritis

btw the script was written for python2 as it originally used xrange. I changed xrange to range (which might work or might not) and threw it a random file, but it fails due to not being able to decompress it. So I have no idea.

Code:
#!/usr/bin/env python -u
import struct, sys, zlib
fd = open(sys.argv[1], 'rb')
entries = struct.unpack('<I', fd.read(4))[0]
dst = open('decompressed.bin', 'wb')
for i in range(entries):
 fd.seek((i * 8) + 4)
 offset = struct.unpack('<I', fd.read(4))[0]
 size = struct.unpack('<I', fd.read(4))[0]
 fd.seek(offset)
 dst.write(zlib.decompress(fd.read(size)))
dst.close()
fd.close()

If you grab a python2 interpreter then you could try changing the range back to xrange.
 
Last edited by smf,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • ZeroT21 @ ZeroT21:
    it happens quit often if not all the time
  • ZeroT21 @ ZeroT21:
    diablo 4 anyone?
  • K3Nv2 @ K3Nv2:
    Everyone just doesn't want to be an outcast and say they're decent games why do they make billions if it's so shit
  • ZeroT21 @ ZeroT21:
    just buy nintendo stuff and their games if you just want fun
  • K3Nv2 @ K3Nv2:
    I still can't name 12 fun current Nintendo games
  • ZeroT21 @ ZeroT21:
    i say get a pc and emulate that too

    :rofl2:
  • K3Nv2 @ K3Nv2:
    Or in today's age at least a SteamDeck
  • ZeroT21 @ ZeroT21:
    i gotta say, the steam deck isn't a bad deal, even if you get a used one, you have options to get it serviced and the parts are also available through ifixit
  • K3Nv2 @ K3Nv2:
    I remember a guy trying to call me a SteamDeck fanboy I'm like well give me a grand I'll buy a winmax
    +1
  • K3Nv2 @ K3Nv2:
    Or a win4 things still sexy
  • ZeroT21 @ ZeroT21:
    having money does not mean everyone will just fork it over
  • ZeroT21 @ ZeroT21:
    everyone perceives value diffrently
  • K3Nv2 @ K3Nv2:
    I buy cheap and whats useable
  • K3Nv2 @ K3Nv2:
    Twice out of the year I may get something that's $600
  • ZeroT21 @ ZeroT21:
    we all like nice things, sure, but I also want to keep money on the side
  • K3Nv2 @ K3Nv2:
    I'd have the same mentality if money wasn't an object
  • ZeroT21 @ ZeroT21:
    having a warped sense can happen
  • ZeroT21 @ ZeroT21:
    reason i question myself, but not constantly
  • K3Nv2 @ K3Nv2:
    If I had Elon money sure I'd have a 20 bedroom home
  • ZeroT21 @ ZeroT21:
    if only that alone could make me happy, but nope
    :D
  • ZeroT21 @ ZeroT21:
    you'll only feel more empty after most of your urges go away like that
  • K3Nv2 @ K3Nv2:
    Spam account tried getting $10 off me I'm like you didn't have it last week you'll be fine
    +1
  • ZeroT21 @ ZeroT21:
    i get spam links all the time, even through steam
  • ZeroT21 @ ZeroT21:
    get same links from scammers posing as my steam friends
    Psionic Roshambo @ Psionic Roshambo: https://youtu.be/KYZD7ykz9aQ?list=RDKYZD7ykz9aQ