AI:NullLegacyCppAI: Difference between revisions

From Spring
Jump to navigationJump to search
Hoijui (talk | contribs)
No edit summary
Hoijui (talk | contribs)
mNo edit summary
Line 1: Line 1:
{{AI|NullLegacyCppAI|UNKNOWN|v0.1 (spring SVN)|Supports everything / Does nothing|Finnished|-}}
{{AI|NullLegacyCppAI|UNKNOWN & hoijui|0.1 (spring SVN)|Supports everything / Does nothing|Finnished|-}}


=== Description ===
=== Description ===
Line 12: Line 12:


=== Known Crashes ===
=== Known Crashes ===
*None
* None


=== How to compile ===
=== How to compile ===
* include directories: ''{spring_source}/rts/System {spring_source}/AI/Skirmish/NullLegacyCppAI {spring_source}/rts/ExternalAI  {spring_source}/rts/ExternalAI/Interface {spring_source}/rts/ExternalAI/Interface/LegacyCppWrapper''
* 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''
* source files: ''{spring_source}/AI/Skirmish/NullLegacyCppAI/*.cpp {spring_source}/AI/Wrappers/LegacyCpp/*.cpp''
* create dynamic loadable shared library (module)
* create dynamic loadable shared library (module)
* should compile with all C++ compilers
* should compile with all C++ compilers, if it does not, please report it, or even better, send a fix


=== How to install ===
=== How to install ===
from source at ''{spring_source}/AI/Skirmish/NullLegacyCppAI/'' :
from source at ''{spring_source}/AI/Skirmish/NullLegacyCppAI/'' :
* copy ''libNullLegacyCppAI-0.1.so'', ''libNullLegacyCppAI-0.1.dylib'' or ''NullLegacyCppAI-0.1.dll'' to ''{spring_data_dir}/AI/Skirmish/impls/''
* copy ''libNullLegacyCppAI.so'', ''libNullLegacyCppAI.dylib'' or ''NullLegacyCppAI.dll'' to ''{spring_data_dir}/AI/Skirmish/{NullLegacyCppAI-version}/''
* copy AIInfo.lua and AIOptions.lua to ''{spring_data_dir}/AI/Skirmish/data/NullLegacyCppAI-0.1/''
* copy AIInfo.lua and AIOptions.lua to ''{spring_data_dir}/AI/Skirmish/NullLegacyCppAI/{NullLegacyCppAI-version}/''


''' [[AIs|<- Back to AI page]]'''
''' [[AIs|<- Back to AI page]]'''
[[Category:AI]]
[[Category:AI]]

Revision as of 20:58, 19 December 2008

NullLegacyCppAI
Developer
UNKNOWN & hoijui
Version
0.1 (spring SVN)
Mod Support
Supports everything / Does nothing
Status
Finnished
License
-
Interface
{{{7}}}
Wrapper
{{{8}}}
<- Back to List of AIs

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 apear. It can also be used as a template for C++ Skirmish AI projects that want to use the legacy C++ interface (not recommended, see Null C++ AI NOT YET AVAILABLE (using the new C++ interface) instead).

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

Download

It comes with spring (SVN version).

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 source at {spring_source}/AI/Skirmish/NullLegacyCppAI/ :

  • copy libNullLegacyCppAI.so, libNullLegacyCppAI.dylib or NullLegacyCppAI.dll to {spring_data_dir}/AI/Skirmish/{NullLegacyCppAI-version}/
  • copy AIInfo.lua and AIOptions.lua to {spring_data_dir}/AI/Skirmish/NullLegacyCppAI/{NullLegacyCppAI-version}/

<- Back to AI page