Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.

Latest commit

 

History

History
33 lines (24 loc) · 744 Bytes

readme.md

File metadata and controls

33 lines (24 loc) · 744 Bytes

run-aoe-rms

Run an Age of Empires 2 random map script, and get a recorded game file back.

Install

You need:

  • Wine
    • DirectPlay (use winetricks)
    • Age of Empires 2 (remove the Sounds/ folder to make it faster)
  • apt-get install xvfb xdotool imagemagick

Then with npm do:

# Not published to npm atm! So install from github.
npm install --save goto-bus-stop/run-aoe-rms

Usage

const runRandomMapScript = require('run-aoe-rms')
const rmsSource = fs.readFileSync('/path/to/script.rms', 'utf8')

runRandomMapScript(rmsSource, {
  aocDir: '/path/to/wine/age2/folder'
}).then((recGame) => {
  // recGame is a Buffer containing the recorded game file.
  // It should take about 10 seconds to get here.
})