failed handling event with ...

failed handling event with ...

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

Moderators: hoijui, Moderators

Post Reply
mmisc
Posts: 16
Joined: 24 Feb 2009, 19:18

failed handling event with ...

Post by mmisc »

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
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: failed handling event with ...

Post by hoijui »

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();
}
mmisc
Posts: 16
Joined: 24 Feb 2009, 19:18

Re: failed handling event with ...

Post by mmisc »

thx
Post Reply

Return to “AI”