View topic - JavaOO AIWrapper



All times are UTC + 1 hour


Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: JavaOO AIWrapper
PostPosted: 13 Jan 2012, 04:06 
User avatar

Joined: 13 Jan 2008, 19:40
Location: New Zealand
Where do I find the source for JavaOO AIWrapper

I have looked to no avail.

I need to because looking at
Code:
setWantedMaxSpeed(float f, short s, int i)
in the definition is not very much help. WTF are f, s, and i.


Top
 Offline Profile  
 
 Post subject: Re: JavaOO AIWrapper
PostPosted: 13 Jan 2012, 15:02 
Spring Developer

Joined: 31 May 2009, 23:08
i hope that helps:

https://github.com/spring/spring/blob/d ... ds.h#L1025

f seems to be wantedMaxSpeed

i looks like options

and int i could be the unit id... (but i'm not sure). hoiju can maybe say more...


Top
 Offline Profile  
 
 Post subject: Re: JavaOO AIWrapper
PostPosted: 14 Jan 2012, 09:13 
User avatar

Joined: 13 Jan 2008, 19:40
Location: New Zealand
In most cases I'm pretty sure the last s, and i are options (like queue) (bitflags converted to short) and time out.

But in functions that have more than just the obvious parameters, it hard to figure out.

And thanks for the link, it seems to have the needed info.


Top
 Offline Profile  
 
 Post subject: Re: JavaOO AIWrapper
PostPosted: 14 Jan 2012, 16:01 

Joined: 18 May 2011, 20:56
Location: Brazil
it was my mistakes...not only one but many consecutive...


Last edited by Zyre on 14 Jan 2012, 17:41, edited 1 time in total.

Top
 Offline Profile  
 
 Post subject: Re: JavaOO AIWrapper
PostPosted: 14 Jan 2012, 16:47 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
Zyre wrote:
It's not working in version 85 to me, commands not work, i has to change all the code and put it in my AI to function properly
i have no idea what you have done, or even what problem you faced, but the good way to do it would have been, to report the problem(s). if you already did that, then you should have mentioned that here (and possibly linked to the mantis report).
in other words.. this post is very confusing, and useless, sorry. ;-)

Zyre wrote:
UnitDef_iscommander insist to give me always a false...how if the unit is the commander ?? game = ba 7.63
the commander tag was removed in spring 85.0, so the engine does no longer know about this anymore. the function is only left in there so old AIs will still compile fine. if you want to make a general AI, you should probably not handle the commander differently then other units, and if you want to make an *A specific AI, you might regex search the unit name or something.


Top
 Offline Profile  
 
 Post subject: Re: JavaOO AIWrapper
PostPosted: 15 Jan 2012, 07:22 
User avatar

Joined: 13 Jan 2008, 19:40
Location: New Zealand
@hoijui

So, no word on where to find the source for the Java OO AI wrapper?


Top
 Offline Profile  
 
 Post subject: Re: JavaOO AIWrapper
PostPosted: 16 Jan 2012, 16:59 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
they are generated by the spring compilation process.
it also generates a sources jar for the Java AI Interface, the OO Java AI Wrapper and each Java Skirmish AI.
i would not know if there is some place where you could download them from directly.


Top
 Offline Profile  
 
 Post subject: Re: JavaOO AIWrapper
PostPosted: 19 Jan 2012, 03:54 
User avatar

Joined: 13 Jan 2008, 19:40
Location: New Zealand
hoijui wrote:
they are generated by the spring compilation process.
it also generates a sources jar for the Java AI Interface, the OO Java AI Wrapper and each Java Skirmish AI.
i would not know if there is some place where you could download them from directly.


In the Spring download there is not source for the OO wrapper, only the Null OO AI


Top
 Offline Profile  
 
 Post subject: Re: JavaOO AIWrapper
PostPosted: 19 Jan 2012, 10:44 
Spring Developer
User avatar

Joined: 22 Sep 2007, 08:51
generated sources are not considered part of the sources (that is not a spring thing). if they are somewhere, then i would expect as sources jar in the windows installer or in some linux package, but i guess that is unlikely. the goal is to have an auto generated dev package for each interface/wrapper one day. i half a half done version of it for hte JavaOO wrapper locally. but i guess as of now you have to generate them yourself. the cmake generated makefile for spring has a target called generateSources.


Top
 Offline Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Site layout created by Roflcopter et al.