Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for encrypted MPQs #3

Open
eagleflo opened this issue May 23, 2010 · 3 comments
Open

Support for encrypted MPQs #3

eagleflo opened this issue May 23, 2010 · 3 comments

Comments

@eagleflo
Copy link
Owner

I still haven't encountered any, but according to references encrypted MPQs are possible. Possibly Warcraft III maps?

@GraylinKim
Copy link
Collaborator

I think I might have found one such replay.

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python2.6/dist-packages/mpyq-0.1.5-py2.6.egg/mpyq.py", line 100, in __init__
    self.files = self.read_file('(listfile)').splitlines()
  File "/usr/local/lib/python2.6/dist-packages/mpyq-0.1.5-py2.6.egg/mpyq.py", line 201, in read_file
    raise NotImplementedError("Encryption is not supported yet.")
NotImplementedError: Encryption is not supported yet.

Download it here

@RenolY2
Copy link

RenolY2 commented Jan 28, 2014

Custom maps for WC3 are very likely to use encryption. But mpyq works great with WC3 maps which use no encryption, such as the melee maps that come preinstalled with WC3, if header skipping is added (WC3 maps have a 512 byte header before the MPQ data).

@TheSil
Copy link

TheSil commented Mar 8, 2020

In my fork (https://github.com/TheSil/mpyq) I've added very basic support for encryption (method determined from https://github.com/ladislav-zezula/StormLib). Feel free to check it out, although its quite dirty (though works just for my case where I just wanted to print map commands, see https://github.com/TheSil/w3mpq/blob/master/get_commands.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants