https://github.com/kambala-decapitator/mpqsimpleio
CLI to work with MPQ files (for Diablo 2)
https://github.com/kambala-decapitator/mpqsimpleio
cpp diablo2 mpq stormlib
Last synced: 2 months ago
JSON representation
CLI to work with MPQ files (for Diablo 2)
- Host: GitHub
- URL: https://github.com/kambala-decapitator/mpqsimpleio
- Owner: kambala-decapitator
- License: mit
- Created: 2018-04-15T18:36:18.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-04T10:52:31.000Z (over 1 year ago)
- Last Synced: 2025-01-19T06:10:50.735Z (over 1 year ago)
- Topics: cpp, diablo2, mpq, stormlib
- Language: C
- Homepage:
- Size: 4.31 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MpqSimpleIO
CLI to work with old MPQ files. Tested only on Diablo 2.
Based on the great [StormLib library](https://github.com/ladislav-zezula/StormLib).
## Usage
### List MPQ files
MpqSimpleIO -l [mask] [path to additional listfile]
# example
MpqSimpleIO -l /some/path/1.mpq
- If you don't pass mask, `*` is implied (to list all files)
- If you want to pass additional listfile, mask is required
### Extract files to disk
MpqSimpleIO -r [path to additional listfile]
# example
MpqSimpleIO -r /some/path/1.mpq 'data\global\excel\*.bin' /some/extract/path
The directory where you want to extract files must exist.
### Add files to MPQ
MpqSimpleIO -w --prefix=
# example
MpqSimpleIO -w /some/path/1.mpq --prefix='data\global\excel\' /path/to/file /path/to/another/file
You can also put multiple files under different prefixes:
MpqSimpleIO -w /some/path/1.mpq /path/to/file 'prefix\for\first\file\' /path/to/another/file 'prefix\for\second\file\'