Lords of the fallen .pkg
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Lords of the fallen .pkg
Anybody have an idea how to unpack this format?
Sample
https://mega.co.nz/#!48YEHBYB!7rl8JdUWw ... D3Kn_Osn3Q
Sample
https://mega.co.nz/#!48YEHBYB!7rl8JdUWw ... D3Kn_Osn3Q
-
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Re: Lords of the fallen .pkg
Here quick script. No names. Some files compressed by LZ4 and have additional header with size's of chunks.
Code: Select all
# 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.
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: Lords of the fallen .pkg
Thanks. And what about compressed files? Is there a way do decompress/unpack them?
-
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Re: Lords of the fallen .pkg
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
-
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Re: Lords of the fallen .pkg
Okay. Here my decompressor for tests.
Examples:
File : 000002f8.dat
It's means file data inside not compressed, just having additional header and automaticly dump useful data on disk.
File : 000000d1.dat
File data compressed, automaticly decompressing and dump data on disk. Also it's will implemented in my gui unpacker later.
Have fun!
Code: Select all
[Usage]
LoFDecompressor <pScrFile> <pDstFile>
[Example]
LoFDecompressor 00000060.dat 00000060.dat.dec
Examples:
File : 000002f8.dat
Code: Select all
[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: Select all
[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!
Last edited by Ekey on Thu Oct 30, 2014 5:27 pm, edited 1 time in total.
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: Lords of the fallen .pkg
Ekey wrote: Also it's will implemented in my gui unpacker later.
Awesome! Will it have filenames? And what about reimport?
-
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Re: Lords of the fallen .pkg
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.
-
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Re: Lords of the fallen .pkg
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.
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: Lords of the fallen .pkg
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.
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
-
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Re: Lords of the fallen .pkg
If someone have PS3 / Xbox version share EBOOT.ELF / DEFAULT.XEX
PS: thx Luigi.
PS: thx Luigi.
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: Lords of the fallen .pkg
https://en.wikipedia.org/wiki/Lords_of_the_Fallen
Platform(s): Microsoft Windows, PlayStation 4, Xbox One
Platform(s): Microsoft Windows, PlayStation 4, Xbox One
-
- Posts: 320
- Joined: Sun Aug 10, 2014 12:49 pm
Re: Lords of the fallen .pkg
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
-
- Posts: 7
- Joined: Sat Nov 01, 2014 3:56 pm
Re: Lords of the fallen .pkg
aluigi wrote:This is my script:
http://aluigi.org/papers/bms/others/lor ... fallen.bms
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.)
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Lords of the fallen .pkg
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).
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).
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: Lords of the fallen .pkg
What about reimport?
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Lords of the fallen .pkg
Almost all the files are "chunked" (splitted in multiple compressed parts) so they are not supported in reimporting
-
- Posts: 1383
- Joined: Sat Aug 09, 2014 2:34 pm
Re: Lords of the fallen .pkg
Well if you need i can make packer but without compression.
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: Lords of the fallen .pkg
It would be nice, but will game work with uncompressed files?