Confusion about building new AI

Confusion about building new AI

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
casperjeff
Posts: 51
Joined: 14 Aug 2008, 21:54

Confusion about building new AI

Post by casperjeff »

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?
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Confusion about building new AI

Post by hoijui »

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 ;-)
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: Confusion about building new AI

Post by AF »

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.
Post Reply

Return to “AI”