Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Death Stranding (PS4)

Post questions about game models here, or help out others!
vladgohn
ultra-n00b
Posts: 1
Joined: Thu Mar 12, 2015 11:02 pm

Re: Death Stranding (PS4)

Post by vladgohn »

Hi, daemon!
I’ve been trying for days to solve the problem of exporting models from Death Stranding. but i'm a newbie. :roll:

• Tell me please, for a successful implementation, I need a fake PKG? :ninja:
• Is there somewhere in the clouds (possibly yours) a given package suitable for decryption? :?:
• I found CUSA of the original version of DS, will this help me solve the problem? :?:
• Also I have both, PS4 + acquired digital copy of the game [roll]

I ask for help, as soon as I can successfully complete this, I will make a video on YouTube to help others [bruce]
https://imgur.com/16R0lJb
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2870 times

Re: Death Stranding (PS4)

Post by daemon1 »

vladgohn wrote: Thu May 21, 2020 11:26 pm • Tell me please, for a successful implementation, I need a fake PKG? :ninja:
no
vladgohn wrote: Thu May 21, 2020 11:26 pm • Is there somewhere in the clouds (possibly yours) a given package suitable for decryption? :?:
no
vladgohn wrote: Thu May 21, 2020 11:26 pm • I found CUSA of the original version of DS, will this help me solve the problem? :?:
no
vladgohn wrote: Thu May 21, 2020 11:26 pm • Also I have both, PS4 + acquired digital copy of the game [roll]
good, but this will not help you
qs12
veteran
Posts: 92
Joined: Sat Sep 21, 2019 12:55 am
Has thanked: 44 times
Been thanked: 13 times

Re: Death Stranding (PS4)

Post by qs12 »

Death Stranding is now released on steam. Will there be PC support in the future?
daemon1
MEGAVETERAN
MEGAVETERAN
Posts: 2647
Joined: Tue Mar 24, 2015 8:12 pm
Has thanked: 65 times
Been thanked: 2870 times

Re: Death Stranding (PS4)

Post by daemon1 »

qs12 wrote: Tue Jul 14, 2020 10:28 pm Death Stranding is now released on steam. Will there be PC support in the future?
PS4 tool can just work with PC. Files must be almost the same.
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

Re: Death Stranding (PS4)

Post by Ekey »

daemon1 wrote:PS4 tool can just work with PC. Files must be almost the same.
Nah, it does not works (for me). There are 3 problems.

1)

Code: Select all

File not found in cache! prefetch/fullgame.prefetch.core
Resolved by copying tool in game directory.

2)

Code: Select all

Необработанное исключение: System.IO.EndOfStreamException: Чтение после конца потока невозможно.
   в System.IO.MemoryStream.InternalReadInt32()
   в ?????????????????????????????????????????.?????????????????????????????????????????(String[] )
3)

Code: Select all

Необработанное исключение: OutOfMemoryException.
Problem 2 and 3 - due to the fact tool protected by some obfuscator (Win10 Pro Lic detect it as Trojan:Win32/Occamy.C > Confuser ??), it is impossible to understand what the error is and why it occurs, because obfuscator protecting all classes, consts, strings and methods names cause it's a .Net project. I just was planning to add decryption code for Naomi's project for supporting encrypted files and wanted to compare some data files, but, apparently, not destiny :)

I suppose that the master key (init hash) is different from the PC version, not sure because I do not know it from PS4 (if PS4 also encrypted as PC of cource). :keke:

Can you tell me what is the identifier for bin files in PS4 version? 0x20304050 or 0x21304050?
User avatar
wunk
advanced
Posts: 44
Joined: Thu Dec 23, 2010 9:49 am
Has thanked: 9 times
Been thanked: 32 times
Contact:

Re: Death Stranding (PS4)

Post by wunk »

daemon1 wrote: Wed Jul 15, 2020 4:59 am
qs12 wrote: Tue Jul 14, 2020 10:28 pm Death Stranding is now released on steam. Will there be PC support in the future?
PS4 tool can just work with PC. Files must be almost the same.
It's a different format, the previously mapped out structures will not work.
PC Magic is 0x21304050, PS4 is likely 0x20304050, but it could also be that Death Stranding is using a newer iteration of the engine in general as opposed to the file format being a console-difference.
Espio
n00b
Posts: 18
Joined: Mon Jan 08, 2007 12:47 am
Been thanked: 1 time

