VC 'romc' Compressor/Decompressor

Discussion in 'Wii - Hacking' started by jurai, May 4, 2008.

  1. jurai
    OP

    jurai GBAtemp Fan

    Member
    340
    36
    Dec 23, 2005
    For encoding a rom for use in the latest versions of
    the Nintendo 64 Virtual Console emulator. Currently
    supported by games such as Cruis'n USA and Kirby 64.

    Usage:
    Encode a rom to romc format
    'romc e input output'

    Decode a romc file back to a rom
    'romc d input output'

    Note:
    Although many roms will save space with compression,
    Some roms will actually gain space instead of saving
    space when compressed due to the algorithm (ex: RE2)

    http://www.megaupload.com/?d=9MJO39BQ

    http://www.sendspace.com/file/3scanb

    Presumably all future versions of the virtual console will use the compressed variant of storing the rom since it allows them to save some block space on roms which don't utilize all of the rom space and contain alot of padding, though the algorithm they used isn't really 'that' great at compression imo, but is aimed at speed I'm sure.
     
  2. FAST6191

    FAST6191 Techromancer

    pip Reporter
    23,366
    9,168
    Nov 21, 2005
    Thanks for this jurai, it seems we are already heading into the "usability" arena which is nice.
     
  3. Pikachu025

    Pikachu025 GBAtemp Advanced Fan

    Member
    969
    34
    May 3, 2006
    Australia
    Austria
    I'm pretty sure Paper Mario uses compression too.
     
  4. _Contra_

    _Contra_ GBAtemp Fan

    Member
    321
    10
    Feb 11, 2009
    Italy
    Who do I explain how to use?

    thx
     
  5. kaepora

    kaepora Member

    Newcomer
    11
    0
    Oct 6, 2008
    I've been trying to inject the Collector's Edition of Majora's Mask into the official MM VC WAD, and the rom needs to be compressed form its full 32MB size to around 27MB (MM VC romc size).
    But when I use the compression tool it reduces the rom to a tenth of it's size (32MB to about 3.3MB) - obviously this is too much (or little, you know what I mean). Any idea why?

    Reason for doing this: I prefer the CE edition of MM to the original, and I don't want to use the GC disc if I don't have to. Obvious;y if anyone has tried this or has any other thoughts other than the actual problem above, do pipe up.
    I've seen Master Quest injection WADs around - presumably ppl managed to pack the GC disc rom into the OoT WAD - was compression involved in that?

    Advice on the compression issue would be handy though.

    TIA and respect. [​IMG]
     
  6. RadioShadow

    RadioShadow GBAtemp Advanced Fan

    Member
    531
    29
    Aug 30, 2007
    UK
    Does the new SNES VC WADs use this type of compression?

    If so, adding SNES support would be nice.
     
  7. mousex

    mousex GBAtemp Advanced Fan

    Member
    987
    0
    Jan 23, 2009
    United States
    @RadioSHadow: You see that the last update to this app was made over a year ago?
     
  8. stev418

    stev418 GBAtemp Fan

    Member
    492
    10
    Sep 25, 2007
    RadioSHadow: I dont think its the same, Im still trying hard to find soemone to get the NEW LZH8 on snes roms de-/compression, ive asked around a bit but no luck so far [​IMG]

    so if anyone know please reply [​IMG] it has a similar header as the 'old' LZ77 stuff

    eg. 40xxyyzz

    where (40) is the compression type and xxyyzz=zzyyxx = decompressed size of file

    thats the best i can do myself though
     
  9. Redead

    Redead Newbie

    Newcomer
    1
    0
    Dec 4, 2010
    United States
  10. _47iscool

    _47iscool GBAtemp Regular

    Member
    137
    24
    Nov 18, 2013
    United States
    Could someone please re-upload this program since the other links are dead? I'd like to try 32MB Ocarina MQ Debug ROM with the Majora emulator.
     
  11. jurai
    OP

    jurai GBAtemp Fan

    Member
    340
    36
    Dec 23, 2005
    I'm not sure I have the source for this any longer / if I do I'm not sure which hard drive its on, should I ever find it ill post it.
     
  12. BITBURGER

    BITBURGER GBAtemp Regular

    Member
    165
    5
    Dec 5, 2014
    Netherlands
    Kerkrade
    What are the commandson the dos prompt
    comc ????