I just started my own Skirmisch AI with the java interface and currently i get errors like
"Warning: AI for team <some number> failed handling event with topic <some number>, error <some number>" inside a running game.
Is there a place where i could lookup whats causing the error for some combinations off numbers?
If not, does somebody knows what causes the error with topic 6: error 2?
thanks
failed handling event with ...
Moderators: hoijui, Moderators
Re: failed handling event with ...
look at rts/ExternalAI/Interface/AISEvents.h there is a list of the topics, and you will see what topic 6 is. make sure your AIInfo.lua file is correct, and that the right one is used by spring. in your event handling methods, cover everything with this:
Code: Select all
try {
...
} catch (Throwable t) { // Throwable covers more then Exception
t.printStackTrace();
}