ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Fri Apr 19, 2019 12:25 pm

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Mon Apr 15, 2019 7:06 pm 

Joined: Thu Jun 09, 2016 1:15 am
Posts: 26
I have a lot of *.RCS with LZS compression

Aluigi, can you do a script to compress and decompress the RCS files?

https://www.dropbox.com/s/qgfw74v79atkn ... t.rcs?dl=0


Top
   
PostPosted: Mon Apr 15, 2019 8:55 pm 

Joined: Sat Apr 13, 2019 4:19 pm
Posts: 12
I'm not Aluigi but here you go :D To recompress, run quickbms with the -r option


Attachments:
LZS decompress.bms [130 Bytes]
Downloaded 4 times
Top
   
PostPosted: Mon Apr 15, 2019 9:14 pm 

Joined: Thu Jun 09, 2016 1:15 am
Posts: 26
Thanks, but I can decompress, but no compress...


Top
   
PostPosted: Mon Apr 15, 2019 10:06 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10174
The correct decompression script is:
Code:
    comtype lzs
    get ZSIZE asize
    xmath SIZE "ZSIZE * 10"
    get NAME basename
    clog NAME 0 ZSIZE SIZE

I don't know where is the rdesktop compression code, I see mppc_expand but not the compression.


Top
   
PostPosted: Mon Apr 15, 2019 11:17 pm 

Joined: Sat Apr 13, 2019 4:19 pm
Posts: 12
:oops: Sorry I'm still pretty new to this, especially compression types. I was skeptical that the decompressed size was the same as the compressed size but it seemed to accept it :P


Top
   
PostPosted: Mon Apr 15, 2019 11:29 pm 

Joined: Thu Aug 07, 2014 10:28 pm
Posts: 219
this page?
https://github.com/FreeRDP/FreeRDP/blob ... dec/mppc.c
int mppc_compress(MPPC_CONTEXT* mppc, BYTE* pSrcData, UINT32 SrcSize, BYTE** ppDstData,
UINT32* pDstSize, UINT32* pFlags)


Top
   
PostPosted: Tue Apr 16, 2019 11:26 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10174
Good but not so easy.

The compressed data doesn't work, it's something related to the history size probably but no solution yet.


Top
   
PostPosted: Tue Apr 16, 2019 11:43 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 10174
I confirm, it's not 100% compatible.


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