Re: Death Stranding (PS4)

Post by Espio »

Maybe start work with a movies container? It must have BINK files inside and the structure at the beginning and the end of the file seems just xored.
pkl
ultra-n00b
Posts: 1
Joined: Sun Apr 26, 2020 10:31 pm

Re: Death Stranding (PS4)

Post by pkl »

This seems very nice but do you plan to make it work for the PC version? It appears to crash on startup.
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

Re: Death Stranding (PS4)

Post by Ekey »

DEElekgolo wrote:It's a different format, the previously mapped out structures will not work.
PC Magic is 0x21304050, PS4 is likely 0x20304050, but it could also be that Death Stranding is using a newer iteration of the engine in general as opposed to the file format being a console-difference.
There is only one difference - an identifier that specifies that the archives are encrypted.

1) Header encrypted
2) Record table encrypted
3) Block table encrypted
4) Files data aslo encrypted
5) Structures have not changed

I have solved the problem with the decrypting of the header and tables. now i ve trying to decrypt content because algorithm is little bit different.
pkl wrote: Thu Jul 16, 2020 7:53 am This seems very nice but do you plan to make it work for the PC version? It appears to crash on startup.
Movies archive also encrypted :)
User avatar
Yretenai
veteran
Posts: 126
Joined: Tue Jan 28, 2020 4:39 pm
Has thanked: 20 times
Been thanked: 138 times

Re: Death Stranding (PS4)

Post by Yretenai »

Ekey wrote: Thu Jul 16, 2020 3:00 amI just was planning to add decryption code for Naomi's project for supporting encrypted files and wanted to compare some data files, but, apparently, not destiny :)
Someone found my HZD project it looks like :)
Ekey wrote: Thu Jul 16, 2020 3:00 am I suppose that the master key (init hash) is different from the PC version, not sure because I do not know it from PS4 (if PS4 also encrypted as PC of cource). :keke:

Can you tell me what is the identifier for bin files in PS4 version? 0x20304050 or 0x21304050?
0x20304050 according to the files I have, PS4 version is also not encrypted.
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

Re: Death Stranding (PS4)

Post by Ekey »

Yretenai wrote:Someone found my HZD project it looks like :)
Ah, you here :D This is an interesting project :)

I'll give information on encryption later.
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

Re: Death Stranding (PS4)

Post by Ekey »

