AI:RAI: Difference between revisions
From Spring
Jump to navigationJump to search
No edit summary |
|||
| Line 1: | Line 1: | ||
{{AI|RAI|Reth|v0. | {{AI|RAI|Reth|v0.600 (spring v0.76b1)|Supports All Known Mods|Under Active Development|-}} | ||
=== Forum thread === | === Forum thread === | ||
| Line 21: | Line 21: | ||
* download spring sources [http://spring.clan-sy.com/dl/spring_0.76b1_src.tar.bz2 here], and extract it somewhere | * download spring sources [http://spring.clan-sy.com/dl/spring_0.76b1_src.tar.bz2 here], and extract it somewhere | ||
* download RAI sources [http://www.fileuniverse.com/spring/ai/RAI%20v0.553%20source.rar here], and save it into the ''{spring source}/AI/Global/'' folder | * download RAI sources [http://www.fileuniverse.com/spring/ai/RAI%20v0.553%20source.rar here], and save it into the ''{spring source}/AI/Global/'' folder | ||
* install the glew development package - on | * install the glew development package - on Ubuntu it's ''sudo apt-get install libglew1.5-dev'' | ||
* open the project in CodeBlocks - there's a project file for CB provided in the RAI/CodeBlocks directory | * open the project in CodeBlocks - there's a project file for CB provided in the RAI/CodeBlocks directory | ||
* then edit the sources a bit to have them be more | * then edit the sources a bit to have them be more cross-platform friendly - atm they use a windows function to create folders. | ||
** in RAI/Global.cpp, edit line 4 to say ''#include <sys/stat.h>'' instead | ** in v0.553: RAI/Global.cpp, edit line 4 to say ''#include <sys/stat.h>'' instead | ||
** in RAI/Global.cpp, edit lines 157-158 to say: | ** for v0.600: this is RAI/RAI.cpp, line 10 | ||
** in v0.553: RAI/Global.cpp, edit lines 157-158 to say: | |||
*** mkdir( "AI/RAI", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ); | *** mkdir( "AI/RAI", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ); | ||
*** mkdir( "AI/RAI/Metal", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ); | *** mkdir( "AI/RAI/Metal", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH ); | ||
** for v0.600: this is RAI/RAI.cpp, lines 1086-1089 | |||
* at this point, it'll compile fine, but give some warnings about int floats. The problem is that it doesn't generate a .so somehow though, so some voodoo magic needs to be done | * at this point, it'll compile fine, but give some warnings about int floats. The problem is that it doesn't generate a .so somehow though, so some voodoo magic needs to be done | ||
** Go to project properties, and under Build Targets, enable 'auto generate extension'. | ** Go to project properties, and under Build Targets, enable 'auto generate extension'. | ||
Revision as of 23:11, 24 July 2008
| Developer | |
| Version | |
| Mod Support | |
| Status | |
| License | |
| Interface | |
| Wrapper | |
Forum thread
Download
Mods with incomplete support:
- BloX (transporters unsupported: can't figure out that guns are attached to the transporters to make a tank)
- 1944 & Epic Legions (requires a unique method of destroying parts of the enemy base)
- Fibre - units are controlled differently than RAI expected, AI-Events do not occur in the way that is expected
- generally, any mod that does not have controllable mobile attack units
Known Crashes:
- None
How to compile on Linux
- download spring sources here, and extract it somewhere
- download RAI sources here, and save it into the {spring source}/AI/Global/ folder
- install the glew development package - on Ubuntu it's sudo apt-get install libglew1.5-dev
- open the project in CodeBlocks - there's a project file for CB provided in the RAI/CodeBlocks directory
- then edit the sources a bit to have them be more cross-platform friendly - atm they use a windows function to create folders.
- in v0.553: RAI/Global.cpp, edit line 4 to say #include <sys/stat.h> instead
- for v0.600: this is RAI/RAI.cpp, line 10
- in v0.553: RAI/Global.cpp, edit lines 157-158 to say:
- mkdir( "AI/RAI", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH );
- mkdir( "AI/RAI/Metal", S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH );
- for v0.600: this is RAI/RAI.cpp, lines 1086-1089
- at this point, it'll compile fine, but give some warnings about int floats. The problem is that it doesn't generate a .so somehow though, so some voodoo magic needs to be done
- Go to project properties, and under Build Targets, enable 'auto generate extension'.
- now use clean the project, and recompile the whole thing. You should get a RAI.so in the CodeBlocks directory.
- to test, put the .so into ~/.spring/AI/Bot-libs/, and since SpringLobby will see it right away, try a single player game.
Version History
v0.551-v0.553 (spring v0.75b2-v0.76b1)
- Fixes
v0.55 (spring v0.75b2)
- Assault units now use basic attack groups
- Remembering enemy positions outside of LOS/Radar
- Restrict hovercraft on certain maps & mods
- Player given orders are now followed until completion
- Unit support added: nano turrets
- Basic building placement added: defenses
- Minor Changes/Fixes
v0.50 (spring v0.74b3)
- Basic hub support & improved build list detection
- Units will now use capture/resurrect/high trajectory and are more willing to reclaim
- Builders will now upgrade extractors/geos
- Expands a little more intelligently
- A bit quicker expansion, slowly seizing available (metal/geo spots)
- Minor Changes/Fixes
v0.40 (spring v0.74b2-v0.74b3)
- Minor Changes/Fixes
v0.355 (spring v0.74b1)
- Fixes
v0.350 (spring v0.73b1)
- Improvements to Building Decisions.
- Support for Water Units/Maps.
- Minor Changes/Fixes
v0.300 (spring v0.73b1)
- First Release