Newbie AI developer

Newbie AI developer

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

Moderators: hoijui, Moderators

Post Reply
fasisi
Posts: 1
Joined: 10 Mar 2013, 09:26

Newbie AI developer

Post by fasisi »

Hello,

I want to develop an AI to play in SpringRTS and I face several problems:

1. A tutorial said that I can start build one by copy some .jar files from the SpringRTS installation directory.

One of the .jar file is a jna.jar and I can not find it in the SpringRTS directory. I only get AIInterface.jar.

Where can I get the jna.jar?

2. In the tutorial I can see that I must make a new class that extends OOAI and implements AIFactory. But I neither OOAI or AIFactory can be found in AIInterface.jar.

Any helps?

Thank you.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Newbie AI developer

Post by hoijui »

the tutorial is outdated, and the original sources are... kind of lost?

JNA is not used anymore, so you simply do not need it.

try to look at the NullOOJavaAI that comes with spring.
its sources are here:
https://github.com/spring/spring/tree/d ... llOOJavaAI
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6240
Joined: 29 Apr 2005, 01:14

Re: Newbie AI developer

Post by FLOZi »

hoijui wrote:the tutorial is outdated, and the original sources are... kind of lost?

JNA is not used anymore, so you simply do not need it.

try to look at the NullOOJavaAI that comes with spring.
its sources are here:
https://github.com/spring/spring/tree/d ... llOOJavaAI
Care to update the wiki hoijui?

Image

Image
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Newbie AI developer

Post by hoijui »

i marked the tutorial PDF as outdated, but i have no time to go through the rest. i would also have to check most things myself again.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Newbie AI developer

Post by knorke »

Sorry if that is off topic, if so just ignore it.

Are you open to using Lua instead of Java?
In my opinion the advantage are:
-more examples (both working AIs and general spring-related lua code)
-more people seem to use it, who can help in chat or forum
-dont have to worry about ai-interfaces being changed, outdated or not documentated.
Post Reply

Return to “AI”