TitanFall (.vpk) archives

The Original Forum. Game archives, full of resources. How to open them? Get help here.
User avatar
cra0
ultra-veteran
ultra-veteran
Posts: 431
Joined: Fri Apr 27, 2012 9:37 am
Has thanked: 29 times
Been thanked: 183 times
Contact:

TitanFall (.vpk) archives

Post by cra0 » Sat Feb 15, 2014 11:02 am

Image

TitanFall

.VPK archives hold the game assets

Code: Select all

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
Last edited by cra0 on Wed Apr 02, 2014 8:12 am, edited 4 times in total.

Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1638
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 62 times
Been thanked: 818 times

Re: TitanFall (.vpk) archives

Post by Ekey » Sat Feb 15, 2014 1:23 pm

Share link for download client.

Pepper
mega-veteran
mega-veteran
Posts: 278
Joined: Thu Apr 17, 2008 3:48 am
Has thanked: 47 times
Been thanked: 38 times

Re: TitanFall (.vpk) archives

Post by Pepper » Sat Feb 15, 2014 10:08 pm

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.

Zench
VIP member
VIP member
Posts: 209
Joined: Sun May 04, 2008 9:11 pm
Has thanked: 4 times
Been thanked: 52 times
Contact:

Re: TitanFall (.vpk) archives

Post by Zench » Sun Feb 16, 2014 3:44 am

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.

kalleoskar
beginner
Posts: 35
Joined: Thu Dec 25, 2008 3:17 pm
Has thanked: 12 times

Re: TitanFall (.vpk) archives

Post by kalleoskar » Mon Feb 17, 2014 6:01 am

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

User avatar
cra0
ultra-veteran
ultra-veteran
Posts: 431
Joined: Fri Apr 27, 2012 9:37 am
Has thanked: 29 times
Been thanked: 183 times
Contact:

Re: TitanFall (.vpk) archives

Post by cra0 » Mon Feb 17, 2014 10:49 am

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: Select all

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

Zench
VIP member
VIP member
Posts: 209
Joined: Sun May 04, 2008 9:11 pm
Has thanked: 4 times
Been thanked: 52 times
Contact:

Re: TitanFall (.vpk) archives

Post by Zench » Tue Feb 18, 2014 5:16 am

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.

kalleoskar
beginner
Posts: 35
Joined: Thu Dec 25, 2008 3:17 pm
Has thanked: 12 times

Re: TitanFall (.vpk) archives

Post by kalleoskar » Tue Feb 18, 2014 6:24 am

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 ? :

Zench
VIP member
VIP member
Posts: 209
Joined: Sun May 04, 2008 9:11 pm
Has thanked: 4 times
Been thanked: 52 times
Contact:

Re: TitanFall (.vpk) archives

Post by Zench » Tue Feb 18, 2014 6:35 am

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.

kalleoskar
beginner
Posts: 35
Joined: Thu Dec 25, 2008 3:17 pm
Has thanked: 12 times

Re: TitanFall (.vpk) archives

Post by kalleoskar » Tue Feb 18, 2014 7:18 am

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 =)

User avatar
cra0
ultra-veteran
ultra-veteran
Posts: 431
Joined: Fri Apr 27, 2012 9:37 am
Has thanked: 29 times
Been thanked: 183 times
Contact:

Re: TitanFall (.vpk) archives

Post by cra0 » Tue Feb 18, 2014 11:20 am

-EDIT-

Ok all fixed actually :mrgreen:

will update tool in a day or so sit tight!

Image

kalleoskar
beginner
Posts: 35
Joined: Thu Dec 25, 2008 3:17 pm
Has thanked: 12 times

Re: TitanFall (.vpk) archives

Post by kalleoskar » Tue Feb 18, 2014 10:53 pm

Cool man!!!

User avatar
alientech
n00b
Posts: 19
Joined: Sat Apr 03, 2010 1:23 pm
Location: Phetchabun, Thailand

Re: TitanFall (.vpk) archives

Post by alientech » Wed Feb 19, 2014 4:29 am

You awesome cra0. So, This program can extract all files in one click? Because I hate to select one-by-one for extract.

sh0ck1
n00b
Posts: 15
Joined: Tue Jan 11, 2011 1:50 pm
Has thanked: 4 times

Re: TitanFall (.vpk) archives

Post by sh0ck1 » Wed Feb 19, 2014 6:06 am

Woot! Great job cra0!

kalleoskar
beginner
Posts: 35
Joined: Thu Dec 25, 2008 3:17 pm
Has thanked: 12 times

Re: TitanFall (.vpk) archives

Post by kalleoskar » Wed Feb 19, 2014 5:06 pm

Look forward of trying the upcoming update, thank you :!:

Post Reply