Over The Hedge (GC) *.ARC

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Over The Hedge (GC) *.ARC

Post by Mygoshi »

Hi guys. Since a long time I'm trying to extract the AUDIOSTR.arc file from this game: Over The Hedge. Is there a possibility to extract the musics from this archive?

here's the file: https://mega.co.nz/#!UEZUxSzY!iLPBMVE_3 ... db9bf8TQqM
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Over The Hedge (GC) *.ARC

Post by aluigi »

http://aluigi.org/papers/bms/others/over_the_hedge.bms

I have added the automatic building of the wav file.
It will not play with the normal players because the codec is not ms adpcm, but the RIFF format should be correct.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Over The Hedge (GC) *.ARC

Post by Mygoshi »

Cool, but miss a lot of musics and how do I play these ?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Over The Hedge (GC) *.ARC

Post by aluigi »

I don't know how to play them at the moment, probably it's the Nintendo adpcm if the game is for WII or Gamecube.

Regarding the files, they are all there as you can see from the size of the extracted data which is almost the size of the archive.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Over The Hedge (GC) *.ARC

Post by Mygoshi »

This file is from the Gamecube. Do you want the PS2 version file?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Over The Hedge (GC) *.ARC

Post by aluigi »

Yes, if the script doesn't work with the PS2 version.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Over The Hedge (GC) *.ARC

Post by Mygoshi »

Here's the file (180mb): Uploading on mega
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Over The Hedge (GC) *.ARC

Post by Mygoshi »

AUDIOSTR.ARC (Over The Hedge, PS2, ~180mb, mega.co.nz): https://mega.co.nz/#!ANgByRyJ!QvkJUTbsU ... 7JzOj7FQOU

I think miss IMA ADPCM Header.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Over The Hedge (GC) *.ARC

Post by aluigi »

You can try that by yourself, open the wav with a hex editor and replace the byte 0x2 (msadpcm) at offset 0x14 with 0x11 (ima).
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Over The Hedge (GC) *.ARC

Post by Mygoshi »

This is not a wav. I cant extract the files from the GC and PS2 version.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Over The Hedge (GC) *.ARC

Post by Mygoshi »

Done. When I open the new file now I can hear the music.. but I want to convert or play it as IMA ADPCM, not as 8-bit PCM..
I got this: https://mega.co.nz/#!MExiBSSA!f7UTSOwKo ... AKxZSRze_I
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Over The Hedge (GC) *.ARC

Post by Mygoshi »

I got this: https://mega.co.nz/#!MExiBSSA!f7UTSOwKo ... AKxZSRze_I

I opened the file as raw 8 bit pcm, now I can hear the music.

How to open the file correctly ?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Over The Hedge (GC) *.ARC

Post by aluigi »

You hear noise, not music.
It's normal to hear the very noisy original audio when you open adpcm data as raw pcm.
I don't know what's the exact codec used.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Over The Hedge (GC) *.ARC

Post by aluigi »

That 180mb file you uploaded is not an archive like the first one.
It seems just raw audio data without headers.
Miles2345
Posts: 76
Joined: Thu Oct 16, 2014 3:05 am

Re: Over The Hedge (GC) *.ARC

Post by Miles2345 »

I would suggest trying MFAudio if it's raw audio data
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Over The Hedge (GC) *.ARC

Post by Mygoshi »

I bet not! This is an archive ;)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Over The Hedge (GC) *.ARC

Post by aluigi »

There are no information about the contained data.
It's just a sequence of raw audio sounds aligned to 0x800.

Even if it's not the good way, exist a work-around to dump the data in this situations, it's the same work-around I used for some PS games: search the padding bytes (sequences of 0x00).

Code: Select all

math i = 0
get ARC_SIZE asize
for NEXT_OFF = 0 < ARC_SIZE
    padding 0x800
    savepos OFFSET
    for OFFSET = OFFSET < ARC_SIZE
        get DUMMY long
        if DUMMY != 0
            break
        endif
    next OFFSET + 4
    if OFFSET & 0x7ff
        xmath OFFSET "OFFSET & (~0x7ff)"
    endif

    findloc NEXT_OFF string "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0" 0 ""
    if NEXT_OFF == ""
        math NEXT_OFF = ARC_SIZE
    endif

    xmath SIZE "NEXT_OFF - OFFSET"
    if SIZE > 0
        putarray 0 i OFFSET
        math i += 1
        #log "" OFFSET SIZE
    endif

    goto NEXT_OFF
next

putarray 0 i ARC_SIZE
math FILES = i
    getarray OFFSET 0 0
for i = 1 <= FILES
    getarray NEXT_OFF 0 i
    xmath SIZE "NEXT_OFF - OFFSET"
    log "" OFFSET SIZE
    math OFFSET = NEXT_OFF
next i
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Over The Hedge (GC) *.ARC

Post by Mygoshi »

I got 67 .dat files (musics extracted from the AUDIOSTR.ARC PS2 VERSION). How to open them correctly xD
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Over The Hedge (GC) *.ARC

Post by aluigi »

It's raw data and Miles2345 gave you a suggestion. If doesn't work, search for another solution that allows you to read raw data for that specific codec.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Over The Hedge (GC) *.ARC

Post by Mygoshi »

Is there a way to convert the .arc archive or raw data into .genh ? If you know HCS64.com, joshw won to extract the musics from the AUDIOSTR.arc from the PS2 version of this game, and there are .genh files.