XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Mon Sep 25, 2017 12:09 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 80 posts ]  Go to page 1, 2, 3, 4, 5, 6  Next
Author Message
 Post subject: Resident Evil 7 demo PAK file
PostPosted: Mon Dec 19, 2016 1:33 pm 
Offline
n00b

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














You can make the ads go away by registering

The free RE7 demo has been released for PC.

Code:
http://store.steampowered.com/app/530620/


Its data is contained in a single 3 gig PAK file. It runs on a new in-house engine. For the hell of it I tried Street Fighter's UE4 pak file unpacker but as expected it failed.


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Mon Dec 19, 2016 2:09 pm 
Offline
beginner

Joined: Fri Nov 06, 2009 12:57 pm
Posts: 38
Has thanked: 0 time
Have thanks: 0 time
What format RE6 used?


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Mon Dec 19, 2016 2:34 pm 
Offline
beginner

Joined: Thu Sep 10, 2015 9:06 pm
Posts: 25
Has thanked: 3 times
Have thanks: 23 times
Furthest I've got so far:

Code:
struct REPak_Header // 0x10 bytes
{
   uint32_t magic;
   uint32_t version; // ?
   uint32_t num_entries;
   uint32_t unk; // checksum?
};

struct REPak_Entry // 0x30 bytes
{
   uint64_t unk0; // data hash / filename hash / crypto key?
   uint64_t offset; // offset into the pak file
   uint64_t size;
   uint64_t unk18; // flags? 0x1EA0 for most files
   uint64_t unk20; // more flags? 0x1 for most files
   uint64_t unk28; // data hash / filename hash / crypto key?
};


Not very far I know, seems they're protecting the demo with Denuvo to make RE even harder :( Maybe that could mean there's some goodies in here somewhere though.

Looks like file data is compressed/encrypted too, also can't see any filenames in there, could be using a filename-hash system like Fox Engine does?

EDIT: Saw some strings mentioning the saves using blowfish encryption, perhaps the package does too.


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Mon Dec 19, 2016 3:46 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: 748 times
Code:
struct PAKheader
{
   uint32_t dwID; // KPKA
   uint32_t dwVersion; // 4
   uint32_t dwTotalFiles;
   uint32_t dwUnknown0; //???
};

struct PAKEntry
{
   uint32_t dwLowerHash; // Hash of filename in Lowercase
   uint32_t dwUpperHash; // Hash of filename in Uppercase
   uint64_t dwOffset;
   uint64_t dwZSize; // Compressed size
   uint64_t dwSize; // Uncompressed size
   uint64_t dwFlag; // 1 - if compressed / 0 - uncompressed
   uint32_t dwUnknown2; //???
   uint32_t dwUnknown3; //???
};


Compression is Zlib (Deflate)


Last edited by Ekey on Fri Dec 30, 2016 12:48 am, edited 5 times in total.

Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Mon Dec 19, 2016 4:17 pm 
Offline
n00b

Joined: Wed May 21, 2014 2:36 pm
Posts: 18
Has thanked: 1 time
Have thanks: 4 times
Kein wrote:
What format RE6 used?


It used ARC files for the MT-Framework engine.


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Mon Dec 19, 2016 4:35 pm 
Offline
Moderator

Joined: Mon Jul 05, 2010 8:55 pm
Posts: 586
Has thanked: 19 times
Have thanks: 215 times
zzz wrote:
Kein wrote:
What format RE6 used?


It used ARC files for the MT-Framework engine.


For most of the game assets, yes. Except this archive format for RE7 is an altered version of the PAK format used for shaders (in RE5/6) I believe. Though encrypted and/or compressed for RE7.

Cheers.

_________________
Click the thanks button if I helped!


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Mon Dec 19, 2016 10:28 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: 748 times
Simpe script for unpack

Edited: See below


Last edited by Ekey on Fri Dec 30, 2016 3:27 am, edited 5 times in total.

Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Tue Dec 20, 2016 1:03 am 
Offline
ultra-n00b

Joined: Tue Dec 20, 2016 12:50 am
Posts: 3
Has thanked: 1 time
Have thanks: 0 time
Do we know how long it will take before the unpacked files are going to be usable/viewable? I assume they don't work like RE6's files lol


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Wed Dec 21, 2016 9:06 am 
Offline
beginner

Joined: Fri Nov 06, 2009 12:57 pm
Posts: 38
Has thanked: 0 time
Have thanks: 0 time
Aren't they encrypted?


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Wed Dec 21, 2016 2:08 pm 
Offline
Moderator

Joined: Mon Jul 05, 2010 8:55 pm
Posts: 586
Has thanked: 19 times
Have thanks: 215 times
Kein wrote:
Aren't they encrypted?

No.

_________________
Click the thanks button if I helped!


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Wed Dec 21, 2016 2:15 pm 
Offline
beginner

Joined: Fri Nov 06, 2009 12:57 pm
Posts: 38
Has thanked: 0 time
Have thanks: 0 time
Okay, so I suppose some people will tweak existing tools for RE6 to be able to process RE7 data.


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Wed Dec 21, 2016 2:30 pm 
Offline
Moderator

Joined: Mon Jul 05, 2010 8:55 pm
Posts: 586
Has thanked: 19 times
Have thanks: 215 times
Kein wrote:
Okay, so I suppose some people will tweak existing tools for RE6 to be able to process RE7 data.

No, all formats I've seen so far, except the texture format has been altered.

_________________
Click the thanks button if I helped!


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Wed Dec 21, 2016 3:24 pm 
Offline
beginner

Joined: Fri Nov 06, 2009 12:57 pm
Posts: 38
Has thanked: 0 time
Have thanks: 0 time
Gh0stBlade wrote:
Kein wrote:
Okay, so I suppose some people will tweak existing tools for RE6 to be able to process RE7 data.

No, all formats I've seen so far, except the texture format has been altered.

Texture format was altered too at least ARCtool does not work anymore with it


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Thu Dec 29, 2016 11:37 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: 748 times
Well, i'm found algorithm. First and second fileds in entry this is hash'es of file name in lowercase and uppercase. To be continue :)


Top
 Profile  
 
 Post subject: Re: Resident Evil 7 demo PAK file
PostPosted: Fri Dec 30, 2016 3:26 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: 748 times
Here we go. Script updated, names included (~2000 unknown names at this moment). Have fun :)


Attachments:


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



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

All times are UTC + 1 hour


Who is online

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