Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 1.14 KB

README.md

File metadata and controls

29 lines (20 loc) · 1.14 KB

Chrono Divide API Playground

This is a sample project that uses the Chrono Divide Game API. It can be used to develop and test AI bots for Chrono Divide] by running the game headless, in an isolated command-line environment. The API can create offline games between computer-controlled agents, or even online games, played in real-time versus human opponents.

Prerequisites

  • NodeJS 14+
  • TypeScript 4.3.5+
  • MIX files from an original RA2 installation

Install instructions

npm install
npm run build
npx cross-env MIX_DIR="C:\path_to_ra2_install_dir" npm start

Debugging

npx cross-env MIX_DIR="C:\path_to_ra2_install_dir" npm --node-options="${NODE_OPTIONS} --inspect" start

Additional resources