XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sat Aug 19, 2017 5:43 pm

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 1609 posts ]  Go to page 1, 2, 3, 4, 5 ... 108  Next
Author Message
 Post subject: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archive
PostPosted: Sat Dec 20, 2014 11:08 pm 
Offline
n00b

Joined: Wed May 21, 2014 2:36 pm
Posts: 18
Has thanked: 1 time
Have thanks: 3 times

Sorry, I can't offer any more help than uploading an example archive, but I suspect people will want this more than your normal custom archive format because of the game's popularity.

Code:
https://www.mediafire.com/?clrtv29a43y3fni


You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Sun Dec 21, 2014 8:55 am 
Offline
mega-veteran
mega-veteran

Joined: Mon May 23, 2011 2:43 am
Posts: 170
Has thanked: 3 times
Have thanks: 7 times
they'll do the same stupid shit they always do. rip models and textures, rip sounds, translate to another language.

what "modding" comes down to these days


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Sun Dec 21, 2014 1:58 pm 
Offline
ultra-n00b

Joined: Sun Jan 01, 2012 10:35 am
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
Actually, My personal idea was to find a decent David Hayter Impersonator and do a Classic Snake Voice Pack..

Or give Arin Hanson a Million dollars for METAL GEAR AWESOME V..


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Sun Dec 21, 2014 2:02 pm 
Offline
veteran

Joined: Fri Jun 01, 2012 10:08 am
Posts: 121
Has thanked: 31 times
Have thanks: 63 times
That's just a WMV file

odrin wrote:
they'll do the same stupid shit they always do. rip models and textures, rip sounds, translate to another language.

what "modding" comes down to these days


Well I've modded new maps in metal gear online and such, there's a lot that can be done with metal gear games, I do dislike how people assume just because a games on pc now it will be modded, like they don't think of the fact that someone puts effort in to actually reverse the file formats etc.


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Sun Dec 21, 2014 6:04 pm 
Offline
ultra-n00b

Joined: Sun Jan 01, 2012 10:35 am
Posts: 6
Has thanked: 0 time
Have thanks: 0 time
Indeed, Data0 is a renamed WMV file.

Data1 and Data2, However, seem to be encrypted formats:

(From cra0kalo on ZenHAX)

Quote:

Metal Gear Solid Ground Zeros PC
-------------------------------------
Exe: MgsGroundZeroes.exe
Protection: VMProtect

Data Archives
data_00.g0s
data_01.g0s
data_02.g0s


Texture Extension
.ftex
Assets/tpp/mecha/sbh/Pictures/sbh0_intr2_def_srm.ftex
Assets/tpp/chara/dds/Pictures/dds0_body0_def_srm.ftex
Assets/tpp/chara/dds/Pictures/dds0_body0_def_nrm.ftex

you need to dump the exe to load it in IDA
They may be using blowfish


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Mon Dec 22, 2014 1:34 pm 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Tue May 16, 2006 10:55 pm
Posts: 596
Location: Czestochowa, Poland
Has thanked: 13 times
Have thanks: 15 times
odrin wrote:
they'll do the same stupid shit they always do. rip models and textures, rip sounds, translate to another language.

what "modding" comes down to these days


And theres something wrong with that?

If a game requires modding to be a good game, then its obviously not a good game in the first place.

Some games suit the modding scene and others don't.

A game like skyrim isn't story centric its gameplay centric, modding improves the gameplay elements, and its built with modding in mind, its easier for people to make entirely new things, more than just textures and models. Other games, like lets say MGSV, are story centric, most people are going to simply translate, swap out audio, maybe a model swap or 2, thats it, not all games improve with mods, and to be honest from my perspective, most of the mods seem pointless anyway.

Theres this whole 'high and mighty' attitude around modding games, I can't stand this, some people mod, some don't, thats all there is to it, if someones such a fantastic modder, go off and actually design original games.

_________________
"Lemons are people nice hardworking & honest people too..."


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Mon Dec 22, 2014 2:19 pm 
Offline
Moderator
User avatar

Joined: Sun May 18, 2008 3:01 pm
Posts: 2431
Has thanked: 56 times
Have thanks: 1175 times
The archive format is easy the file table is at the end and its very easy format.
The file names are hashes.
And the files are encrypted like every other metal gear game so someone will have to reverse it to make a proper extractor.
Also someone will need to dump the file names to match the file name hashes.


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Mon Dec 22, 2014 11:33 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 746 times
chrrox wrote:
The archive format is easy the file table is at the end and its very easy format.
The file names are hashes.
And the files are encrypted like every other metal gear game so someone will have to reverse it to make a proper extractor.
Also someone will need to dump the file names to match the file name hashes.

