-
Notifications
You must be signed in to change notification settings - Fork 23
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 more compression schemes #2
Comments
I should add an option to ignore files with unsupported compression types for now. |
Looks like LZMA and sparse are relevant wrt. Starcraft II and later games. Python 3.3 added native support for LZMA with a very familiar interface. |
Diablo 2 uses PKWare Data Compression Library's Implode (https://support.pkware.com/display/PKZIP/DCL). https://github.com/madler/zlib/blob/master/contrib/blast/blast.c contains an open source C implementation. |
W3 maps also use PKWare compression, I've ported StormLib's implementation to Python to support that one in my fork, see: TheSil@a1fc59d |
Hey there! Thank you so much for doing this. I'd really like to upstream this. Could you make a pull request? |
Sure, although I am in a process of turning the compression into separate library (pypklib), will make the equest after that. |
That would be lovely. Earlier when looking at this I found some throw-away implementations of explode / implode around but nothing from PyPI; yours would be the first implementation that I can just depend on normally. |
So far the development of the library has been totally dominated by Starcraft II replay format, and each file inside SC2 replays is compressed by DEFLATE. I need to investigate other kinds of MPQs and support other compression schemes as I encounter them.
The text was updated successfully, but these errors were encountered: