Page 1 of 1

ren'AI

Posted: 15 Dec 2005, 04:21
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)

Posted: 15 Dec 2005, 06:28
by Dragon45
You should call it AIren (rhymes with "siren") ;)

Posted: 15 Dec 2005, 14:38
by sp2danny72
check the sticky in this forum, it has the API

Posted: 15 Dec 2005, 18:31
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.

Posted: 15 Dec 2005, 20:31
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.

Posted: 15 Dec 2005, 20:46
by Tobi
and for the actual DLL/SO interface, start with NTAIs/JCAIs Interface.cpp, that one's windows/linux compatible.

Posted: 15 Dec 2005, 20:57
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;
}