Compression algorithms employed in MPQs? menu

Shout-Out

User Tag List

Results 1 to 6 of 6
  1. #1
    XTZGZoReX's Avatar Active Member
    Reputation
    32
    Join Date
    Apr 2008
    Posts
    173
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Compression algorithms employed in MPQs?

    After lurking around and checking stormlib/libmpq, it doesn't seem that there's any info anywhere on what compression algorithms are currently in use for WoW's MPQ files.

    Does anyone have a clue? I know the MPQ format supports ~6 different algorithms, but I'm fairly sure they aren't all used in WoW...

    Compression algorithms employed in MPQs?
  2. #2
    namreeb's Avatar Legendary

    Reputation
    668
    Join Date
    Sep 2008
    Posts
    1,029
    Thanks G/R
    8/222
    Trade Feedback
    0 (0%)
    Mentioned
    9 Post(s)
    Tagged
    0 Thread(s)
    There is quite a bit of information about the MPQ format on the StormLib site. MPQ Archives - Overview

  3. #3
    XTZGZoReX's Avatar Active Member
    Reputation
    32
    Join Date
    Apr 2008
    Posts
    173
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, I already checked that. Unfortunately, no info on what's currently employed.

    I guess I can just implement everything, though it's gonna take some time. (I'm writing an MPQ library in pure C#; no P/Invoke or similar platform-dependent tricks.)

    So far, I've found these C# libraries that'll probably be helpful:

    .NET Zip Library #ziplib (SharpZipLib) (covers zlib, bzip2)
    LZMA SDK (Software Development Kit) (covers lzma)

    I still need libraries for sparse, ima adpcm, and huffman, though.

    EDIT: Seems like SharpZipLib handles huffman.
    Last edited by XTZGZoReX; 02-12-2011 at 10:00 AM.

  4. #4
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Have a look at mpqtool - Project Hosting on Google Code for examples on adpcm and huffman decompression.
    It doesn't do lzma or sparse, but last time I checked* wow didn't use those.


    *) about a year ago, so things might have changed by now.

  5. #5
    amadmonk's Avatar Active Member
    Reputation
    124
    Join Date
    Apr 2008
    Posts
    772
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    WR, it's not like the state of the art in compression algorithms has changed much in the past few years.
    Don't believe everything you think.

  6. #6
    XTZGZoReX's Avatar Active Member
    Reputation
    32
    Join Date
    Apr 2008
    Posts
    173
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If sparse isn't actually used, I guess I can just steal the decompression algorithms from mpqtool.

    Thanks.

Similar Threads

  1. Help-Using Drop MPQ on mac, it won't compress.
    By Nightz12 in forum WoW ME Questions and Requests
    Replies: 1
    Last Post: 09-13-2007, 10:56 PM
  2. Using dbc.mpq to make WoW trivial
    By gotosleep in forum World of Warcraft Model Editing
    Replies: 14
    Last Post: 08-27-2006, 07:29 AM
  3. Can someone upload me dbc.mpq?
    By pandaman in forum World of Warcraft General
    Replies: 3
    Last Post: 08-25-2006, 09:05 PM
  4. What .MPQ editor do you use?
    By Dave-evad in forum World of Warcraft General
    Replies: 2
    Last Post: 08-15-2006, 02:45 AM
  5. Campfire model MPQ path
    By Lazyeye in forum World of Warcraft General
    Replies: 2
    Last Post: 08-11-2006, 06:59 PM
All times are GMT -5. The time now is 06:48 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search