XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sat Feb 16, 2019 7:12 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 56 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: TitanFall (.vpk) archives
PostPosted: Sat Feb 15, 2014 11:02 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Fri Apr 27, 2012 9:37 am
Posts: 431
Has thanked: 29 times
Have thanks: 181 times

Image

TitanFall

.VPK archives hold the game assets

Code:
struct VPKDirHeader_t
{
   int32 m_nHeaderMarker;
   int32 m_nVersion;
   int32 m_nDirectorySize;
   int32 m_nEmbeddedChunkSize;
   int32 m_nChunkHashesSize;
   int32 m_nSelfHashesSize;
   int32 m_nSignatureSize;

   VPKDirHeader_t( void )
   {
      m_nHeaderMarker = VPK_HEADER_MARKER;
      m_nVersion = VPK_CURRENT_VERSION;
      m_nDirectorySize = 0;
      m_nEmbeddedChunkSize = 0;
      m_nChunkHashesSize = 0;
      m_nSelfHashesSize = 0;
      m_nSignatureSize = 0;
   }

};



The _dir.vpk files seem to have no compression however the contents do.


Tool Release
Image

Image
Image

You can make the ads go away by registering


_________________
-> Devblog
->cVision - P2C


Last edited by cra0 on Wed Apr 02, 2014 8:12 am, edited 4 times in total.

Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Sat Feb 15, 2014 1:23 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1638
Has thanked: 62 times
Have thanks: 817 times
Share link for download client.


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Sat Feb 15, 2014 10:08 pm 
Offline
mega-veteran
mega-veteran

Joined: Thu Apr 17, 2008 3:48 am
Posts: 278
Has thanked: 47 times
Have thanks: 39 times
after installing (running through the audio decompression phase) the 8gb vpk holds the sounds as raw big endian riff data. that's as much as I can figure out.


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Sun Feb 16, 2014 3:44 am 
Offline
VIP member
VIP member

Joined: Sun May 04, 2008 9:11 pm
Posts: 209
Has thanked: 4 times
Have thanks: 52 times
I did some digging and found that the compression it uses is lzham Alpha 8 (you need to get it from svn). Set the dictionary size to 20. Some files aren't compressed (e.g. audio tracks).

_________________
And I said, "The well has finally run dry." So then that will be my battle cry.


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Mon Feb 17, 2014 6:01 am 
Offline
beginner

Joined: Thu Dec 25, 2008 3:17 pm
Posts: 35
Has thanked: 12 times
Have thanks: 0 time
So nice that op and other ones are lookin into this game ! I tried your program just to look around, if we are lucky depinding on your extract/pack/unpack additions we can change scripts, modify models, change the ai, many other things :D
Its built on the source engine, heavly modified but that means models, and script will work


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Mon Feb 17, 2014 10:49 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Fri Apr 27, 2012 9:37 am
Posts: 431
Has thanked: 29 times
Have thanks: 181 times
Zench wrote:
I did some digging and found that the compression it uses is lzham Alpha 8 (you need to get it from svn). Set the dictionary size to 20. Some files aren't compressed (e.g. audio tracks).


Hey I tried using
Code:
lzham_decompress_memory

Image
with the uncompressed size/compressed size/dictionary size and it returns 4 as the error. Could you explain how you tried it

_________________
-> Devblog
->cVision - P2C


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Tue Feb 18, 2014 5:16 am 
Offline
VIP member
VIP member

Joined: Sun May 04, 2008 9:11 pm
Posts: 209
Has thanked: 4 times
Have thanks: 52 times
I actually just modified lzhamtest as a quick hack to make sure it was working. The function you're using should work just fine. Error code 4 means it failed to initialize the decompressor state, and it looks like the only way this can happen is if the params struct (called options in your screenshot) is wrong. I would check that.

_________________
And I said, "The well has finally run dry." So then that will be my battle cry.


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Tue Feb 18, 2014 6:24 am 
Offline
beginner

Joined: Thu Dec 25, 2008 3:17 pm
Posts: 35
Has thanked: 12 times
Have thanks: 0 time
Zench wrote:
I actually just modified lzhamtest as a quick hack to make sure it was working. The function you're using should work just fine. Error code 4 means it failed to initialize the decompressor state, and it looks like the only way this can happen is if the params struct (called options in your screenshot) is wrong. I would check that.


Zench do you mean you are able to extract files from the packages with that hack ? :


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Tue Feb 18, 2014 6:35 am 
Offline
VIP member
VIP member

Joined: Sun May 04, 2008 9:11 pm
Posts: 209
Has thanked: 4 times
Have thanks: 52 times
kalleoskar wrote:
Zench do you mean you are able to extract files from the packages with that hack ? :
Yes, I tested it out on a couple files. It's not really automated; instead of making it myself I figured cra0 could add it to his nice looking tool. Repacking is technically possible but probably wouldn't let you play online.

_________________
And I said, "The well has finally run dry." So then that will be my battle cry.


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Tue Feb 18, 2014 7:18 am 
Offline
beginner

Joined: Thu Dec 25, 2008 3:17 pm
Posts: 35
Has thanked: 12 times
Have thanks: 0 time
Unexpected good newsa :) I was thinking about porting the mechs cockpits to kerbal space program haha, been modding that game for a while, i think they would fit, esp with an robot parts mod that exits.
Cheers for trying things out =)


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Tue Feb 18, 2014 11:20 am 
Offline
ultra-veteran
ultra-veteran
User avatar

Joined: Fri Apr 27, 2012 9:37 am
Posts: 431
Has thanked: 29 times
Have thanks: 181 times
-EDIT-

Ok all fixed actually :mrgreen:

will update tool in a day or so sit tight!

Image

_________________
-> Devblog
->cVision - P2C


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Tue Feb 18, 2014 10:53 pm 
Offline
beginner

Joined: Thu Dec 25, 2008 3:17 pm
Posts: 35
Has thanked: 12 times
Have thanks: 0 time
Cool man!!!


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Wed Feb 19, 2014 4:29 am 
Offline
n00b
User avatar

Joined: Sat Apr 03, 2010 1:23 pm
Posts: 19
Location: Phetchabun, Thailand
Has thanked: 0 time
Have thanks: 0 time
You awesome cra0. So, This program can extract all files in one click? Because I hate to select one-by-one for extract.


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Wed Feb 19, 2014 6:06 am 
Offline
n00b

Joined: Tue Jan 11, 2011 1:50 pm
Posts: 15
Has thanked: 4 times
Have thanks: 0 time
Woot! Great job cra0!


Top
 Profile  
 
 Post subject: Re: TitanFall (.vpk) archives
PostPosted: Wed Feb 19, 2014 5:06 pm 
Offline
beginner

Joined: Thu Dec 25, 2008 3:17 pm
Posts: 35
Has thanked: 12 times
Have thanks: 0 time
Look forward of trying the upcoming update, thank you :!:



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

All times are UTC + 1 hour


Who is online

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