AI:NullLegacyCppAI

From Spring
Jump to navigationJump to search
NullLegacyCppAI
Developer
UNKNOWN & hoijui
Version
0.1
Mod Support
Supports everything / Does nothing
Status
Finnished
License
-
Interface
C
Wrapper
LegacyCpp
<- Back to List of AIs

Null Legacy C++ AI

Description

This Skirmish AI is written in C++ and uses the legacy C++ wrapper over the C AI Interface to prove that this wrapper works, and for testing purposes.

It is an empty implementation, meaning it will load, but do absolutely nothing. NullLegacyCppAI can be used to test the AI interface, or for exploring a map if one wants the end game screen not to appear. It can also be used as a template for C++ Skirmish AI projects that want to use the legacy C++ interface (not recommended, see Test C++ AI instead).

This AI uses the C & C++ AI Interface Library. See also Null AI (pure C).

Download

It comes with spring source. Reffer to Obtaining the Source.

Known Crashes

  • None

How to compile

  • include directories:
    • {spring_source}/rts/System
    • {spring_source}/AI/Wrappers/LegacyCpp
    • {spring_source}/AI/Skirmish/NullLegacyCppAI
    • {spring_source}/rts/ExternalAI
    • {spring_source}/rts/ExternalAI/Interface
  • source files:
    • {spring_source}/AI/Skirmish/NullLegacyCppAI/*.cpp
    • {spring_source}/AI/Wrappers/LegacyCpp/*.cpp
  • create dynamic loadable shared library (module)
  • should compile with all C++ compilers, if it does not, please report it, or even better: send a fix

How to install

from: {spring_source}/AI/Skirmish/NullLegacyCppAI/
to: {spring_data_dir}/AI/Skirmish/NullLegacyCppAI/{NullLegacyCppAI-version}/

  • copy build/libNullLegacyCppAI.so, build/libNullLegacyCppAI.dylib or build/NullLegacyCppAI.dll to ./
  • copy data/* to ./

<- Back to AI page