Dark Souls Remastered (PC)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Dark Souls Remastered (PC)

Post by InKviZ »

Who will help with unpacking and packing archive Dark Souls Remastered (PC version)
Archives in format .dcx
sergop
Posts: 125
Joined: Mon Jul 31, 2017 2:28 am

Re: Dark Souls Remastered (PC)

Post by sergop »

Can someone help? I want to unpack/pack files as well.
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Dark Souls Remastered (PC)

Post by Acewell »

Script for Quickbms - supports "Dark Souls Remastered" dcx, bnd, tpf, and chrtpfbdt/chrtpfbhd pairs. :D
*script updated Feb 27, 2019*
DarkSouls_Remastered.zip



i seem to recall there being tools that might work with all these formats too, ahh yes the Binder tool here
https://github.com/Atvaark/BinderTool
Last edited by Acewell on Wed Feb 27, 2019 6:48 pm, edited 2 times in total.
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Dark Souls Remastered (PC)

Post by Delutto »

InKviZ wrote:Archives in format .dcx
I need more samples, BND3 files from your samples don't have compressed data, so I can't determine which field is the size and which is de compressed size.
Anyway, test tool (extraction only) works with your samples, but without more samples I can go on.
See new version below.
Last edited by Delutto on Sun May 27, 2018 7:33 pm, edited 1 time in total.
sergop
Posts: 125
Joined: Mon Jul 31, 2017 2:28 am

Re: Dark Souls Remastered (PC)

Post by sergop »

Delutto wrote:
InKviZ wrote:Archives in format .dcx
I need more samples, BND3 files from your samples don't have compressed data, so I can't determine which field is the size and which is de compressed size.
Anyway, test tool (extraction only) works with your samples, but without more samples I can go on.Dark_Souls_Remastered_DCX_Tool(Extraction_test).7z

I hope that these files will help you.
https://ufile.io/e5hi8
https://ufile.io/f41y5
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Re: Dark Souls Remastered (PC)

Post by InKviZ »

Dark Souls Remastered DCX Tool - Works fine. Unpacks all text, textures, and fonts. Thanks!!! Delutto for the program:)
I look forward to adding imports.
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Re: Dark Souls Remastered (PC)

Post by InKviZ »

FILE:
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Dark Souls Remastered (PC)

Post by Acewell »

i know my previous post was invisible for whatever reason, but i
decided to combine all three scripts into one for convenience :lol:
the script is attached it to my previous post :)
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Re: Dark Souls Remastered (PC)

Post by InKviZ »

Acewell wrote:i know my previous post was invisible for whatever reason, but i
decided to combine all three scripts into one for convenience :lol:
the script is attached it to my previous post :)


Thank you for your help!
Your script works great! Thank you again ;)
InKviZ
Posts: 124
Joined: Fri Oct 24, 2014 2:55 pm

Re: Dark Souls Remastered (PC)

Post by InKviZ »

How to Delutto success with import????
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Dark Souls Remastered (PC)

Post by Delutto »

Acewell wrote:i combined all 3 scripts into one so is easier to keep track of them :)
DarkSouls_Remastered.zip
Very nice! Only a few considerations:
In BND3 format, the field before FILES can be 0x70 instead 0x74, in this case file structure doesn't have the last field "ZSIZE", by the way I check all game files and found none BND3 file with compressed data.
In TPF files, the field after Magic is the DataBlock size, sum of the all data.

Updated version: full extraction and convertion of the all data know.
Dark_Souls_Remastered_DCX_Tool.7z

InKviZ wrote:How to Delutto success with import????
Not implemented yet. I got bored, maybe I'll just make a FMG tool for texts, so you can use the Acewell script to reimport.
Nook
Posts: 1
Joined: Wed May 30, 2018 6:49 pm

Where are the item ids of Dark Souls Remastered

Post by Nook »

There are only names and description in "msg",so where are the item ids of Dark Souls Remastered.
Martins
Posts: 1
Joined: Mon Jun 04, 2018 12:50 pm

Re: Dark Souls Remastered (PC)

Post by Martins »

Acewell wrote:i know my previous post was invisible for whatever reason, but i
decided to combine all three scripts into one for convenience :lol:
the script is attached it to my previous post :)



Hi, thanks for the script, but it don´t seem to work with most of the DCX and TPF files from the game,could you take a look at them? i uploaded some samples, hopefully these files aren´t very different from the others with the same extension.

Samples: http://www.mediafire.com/file/2u6wv6psi6vapkz/DSR_file_smaples.rar/file
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Dark Souls Remastered (PC)

Post by Acewell »

your dcx samples are very different from the ones posted before, they are missing the header
but they do look compressed and each likely contains data for only a single texture judging by
the file size and file name.
my script never had support for the chrtpfbdt and chrtpfbhd pairs included in your samples,
i could probably make a script for that too though. :)
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Dark Souls Remastered (PC)

Post by Delutto »

