Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 12:35

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 
Author Message
 Post subject: zlib ???
PostPosted: 18 Oct 2009 01:39 

Joined: 18 Oct 2009 01:02
Posts: 5
Hi @ All

I have a File he is base on the zlib (I think)
I can decompress the File without fails.
But when i will compress i??m not become the same
compressed Code as first one.

Can anyone help me with this Problem?
I dont know what it is for a Compression.
This File is the Original Compressed File.

DL over RS while UPload only 256 kb size is to smal for the File.
http://rapidshare.com/files/294424479/Impi_MainCode.gz


Top
 Profile  
 
 
 Post subject: Re: zlib ???
PostPosted: 18 Oct 2009 11:33 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
it's normal because differently than the encryption in the compression exist various implementations of the same algorithm.
for example the deflate/zlib one is implemented in various libraries/programs where in 7zip the compression ratio is better than zlib and so on.
then there is also the compression factor (from 0 to 9) which is chosed by the user and can vary.
so if you don't have the same implementation and compression factor used originally you will never have the same output


Top
 Profile  
 
 Post subject: Re: zlib ???
PostPosted: 18 Oct 2009 12:38 

Joined: 16 Oct 2007 18:47
Posts: 23
aluigi wrote:
it's normal because differently than the encryption in the compression exist various implementations of the same algorithm.
for example the deflate/zlib one is implemented in various libraries/programs where in 7zip the compression ratio is better than zlib and so on.
then there is also the compression factor (from 0 to 9) which is chosed by the user and can vary.
so if you don't have the same implementation and compression factor used originally you will never have the same output

which is chosen ;)


Top
 Profile  
 
 Post subject: Re: zlib ???
PostPosted: 18 Oct 2009 21:35 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
arghh, well there are some english words where I launch a coin to choose how to write them :)


Top
 Profile  
 
 Post subject: Re: zlib ???
PostPosted: 19 Oct 2009 18:28 

Joined: 18 Oct 2009 01:02
Posts: 5
aluigi wrote:
it's normal because differently than the encryption in the compression exist various implementations of the same algorithm.
for example the deflate/zlib one is implemented in various libraries/programs where in 7zip the compression ratio is better than zlib and so on.
then there is also the compression factor (from 0 to 9) which is chosed by the user and can vary.
so if you don't have the same implementation and compression factor used originally you will never have the same output



That??s my Problem I need the same setting??s.
But the file does not load this it is.
I dont can C or C++ (only VB6) but for this Lang. gives not a source
from zlib I think i know what is the Problem (the WinBits into the zlib source)
Original it is the value on zlib 15 WinBits, I know I need only 11 WinBits.
I sit on the Problem over 7 Month and it??s really important for me.
I have many Setting??s testet but all are not the rigth one.
Hope I become Help from us.

Greeting??s from Germany
TBX & TEAM


Top
 Profile  
 
 Post subject: Re: zlib ???
PostPosted: 19 Oct 2009 20:19 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
and so? come on it's just the usage of zlib :)
Code:
int deflateInit2 OF((z_streamp strm,
                                     int  level,
                                     int  method,
                                     int  windowBits,
                                     int  memLevel,
                                     int  strategy));


Top
 Profile  
 
 Post subject: Re: zlib ???
PostPosted: 19 Oct 2009 21:32 

Joined: 18 Oct 2009 01:02
Posts: 5
OK I say you then what with has come out.


Top
 Profile  
 
 Post subject: Re: zlib ???
PostPosted: 19 Oct 2009 21:37 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
are you sure that this game doesn't accept your changes because it uses a crc check?
because the windowbits value can be only negative or positive (-15/15) and the compression level (0-9) can't be verified except if the game manually checks the first 2 bytes of the file but it's a senseless check.
so in my opinion it's just a check performed with a crc inside a "whitelist".


Top
 Profile  
 
 Post subject: Re: zlib ???
PostPosted: 19 Oct 2009 22:03 

Joined: 18 Oct 2009 01:02
Posts: 5
It??s not a GameFile it??s a FlashRomFile from a STB. :-)
A CRC is not questioned.

I dont can declare this Function at VB6.
It??s into the .DLL not in my SourceCode.
What I need is a dll with my Setting??s :-)

Huffman and WinBits 11 I hope.

However, it can also be maybe is also not right.
With the help of the however Source I understand it in such a way.

LG


Top
 Profile  
 
 Post subject: Re: zlib ???
PostPosted: 19 Oct 2009 22:23 

Joined: 18 Oct 2009 01:02
Posts: 5
When u compress the File as *.gz then match the first and thje last 4/5 Bytes with the Original File
Lvl 9 zlib.dll 1.1.4 but the Compressed File complett is ca. 200 Bytes to big.
It??s only a little Change what i need that the File war??s smaler.

LG


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 posts ] 

All times are UTC [ DST ]


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:
cron