Weird errors with JavaAI

Weird errors with JavaAI

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

Moderators: hoijui, Moderators

Post Reply
aeonios
Posts: 202
Joined: 03 Feb 2015, 14:27

Weird errors with JavaAI

Post by aeonios »

For reasons I can't explain I've been having problems with errors returned upon trying to give orders to units. It just says "error -3" and I can't find any good reason why it should be doing so.

ex. (Unit).moveTo(someaifloat3, (short) 0, frame+whatever); -> error -3
or worse yet
(Unit).stop((short) 0, frame+whatever); -> error -3

which has been breaking things.

Relevant code: https://github.com/Anarchid/zkgbai/blob ... .java#L396

Relevant infolog gibberish:

Code: Select all

[f=0036090] <SkirmishAI: ZKGBAI 0.2 (team 0)>: exception(com.springrts.ai.oo.CallbackAIException: Error calling method "moveTo": -3
 	at com.springrts.ai.oo.clb.WrappUnit.moveTo(WrappUnit.java:630)
 	at zkgbai.military.MilitaryManager.retreatCowards(Unknown Source)
 	at zkgbai.military.MilitaryManager.update(Unknown Source)
 	at zkgbai.ZKGraphBasedAI.update(Unknown Source)
 ) com.springrts.ai.oo.CallbackAIException: Error calling method "moveTo": -3
If someone could explain what that error means it would be extremely helpful. :|
aeonios
Posts: 202
Joined: 03 Feb 2015, 14:27

Re: Weird errors with JavaAI

Post by aeonios »

Nevermind, I just wasn't removing dead units from that particular group.
Post Reply

Return to “AI”