XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Fri Aug 17, 2018 10:01 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: [PC] The Godfather 2 The Game
PostPosted: Thu Jun 23, 2016 4:34 am 
Offline
advanced

Joined: Sun Mar 28, 2010 4:10 am
Posts: 50
Has thanked: 1 time
Have thanks: 7 times
Hi everyone,

I'd love to get my hands on the soundtrack from The Godfather 2 The Game, and it seems like it uses a pretty common EA archive format, similar to what The Godfather and The Dead Space games used. This game has massive .VIV files at its root, then some other formats distributed throughout the game. Namely, I think I'm interested in a particular .STR file - one named emx_global_folder_stream.str and placed in a global/audio folder. I believe this may have my music, or at least something to that effect.

For reference, there's a topic here about Dead Space 2 which involved Rick making an entire suite of tools targeting Visceral games, the same company that made The Godfather 2. Unfortunately his tools can't seem to read The Godfather 2's resources - they report incorrect magic/too large headers. I'll try to post some headers/snippets tomorrow, but so far has anyone had any success with this game?

Update: Here's a hex-view of the first VIV file in the game directory, taking note that the first four bytes are 42 49 47 46 or BIGF. Referring to a post in the aforementioned DS2 thread, someone wrote a BMS that apparently expects an ID of "BIGH"? Maybe that's the issue here?



Referring to the wiki, there is a page called EA BIG BIGF Archive with a header that matches my file. Checking the file though, the archive size doesn't seem to match up according to the spec. In my file, the archive size is supposedly defined as bytes D0 5E F4 6B or dec 3,495,883,883. However, the file size reported by Windows is 1,811,177,168 bytes. Maybe there's a compressed/uncompressed difference going on here?


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Last edited by tgp1994 on Fri Jun 24, 2016 11:13 pm, edited 3 times in total.

Top
 Profile  
 
 Post subject: Re: [PC] The Godfather 2 The Game
PostPosted: Fri Jun 24, 2016 4:57 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1602
Has thanked: 32 times
Have thanks: 1038 times
There was never a case when visceral music was located in .str files.
Do you have a list of files you get after extracting VIV archives?


Top
 Profile  
 
 Post subject: Re: [PC] The Godfather 2 The Game
PostPosted: Fri Jun 24, 2016 9:43 pm 
Offline
advanced

Joined: Sun Mar 28, 2010 4:10 am
Posts: 50
Has thanked: 1 time
Have thanks: 7 times
The problem is that I can't even open the VIV files, Rick's tools report that the magic is incorrect.

Edit: I've been updating the OP with some information I'm currently gathering.

Edit2: I've downloaded Visceral's sourcecode so I can start taking a look at it. He is expecting a magic number 0x42494748 (BIGH) which the Dead Space games use for some reason, while GF2 uses BIGF as stated before. Interestingly, there's no wiki page on the BIGH file :P

Also interesting is a comment where rick scans in the file size int:

Code:
input.ReadValueU32(true); // :wtc:


That function indicates that the value read in is little endian, while apparently everything else is big endian. A little curve ball there which explains why I was getting a strange number in my BIGF header before. When I flip the bytes to account for endianness now:



Hey, it matches up! So far it looks like the file archives are identical, but I haven't even tested my modifications to rick's tool yet.

Update: After some googling, it looks like watto's Game Extractor could handle the VIV/BIGF format. I've downloaded it and so far it's able to read the archive just fine, I think I may have my work cut out for me.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: [PC] The Godfather 2 The Game
PostPosted: Sat Jun 25, 2016 1:20 am 
Offline
advanced

Joined: Sun Mar 28, 2010 4:10 am
Posts: 50
Has thanked: 1 time
Have thanks: 7 times
Ok, I've gotten much farther than I though! I'm currently trying to tackle one of the sound files, which has an extension exa.snu.

The four byte file header is 03 08 00 04 which doesn't seem to convert to any ASCII very nicely. Just looking at the hex in general, it appears that there isn't much data until offset 28-ish. Here's a screenshot:



Initial googling has only directed me to discussions on other variations of the SNU format, so maybe this one is a little special...

