AI:NullAI: Difference between revisions
From Spring
Jump to navigationJump to search
mNo edit summary |
mNo edit summary |
||
| Line 6: | Line 6: | ||
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. | 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 | This AI uses the [[AIInterface:C|C & C++ AI Interface library]]. See also [[AI:NullLegacyCppAI|Null Legacy C++ AI]]. | ||
=== Download === | === Download === | ||
It comes with spring | It comes with spring, GIT branch ''caiinterface''. | ||
=== Known Crashes === | === Known Crashes === | ||
| Line 15: | Line 15: | ||
=== How to compile === | === How to compile === | ||
'''The easy way''' | |||
Use Scons or CMake (refer to [[Building_spring|Building spring]]). | |||
'''The hard way''' | |||
* include directories: | * include directories: | ||
** {spring_source}/rts/ExternalAI/Interface | ** {spring_source}/rts/ExternalAI/Interface | ||
Revision as of 15:37, 14 January 2009
| Developer | |
| Version | |
| Mod Support | |
| Status | |
| License | |
| Interface | |
| Wrapper | |
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.
Download
It comes with spring, GIT branch caiinterface.
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/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/data/NullAI-{NullAI-version}/
- copy build/libNullAI.so, build/libNullAI.dylib or build/NullAI.dll to /
- copy data/* to /