1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Compression... RAR vs ZIP

Discussion in 'Hardware, Software & Troubleshooting' started by _Lynx, Aug 1, 2005.

  1. _Lynx

    _Lynx Strategic Military Services Staff Member

    Joined:
    Dec 5, 2003
    Messages:
    1,965
    Likes Received:
    8
    I'm currently prepearing mods I've downloaded for record them on a DVD (tired of juggling CD trying to find the one I need) and I decided to try to repack them from zip into rar. I couldn't expected such results, but the size of the files is reduced quite significantly. All the files were compressed using WinRAR 3.00 with the following settings:

    Compression Method: Best

    Compression settings (on "Advanced" tab, button "Compression..."):
    Text Compression: auto
    Audio Compression: auto
    True Color Compression: auto
    Dictionary Size, Kb: 4096
    Enable 32-bit executable (Pentuim) compression: off
    Enable 64-bit executable (Pentuim) compression: off
    Enable delta compression: off

    And here's the comparison table:

    Code:
    Mod                     contents (bytes)     zip (bytes)         rar (bytes)
    --------------------------------------------------------------------------------
    Air Buccaneers 1.6      534 846 408        255 678 629 (48%)   207 238 736 (38%)
    Damnation v2            426 224 416        228 685 510 (53%)   189 088 018 (44%)
    FHI v3.1                232 227 787         74 704 358 (32%)    60 464 926 (26%)
    Alien Swarm v1.1        219 031 841        113 381 252 (51%)    87 014 638 (39%)
    Domain 2049 v2.0        387 409 876        183 584 068 (47%)   150 543 257 (38%)
    Jailbreak 2004a         311 673 057        103 258 414 (33%)    87 806 111 (28%)
    UT2004 Troopers v3      762 991 315        309 325 960 (40%)   258 184 446 (33%)
    U2Skaarj                178 160 797         94 077 444 (52%)    78 273 838 (43%)
    CUT2 pr3.6 full         709 421 808        278 622 869 (39%)   227 268 925 (32%)
    CUT2 pr3.0              557 887 614        227 135 792 (40%)   180 080 962 (32%)
    CUT2 pr3.01 update       58 661 793         30 404 160 (51%)    27 408 508 (46%)
    cDOM Mappack            230 682 607         84 651 771 (36%)    68 866 404 (29%)
    Air Buccaneers Beta 4.1 380 869 177        173 363 069 (45%)   136 710 547 (35%)
    Exion v2.0              182 216 038         71 668 851 (39%)    62 587 522 (34%)
    CBP2003                 431 626 157        149 198 671 (34%)   127 653 394 (29%)
    CBP2 volume 1           567 705 362        203 766 207 (35%)   179 282 746 (31%)
    CBP2 volume 2           565 337 121        200 444 127 (35%)   173 971 608 (30%)
    
    SFX module won't add more than 500kb, so I guess by using RAR the modmakers and mappers can decrease the amount of traffic required to dl the thing and webspace to store it. And you can save the space taken by the mods distribs ;)
     
  2. [SAS]Solid Snake

    [SAS]Solid Snake New Member

    Joined:
    Jun 7, 2002
    Messages:
    2,633
    Likes Received:
    0
    For distribution, its not about the size sometimes. I will always distribute mods as zip even if it is larger. Why? Compatiability. Windows XP has native zip functionality thus anyone can open zips up, also Unix, Linux and MacOS can also access zip's without needing to download anything.

    Your trying to make it easier for people to play your mod. Size of the compressed file doesn't matter in most cases since people will always choose the easier option (i.e if they have never heard of rar's or gzip's or whatever else).

    Distributing as an EXE is also a no no, would you trust any exe you downloaded of the net? I sure as hell wouldn't.
     
  3. Crowze

    Crowze Bird Brain

    Joined:
    Feb 6, 2002
    Messages:
    3,556
    Likes Received:
    1
    If you think that is good, try 7-zip. But as SS said, always make sure you provide a zip alternative for compatibility. Of course if it's for personal use and you're putting them all onto a DVD, shove a copy of WinRAR/7-zip or whatever you use onto the disk as well, and you're covered.
     
  4. Zur

    Zur surrealistic mad cow

    Joined:
    Jul 8, 2002
    Messages:
    11,702
    Likes Received:
    4
    Juste a note on what advantages the RAR format has :

    - ZIP uses LZW compression (with perhaps some enhancements). RAR goes one step further using pattern compression, ideal for multimedia data which already uses some form of compression.
    - RAR has easy-to-use segmenting options
    - RAR incoporates some error checking which will flag an archive as bad if there's even a bit that's out of place.
    - It also allows a recovery record which can be used to retrieve files even when an archive is damage.
    - RAR offers solid archiving (files encoded in one go) which gains a bit of space. The downside to this is that the whole archive needs to be decompressed to extract just one file.
    - RAR archives have better passwording although I'm sure that there are utilities that can be used to crack them.
    - Authenticity verification is a very handy feature that allows you to check where an archive came from.
    - RAR can conserve original file dates.
    - RAR takes into account NTFS file permissions.
    - RAR allows you to store paths and reproduce them on a destination machine.

    In short, RAR is more secure and more evolved compression standard.
     
  5. [SAS]Solid Snake

    [SAS]Solid Snake New Member

    Joined:
    Jun 7, 2002
    Messages:
    2,633
    Likes Received:
    0
    There is also another compression method that is also better than RAR as well. But no one uses it as a standard, because a) It takes longer to compress, b) It takes longer to uncompress and c) Its not well known.

    Rar is a nice compression algorithm with nice features, but its still not 'standard' as such in that users can use it freely.

    ... from last time I knew, zips could also store paths and restore them.
     
  6. Nemephosis

    Nemephosis Earning my Infrequent Flier miles

    Joined:
    Aug 10, 2000
    Messages:
    7,711
    Likes Received:
    3
    What's your point? Linux is better than Windows, but Linux also isn't standard. Same deal.
     
  7. _Lynx

    _Lynx Strategic Military Services Staff Member

    Joined:
    Dec 5, 2003
    Messages:
    1,965
    Likes Received:
    8
    Well I will if I download it from some major site, like BU. But in case of unknown site, yes, I'll think of it twice at least.
     
  8. [SAS]Solid Snake

    [SAS]Solid Snake New Member

    Joined:
    Jun 7, 2002
    Messages:
    2,633
    Likes Received:
    0
    You want your mod to be able to be distributed easily and as quickly as possible. You obviously don't want to bother people who use Linux or MacOS. If you just make it more troublesome for those users, then your only really harming your own mod by doing so, as your reducing the population who would bother using it.

    If I distributed a mod which was easy to install with a click of a button vs another mod which required the potential for someone to have to download another program to simply open it, people are going to complain about it and at worse not even bother with it.

    It isn't the same comparision, because what I am saying here is that you have the choice to use Linux. You've already made that choice. However, with using a RAR or whatever other 'non-standard' compression, your forcing other people to stick with the choice you've made.

    'Solving' that issue by simply provided a zip format defeats the original purpose to begin with because instead of saving space, your taking up around twice the amount of space on your own server, or on someone else's server...
     
  9. Zur

    Zur surrealistic mad cow

    Joined:
    Jul 8, 2002
    Messages:
    11,702
    Likes Received:
    4
    Standard is what the people choose, and as you can see from the last presidency elections, that's not always a good thing :D .
     
  10. randomevent

    randomevent New Member

    Joined:
    Jun 19, 2005
    Messages:
    63
    Likes Received:
    0
    I can't agree with the .EXE thing. You can out a virus in the installer in the .ZIP too, what would be the difference?

    Of course that depends on if there IS an installer, but you get the idea.
     
  11. Crowze

    Crowze Bird Brain

    Joined:
    Feb 6, 2002
    Messages:
    3,556
    Likes Received:
    1
    SolidSnake, I think you are kind of missing the point here. It's about putting them onto a DVD for personal use i.e. archiving, not about distributing the mods. That aside, the whole point of providing two different downloads isn't to save space for the provider, but to make things simpler/quicker download for the end user, whichever they prefer.
     

Share This Page