Fixes

Posted on 21 Apr 2006 by StealthEye
I've done quite a lot fixes to the scipts.dll code. I also rewrote some systems to work better and to be more easy to maintain.

The fixes include the bug that all commands would be parsed twice, once by my scripts.dll, and once by brenbot. Now, the commands I made will not be parsed by brenbot. The main advantages are that brenbot is slow sometimes, might not be running or has major or minor bugs.

Another important fix is that the server would crash on any message with %s in it. Other scripts.dll bots may have the same problem, due to a misinterpretation of an internal scripts.dll command (Console_Output). My bot uses Console_Output for example to show messages to the console, which would fail is %s was used.
I have notified jonwil, the scripts.dll owner, and he said it should be fixed in the new version. I have fixed it in my version already.
If you want to test it, type "msg %s%s%s%s%s%s%s%s%s%s%s%s%s" (or any long string with a lot of "%s") ingame after pressing F8. Your game should crash.. :P That's kinda what happened to the server too...