ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Sun Nov 19, 2017 2:07 pm

All times are UTC




Post new topic  Reply to topic  [ 43 posts ]  Go to page 1 2 3 Next
Author Message
 Post subject: Lords of the fallen .pkg
PostPosted: Wed Oct 29, 2014 10:35 am 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
Anybody have an idea how to unpack this format?

Sample

https://mega.co.nz/#!48YEHBYB!7rl8JdUWw ... D3Kn_Osn3Q


Top
   
PostPosted: Wed Oct 29, 2014 12:11 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 715
Here quick script. No names. Some files compressed by LZ4 and have additional header with size's of chunks.

Code:
# Lords Of The Fallen (PKG format)
#
# Written by Ekey (h4x0r)
#
# script for QuickBMS http://quickbms.aluigi.org

goto 0x498

do
   get DUMMY long
   get OFFSET long
   get NULL long
   get SIZE long
   get SIZED long
   get HASH long
   log "" OFFSET SIZE
while OFFSET != 0


Last edited by Ekey on Wed Oct 29, 2014 1:19 pm, edited 1 time in total.

Top
   
PostPosted: Wed Oct 29, 2014 1:00 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
Thanks. And what about compressed files? Is there a way do decompress/unpack them?


Top
   
PostPosted: Wed Oct 29, 2014 1:51 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 715
I'll look it later if Luigi will help ;). I see function function for decompress chunks HANDLE Fledge::Core::ResourcePackageBundled::ms_DecompressChunkSemaphores. I guess it's not standard function from LZ4 library. Or is there such a function? I have a old version LZ4 library :)


Top
   
PostPosted: Thu Oct 30, 2014 4:34 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 715
Okay. Here my decompressor for tests.

Code:
[Usage]
        LoFDecompressor <pScrFile> <pDstFile>
[Example]
        LoFDecompressor 00000060.dat 00000060.dat.dec


Examples:

File : 000002f8.dat
Code:
[FILE INFO]: This file not compressed!
        Size: 11184976


It's means file data inside not compressed, just having additional header and automaticly dump useful data on disk.

File : 000000d1.dat
Code:
[FILE INFO]
        Decompressed Size: 6383796
        Maximum Chunks Size: 1572792
        Compressed Size: 2260636
        Chunks Count: 5

[CHUNKS INFO]
        Chunk[1] - Offset: 00000024, Compressed Size: 562694
        Chunk[2] - Offset: 0008962E, Compressed Size: 589553
        Chunk[3] - Offset: 00119523, Compressed Size: 459268
        Chunk[4] - Offset: 0018972B, Compressed Size: 616174
        Chunk[5] - Offset: 0021FE1D, Compressed Size: 32891


File data compressed, automaticly decompressing and dump data on disk. Also it's will implemented in my gui unpacker later.

Have fun! :geek:


Attachments:
LoFDecompressor_0.1.rar [28.61 KiB]
Downloaded 158 times


Last edited by Ekey on Thu Oct 30, 2014 5:27 pm, edited 1 time in total.
Top
   
PostPosted: Thu Oct 30, 2014 5:11 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
Ekey wrote:
Also it's will implemented in my gui unpacker later.


Awesome! Will it have filenames? And what about reimport?


Top
   
PostPosted: Thu Oct 30, 2014 5:25 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 715
spider91 wrote:
Awesome! Will it have filenames?

I don't know. Maybe.

spider91 wrote:
And what about reimport?

Nothing. I do not have game for test packer.


Top
   
PostPosted: Thu Oct 30, 2014 6:46 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 715
GUI unpacker out (Decompressing files are implemented). About hashes - I have pirated game version but is not working. Unfortunately I do not know which algorithm is used. In game library i found 2 hash function djb2 and sdbm but no good results. Who knows? :(


Last edited by Ekey on Sat Oct 01, 2016 3:40 pm, edited 1 time in total.

Top
   
PostPosted: Thu Oct 30, 2014 7:29 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
Quote:
I have pirated game version but is not working


If you need i can provide you a game from family sharing on steam, so you can launch it.


Top
   
PostPosted: Sat Nov 01, 2014 3:45 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7110
This is my script:
http://aluigi.org/papers/bms/others/lor ... fallen.bms


Top
   
PostPosted: Sat Nov 01, 2014 6:00 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 715
If someone have PS3 / Xbox version share EBOOT.ELF / DEFAULT.XEX

PS: thx Luigi.


Top
   
PostPosted: Sat Nov 01, 2014 10:09 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
https://en.wikipedia.org/wiki/Lords_of_the_Fallen

Platform(s): Microsoft Windows, PlayStation 4, Xbox One


Top
   
PostPosted: Sun Nov 02, 2014 12:09 am 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 715
Oh lol. Okay.


Top
   
PostPosted: Sun Nov 02, 2014 6:56 am 

Joined: Sun Aug 10, 2014 12:49 pm
Posts: 241
Ekey wrote:
If someone have PS3 / Xbox version share EBOOT.ELF / DEFAULT.XEX

PS: thx Luigi.



Not yet mate, once i have it ill send you files :)


Top
   
PostPosted: Sun Nov 02, 2014 9:12 am 

Joined: Sat Nov 01, 2014 3:56 pm
Posts: 7
aluigi wrote:


Works perfectly, however the first patch updated one of the .pck files and that one will no longer unpack, I was hoping to open it to see if there was a way to remove the chromatic aberration effect since it's pretty extreme at the moment.
(It will be fixed eventually in a patch according to the developers so it's not a big problem but it would be interesting to see if anything can be done before that patch is released.)

http://www4.zippyshare.com/v/53079432/file.html

That's the file, it's around 20 MB.

It doesn't seem like repacking the files work but it would be fun to be able to open this packed archive even so. :)
(There is a patch folder with loose files - even in the original version of the game - which I guess could work but then the file name would be needed and I guess getting those would be difficult.)


Top
   
PostPosted: Sun Nov 02, 2014 9:56 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7110
Thanks, script updated to version 0.1.1.

The problem was that sometimes the last chunk is not compressed.
There are no flags that tell if a chunk is compressed or not, so I check the output size of the file (if size of compressed data is same of remaining byte to reach the output size).


Top
   
PostPosted: Sun Nov 02, 2014 11:52 am 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
What about reimport?


Top
   
PostPosted: Sun Nov 02, 2014 12:00 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7110
Almost all the files are "chunked" (splitted in multiple compressed parts) so they are not supported in reimporting


Top
   
PostPosted: Sun Nov 02, 2014 12:30 pm 

Joined: Sat Aug 09, 2014 2:34 pm
Posts: 715
Well if you need i can make packer but without compression.


Top
   
PostPosted: Sun Nov 02, 2014 2:04 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
It would be nice, but will game work with uncompressed files?


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

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited