Debug Tools For AI developer

Debug Tools For AI developer

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
cain
AI Developer
Posts: 124
Joined: 09 Aug 2005, 10:04

Debug Tools For AI developer

Post by cain »

http://fileuniverse.com/?p=showitem&ID=1367

I've postet some tools I use for debugging my ai, cleaned for you other developer out of there. nothing special, also maybe a bug slip trought...

They're a GlobalAIDebug and a GlobalAICallbackDebug class that act as "middleware" betwen your ai and the spring engine, catching ("hopefuly TM") most of error and exception, trying to prevent crashes, and logging errors. If you find them useful let me know, I plan to post other tools as i perfection them.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Nice, though it would be better if it always printed messages on verbose mode instead of just on errors.
cain
AI Developer
Posts: 124
Joined: 09 Aug 2005, 10:04

Post by cain »

I coulden't understand what did you mean
(no offense intendet, just Italian)

to add a writeLogMessage("XXX: function called");

at every call? I'll do.
User avatar
jcnossen
Former Engine Dev
Posts: 2440
Joined: 05 Jun 2005, 19:13

Post by jcnossen »

Yes like that, so you can see exactly when the engine calls the IGlobalAI.
It's not really needed in CGlobalAICallbackDebug I guess, since you know what and when you're calling anyway...
cain
AI Developer
Posts: 124
Joined: 09 Aug 2005, 10:04

Post by cain »

ok, i'll relase the new version when the metal map analysis tools are ready
Post Reply

Return to “Engine”