Skip to content
This repository has been archived by the owner on Nov 17, 2018. It is now read-only.
/ run-aoe-rms Public archive

Run an Age of Empires 2 random map script, and get a recorded game file back. WIP, only works on my machine! πŸ˜‚

Notifications You must be signed in to change notification settings

goto-bus-stop/run-aoe-rms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.
})

About

Run an Age of Empires 2 random map script, and get a recorded game file back. WIP, only works on my machine! πŸ˜‚

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published