You can make temporary script for dump encrypted data's? I'll look what I can do with this.


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Tue Dec 23, 2014 2:20 am 
Offline
Moderator
User avatar

Joined: Sun May 18, 2008 3:01 pm
Posts: 2431
Has thanked: 56 times
Have thanks: 1175 times
it might be a 64bit string instead of 32bit not sure.
Code:
# Metal Gear Solid 5 Ground Zeroes
#Partaial quickbms script by chrrox
get TSIZE asize
math TSIZE - 36
goto TSIZE
print "%TSIZE%"
get arcsize long
getdstring null 0xC
get files long
set tblstart files
math tblstart * 16
math tblstart + 36
get TSIZE asize
math TSIZE - tblstart
goto TSIZE
for i = 0 < files
get CHKSUM long
get HASH long
get offset long
get size long
math offset * 16
string NAME p= "%08X.dat" HASH
log NAME offset size
next i


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Tue Dec 23, 2014 10:41 am 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 746 times
Hm strange hashes.


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Tue Dec 23, 2014 11:17 am 
Offline
advanced

Joined: Fri Dec 30, 2011 12:26 pm
Posts: 53
Has thanked: 0 time
Have thanks: 37 times
Hash is 64 bit. First two bytes is an extention ID, rest is calculated from name string (without extention if id != 0). Same was in previous MGS games except it was 32 bit and only 1 byte for an extention ID.

The original names of data_01.g0s and data_02.g0s are texture.qar and data.qar respectively. In PS3 version there was no data.qar file, instead files were unpacked and the game was using pathid_list_ps3.bin to match hashes and filenames.
In MgsGroundZeroes.exe I have found a reference to pathid_list_win64_stm.bin and when I created an empty file with that name the game crashed. So I guess the game's still using it and if we find a way to extract data.qar (data_02.g0s) there will be no need for repacking it.


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Tue Dec 23, 2014 12:00 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 746 times
What a hash algorithm they used for previous game versions? I see CRC64 in this game with ecma tab.


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Tue Dec 23, 2014 1:35 pm 
Offline
advanced

Joined: Fri Dec 30, 2011 12:26 pm
Posts: 53
Has thanked: 0 time
Have thanks: 37 times
I have discovered the encryption/decryption method! The tool is coming up shortly.

Ekey wrote:
What a hash algorithm they used for previous game versions? I see CRC64 in this game with ecma tab.

I don't know the name of the algorythm (and it probably doesn't have one) but here's the code I have reversed from MGS 3 a long time ago. Same code was used for MGS 2 and MGS 4 as well.
Code:
int CHashMGS::GetIDFromString(char *str)
{
   int hash = 0;
   for (; *str; str++)
   {
      int v1 = hash >> 19;
      int v0 = hash << 5;
      hash = ((v0 | v1) + *str) & 0xFFFFFF;
   }
   if (hash) return hash;
   return 1;
}


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Tue Dec 23, 2014 4:39 pm 
Offline
veteran

Joined: Fri Jun 01, 2012 10:08 am
Posts: 121
Has thanked: 31 times
Have thanks: 63 times
Sergeanur wrote:
I don't know the name of the algorythm (and it probably doesn't have one) but here's the code I have reversed from MGS 3 a long time ago. Same code was used for MGS 2 and MGS 4 as well.
Code:
int CHashMGS::GetIDFromString(char *str)
{
   int hash = 0;
   for (; *str; str++)
   {
      int v1 = hash >> 19;
      int v0 = hash << 5;
      hash = ((v0 | v1) + *str) & 0xFFFFFF;
   }
   if (hash) return hash;
   return 1;
}


Nice, I was trying to figure this out for MGS4 for quite a while.


Top
 Profile  
 
 Post subject: Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
PostPosted: Tue Dec 23, 2014 6:54 pm 
Offline
advanced

Joined: Fri Dec 30, 2011 12:26 pm
Posts: 53
Has thanked: 0 time
Have thanks: 37 times
Ok here's the tool.
link



Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1609 posts ]  Go to page 1, 2, 3, 4, 5 ... 108  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 8 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