ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Oct 16, 2018 5:32 pm

All times are UTC




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Fri Jan 26, 2018 3:07 am 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 188
Hi, i started with Resident Evil 4 on PS4, if have a litte different, PC used lfs and PS4 used fen, to decompress lfs file, i used quickbms script:

Code:
comtype xmemdecompress
get name basename
log MEMORY_FILE 0 0
goto 0x10
get chunks long
append
for i = 0 < chunks
get zsize short
get size short
if size = 0
    math size = 0x10000
endif
get offset long
math offset + 0x13
clog MEMORY_FILE offset zsize size
next i
append
get size asize MEMORY_FILE
log name 0x00 size MEMORY_FILE


Anyone please help me decompress those files from ps4. Many thanks!

My example files: https://drive.google.com/file/d/1zUyRQW ... sp=sharing


Top
   
PostPosted: Fri Jan 26, 2018 4:51 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9043
I have made a script from scratch:
http://aluigi.org/bms/re4_lfs_fen.bms


Top
   
PostPosted: Sat Jan 27, 2018 4:09 am 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 188
aluigi wrote:
I have made a script from scratch:
http://aluigi.org/bms/re4_lfs_fen.bms

Thanks! Your script's working perfect. Thanks for quick reply.


Top
   
PostPosted: Sun Jan 28, 2018 12:54 am 

Joined: Sun Dec 21, 2014 7:43 pm
Posts: 23
aluigi wrote:
I have made a script from scratch:
http://aluigi.org/bms/re4_lfs_fen.bms


can you add suport for ps3 files ?


Attachments:
re4FilesPs3.zip [1.86 MiB]
Downloaded 40 times
Top
   
PostPosted: Sun Jan 28, 2018 7:02 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9043
yes and no.
Basically they are just "segs" files with a "ZLDR" magic at the beginning, so it's enough to strip the first 8 bytes and it's done.
But there is a problem with the obtained segs file because it uses lzma compression instead of deflate (no problem here) and some chunks can't be decompressed for some unknown reasons not depending by the algorithm or quickbms, the first byte of the lzma stream should be 0 or 1 while it's a "random" number in these particular chunks.
So both this and the segs scripts have been updated but you can't extract the data.

Long story short: no.


Top
   
PostPosted: Sun Jan 28, 2018 10:49 am 

Joined: Sun Dec 21, 2014 7:43 pm
Posts: 23
aluigi wrote:
yes and no.
Basically they are just "segs" files with a "ZLDR" magic at the beginning, so it's enough to strip the first 8 bytes and it's done.
But there is a problem with the obtained segs file because it uses lzma compression instead of deflate (no problem here) and some chunks can't be decompressed for some unknown reasons not depending by the algorithm or quickbms, the first byte of the lzma stream should be 0 or 1 while it's a "random" number in these particular chunks.
So both this and the segs scripts have been updated but you can't extract the data.

Long story short: no.


sad....

T-T

thanks anyway o/


Top
   
PostPosted: Sat May 12, 2018 3:48 am 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 188
aluigi wrote:
yes and no.
Basically they are just "segs" files with a "ZLDR" magic at the beginning, so it's enough to strip the first 8 bytes and it's done.
But there is a problem with the obtained segs file because it uses lzma compression instead of deflate (no problem here) and some chunks can't be decompressed for some unknown reasons not depending by the algorithm or quickbms, the first byte of the lzma stream should be 0 or 1 while it's a "random" number in these particular chunks.
So both this and the segs scripts have been updated but you can't extract the data.

Long story short: no.


Hi aluigi. Could you help me unpack *.pack file in Resident Evil 4 (PS4 version) by quickbms script, please? My example file: https://1drv.ms/u/s!AqHXyzDaH_sGiUeSH_M4RiejLiF9

Thanks!


Top
   
PostPosted: Sat May 12, 2018 9:16 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9043
Script 0.1.2


Top
   
PostPosted: Sat May 12, 2018 12:50 pm 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 188
aluigi wrote:
Script 0.1.2

Thanks! That's great!


Top
   
PostPosted: Tue May 15, 2018 12:47 am 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 188
I tested, it working, could you help again with .udas files?
Old script working on pc:

Code:
goto 0x400
get files long
getdstring dummy 0xc
math extoffset = files
math extoffset * 4
math extoffset + 0x410
for i = 0 < files
get name basename
#get name2 basename
log MEMORY_FILE 0 0
put i byte MEMORY_FILE
goto 0x00 MEMORY_FILE
getvarchr index MEMORY_FILE 0
get offset long
savepos TMP
get nextoffset long
math nextoffset - offset
math offset + 0x400
goto extoffset
getdstring ext 3
get dummy byte
savepos extoffset
goto TMP
#string name + "/"
#string name + name2
string name + "_"
string name + index
string name + "."
string name + ext
if ext = "MDT"
log name offset nextoffset
endif
next i


My example files: https://1drv.ms/u/s!AqHXyzDaH_sGiUiROpQa4q_u6TO_
Thanks!


Top
   
PostPosted: Tue May 15, 2018 1:19 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 9043
udas seems a very messy format


Top
   
PostPosted: Tue May 15, 2018 11:19 pm 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 188
aluigi wrote:
udas seems a very messy format

Thanks. I only use .mdt files for translate. Hope you can help, please.


Top
   
PostPosted: Fri May 18, 2018 4:51 am 

Joined: Mon Oct 06, 2014 3:30 am
Posts: 188
I just collect some small files for example: https://1drv.ms/u/s!AqHXyzDaH_sGiUmMK-MBy0mN-j5o
Thanks!

Maybe different le and be?

Image


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 13 posts ] 

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