Madagascar (PC) - .STREAM extractor/repacker?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
frogz2007
Posts: 118
Joined: Sun Dec 14, 2014 3:56 pm

Madagascar (PC) - .STREAM extractor/repacker?

Post by frogz2007 »

If anybody could get these .stream files extracted and repacked, then awesome! Because i'd like to try and mod the game.

Link to file:

https://www.dropbox.com/s/vu2oo7ti72xx6 ... tream?dl=0
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PC) - .STREAM extractor/repacker?

Post by Mygoshi »

.STREAM? I thought it would contain audio data but apparently no.
Last edited by Mygoshi on Wed Feb 17, 2021 9:27 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Madagascar (PC) - .STREAM extractor/repacker?

Post by aluigi »

I don't see a file table for an easy extraction, they are just... stuff.
Anyway the following works for the first small part of the file you provided and it's totally useless imho:

Code: Select all

goto 0x250
for
    get SIZE long
    getdstring DUMMY 0xc
    getdstring NAME 0x40
    savepos OFFSET
    math SIZE -= 0x14
    log NAME OFFSET SIZE
    math OFFSET + SIZE
    goto OFFSET
next
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PC) - .STREAM extractor/repacker?

Post by Mygoshi »

The script doesn't work with the golf.stream file and I really want to extract it like frogz2007 did.

And for kingofny.stream, it extracts the files without extensions, do you know more for these files? Thanks

Link to golf.stream:, https://mega.co.nz/#!gchmTSxY!JybXrNz7G ... x79vchMRcA
Last edited by Mygoshi on Wed Feb 17, 2021 9:28 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Madagascar (PC) - .STREAM extractor/repacker?

Post by aluigi »

Set the first goto to 0x24c instead of 0x250.
Finding the first offset is very simple, locate the first name of 0x40 bytes ("SMOKECLOUD" in this case) and then subtract 0x10 to that offset.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PC) - .STREAM extractor/repacker?

Post by Mygoshi »

Thank you very much!
Last edited by Mygoshi on Wed Feb 17, 2021 9:37 pm, edited 2 times in total.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PC) - .STREAM extractor/repacker?

Post by Mygoshi »

I remember there was another script to extract the content, but I don't know where I found it.
Last edited by Mygoshi on Wed Feb 17, 2021 9:38 pm, edited 2 times in total.
Mygoshi
Posts: 654
Joined: Mon Oct 27, 2014 1:49 pm

Re: Madagascar (PC) - .STREAM extractor/repacker?

Post by Mygoshi »

Found it, it was from PS23D format website: (expired)
Last edited by Mygoshi on Wed Feb 17, 2021 9:39 pm, edited 2 times in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Madagascar (PC) - .STREAM extractor/repacker?

Post by aluigi »

I don't think that it's good to use that script because you will only dump a small part of the file.
So even if you solve the problem of the offset, there is a big chunk of the file that is not extracted.
jacek40
Posts: 1
Joined: Wed Oct 05, 2016 11:28 am

Re: Madagascar (PC) - .STREAM extractor/repacker?

Post by jacek40 »

Link does not work Give me a new cable, I have a question how it works.