ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Dec 12, 2017 5:41 pm

All times are UTC




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Nov 01, 2017 3:11 pm 

Joined: Fri Apr 28, 2017 10:48 am
Posts: 6
I am using your amazing tool with this script:

http://aluigi.altervista.org/bms/ps_lz77.bms

The file :
https://drive.google.com/open?id=0B2552 ... kg4TlQxSmM

The script works perfectly, but, how can I revert the process? To be able to compress the file in the same Lz77 format again.

Thanks in advance!


Last edited by Eldinen on Wed Nov 01, 2017 5:17 pm, edited 1 time in total.

Top
   
PostPosted: Wed Nov 01, 2017 4:27 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7228
Have you tried to use the decompressed file as-is with the original name and checking if the game loads it?
Because that lz77 seems a sort of gzip-like file, a single compressed file with a "LZ77" magic.

Worst case scenario you have to create a fake recompressor on your own (compressed size bigger than the uncompressed one)


Top
   
PostPosted: Wed Nov 01, 2017 5:18 pm 

Joined: Fri Apr 28, 2017 10:48 am
Posts: 6
I added the file I am trying to compress

https://drive.google.com/open?id=0B2552 ... kg4TlQxSmM

I havent tried if the game works with the decompressed file, in anycase, I guess I should put some fake header I guess.
Anyway, I will try.


Top
   
PostPosted: Wed Nov 01, 2017 7:46 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7228
A fake header is not enough mainly because it's not that easy, if you know C feel free to check the function ps_lz77_decompress in the src\unz.c source code of quickbms


Top
   
PostPosted: Wed Nov 01, 2017 10:02 pm 

Joined: Fri Apr 28, 2017 10:48 am
Posts: 6
Yes, i know C, but it isnot my main programming language hehe.

But, if you know how decompress the file with your algorithm, cant you revert the process?


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 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