Weird errors with JavaAI
Posted: 15 Nov 2015, 09:51
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:
If someone could explain what that error means it would be extremely helpful. 
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
