AI directory changes - Page 2

AI directory changes

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

Moderators: hoijui, Moderators

User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Re: AI directory changes

Post by AF »

Sometimes its good to point out utter absurdities in the hope they might get fixed, but don't read any angst or heartache into it.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: AI directory changes

Post by hoijui »

in spring 0.79, the whole interface architecture changed.
some of the changes include:
  • GlobalAIs/Bot-libs are now called SkirmishAIs
  • It is possible to write Skirmish AIs in various languages. so far, C, C++, Java, Groovy, C# (beta)
  • It is possible to add plugins for supporting other languages
  • for native AIs, devs can use the compiler of their choice
  • folder architecture changed dramatically, see below
  • no more Helper AIs (also called GroupAIs) -> use Lua widgets instead
  • backwards compatibility wrapper (Legacy C++ AI) is available
  • mayor reword of the wiki documentation (still in progress, eg tutorials still missing)
Directory architecture changes:
before it was:

Code: Select all

${springExecDir}/AI/MyAI.dll
${springExecDir}/AI/MyAI/config.txt
${springExecDir}/AI/MyAI/log.txt
now it is:

Code: Select all

${readableDataDir}/AI/Skirmish/MyAI/0.123/SkirmishAI.dll
${readableDataDir}/AI/Skirmish/MyAI/0.123/AIInfo.lua
${readableDataDir}/AI/Skirmish/MyAI/0.123/AIOptions.lua
${readableDataDir}AI/Skirmish/MyAI/common/versionIndependentConfig.txt
${readableDataDir}AI/Skirmish/MyAI/0.123/config.txt
${writeableDataDir}AI/Skirmish/MyAI/0.123/log.txt
Some parts of this (eg the common dir) are not available through the Legacy Interface (except through some ugly tweacks, using the pure C callback). they are available to the rest of the Ais.
Annihilannic
Posts: 2
Joined: 11 Mar 2007, 18:51

Re: AI directory changes

Post by Annihilannic »

Would this change have something to do with the fact that in 0.97.1 / lobby 0.46 when I try to add a bot there are no AI DLLs listed?

Before updating to 0.97.1 I renamed the AI directory to avoid confusing myself with old AI versions, so it's effectively a clean slate.

ETA: Never mind, I found this which hopefully answers my question...
Post Reply

Return to “AI”