Skip to content

cleanrock/CircuitAI

 
 

Repository files navigation

Circuit AI

Spring RTS local native AI for Zero-K.

Requirements

  • gcc 4.9+ (<regex> support)*
  • spring 100.0+
  • boost 1.54+
  • SDL2 (optional)

*gcc 5 should be prefered over 4.9 (std::list::size)

Compiling

Build process of native AI described in wiki of Spring RTS engine. Required steps on linux:

$ git clone https://github.com/spring/spring.git
$ cd spring && git checkout tags/100.0
$ git clone https://github.com/rlcevg/CircuitAI.git AI/Skirmish/CircuitAI
$ cmake . && make CircuitAI

Installing

To install the AI, put files into proper directory, see CppTestAI or Shard for reference. An example location of libSkirmishAI.so on linux would be /home/<user>/.spring/engine/<engine version>/AI/Skirmish/Circuit/<AI version>/libSkirmishAI.so

Linux troubleshooting

Dead AI upon match start: ensure that libSkirmishAI.so is compatible with AI/Interfaces/C/0.1/libAIInterface.so (i.e. replace it with own build)

For those who lost all hope, behold: Vagrant. Just navigate to Vagrantfile and do "vagrant up". It will take some time to warm up, install all dependencies and compile Circuit for the first time. Subsequent builds should be done manually, see Vagrantfile for reference. (Regarding long startup)

About

Spring RTS local native AI

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 99.6%
  • Other 0.4%