Skip to content

ra2web/game-api-playground

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%