Search

Search found 58 matches

by LoidThanead
22 Feb 2011, 19:37
Forum: AI
Topic: AI Interface pureification (pureint)
Replies: 11
Views: 4521

Re: AI Interface pureification (pureint)

This sounds exactly like what I've been waiting for. If the AI drawing has been fixed, I can finally debug my building placement algorithm. I know this is probably a silly question, but is there a test build available somewhere that I could pluck off the web and use, or should I go ahead and try to ...
by LoidThanead
03 Aug 2010, 11:19
Forum: AI
Topic: FindClosestBuild site and IsPossibleToBuildAt issue
Replies: 4
Views: 1386

Re: FindClosestBuild site and IsPossibleToBuildAt issue

I've had this issue in the past, and I believe the problem was that the commander itself was blocking the build site. Try moving the commander away a bit before building and see if it helps. Of course, if so, there's a bug in either the canBuildAt or the algorithm that handles the actual building sh...
by LoidThanead
24 Mar 2010, 20:35
Forum: AI
Topic: Need help - java AI
Replies: 26
Views: 7655

Re: Need help - java AI

As far as I know there is no such function.

It's probably best to keep track of what commands you've given to each unit, then select one without orders to give new orders to.
by LoidThanead
14 Mar 2010, 09:48
Forum: AI
Topic: Drawing on the map
Replies: 3
Views: 1266

Re: Drawing on the map

So, drawing through the AI is broken then? That is most unfortunate.
I think I'll try visualizing my data the way JKPAI does it, through Java Swing. If that doesn't work, I'll give the gadgets and widgets a try.

Thanks all.
by LoidThanead
13 Mar 2010, 16:39
Forum: AI
Topic: Drawing on the map
Replies: 3
Views: 1266

Drawing on the map

Hey all, Currently I am trying to debug my AI's handling of resource spots. To that end, it would be incredibly useful to be able to see where it thinks the resource locations are on the map, as well as the distance from the unit's location. I have jot down a bit of code that issues a AddPointDrawAI...
by LoidThanead
06 Oct 2009, 14:26
Forum: AI
Topic: AI rollcall
Replies: 19
Views: 3102

Re: AI rollcall

I'm working on a Java AI. Still quite some ways from being usable though.
by LoidThanead
23 Sep 2009, 19:14
Forum: AI
Topic: C++ AI SDK
Replies: 9
Views: 1785

Re: C++ AI SDK

Actually, along similar lines, I was thinking that some kind of AI middleware could be quite interesting, so that not every AI has to write its own pathfinder, mapping algorithms and so on... Obviously, I'd most prefer such a middleware to be Java-based ;-) but it's all good... I'm working on a Jav...
by LoidThanead
23 Sep 2009, 19:08
Forum: AI
Topic: Positions for Geothermal Plants
Replies: 2
Views: 2018

Re: Positions for Geothermal Plants

Thanks for posting the solution. I can use this. :)
by LoidThanead
27 Aug 2009, 18:54
Forum: AI
Topic: Using the resource maps
Replies: 24
Views: 6020

Re: Using the resource maps

At the time of my initial post, that function did not exist yet. In fact, I believe it was added (partially) as a result of this discussion. ;)

Obviously, I'm using it now, though I've been working on my own method of finding the resource spots, with mixed results.
by LoidThanead
10 Aug 2009, 20:42
Forum: AI
Topic: Java AI Interface for Spring
Replies: 405
Views: 74969

Re: Java AI Interface for Spring

No information is ever useless. Worst it can be is superfluous. There's always some kind of use for any type of information.
by LoidThanead
10 Aug 2009, 15:29
Forum: AI
Topic: Java AI Interface for Spring
Replies: 405
Views: 74969

Re: Java AI Interface for Spring

I was gonna ask for that, but kept forgetting. :) Knowing the result of a game could be used for learning purposes.
by LoidThanead
02 Aug 2009, 15:13
Forum: AI
Topic: Java AI Interface for Spring
Replies: 405
Views: 74969

Re: Java AI Interface for Spring

To me, the game knowing what frame it's at seems fairly logical, but since I have zero knowledge of the internal workings of the callback, I'm quite ready to believe you if you say it isn't so. From a developers point if view, it seems like a waste of effort to have to duplicate the code to keep tra...
by LoidThanead
31 Jul 2009, 21:20
Forum: AI
Topic: Java AI Interface for Spring
Replies: 405
Views: 74969

Re: Java AI Interface for Spring

I notice that game.getCurrentFrame() has been marked deprecated. What're we supposed to use instead? Use the frame that you get in the update call :) It's valid for all subsequent events, until the next update call. I have a situation in which I want to know which frame we're at the moment the obje...
by LoidThanead
31 Jul 2009, 11:07
Forum: AI
Topic: Java AI Interface for Spring
Replies: 405
Views: 74969

Re: Java AI Interface for Spring

During some of my own tests, I noticed this in the outlog file: User exited java.lang.IllegalArgumentException: Structure class com.springrts.ai.event.ReleaseAIEvent has unknown size (ensure all fields are public) at com.sun.jna.Structure.calculateSize(Structure.java:718) at com.sun.jna.Structure.al...
by LoidThanead
31 Jul 2009, 10:42
Forum: AI
Topic: Java AI Interface for Spring
Replies: 405
Views: 74969

Re: Java AI Interface for Spring

I notice that game.getCurrentFrame() has been marked deprecated. What're we supposed to use instead?
by LoidThanead
24 Jul 2009, 15:49
Forum: AI
Topic: Java AI Interface for Spring
Replies: 405
Views: 74969

Re: Java AI Interface for Spring

The version I'm using is the latest I grabbed from the buildbot: the installer spring_0.79.0-626-gb1d7ec1.exe.

It seems to have a package com.clan_sy.spring.ai as well as com.springrts.ai.
by LoidThanead
22 Jul 2009, 19:06
Forum: AI
Topic: Java AI Interface for Spring
Replies: 405
Views: 74969

Re: Java AI Interface for Spring

In the latest Java interface version (the one I got from Buildserv just now) seems to have replaced unitCreated(Unit unit, int builder) with unitCreated(Unit unit). Is this deliberate? If so, why?
by LoidThanead
22 Jul 2009, 10:40
Forum: AI
Topic: Java AI Interface for Spring
Replies: 405
Views: 74969

Re: Java AI Interface for Spring

The method could be interesting if you want to design a 'helper' AI. As in, an AI that takes general orders from a human player, like 'attack' or 'defend this position.' You would want to see which units are available, and not currently in use by the human player before trying to do something with t...
by LoidThanead
14 Jul 2009, 21:47
Forum: AI
Topic: Java AI Interface for Spring
Replies: 405
Views: 74969

Re: Java AI Interface for Spring

If you extends AbstractOOAI (or just implement OOAI) you can keep a list of units using the unitCreated() method. Just keep a map of unit ID's to unit's by keeping track of the units that are created and destroyed. (Use unitCreated() and unitDestroyed()). Note that this only works for friendly units...
by LoidThanead
11 Jul 2009, 22:15
Forum: AI
Topic: Java AI Interface for Spring
Replies: 405
Views: 74969

Re: Java AI Interface for Spring

Shameless plug: you may want to have a look at http://springrts.com/wiki/AIWrapper:ModularAI, which makes it even easier to handle units...

Go to advanced search