Author Topic: AI problem 2  (Read 1097 times)

Offline 70 CUDA

  • *
  • Posts: 758
  • Rep: 2
  • Epic skulls= Epic win
  • Awards BOTM Winner
    • View Profile
    • Awards
AI problem 2
« on: December 14, 2008, 10:25:54 PM »
ok so like i said in my DSL showcase i had to rename my GUMBA HW. cake job right....... well i did it and now the AI nose command has no effect on the bot whatsoever. so i tried to just re AI it as a whole new bot BUT GUSS what it still wont work. heres the bindings line. before i renamed it it was nose.pi*2. so it shoud be that as its the same bot. it just starts faceing backwards and drives away from the other bot. see if i missed something. witch i did im sure.

Code: [Select]
   list.append(("HEMIEVIL","Omni",{'nose':math.pi*2.0,'invertible':True,'range':99,'radius':0.01,'topspeed':100,'throttle':100,'turn':60,'turnspeed':1.8,'weapons':(21,22,23,24,25,34,35,36,28,36)}))
Holy crap they do exist!!!! :Rob2

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI problem 2
« Reply #1 on: December 15, 2008, 03:23:31 AM »
Quote from: 70hemicuda;24623
ok so like i said in my DSL showcase i had to rename my GUMBA HW. cake job right....... well i did it and now the AI nose command has no effect on the bot whatsoever.  


are you sure you have not another entry in your bindings.py with the same bot name ?

Offline 70 CUDA

  • *
  • Posts: 758
  • Rep: 2
  • Epic skulls= Epic win
  • Awards BOTM Winner
    • View Profile
    • Awards
AI problem 2
« Reply #2 on: December 15, 2008, 03:45:10 AM »
ya i did have it in there twice but i took one out and it still dont work.
Holy crap they do exist!!!! :Rob2

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
AI problem 2
« Reply #3 on: December 15, 2008, 04:20:28 AM »
Quote from: 70hemicuda;24643
ya i did have it in there twice but i took one out and it still dont work.
Are you sure you did not  have it 3 times in your binding ?

telling heading is math.pi * 2 is like telling it is angle 0 -> the same as telling nothing !
did you not want to tell it  just 'nose':math.pi only ?

Offline somestrangeguy

  • *
  • Posts: 2068
  • Rep: 2
  • If you can read this, your monitor is turned on.
  • Awards BOTM Winner
    • View Profile
    • Awards
AI problem 2
« Reply #4 on: December 15, 2008, 02:31:59 PM »
Do you have any extra paces anywhere? Just 1 single space at the end of the code makes it not work, or a missing space at the beginning of the code.

Offline 70 CUDA

  • *
  • Posts: 758
  • Rep: 2
  • Epic skulls= Epic win
  • Awards BOTM Winner
    • View Profile
    • Awards
AI problem 2
« Reply #5 on: December 15, 2008, 03:20:30 PM »
ok some how without doing a thing i fixed it lol it was just a glitch.
Holy crap they do exist!!!! :Rob2