how to compress file? (zlib compression) [FTS 15]
-
- Posts: 37
- Joined: Wed Aug 25, 2021 10:10 pm
how to compress file? (zlib compression) [FTS 15]
FTS 15 uses zlib compression for data. I decompressed that, edited and I have to compress it back. How to do this?
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: how to compress file? (zlib compression)
Decompressed what file? How? With what tool?
-
- Posts: 37
- Joined: Wed Aug 25, 2021 10:10 pm
Re: how to compress file? (zlib compression)
aluigi wrote:Decompressed what file? How? With what tool?
players.dat
I decompressed that with offzip tool
How to compress it again?
-
- Posts: 37
- Joined: Wed Aug 25, 2021 10:10 pm
Re: how to compress file? (zlib compression)
aluigi wrote:Decompressed what file? How? With what tool?
Luigi?
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: how to compress file? (zlib compression) [FTS 15]
Ok it's just compressed without any format or additional field so you can compress it with packzip or with the following script:
Code: Select all
comtype zlib_compress
get SIZE asize
get NAME filename
string NAME + ".compressed"
clog NAME 0 SIZE SIZE
-
- Posts: 37
- Joined: Wed Aug 25, 2021 10:10 pm
Re: how to compress file? (zlib compression) [FTS 15]
aluigi wrote:Ok it's just compressed without any format or additional field so you can compress it with packzip or with the following script:Code: Select all
comtype zlib_compress
get SIZE asize
get NAME filename
string NAME + ".compressed"
clog NAME 0 SIZE SIZE
I dragged edited file on packzip.exe and nothings happens. What I am doing wrong?
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: how to compress file? (zlib compression) [FTS 15]
packzip must be used from command-line because it needs two arguments: input and output file.
Output file must not exist or it will be overwritten instead of being recreated.
I suggest to use the script.
Output file must not exist or it will be overwritten instead of being recreated.
I suggest to use the script.