This is a very simple script running a scenario in 0 AD from NodeJS
First, install NodeJS. Next install the dependencies by running the following from the project directory:
npm install
Then, start 0 AD in another terminal with the RL interface enabled. For example, you might run the following:
pyrogenesis --rl-interface=127.0.0.1:6000 --autostart-nonvisual
Finally, run the run-scenario.js
script:
node run-scenario.js