Create, list .mix files of Command & Conquer: Red Alert 2 / Command & Conquer: Yuri's Revenge
Project description
Create, list .mix files of Command & Conquer: Red Alert 2 / Command & Conquer: Yuri's Revenge. Once installed, you can invoke it as a standalone command or via the Python module:
ra2mixer <command> [options]
# or
python -m ra2mixer <command> [options]
📖 Available Commands
$ python -m ra2mixer -h
usage: ra2mix [-h] {list,l,extract,x,create,c} ...
List, extract, create MIX files
positional arguments:
{list,l,extract,x,create,c}
list (l) list files of MIX file
extract (x) extract files of MIX file
create (c) create MIX file from files
options:
-h, --help show this help message and exit
| Command | Description |
|---|---|
list |
View contents of a .mix archive |
extract |
Extract all files from a .mix archive |
create |
Pack files/folders into a new .mix archive |
🔍 List Contents
$ python -m ra2mixer list -h
usage: ra2mix list [-h] [--sort-by-offset {ascending,descending,a,d}] mix_files [mix_files ...]
positional arguments:
mix_files path to the .mix files
options:
-h, --help show this help message and exit
--sort-by-offset {ascending,descending,a,d}
Sort entries by offset
# Basic file listing
ra2mixer list game.mix
📦 Extract Archive
$ python -m ra2mixer extract -h
usage: ra2mix extract [-h] [-d DIR] mix_files [mix_files ...]
positional arguments:
mix_files path to the .mix files
options:
-h, --help show this help message and exit
-d DIR extract files into DIR
# Extract to a specific folder
ra2mixer extract game.mix -d output/
🛠️ Create Archive
$ python -m ra2mixer create -h
usage: ra2mix create [-h] [--no-names-db] [--game GAME] mix_file files [files ...]
positional arguments:
mix_file the mix file to create
files files to include
options:
-h, --help show this help message and exit
--no-names-db Dont add 'local mix database.dat'
--game GAME which game TD, RA, TS, DUNE2, DUNE2000, RA2, RA2_YR, RG, GR, GR_ZH, EBFD, NOX, BFME, BFME2, TW, TS_FS, UNKNOWN
# Pack all files from a directory
ra2mixer create new.mix assets/
# Pack specific files
ra2mixer create new.mix rules.ini art.ini audio01.wav
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ra2mixer-0.0.1.tar.gz
(163.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ra2mixer-0.0.1-py3-none-any.whl
(153.8 kB
view details)
File details
Details for the file ra2mixer-0.0.1.tar.gz.
File metadata
- Download URL: ra2mixer-0.0.1.tar.gz
- Upload date:
- Size: 163.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f68e7e5af070dda5e718151eb36fcef8bda5e3869b64a5d3d1234f220637ff4b
|
|
| MD5 |
a693690d7ed231b54c988ca12298b844
|
|
| BLAKE2b-256 |
27b59ac6e2175e6a83c68e73598bd47ea4edb25b5c8a2e4721b02cc88ba6cf06
|
File details
Details for the file ra2mixer-0.0.1-py3-none-any.whl.
File metadata
- Download URL: ra2mixer-0.0.1-py3-none-any.whl
- Upload date:
- Size: 153.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9306180f736616513058144879cbacd0018a0537f51f259bb9d513d53ec96d69
|
|
| MD5 |
9c274570c12de37ce50fb13c5e62048e
|
|
| BLAKE2b-256 |
d3934e1f2ef6a09db5de9832517894038e489f52393b8abab1c5f4d3e9ddac97
|