Author Topic: RA2 crashing  (Read 1040 times)

Offline JACKSRROW

  • Antweight
  • Posts: 4
  • Rep: 0
    • View Profile
    • Awards
RA2 crashing
« on: May 04, 2008, 11:31:41 PM »
how come RA2 crashs when i try to fight tornado?

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
Roads to explore
« Reply #1 on: May 13, 2008, 06:24:11 AM »
The main reasons for a RA2 crash are :
-the file AI/Bindings.py is not correct. In Python, indentation is important. When this happens, RA2 crashed quickly. -> just edit you file Bindings.py and verify that all line 'list.append...' start with a few blank (all the same number).
-The second reason is that the kind of bot is misspelled in the Bindings.py or they are syntax error (missing quotes, unclosed parenthesis, etc) : ie : you write 'Spiner' instead of 'Spinner'. Here also, RA2 crashes quickly. You may use an editor which understand Pyhton syntax to help you discover thoses problems. notepad++ which is free and useful.
-The third reason is that the bot you use is based on components (or sound of component) you do not upload. ie: the component contains anti ballast and you do not have them (even hidding) in your components directory.
-The last reason, is that the bot you use is not referenced in your Bindings.py
for the two last reason, RA2 crashes just when you want to fight the bot.

An uncommon reason is also that your AI/team does not contains bots, but that is not usual.
« Last Edit: May 13, 2008, 06:49:51 AM by philetbabe »