XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sun Sep 24, 2017 8:12 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 33 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Thu May 25, 2017 11:15 am 
Offline
veteran
User avatar

Joined: Wed Nov 17, 2010 2:57 pm
Posts: 116
Location: Germany
Has thanked: 72 times
Have thanks: 26 times

@devilsnake88: very nice work on making it a video tutorial! However, i really recommend to convert at least the normal maps through Noesis. Photoshop loads the Blue channel as flat grey, however it is supposed to be white with some details in it: Shotgun example

As for the linked textures: There are 4k versions of them in the files. Also both NR and GPA don't really know what to do with the normal and gloss maps of this game. It doesn't surprise me all that much. I think getting textures directly from the game files and using Noesis on everything but the gloss maps is the best solution. Gloss maps (.8a,etc) only properly work in Photoshop.

Either way make sure you unpack all the games .pak files, then it's mostly easy to find things. Path to preorder shotgun is this:
d:\...\Objects\weapons\ShotgunPreord\1P\
for the mesh check the .skinm here:
d:\...\Objects\weapons\Shotgun\1P\ShotgunPreorder1P_01.skinm
Sometimes characters or items also have a .cfg file, but those are lower poly than the according .skinm one.

Morgan's models (male and female) are in:
d:\...\Objects\characters\Humans\MorganKarl\
d:\...\Objects\characters\Player\Male\
d:\...\Objects\characters\Player\Female\

In some cases you might not find textures directly next to the models (pajamas model of Morgan from the beginning for example). If you found the mesh you will see a .mtl file close to it however. Open that in HxD or a text editor and you can read what files it points to and where. In this model's case it points to
"objects/characters/humans/pajamas/textures/morgan_pajamas_genfemalebody01_diff.tif"
you won't find the .tif in that folder, but the .dds version will be there. Eyes, eyelashes, etc are all listed in these .mtl files for the head too.

Oh and one last thing, in "Objects\characters\HumansFinal\" there's a .cdf file for every character you meet in the game. You can open these in HxD or Text editor too and read what models are used to create these characters and where to find them in the files :)

EDIT: d:\...\Objects\Accessories\ has Psychoscope etc

You can make the ads go away by registering



Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Thu May 25, 2017 1:21 pm 
Offline
n00b

Joined: Thu Dec 05, 2013 5:14 pm
Posts: 11
Has thanked: 2 times
Have thanks: 7 times
o0Crofty0o wrote:
@devilsnake88: ...

Thank you.
Yes I know it ;)
Anyway, Great job to you guys.


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Thu May 25, 2017 9:28 pm 
Offline
ultra-n00b

Joined: Thu May 25, 2017 8:22 pm
Posts: 3
Has thanked: 3 times
Have thanks: 0 time
Thanks for all this tools and tutorials, working perfectly :)

For the textures, I personally use a texture converter made for Star Citizen and it works perfectly for every type except cubemaps : https://forums.robertsspaceindustries.c ... -converter (not sure if I'm allowed to post a link to another forums, feel free to remove it)

I have a few problems though. My main goal is to edit one texture and to put it back in the game. I've sorta did it but I was hoping an easier way.
The image I want to edit is "Objects-part5.pak\Objects\Environment\Props\Tech\Monitor_Mounted_A\Monitor_Mounted_A_3x5_diff.dds". Extracting it with the tool above works fine but I have some problems to extract every mipmap manually (info about that later).
- Edited a few pixels, and repacked in the dds did not work (seems logic, replacing 7 sub-image with 1 big). Get a black texture in game.
- Edited only the biggest mipmap (with HxD) had 0 differences In Game, even on Very High.
- Edited every mipmaps (with HxD), filling whole random bytes with FFs works, but the monitors seems to use different mipmaps.

So my main question is, is there a simpler way to edit this image than to edit each byte of each mipmaps ? Or are there at least, some docs about the file format of .dds ?


Now the second part. Extracting the texture with the automated tool gives me a dds with each mipmaps on different layers.
Is it possible to split this file so that the Prey successfully read it ?
I also tried to extract every mipmaps manually using the method o0Crofty0o described previously. It works fine for the biggest one, but all the other ones renders blank, even in Photoshop with the Intel plugin (I did try to export through Noesis, edit the byte to 01 and opening in Photoshop).
Any ideas of what could have gone wrong ?


Sorry for all the questions. I'm a bit new in all this stuff but I'd really like to achieve this. Thanks for reading :D


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Thu May 25, 2017 11:45 pm 
Offline
n00b

Joined: Wed Mar 09, 2016 3:19 pm
Posts: 17
Has thanked: 5 times
Have thanks: 0 time
Either it's me using tool wrong, or Hex Edit method proved better quality of assets.
Gamma, alpha transparency destroying the image or else
Normal maps are unusable if gained through this tool, just for me for some reason

http://imgur.com/a/qdnkc

First one is obtained via tool, second one via hex edit


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Fri May 26, 2017 12:25 am 
Offline
veteran
User avatar

Joined: Wed Nov 17, 2010 2:57 pm
Posts: 116
Location: Germany
Has thanked: 72 times
Have thanks: 26 times
Yeah i too think the tool doesn't work properly on Prey. Especially the normal maps turn out very wrong and most textures end up too dark.
Thank you anyway :)

