ren'AI

ren'AI

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

Moderators: hoijui, Moderators

Post Reply
renrutal
Posts: 84
Joined: 28 Apr 2005, 16:45

ren'AI

Post by renrutal »

Yo! I've been watching this forum for some time, maybe even before most of you(too bad I don't come often), but just now I've got bored enough to try to code something. I already took a small peek at Zaphod's(really impressive man, nice code, professional looking), Alantai's(big one, a bit messy), and if my memory isn't failing, cain's. Well, that was long time ago.

If I get over my lazyness and actually take this seriously there's a minimal change I get something done. I never coded anything seriously, much less a dynamic library, so I still consider myself a beginner-to-intermediate class of coder.

Just for your curiosity, I'm not coding anything yet, just looking around to find the entry point. Also I'm taking a different path from you guys, my code will be done almost exclusively on Linux. Heh, I haven't even tried to get the game working here before anything, but that's just a small detail ;)
I don't even know if my hardware will support it... oh well

I just need one info: Where can I find the AI interface functions, are they documented somewhere or will I have to look directly at Spring's source?

Oh, BTW, I'm planning to take the name ren'AI for the project. 8)
User avatar
Dragon45
Posts: 2883
Joined: 16 Aug 2004, 04:36

Post by Dragon45 »

You should call it AIren (rhymes with "siren") ;)
User avatar
sp2danny72
Posts: 60
Joined: 09 Jan 2005, 04:52

Post by sp2danny72 »

check the sticky in this forum, it has the API
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

You'd have no choice but to make it linux and windows compatible.

Next version of NTAI has a lot of commenting added. Basic structure beign cglobal AI creates a global class, global class creates agent classes, each agent class does its own thing.
renrutal
Posts: 84
Joined: 28 Apr 2005, 16:45

Post by renrutal »

sp2danny72 wrote:check the sticky in this forum, it has the API
Or just a copy paste of the API found at the source. I suppose it's better this way.
Tobi
Spring Developer
Posts: 4598
Joined: 01 Jun 2005, 11:36

Post by Tobi »

and for the actual DLL/SO interface, start with NTAIs/JCAIs Interface.cpp, that one's windows/linux compatible.
User avatar
AF
AI Developer
Posts: 20687
Joined: 14 Sep 2004, 11:32

Post by AF »

look at the addition I amde to my interface.cpp that i posted in the thread about information and the dll interface

edit::

Code: Select all

DLL_EXPORT void WINAPI GetInfo(char* name)
{
   strcpy(name,"NTAI V0.29.05, a skirmish AI coded by Alantai");
}
DLL_EXPORT float WINAPI GetVersion()
{
   return 0.2905f;
}
Post Reply

Return to “AI”