zip a wc3 map? w3x file

Talk about anything you want, but keep it within the rules, please.
User avatar
Pyro7778
Forum Staff
Posts: 321
Joined: April 17th, 2008, 10:04 pm
Location: Pittsburgh

Re: zip a wc3 map? w3x file

Post by Pyro7778 »

I tried doing that with 7-zip and the files were the same size, and I even had a few cases where they were bigger lol
For Info on PCI, Haxorizor, and upcoming project check out:
Team-Pyro's HomePage
User avatar
Dekar
Forum Drunk
Posts: 2899
Joined: January 17th, 2007, 4:22 pm
Has thanked: 1 time
Been thanked: 1 time

Re: zip a wc3 map? w3x file

Post by Dekar »

wc3 maps already have a really high entropy, you can't condense the data further without removing information.

edit:
actually it's just a theory that entropy limits the maximum compression... though it seems to be right since no one has proven it wrong so far!
Don't pm me with Warcraft questions, this is a forum so just make a post!
In the world of thinking we are all immigrants. -Robert Nozick
initialD
Some Honorary Title
Posts: 1713
Joined: June 8th, 2007, 5:08 am
Title: Angry Bird

Re: zip a wc3 map? w3x file

Post by initialD »

I extract J file from a map and then zip it. The J file became smaller. Since a particular part from a wc3 can be compressed. I think we could actually make the wc3 map smaller, if only we have a software designed for that.
Or
the J file are already compressed when we put it into w3x file?
User avatar
Dekar
Forum Drunk
Posts: 2899
Joined: January 17th, 2007, 4:22 pm
Has thanked: 1 time
Been thanked: 1 time

Re: zip a wc3 map? w3x file

Post by Dekar »

initialD wrote:the J file are already compressed when we put it into w3x file?
As I told you, MPQ compresses... the entropy increases.
Putting stuff inside a wc3 map is like zipping them.
Don't pm me with Warcraft questions, this is a forum so just make a post!
In the world of thinking we are all immigrants. -Robert Nozick
User avatar
risker
Forum Staff
Posts: 351
Joined: June 8th, 2008, 3:05 am
Location: Australia

Re: zip a wc3 map? w3x file

Post by risker »

Whats entropy mean?
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: zip a wc3 map? w3x file

Post by Ozzapoo »

CUT THE SPAM.
initialD wrote:the J file are already compressed when we put it into w3x file?
Think of it like this. A w3x file is just a fancy type of 'zip' file. And (as you know) a zip file can't be compressed much more when it's already been compressed.
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
User avatar
Dekar
Forum Drunk
Posts: 2899
Joined: January 17th, 2007, 4:22 pm
Has thanked: 1 time
Been thanked: 1 time

Re: zip a wc3 map? w3x file

Post by Dekar »

Entropy is the level of randomness. You can only compress files with low entropy, which will result in a file with high entropy.
As you might now, text files are easy to compress, that's a result of the fact that ascii uses only 7 of 8bit.
So the resulting entropy is really really low. If you compress them you get a file with high entropy using all 8bit.

You may think of entropy as the density of information.
Don't pm me with Warcraft questions, this is a forum so just make a post!
In the world of thinking we are all immigrants. -Robert Nozick