Here is my test tool for decrypting and dump the header and tables (source's included). :keke:
Not a professional code, but I think it's okay :)

PS: There is no code to decrypt files yet.
You do not have the required permissions to view the files attached to this post.
User avatar
wunk
advanced
Posts: 44
Joined: Thu Dec 23, 2010 9:49 am
Has thanked: 9 times
Been thanked: 32 times
Contact:

Re: Death Stranding (PS4)

Post by wunk »

Ekey wrote: Thu Jul 16, 2020 5:32 pm Here is my test tool for decrypting and dump the header and tables (source's included). :keke:
Not a professional code, but I think it's okay :)

PS: There is no code to decrypt files yet.
Lookin good 👌👌

I got some C++ code up here too
https://github.com/Wunkolo/DecimaTools

Code: Select all

Magic:                   21304050
Version:                 6DD02CEF
FileSize:                 2004617
DataSize:                 2131705
FileTableCount:                 4
ChunkTableCount:                9
MaxChunkSize:              262144
        ---------------------------------------
        EntryID:                      797099076
        Unknown04:                   1833628696
        Unknown08:             3F821535414ED8FD
        Offset:                               0
        Size:                           1354751
        Unknown1C:                     7496F6C2
        ---------------------------------------
        EntryID:                     4172398392
        Unknown04:                   2136868349
        Unknown08:             D3D19A0EB596F903
        Offset:                         1354751
        Size:                            145618
        Unknown1C:                     3D7F6668
        ---------------------------------------
        EntryID:                     3114963283
        Unknown04:                   4088237356
        Unknown08:             3E20BD7DB9BE7960
        Offset:                         1532501
        Size:                            599204
        Unknown1C:                     58D97D4F
        ---------------------------------------
        EntryID:                     1447133094
        Unknown04:                   3705277707
        Unknown08:             130EA489D652BD55
        Offset:                         1500369
        Size:                             32132
        Unknown1C:                     00176D49
        ---------------------------------------------
        OffsetUncompressed:                          
        SizeUncompresed:                       262144
        Unknown0C:                           030DFD13
        OffsetCompressed:                         456
        SizeCompressed:                        213931
        Unknown1C:                           5859112B
        ---------------------------------------------
        OffsetUncompressed:                    262144
        SizeUncompresed:                       262144
        Unknown0C:                           AE3F6A60
        OffsetCompressed:                      214387
        SizeCompressed:                        258608
        Unknown1C:                           DF45ABE1
        ---------------------------------------------
        OffsetUncompressed:                    524288
        SizeUncompresed:                       262144
        Unknown0C:                           D9A5F8E8
        OffsetCompressed:                      472995
        SizeCompressed:                        259270
        Unknown1C:                           9D9AC56C
        ---------------------------------------------
        OffsetUncompressed:                    786432
        SizeUncompresed:                       262144
        Unknown0C:                           CCE42AAC
        OffsetCompressed:                      732265
        SizeCompressed:                        258467
        Unknown1C:                           9015E633
        ---------------------------------------------
        OffsetUncompressed:                   1048576
        SizeUncompresed:                       262144
        Unknown0C:                           E52D54EF
        OffsetCompressed:                      990732
        SizeCompressed:                        254252
        Unknown1C:                           8A3465A0
        ---------------------------------------------
        OffsetUncompressed:                   1310720
        SizeUncompresed:                       262144
        Unknown0C:                           FE5724A2
        OffsetCompressed:                     1244984
        SizeCompressed:                        213497
        Unknown1C:                           EFFCE6F5
        ---------------------------------------------
        OffsetUncompressed:                   1572864
        SizeUncompresed:                       262144
        Unknown0C:                           DBCB4E32
        OffsetCompressed:                     1458481
        SizeCompressed:                        257844
        Unknown1C:                           D961FE10
        ---------------------------------------------
        OffsetUncompressed:                   1835008
        SizeUncompresed:                       262144
        Unknown0C:                           A7CD7DB2
        OffsetCompressed:                     1716325
        SizeCompressed:                        254539
        Unknown1C:                           DF590A89
        ---------------------------------------------
        OffsetUncompressed:                   2097152
        SizeUncompresed:                        34553
        Unknown0C:                           A5DAA534
        OffsetCompressed:                     1970864
        SizeCompressed:                         33753
        Unknown1C:                           5D58BE0F
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1823
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1058 times

Re: Death Stranding (PS4)

Post by Ekey »

Great job! Do you looked code for decrypt files data? Seems MD5 is involved in decryption and there other key (salt) are used :)

Code: Select all

static unsigned long lpSalt2[4] = {
       0x6C084A37, 0x7E159D95, 0x3D5AF7E8, 0x18AA7D3F};
or

Code: Select all

static unsigned char lpSalt2[16] = {
       0x37, 0x4A, 0x08, 0x6C, 0x95, 0x9D, 0x15, 0x7E,
       0xE8, 0xF7, 0x5A, 0x3D, 0x3F, 0x7D, 0xAA, 0x18};
As you wish :)
User avatar
Yretenai
veteran
Posts: 126
Joined: Tue Jan 28, 2020 4:39 pm
Has thanked: 20 times
Been thanked: 138 times

Re: Death Stranding (PS4)

Post by Yretenai »

DEElekgolo wrote: Thu Jul 16, 2020 5:35 pm
Ekey wrote: Thu Jul 16, 2020 5:32 pm Here is my test tool for decrypting and dump the header and tables (source's included). :keke:
Not a professional code, but I think it's okay :)

PS: There is no code to decrypt files yet.
Lookin good 👌👌

I got some C++ code up here too
https://github.com/Wunkolo/DecimaTools
Mind slapping a license on that project? I'm planning on rewriting ProjectZeroDawn to C++ when the PC port releases and I'd love to have a C++ point of reference.
Post Reply