Skip to content

Latest commit

 

History

104 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

python-mpq

Python bindings for Ladislav Zezula's StormLib.

Usage

Reading MPQs

import mpq
f = mpq.MPQFile("base-Win.MPQ")

if "example.txt" in mpq:
	print(mpq.open("example.txt").read())

Patching MPQs

Modern MPQs support archive patching. The filename usually contains the from and to build numbers.

f.patch("hs-6024-6141-Win-final.MPQ")

Writing MPQs

Writing MPQs is not supported.

License

This project is licensed under the terms of the MIT license. The full license text is available in the LICENSE file.

关于

StormLib-based Python MPQ bindings

Topics

Resources

Contributing

Stars

22 stars

关注者

2 watching

复刻s

发布

Used by

贡献者

Languages