AI:NullLegacyCppAI: Difference between revisions

From Spring
Jump to navigationJump to search
Hoijui (talk | contribs)
New page: {{AI|NullLegacyCppAI|UNKNOWN|v0.1 (spring SVN)|Supports everything / Does nothing|Finnished|-}} === Description === This Skirmish AI is written in C++ and uses the legacy C++ wrapper over...
 
Hoijui (talk | contribs)
No edit summary
Line 15: Line 15:


=== 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/Skirmish/NullLegacyCppAI {spring_source}/rts/ExternalAI  {spring_source}/rts/ExternalAI/Interface {spring_source}/rts/ExternalAI/Interface/LegacyCppWrapper''
* source files: <spring_source>/AI/Skirmish/NullLegacyCppAI/*.cpp
* source files: ''{spring_source}/AI/Skirmish/NullLegacyCppAI/*.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


=== 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-0.1.so'', ''libNullLegacyCppAI-0.1.dylib'' or ''NullLegacyCppAI-0.1.dll'' to ''{spring_data_dir}/AI/Skirmish/impls/''
* 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/data/NullLegacyCppAI-0.1/''


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

Revision as of 16:44, 8 October 2008

NullLegacyCppAI
Developer
UNKNOWN
Version
v0.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 (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/Skirmish/NullLegacyCppAI {spring_source}/rts/ExternalAI {spring_source}/rts/ExternalAI/Interface {spring_source}/rts/ExternalAI/Interface/LegacyCppWrapper
  • source files: {spring_source}/AI/Skirmish/NullLegacyCppAI/*.cpp
  • create dynamic loadable shared library (module)
  • should compile with all C++ compilers

How to install

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 AIInfo.lua and AIOptions.lua to {spring_data_dir}/AI/Skirmish/data/NullLegacyCppAI-0.1/

<- Back to AI page