Papers Please,wfLZEx files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
imjinjia
Posts: 29
Joined: Wed Jul 18, 2018 11:10 pm

Papers Please,wfLZEx files

Post by imjinjia »

Hello!

I 've been trying to translate this gamse,but I don't know how to uncompress these wflz files or compress it back.
please help me,thank you!

samples
samples.zip
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Papers Please,wfLZEx files

Post by aluigi »

I'm not sure if that's really compressed.

I found a reference to "ZLFW" (the magic at offset 0x10) in the double_dragon_neon.bms script and in that case there is no compression involved.
Also most of the samples files like "bf" and "d7" don't look compressed because their 16bit or 32bit structs are intact.
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Papers Please,wfLZEx files

Post by rabatini »

aluigi wrote:I'm not sure if that's really compressed.

I found a reference to "ZLFW" (the magic at offset 0x10) in the double_dragon_neon.bms script and in that case there is no compression involved.
Also most of the samples files like "bf" and "d7" don't look compressed because their 16bit or 32bit structs are intact.


wfLZ is the compression algorithm used by WayForward's internal console/pc engine (http://www.wayforward.com).

https://github.com/ShaneYCG/wflz

You can find algorithm here.

Need to build arguments to decompress and compress.
because the github just have a example.

but all algorithm is in there.

maybe implement in quickbms in future?

here is for some games of wayfoward

https://github.com/meh2481/wfLZEx
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Papers Please,wfLZEx files

Post by aluigi »

Ah, that wflz, yeah that compression is already available in quickbms as: comtype wflz

It's just that I didn't have any script in my collection using it
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Papers Please,wfLZEx files

Post by rabatini »

aluigi wrote:Ah, that wflz, yeah that compression is already available in quickbms as: comtype wflz

It's just that I didn't have any script in my collection using it


maybe his file can be the first? hahahaha
imjinjia
Posts: 29
Joined: Wed Jul 18, 2018 11:10 pm

Re: Papers Please,wfLZEx files

Post by imjinjia »

rabatini wrote:
aluigi wrote:I'm not sure if that's really compressed.

I found a reference to "ZLFW" (the magic at offset 0x10) in the double_dragon_neon.bms script and in that case there is no compression involved.
Also most of the samples files like "bf" and "d7" don't look compressed because their 16bit or 32bit structs are intact.


wfLZ is the compression algorithm used by WayForward's internal console/pc engine (http://www.wayforward.com).

https://github.com/ShaneYCG/wflz

You can find algorithm here.

Need to build arguments to decompress and compress.
because the github just have a example.

but all algorithm is in there.

maybe implement in quickbms in future?

here is for some games of wayfoward

https://github.com/meh2481/wfLZEx


Thank you for helping me.
imjinjia
Posts: 29
Joined: Wed Jul 18, 2018 11:10 pm

Re: Papers Please,wfLZEx files

Post by imjinjia »

aluigi wrote:Ah, that wflz, yeah that compression is already available in quickbms as: comtype wflz

It's just that I didn't have any script in my collection using it


Boss,i'm counting on you!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Papers Please,wfLZEx files

Post by aluigi »

ok, done:
http://aluigi.org/bms/zlfw.bms

I don't know if it's better to dump the decompressed data in separate files or in one.
The header of ZLFW makes me think that it's just one file so that's how I programmed the script.
imjinjia
Posts: 29
Joined: Wed Jul 18, 2018 11:10 pm

Re: Papers Please,wfLZEx files

Post by imjinjia »

aluigi wrote:ok, done:
http://aluigi.org/bms/zlfw.bms

I don't know if it's better to dump the decompressed data in separate files or in one.
The header of ZLFW makes me think that it's just one file so that's how I programmed the script.



You are a life saver! after decompressing these files,i'll conver it to texture.
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Papers Please,wfLZEx files

Post by rabatini »

imjinjia wrote:
aluigi wrote:ok, done:
http://aluigi.org/bms/zlfw.bms

I don't know if it's better to dump the decompressed data in separate files or in one.
The header of ZLFW makes me think that it's just one file so that's how I programmed the script.



You are a life saver! after decompressing these files,i'll conver it to texture.


Are you pretend to compress to insert this file in the game?
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Papers Please,wfLZEx files

Post by rabatini »

aluigi wrote:ok, done:
http://aluigi.org/bms/zlfw.bms

I don't know if it's better to dump the decompressed data in separate files or in one.
The header of ZLFW makes me think that it's just one file so that's how I programmed the script.


I think you did right programing in just one file.
The compressor works fine in your descompressed data.
only the header, that shoulded to maintain, because when compress, the header is lost.
cic
Posts: 45
Joined: Fri Jan 07, 2022 7:44 pm

Re: Papers Please,wfLZEx files

Post by cic »

aluigi wrote:ok, done:
http://aluigi.org/bms/zlfw.bms

I don't know if it's better to dump the decompressed data in separate files or in one.
The header of ZLFW makes me think that it's just one file so that's how I programmed the script.

Don’t delete it, don’t forget it: viewtopic.php?f=9&t=16634
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Papers Please,wfLZEx files

Post by rabatini »

cic wrote:
aluigi wrote:ok, done:
http://aluigi.org/bms/zlfw.bms

I don't know if it's better to dump the decompressed data in separate files or in one.
The header of ZLFW makes me think that it's just one file so that's how I programmed the script.

Don’t delete it, don’t forget it: viewtopic.php?f=9&t=16634

Spamning topics from colleagues, it will not bring answers for your problem,on the contrary, it will only bring dislike from other users.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Papers Please,wfLZEx files

Post by aluigi »

Hijacking topics of other users is really a shame moreover after I already deleted his previous post few minutes ago.
cic
Posts: 45
Joined: Fri Jan 07, 2022 7:44 pm

Re: Papers Please,wfLZEx files

Post by cic »

aluigi wrote:Hijacking topics of other users is really a shame moreover after I already deleted his previous post few minutes ago.

Sorry. :( I made a mistake.
cic
Posts: 45
Joined: Fri Jan 07, 2022 7:44 pm

Re: Papers Please,wfLZEx files

Post by cic »

rabatini wrote:
cic wrote:
aluigi wrote:ok, done:
http://aluigi.org/bms/zlfw.bms

I don't know if it's better to dump the decompressed data in separate files or in one.
The header of ZLFW makes me think that it's just one file so that's how I programmed the script.

Don’t delete it, don’t forget it: viewtopic.php?f=9&t=16634

Spamning topics from colleagues, it will not bring answers for your problem,on the contrary, it will only bring dislike from other users.

I know it’s a mistake :(
cic
Posts: 45
Joined: Fri Jan 07, 2022 7:44 pm

Re: Papers Please,wfLZEx files

Post by cic »

rabatini wrote:
cic wrote:
aluigi wrote:ok, done:
http://aluigi.org/bms/zlfw.bms

I don't know if it's better to dump the decompressed data in separate files or in one.
The header of ZLFW makes me think that it's just one file so that's how I programmed the script.

Don’t delete it, don’t forget it: viewtopic.php?f=9&t=16634

Spamning topics from colleagues, it will not bring answers for your problem,on the contrary, it will only bring dislike from other users.

Also, it’s not a spam it’s a gift, this website doesn’t use topic contrary dislikes in all dislikes..
Last edited by cic on Fri Mar 11, 2022 4:01 pm, edited 1 time in total.
cic
Posts: 45
Joined: Fri Jan 07, 2022 7:44 pm

Re: Papers Please,wfLZEx files

Post by cic »

aluigi wrote:Hijacking topics of other users is really a shame moreover after I already deleted his previous post few minutes ago.

Dude it was a gift.