AI:NullAI: Difference between revisions

From Spring
Jump to navigationJump to search
Hoijui (talk | contribs)
No edit summary
Hoijui (talk | contribs)
No edit summary
Line 2: Line 2:


=== Description ===
=== Description ===
This Skirmish AI is written in pure C, to prove that the C AI interface works. It is an empty implementation, meaning it will load, but do absolutely nothing. NullAI is the consists of only the very minimum that is needed for a spring AI to load. It 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 new C or C++ Skirmish AI projects.
This Skirmish AI is written in pure C, to prove that the C AI interface works. It consists of only the very minimum that is needed for a spring Skirmish AI to load.
 
NullAI is an empty implementation, meaning it will load, but do absolutely nothing. It 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 new C or C++ Skirmish AI projects.


This AI uses the [[AIInterface:C|C & C++ AI Interface Library]]. See also [[AI:NullLegacyCppAI|Null Legacy C++ AI]].
This AI uses the [[AIInterface:C|C & C++ AI Interface Library]]. See also [[AI:NullLegacyCppAI|Null Legacy C++ AI]].
Line 16: Line 18:
* source files: <spring_source>/AI/Skirmish/NullAI/AIExports.cpp
* source files: <spring_source>/AI/Skirmish/NullAI/AIExports.cpp
* create dynamic loadable shared library (module)
* create dynamic loadable shared library (module)
* should compile with every C compiler
* should compile with all C compilers


=== How to install ===
=== How to install ===
from source at <spring_source>/AI/Skirmish/NullAI/ :
from source at <spring_source>/AI/Skirmish/NullAI/ :
* copy libNullAI.so, libNullAI.dylib or NullAI.dll to <spring_data_dir>/AI/Skirmish/impls/
* copy libNullAI-0.1.so, libNullAI-0.1.dylib or NullAI-0.1.dll to <spring_data_dir>/AI/Skirmish/impls/
* copy AIInfo.lua and AIOptions.lua to <spring_data_dir>/AI/Skirmish/data/NullAI-0.1/
* copy AIInfo.lua and AIOptions.lua to <spring_data_dir>/AI/Skirmish/data/NullAI-0.1/


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

Revision as of 15:32, 8 October 2008

NullAI
Developer
zenzike & hoijui
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 pure C, to prove that the C AI interface works. It consists of only the very minimum that is needed for a spring Skirmish AI to load.

NullAI is an empty implementation, meaning it will load, but do absolutely nothing. It 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 new C or C++ Skirmish AI projects.

This AI uses the C & C++ AI Interface Library. See also Null Legacy C++ AI.

Download

It comes with spring (SVN version).

Known Crashes

  • None

How to compile

  • include directories: <spring_source>/rts/System <spring_source>/AI/Skirmish/NullAI
  • source files: <spring_source>/AI/Skirmish/NullAI/AIExports.cpp
  • create dynamic loadable shared library (module)
  • should compile with all C compilers

How to install

from source at <spring_source>/AI/Skirmish/NullAI/ :

  • copy libNullAI-0.1.so, libNullAI-0.1.dylib or NullAI-0.1.dll to <spring_data_dir>/AI/Skirmish/impls/
  • copy AIInfo.lua and AIOptions.lua to <spring_data_dir>/AI/Skirmish/data/NullAI-0.1/

<- Back to AI page