4 releases
new 0.0.3 | Apr 27, 2025 |
---|---|
0.0.2 | Apr 27, 2025 |
0.0.1 | Apr 27, 2025 |
0.0.0 | Apr 26, 2025 |
#467 in Game dev
40 downloads per month
27KB
400 lines
RA2 Remixer - Red Alert 2 Tool Collection
A collection of utilities for working with Red Alert 2 game files, particularly MIX archives.
Features
- MIX File Support: Read, write, and modify RA2 MIX archives
- Encryption/Decryption: Handle RA2's custom encryption for MIX files
- File Management: Extract and patch files from/to MIX archives
- CRC Calculation: Calculate file IDs using RA2's CRC algorithm
Installation
- Ensure you have Rust installed (version 1.70.0 or higher)
- Clone this repository
- Build the project:
cargo build --release
Usage
Basic Commands
# Extract files from a MIX archive
ra2-mix extract input.mix output_directory
# Patch files into a MIX archive
ra2-mix patch input_directory output.mix
Library Usage
use ra2_mix::XccPackage;
// Load a MIX file
let mut package = XccPackage::load(Path::new("input.mix")) ?;
// Add a file to the package
package.add_file(Path::new("new_file.txt")) ?;
// Save the modified package
package.save(Path::new("output.mix")) ?;
Reference Projects
Dependencies
~6.5MB
~90K SLoC