Skip to main content

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

Release files for ra2mixer 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ra2mixer 0.0.1
File Size Uploaded
ra2mixer-0.0.1.tar.gz 163.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ra2mixer 0.0.1
File Interpreter ABI Platform
ra2mixer-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 317.7 kB

Release files / ra2mixer-0.0.1.tar.gz

Download URL ra2mixer-0.0.1.tar.gz
Size 163.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f68e7e5af070dda5e718151eb36fcef8bda5e3869b64a5d3d1234f220637ff4b
BLAKE2b-256 checksum
How to use checksums
27b59ac6e2175e6a83c68e73598bd47ea4edb25b5c8a2e4721b02cc88ba6cf06
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release files / ra2mixer-0.0.1-py3-none-any.whl

Download URL ra2mixer-0.0.1-py3-none-any.whl
Size 153.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9306180f736616513058144879cbacd0018a0537f51f259bb9d513d53ec96d69
BLAKE2b-256 checksum
How to use checksums
d3934e1f2ef6a09db5de9832517894038e489f52393b8abab1c5f4d3e9ddac97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page