Page 1 of 1
failed handling event
Posted: 20 May 2012, 23:34
by msm8bball
[f=0000000] Warning: AI for team 0 (ID: 0) failed handling event with topic 6, error: -5
[f=0000001] Warning: AI for team 0 (ID: 0) failed handling event with topic 3, error: -5
Seeing these errors a lot. What do they mean? And is there a place where I could look up what those error codes mean myself?
Re: failed handling event
Posted: 21 May 2012, 09:19
by hoijui
the meaning of the topic numbers can be found here:
https://github.com/spring/spring/blob/d ... ISEvents.h
the meaning of the error is a harder thing. the error coudl happen in the native part of the ai interface (if AI is Java:, the java part, the OO wrapper) or the AI itsself.
most likely, you are throwing exceptions or other throwables in your event handling code. simply try to catch them.
Re: failed handling event
Posted: 22 May 2012, 01:43
by msm8bball
Thanks, that helped me narrow it down. Apparently every frame I was trying to access a List<Unit> that hadn't been initialized yet. I guess I was expecting a null reference exception.