OpenAOE has been renamed to Chariot and has a new maintainer. This repository will not see any more contributions.
The OpenAOE project is an attempt to re-implement the original Age of Empires (1997) in an open-source manner so that:
- The game may be ported to any desired platform.
- Useful features from the sequel, such as build queuing, can be added to bring the original game closer to modern day RTS standards.
- Enhancements, such as larger screen resolution support, can be made.
The OpenAOE project will strive to be as close to the original as possible.
For obvious reasons, you'll need an original Age of Empires CD to be able to play it. No game data files will be committed to the repository.
Note: This is a work in progress. As of 2017-05-09, there is no game to be played. Just a demonstration of the original game assets being loaded and other proof of concepts. It will be a while before it is playable.
OS-specific instructions will follow. This section just gives a high level idea of what is required to build OpenAOE. You'll need the following:
- A Rust Compiler
- GCC (via MINGW if on Windows), or Microsoft Visual C++
- LibSDL2
Rust's Cargo program should download and compile all of the other necessary dependencies.
- Install Rust. Documentation for manual install here.
- Install SDL2. If you're on Ubuntu, you can use this command:
sudo apt-get install libsdl2-dev
. - Install GCC. For Ubuntu / Debian use the 'build-essential' package. For Arch linux use 'base-devel'
- Build the game with:
cargo build --release
- Install MinGW/MSYS2
- Install SDL2:
pacman -S mingw-w64-x86_64-SDL2
- Export the library folder:
echo "export LIBRARY_PATH=/usr/local/lib/:/lib/" >> /etc/profile"
- Install Rust:
curl https://sh.rustup.rs -sSf | sh
- Use the GNU ABI (
i686-pc-windows-gnu
orx86_64-windows-pc-gnu
) - Build the game with:
cargo build --release
- Install Homebrew.
- Install Rust.
curl https://sh.rustup.rs -sSf | sh && rustup install toolchain nightly-x86_64-apple-darwin
- Install SDL2.
brew install sdl2
- Build the game with:
cargo build --release
Before you can run the game, you'll need to place the game's data in a place where the program can find it. On the game CD, there is a game
directory with a language.dll, empires.exe, and a bunch of directories such as avi, campaign, and data. Either symlink that directory into the root of the project, or copy it over (it should keep the name "game"). Once the data is placed, you can run the game with:
$ cargo run --release
Alternatively, you can specify the location of the game data via command-line:
$ cargo run --release -- -d /media/AOE/game
Note that in these early versions, you may need to specify additional command line arguments, such as a path to a scenario file to load up. These may change over time, but the game should tell you what arguments are required and what to provide.
OpenAOE has been renamed to Chariot and has a new maintainer. Please contribute to Chariot instead.