AI:RAI: Difference between revisions

From Spring
Jump to navigationJump to search
Reth (talk | contribs)
No edit summary
Vadi (talk | contribs)
No edit summary
Line 8: Line 8:
*1944 & Epic Legions (requires a unique method of destroying parts of the enemy base)
*1944 & Epic Legions (requires a unique method of destroying parts of the enemy base)


Known Crash:
Known Crashes:
*None
*None
=== How to compile on Linux ===
* 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
* 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 crossplatform 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 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 );
* 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 ''/usr/lib/spring/AI/Bot-libs/'', and since SpringLobby will see it right away, try a single player game.


=== Version History ===
=== Version History ===

Revision as of 20:17, 4 April 2008

RAI
Developer
Reth
Version
v0.553 (spring v0.76b1)
Mod Support
Supports All Known Mods
Status
Under Active Development
License
-
Interface
{{{7}}}
Wrapper
{{{8}}}
<- Back to List of AIs

Forum thread

Mods with incomplete support:

  • BloX (transporters unsupported) - AI can't figure out that guns go on tankbases to make a tank.
  • 1944 & Epic Legions (requires a unique method of destroying parts of the enemy base)

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 crossplatform 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 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 );
  • 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 /usr/lib/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

<- Back to AI page