Updates: I've been playing with the ealayer3 tool and I think it might be a possibility. Running it without any parameters fails immediately. Some people suggested (again in Dead Space 2) to use offset 32, which doesn't work here. Looking at the hex though, it seems like actual data is at offset 40. This is what appears to be the "header":

Code:
03 08 00 04 C5 A1 02 00 60 50 00 00 20 00 00 00 04 0C 7D 00 40 54 38 A4 00 00 00 00 00 00 00 00 00 10 00 00 00 00 00 00

Code:
....Å¡..`P.. .....}.@T8¤................


When I tell ealayer3 to start at offset 40, here's what it outputs:

Code:
L: single block loader incorrect because of compression
L: header B loader incorrect because of block type
L: headerless loader correct
P: EAL3 ver. 6 and 7 incorrect with exception: Ver. 6 and 7 header: granule size set incorrectly.
P: EAL3 ver. 5 incorrect with exception: Sample rate index field invalid.


Right now, I wonder if I'm just fumbling around for the right offset or if this is actually an incompatible format...?


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: [PC] The Godfather 2 The Game
PostPosted: Sat Jun 25, 2016 3:10 am 
Offline
advanced

Joined: Sun Mar 28, 2010 4:10 am
Posts: 50
Has thanked: 1 time
Have thanks: 7 times
Finally, I've got it! The last program I needed was ToWav (site in Russian, just find the download button near the bottom). I did come across this program on Xentax before, but the version linked there was a packed executable that was likely a trojan. This one doesn't set off my virus scanner, although I wish the author would post the source code.


Top
 Profile  
 
 Post subject: Re: [PC] The Godfather 2 The Game
PostPosted: Sat Jun 25, 2016 6:22 am 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1602
Has thanked: 32 times
Have thanks: 1038 times
Yes, VIV archives are really simple structured, so no wonder there are many programs that can handle it.


Top
 Profile  
 
 Post subject: Re: [PC] The Godfather 2 The Game
PostPosted: Sat Jun 25, 2016 6:32 am 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1602
Has thanked: 32 times
Have thanks: 1038 times
tgp1994 wrote:
the version linked there was a packed executable that was likely a trojan.


It was never a trojan, just antiviruses false-detected it. You know, I once made a simple program with only a couple lines of code to split an archive similar to this VIV and a big icon of the game it was for. And it was detected as a trojan by 20 of 50 antiviruses on virustotal.


Top
 Profile  
 
 Post subject: Re: [PC] The Godfather 2 The Game
PostPosted: Sat Jun 25, 2016 1:54 pm 
Offline
advanced

Joined: Sun Mar 28, 2010 4:10 am
Posts: 50
Has thanked: 1 time
Have thanks: 7 times
daemon1 wrote:
tgp1994 wrote:
the version linked there was a packed executable that was likely a trojan.


It was never a trojan, just antiviruses false-detected it. You know, I once made a simple program with only a couple lines of code to split an archive similar to this VIV and a big icon of the game it was for. And it was detected as a trojan by 20 of 50 antiviruses on virustotal.


Yet somehow the version I've downloaded from that website has a way lower detection rate? I mean, I dunno. If you write a program that simple and it gets picked up by nearly half of the major AV programs, you must be doing something wrong :P


Top
 Profile  
 
 Post subject: Re: [PC] The Godfather 2 The Game
PostPosted: Sat Jun 25, 2016 2:00 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1602
Has thanked: 32 times
Have thanks: 1038 times
tgp1994 wrote:
Yet somehow the version I've downloaded from that website has a way lower detection rate?


That's just because its much older version, having much more formats to handle.

tgp1994 wrote:
If you write a program that simple and it gets picked up by nearly half of the major AV programs, you must be doing something wrong :P


No. Because I know it had ABSOLUTELY NO VIRUSES. So this is because AV programs can't detect anything correctly. People are actually forced to make efforts to have AV programs don't false-detect their clean code.


Top
 Profile  
 
 Post subject: Re: [PC] The Godfather 2 The Game
PostPosted: Wed Apr 25, 2018 1:47 pm 
Offline
ultra-n00b

Joined: Sat Sep 13, 2014 12:35 am
Posts: 2
Has thanked: 1 time
Have thanks: 0 time
Just confirming that Game Extractor and ToWav work perfectly; thx to anyone involved.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group