I've read just about every post on the subject....
And I am stumped.
(not even at the point of coding an AI yet).
Started by following this tutorial:
http://spring.clan-sy.com/wiki/AI:Hughs ... I_tutorial
just copying the csailoader stuff as a new name and getting an AI to run causes me to get mismatched global-ai dll error messages (when running with latest release version of spring).
Should that be? Surely I don't have to recompile spring from scratch? My goal is to produce an AI that my friends can compete against....they are all running latest release version of spring and BA...
Suggestions?
Confusion about building new AI
Moderators: hoijui, Moderators
Re: Confusion about building new AI
as you may read in the forum, a new release of spring si planned (devs are currently bug hunting). as soon as that version is out, you had to adapt your AI to the AI interface changes. thought it are not that extremly many, i think.
if you want an AI for the current release version of spring, you need to ge the source of spring for that version. you can find it here:
http://spring.clan-sy.com/download.php
then you need to set up the build system to compile spring, i know, you do not want ot compile spring, but.. you need the same stuff anyway.. so its the easiest way. how to compile spring with MinGW:
http://spring.clan-sy.com/wiki/Engine_D ... NS.2FMinGW
mingw exists for windows and linux. you need to use mingw, as the release version of spring is compiled with MinGW too, and if you want to send the AI to mates which use the release version, this is the only way, as other compilers will not generate compatible AIs.
usually, AI devs have use the latest version of the source from SVN, to develop their AIs. they also keep a version that works with the spring release version, and if they find a big bug, they put hte fix in both versions and release a new version of their AI for surrent spring.
short: it is really not so nice
if you want an AI for the current release version of spring, you need to ge the source of spring for that version. you can find it here:
http://spring.clan-sy.com/download.php
then you need to set up the build system to compile spring, i know, you do not want ot compile spring, but.. you need the same stuff anyway.. so its the easiest way. how to compile spring with MinGW:
http://spring.clan-sy.com/wiki/Engine_D ... NS.2FMinGW
mingw exists for windows and linux. you need to use mingw, as the release version of spring is compiled with MinGW too, and if you want to send the AI to mates which use the release version, this is the only way, as other compilers will not generate compatible AIs.
usually, AI devs have use the latest version of the source from SVN, to develop their AIs. they also keep a version that works with the spring release version, and if they find a big bug, they put hte fix in both versions and release a new version of their AI for surrent spring.
short: it is really not so nice

Re: Confusion about building new AI
The tutorial for AIs you were following is for C# AIs and relies on proxy dlls which do not work anymore.
If you wish to use C# to make an AI you are best waiting until the new AI interface is deemed fit for purpose.
If you wish to use C# to make an AI you are best waiting until the new AI interface is deemed fit for purpose.