AI:NullAI: Difference between revisions

From Spring
Jump to navigationJump to search
Hoijui (talk | contribs)
No edit summary
Hoijui (talk | contribs)
No edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{AI|NullAI|zenzike & hoijui|v0.1 (spring SVN)|Supports everything / Does nothing|Finnished|-}}
{{AI|NullAI|zenzike & [[User:hoijui|hoijui]]|0.1|Supports everything / Does nothing|Finnished|GNU GPL V2+|C|-}}


=== 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.  


This AI uses the [[AIInterface:C|C & C++ AI Interface Library]]. See also [[AI:NullLegacyCppAI|Null Legacy C++ AI]].
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 appear. 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]] and [[AI:CppTestAI|C++ Test AI]].


=== Download ===
=== Download ===
It comes with spring (SVN version).
It comes with spring source. Reffer to [[Building_spring#Obtaining_the_Source|Obtaining the Source]].


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


=== How to compile ===
=== How to compile ===
* include directories: <spring_source>/rts/System <spring_source>/AI/Skirmish/NullAI
'''The easy way'''
* source files: <spring_source>/AI/Skirmish/NullAI/AIExports.cpp
 
Use SCons or CMake (refer to [[Building_spring|Building spring]]).
 
'''The hard way'''
 
* include directories:
** ''{spring_source}/rts''
** ''{spring_source}/rts/System''
** ''{spring_source}/rts/ExternalAI/Interface''
** ''{spring_source}/AI/Skirmish/NullAI''
* source files:
** ''{spring_source}/AI/Skirmish/NullAI/*.c''
* create dynamic loadable shared library (module)
* create dynamic loadable shared library (module)
* should compile with every C compiler
* should compile with all C compilers (tested with MinGW, GCC, Intel)


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


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

Latest revision as of 10:52, 8 June 2009

NullAI
Developer
zenzike & hoijui
Version
0.1
Mod Support
Supports everything / Does nothing
Status
Finnished
License
GNU GPL V2+
Interface
C
Wrapper
-
<- 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 appear. 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 and C++ Test AI.

Download

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

Known Crashes

  • None

How to compile

The easy way

Use SCons or CMake (refer to Building spring).

The hard way

  • include directories:
    • {spring_source}/rts
    • {spring_source}/rts/System
    • {spring_source}/rts/ExternalAI/Interface
    • {spring_source}/AI/Skirmish/NullAI
  • source files:
    • {spring_source}/AI/Skirmish/NullAI/*.c
  • create dynamic loadable shared library (module)
  • should compile with all C compilers (tested with MinGW, GCC, Intel)

How to install

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

  • copy build/libNullAI.so, build/libNullAI.dylib or build/NullAI.dll to ./
  • copy data/* to ./


<- Back to AI page