Meithal / mypyq

Python 3.7+ library and utility script to deal with Blizzards MPQ archives.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mypyq

Mypypq is a rewrite of https://github.com/TheSil/mpyq. It is meant to open hostile mpq's such as protected war3 maps.

Install

python -m pip install git+https://github.com/Meithal/mypyq.git

Usage

It can be used as a runpy module, eg python -m mypyq.

  • python -m mypyq --help to see usage.
  • python -m mypyq --bat to generate a .bat file on which you can drag and drop the mpqs you want to extract.

After creating a .bat file you can drag and drop the mpq files you want to have extracted onto the .bat file you created.

It can also be used as a library, eg

import pathlib
import mypyq

with pathlib.Path("your mpq path").open('rb') as f:
    ar = MPQArchive(f)
    print(ar.has_listfile)
    ...

About

Python 3.7+ library and utility script to deal with Blizzards MPQ archives.


Languages

Language:Python 100.0%