AI:NullLegacyCppAI: Difference between revisions

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


=== Description ===
=== Description ===
Line 9: Line 9:


=== Download ===
=== Download ===
It comes with spring (SVN version).
It comes with spring source, current development version (GIT branch ''caiinterface''), reffer to [[Building_spring#Obtaining_the_Source|Obtaining the Source]].


=== Known Crashes ===
=== Known Crashes ===
Line 25: Line 25:
** {spring_source}/AI/Wrappers/LegacyCpp/*.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, if it does not, please report it, or even better, send a fix
* 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: ''{spring_source}/AI/Skirmish/NullLegacyCppAI/''<br>
from: ''{spring_source}/AI/Skirmish/NullLegacyCppAI/''<br>
to: ''{spring_data_dir}/AI/Skirmish/data/NullLegacyCppAI-{NullLegacyCppAI-version}/''
to: ''{spring_data_dir}/AI/Skirmish/NullLegacyCppAI/{NullLegacyCppAI-version}/''
* copy ''build/libNullLegacyCppAI.so'', ''build/libNullLegacyCppAI.dylib'' or ''build/NullLegacyCppAI.dll'' to ''/''
* copy ''build/libNullLegacyCppAI.so'', ''build/libNullLegacyCppAI.dylib'' or ''build/NullLegacyCppAI.dll'' to ''./''
* copy ''data/*'' to ''/''
* copy ''data/*'' to ''./''


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

Revision as of 09:09, 15 January 2009

NullLegacyCppAI
Developer
UNKNOWN & hoijui
Version
0.1 (spring GIT)
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 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 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 source, current development version (GIT branch caiinterface), 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