gametechmods

Robot Arena => General Support => Topic started by: TriTon on October 22, 2009, 10:45:12 PM

Title: AIing problem
Post by: TriTon on October 22, 2009, 10:45:12 PM
I can finally AI bots now, but when i start a match facing the AIed bot, it crashes the game. Why does this happen?
Title: AIing problem
Post by: The Ounce on October 22, 2009, 11:37:21 PM
If it crashes right when you start a match, it's probably an error in the bindings; make sure you have no typos or extra spaces.
Title: AIing problem
Post by: TriTon on October 22, 2009, 11:51:08 PM
Checked them and everything is fine. But still crashes.
Title: AIing problem
Post by: The Ounce on October 22, 2009, 11:56:43 PM
If you download Philetbabe's AI chart, there's a list of possible errors that can lead to a RA2 crash while AIing.  

I believe it is this:
https://gametechmods.com/uploads/files/AI-Chart-2.3.rar (https://gametechmods.com/uploads/files/AI-Chart-2.3.rar)
Title: AIing problem
Post by: Naryar on October 23, 2009, 02:29:07 AM
Quote from: The Ounce;74440
If it crashes right when you start a match, it's probably an error in the bindings; make sure you have no typos or extra spaces.

Haha no an error like this in the bindings crashes the whole game at start.

Triton it's either that the robot names are not the same (the names in the bot file and the name in Bindings.py) or you didn't wired your bot right.
Title: AIing problem
Post by: 123savethewhales on October 23, 2009, 02:32:45 AM
The few things that I know of that leads to crashing while match starts

1.  Naming error (different name in binding/actual bot)
2.  Component error (using a component that you don't have)
3.  You left F12 on
Title: AIing problem
Post by: philetbabe on October 23, 2009, 04:49:54 AM
- unknown AI (you don't have the corresponding .py)
- open quote  never closed in binding (most of the time : early crash)
- unmatched  parenthesis (most of the time : early crash)
-(after countdown) undeclared variable or constant (case where you write your own AI)