Author Topic: AI Problem...  (Read 1961 times)

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
AI Problem...
« on: October 04, 2008, 11:29:03 AM »
Hi All
Im trying to AI my robots for a DSL Robot Wars video i'll be doing on You Tube, but when i've done all of the AI'ing, the game crashes.
I did it all corectly, names, instructions ect.
Can someone please help me!
(P.S., before you send me any guides on how to AI, i know already!)
Any helpers?
Thanks!
Whamett
Damn I should probably put something fancy in this bit huh?

Offline Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
AI Problem...
« Reply #1 on: October 04, 2008, 11:36:11 AM »
Ah! Ah! It did the same to me yesterday! I lost my LW AI team, but the game works fine.

Just replace your AI folder with a fresh AI one. Just save whatever you can before.

I suppose it has something to do with the bindings.py.

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
AI Problem...
« Reply #2 on: October 04, 2008, 11:53:56 AM »
Ok, ill try that now.
Damn I should probably put something fancy in this bit huh?

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
AI Problem...
« Reply #3 on: October 04, 2008, 12:13:10 PM »
It works, but im not sure if i should ai again
Damn I should probably put something fancy in this bit huh?

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI Problem...
« Reply #4 on: October 04, 2008, 12:27:41 PM »
Quote from: WhamettNuht;16298
It works, but im not sure if i should ai again


Most of the time when, after AIing, the game crashed, it's because of a bad file 'bindings.y'.

Most common errors :
-the kind of bot is not correct ( 'Spinner' not 'spiner' or 'spinner' : beware of case)
-if you use the word intertible, the 'True' which follows must start with 'T', n ot 't'
-bad indentation :To verify this, use a free editor like notepad++ wich understand python grammar and tells you about bad indentation, forgotten parenthesis, and so on.
If you want, send me by private message (if not to big) you file bindings.py, i will have a look during the weekend.

If the games crashed when you start event or exhibition (but start well otherwise), this is because of a misspelled name of bot or a bot you forgot to AIed.

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
AI Problem...
« Reply #5 on: October 04, 2008, 12:31:03 PM »
I did it all correctly, cases, names, the lot!
Damn I should probably put something fancy in this bit huh?

Offline ACAMS

AI Problem...
« Reply #6 on: October 04, 2008, 01:12:45 PM »
I bet you didn't.......or it would work!!  Check for a missing ' or just one letter out of place or missing will crash it.......if your bot name is "mean (two spaces) bot" and you type in "mean (one space) bot"  it will crash. (hehehe......ask Starcore because I am bad about putting 2 spaces in my bot names)

Offline Madiaba

AI Problem...
« Reply #7 on: October 04, 2008, 01:52:47 PM »
I agree with ACAMS and Phil, that's the most likely scenario.
 
I would just add that you should edit python files with Python, specifically because of the internal checking abilties. It's free and easy to install. Just google it.
 
Actually W-nut, if you can send me your Bindings.py I'll look at it...
Edit: Phil offered the same...)
« Last Edit: October 04, 2008, 02:05:04 PM by Madiaba »
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
AI Problem...
« Reply #8 on: October 04, 2008, 01:56:06 PM »
No, it doesnt crash when i start an exhibition match, it crashes when i start the game up, going through the UI splash screens.
Damn I should probably put something fancy in this bit huh?

Offline Madiaba

AI Problem...
« Reply #9 on: October 04, 2008, 01:59:44 PM »
W-nut, if certain things in your Binding.py are not right, it WILL crash at start up.
.
.
« Last Edit: October 04, 2008, 02:06:48 PM by Madiaba »
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
AI Problem...
« Reply #10 on: October 04, 2008, 03:15:05 PM »
Oh, ok!
I didnt know that, thanks!
Damn I should probably put something fancy in this bit huh?