Martins wrote:Hi, thanks for the script, but it don´t seem to work with most of the DCX and TPF files from the game,could you take a look at them? i uploaded some samples, hopefully these files aren´t very different from the others with the same extension.

Samples: http://www.mediafire.com/file/2u6wv6psi6vapkz/DSR_file_smaples.rar/file
There's no such files on game. Your samples are not from Remastered, probably are from Prepare to Die Edition, which is not the subject of this thread.
MMartins
Posts: 1
Joined: Sun Jun 10, 2018 9:03 pm

Re: Dark Souls Remastered (PC)

Post by MMartins »

Acewell wrote:your dcx samples are very different from the ones posted before, they are missing the header
but they do look compressed and each likely contains data for only a single texture judging by
the file size and file name.
my script never had support for the chrtpfbdt and chrtpfbhd pairs included in your samples,
i could probably make a script for that too though. :)


Thanks, a script for those chrtpfbdt files would be much apreciated, also,if you don´t mind, i would like to ask you about the textures from this game,
I extracted some textures that are in DDS format, i can open and edit it using photoshop with Intel DDS plugin, but i can´t find a way to save it back and reuse ingame.
these textures seems to be in DXT5 or DXT1 format in BC3 compression with 32Bpp,and have a DX10 header.
I tried to save it with NVIDIA Photoshop plugin , and Intel plugin too but there´s no option for such specifications.
Intel plugin has an option for save as DX10 textures but only with 8bpp,but by saving like that don´t work in the game, it causes graphical glitches or even crash the game.
So i would like to ask,do you know of any plugin or tool that alows to save DDS textures with DX10 header, in BC3 compression with 32bpp? I also tested gimp DDS plugin, Noesis and Nvidia texture tool, but so far i had no luck.

I uploaded 2 textures samples, a normal map and a cubemap, if you interested in take a look.

http://www.mediafire.com/file/6qa965hb3 ... s.rar/file





Delutto wrote:There's no such files on game. Your samples are not from Remastered, probably are from Prepare to Die Edition, which is not the subject of this thread.


And why i would bring samples from an older version of the game,LOL? Just because you couldn´t find them ,doesn´t mean those files aren´t there, mate.
Besides one can easily extract any file from Prepare to die using Binder tool and Gibbed´s toolset. Or, even better,could use DSModt to directly mod that game.
Anyways , "chrtpfbdt" files are inside the "chr" folder in main directory of the game ,their pairs "chrtpfbhd" files are inside "chrbnd.dcx" files, you need to extract them to reach it, headerless DCX files containing compressed texture data, are scattered there too. ;)
Doctor Loboto
Posts: 376
Joined: Sun May 31, 2015 2:23 am

Re: Dark Souls Remastered (PC)

Post by Doctor Loboto »

It's true, the chrtpfbdt/chrtpfbhd files are integral for the textures of the larger models. A large amount of them use these files. Bindertool doesn't seem to work with them this time around.
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Dark Souls Remastered (PC)

Post by shadow_lonely »

Acewell wrote:my first script here will decompress the dcx files, the third script will extract the images from the tpf files :)
http://zenhax.com/viewtopic.php?p=30038#p30038

and this script will extract files from the bnd files :)

Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

idstring "BND3"
get UNK long
get UNK long
get UNK long
get FILES long
get TABLE_SZ long //??
get ZERO longlong
for i = 0 < FILES
   get FORTY long
   get SIZE long
   get OFFSET long
   get NUM long //?? duplicate files and names otherwise
   get NAME_OFF long
   get ZSIZE long //?
   savepos TMP
   goto NAME_OFF
   get NAME string
   string NAME | N:\
   string EXT = NAME
   string NAME > 4
   string EXT | .
   string NAME p "%s%04d.%s" NAME NUM EXT
   log NAME OFFSET SIZE
   goto TMP
next i


i combined all 3 scripts into one so is easier to keep track of them :)
DarkSouls_Remastered.zip



i seem to recall there being tools that might work with all these formats too, ahh yes the Binder tool here
https://github.com/Atvaark/BinderTool


Thanks! Could you update .msgbnd.dcx for Dark Souls 3, please?
Image
My example files:
engus.rar

Thank you very much!
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Dark Souls Remastered (PC)

Post by Acewell »

the BinderTool already works to extract your samples:
https://github.com/Atvaark/BinderTool/releases

but here is also an updated bms script that can decompress
the dcx and then you can extract files from the msgbnd with it. :)
DarkSouls3_dcx_msgbnd.zip
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Dark Souls Remastered (PC)

Post by Acewell »

MMartins wrote:a script for those chrtpfbdt files would be much apreciated

i have updated my script here to add support for chrtpfbdt/chrtpfbhd pairs
viewtopic.php?p=35266#p35266
better late than never right? :D

MMartins wrote:i would like to ask,do you know of any plugin or tool that alows to save DDS textures with DX10 header

texconv.exe should be able to build your dx10 headers with the -dx10 switch.
https://github.com/Microsoft/DirectXTex