Would you mind telling how you inject the textures back into the game at all? I'd like to try, maybe i can figure something out.


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Fri May 26, 2017 7:23 am 
Offline
ultra-veteran
ultra-veteran

Joined: Mon Oct 27, 2008 12:11 am
Posts: 369
Location: Slovakia
Has thanked: 35 times
Have thanks: 97 times
As far as I know, Sir Kane's tool just decrypts the zip archive and there is no manipulating with its content. So you are barking up the wrong tree :)


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Fri May 26, 2017 5:21 pm 
Offline
ultra-n00b

Joined: Thu May 25, 2017 8:22 pm
Posts: 3
Has thanked: 3 times
Have thanks: 0 time
I've used the tool to extract "flat" textures, didn't mess with normal maps at all. But since it's made for another game, the results might be messed up, yeah.

The way I edit and reinject the textures is to edit each mipmap byte by byte with HxD, putting them back in the .zip the decryption tool gave me, and renaming it to .pak. The game doesn't seem to care if it's signed or encrypted and loads it anyway. It's the only thing I could think of that worked.

For example, I filled each mipmap (from .1 to .6, didn't edit the header one) with a different value for each one, from AA to FF. Here is the result : http://i.imgur.com/mRBmGor.jpg (the original one : http://i.imgur.com/sopMvQh.jpg )

As merlinsvk said, my questions might be off-topic there, and if you guys say so, I'll create another thread :D


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Fri May 26, 2017 8:10 pm 
Offline
n00b

Joined: Wed Mar 09, 2016 3:19 pm
Posts: 17
Has thanked: 5 times
Have thanks: 0 time
OH Spolers!
Well. modding might be interesting, not just retextures.
Problem is, i don't understand why we can't just use CryEngine SDK tools to get assets....


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Sun May 28, 2017 9:01 am 
Offline
ultra-n00b

Joined: Thu May 25, 2017 8:22 pm
Posts: 3
Has thanked: 3 times
Have thanks: 0 time
Alright, I made some good progress on retexturing, figured I would share it here :)
Here's the first edit I managed to put in game (admire my beautiful photoshop skills :P) : http://i.imgur.com/I78niuD.jpg

Now the "how did you do this" :
1. First, you want to know what is the original format of the image. I personally used Nvidia Texture Tools on the header dds.
Mine was BC1 sRGB.
Image

2. Extract your texture using o0Crofty0o's method.
3. Load it up into Photoshop and edit it as you wish.
4. Save the image using the format we found earlier.
5. Generate the mipmaps. Divide your image size by 2, save it on the good format. Do it again until you've reached the same amount of mipmaps the game has.
There might be a way to generate them automatically that I don't know of.
Image

6. Now, open every dds you've generated and remove their header (the 94 first bytes) and name them the same way the game originally did (.dds.6 for example)
7. Replace the files in the decrypted pak, rename it to .pak and replace the original crypted file by this new one.
8. Enjoy :D.

PS: I'm sorry if that's not very clear, my english is not really good :/


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Sun May 28, 2017 10:55 am 
Offline
n00b

Joined: Wed Mar 09, 2016 3:19 pm
Posts: 17
Has thanked: 5 times
Have thanks: 0 time
I wish there was a tool or batch script to do all that stuff.
Doing it manually is a chore


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Mon May 29, 2017 9:17 pm 
Offline
mega-veteran
mega-veteran

Joined: Fri Aug 22, 2014 6:14 pm
Posts: 166
Has thanked: 9 times
Have thanks: 5 times
How to edit the font this game?

file:http://www.mediafire.com/file/bct7etvv93uyle7/Font.rar


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Wed May 31, 2017 8:11 pm 
Offline
mega-veteran
mega-veteran

Joined: Fri Aug 22, 2014 6:14 pm
Posts: 166
Has thanked: 9 times
Have thanks: 5 times
Taner038 wrote:
How to edit the font this game?

file:http://www.mediafire.com/file/bct7etvv93uyle7/Font.rar


Anyone?


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Fri Jun 09, 2017 9:22 pm 
Offline
mega-veteran
mega-veteran

Joined: Fri Aug 22, 2014 6:14 pm
Posts: 166
Has thanked: 9 times
Have thanks: 5 times
Up.


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Sun Jun 11, 2017 4:06 am 
Offline
ultra-n00b

Joined: Sun Jun 11, 2017 3:59 am
Posts: 5
Has thanked: 0 time
Have thanks: 0 time
So I found the files for the maps inside the UI, in Textures/ArkAutoMaps/, but they're all low-detail. They don't include the pathways, stairs, etc. Is there something I'm missing for the extra detail? I've done a lot of searching inside the file system, and I can't seem to find anything else. I was also looking for the UI textures for the workstations, and the small avatar images for the TranScribe audio logs, and can't seem to find those either. Is there a different .pak file other than Objects and Textures that they might be hiding in?


Top
 Profile  
 
 Post subject: Re: Prey (2017) pak decryption tool
PostPosted: Sun Jun 11, 2017 2:10 pm 
Offline
veteran

Joined: Mon Aug 06, 2012 4:14 am
Posts: 94
Has thanked: 0 time
Have thanks: 61 times
Gamedata.pak, then Libs\UI\Textures.



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

All times are UTC + 1 hour


Who is online

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