gametechmods
Robot Arena => Modifications => Topic started by: life robot arena2 on July 04, 2009, 07:16:50 AM
-
I've got a bot that i want to AI but the game crashes when i face it.
-
You have obviously AI's it wrong then. Tell us exactly what you did and maybe somebody that doesn't totally hate you may take the time to try and halp you out.
-
here is the line right now.
list.append(("Shredder from UK! ","DirectionalSpinner",{'nose':math.pi*2.25,'range':500,'radius':1,'topspeed':12,'throttle':130,'turn':60,'turnspeed':5,'weapons':(27,28,29,30,35,36,37,38,39,40,41,42,43,44,45,46,47,48,53,54)}))
-
Probably because the nose only ranges from -math.pi to math.pi. Also, you have a spacing error in 'tur n'.
-
thats a quirk of gtm in the bindings there isnt a spacing error.
-
Oh, ok. Fix the nose then and check if it works.
-
you will find most times if anything in the bindings is wrong it will crash the game during load up, if the bot appears there and only crashes when you go to use it then either something is missing from the bindings or its name related
I remember in clash cubes 1 I spent a whole day trying to AI man manu's bot only to find the problem was a space after the name
easiest way is to export the bot (dont change the file name) open up robot designs right click the file > rename, right click and copy to get it exact
-
Also "Spinner from the UK (space) ". Maybe.
-
Another issue is that the problem could be in the Team.txt file, which controls the AI teams. Did you edit that page correctly?
-
Dude, he have a "!" !
He can't export it!
Also, don't use double spaces...
-
here is the line right now.
list.append(("Shredder from UK! ","DirectionalSpinner",{'nose':math.pi*2.25,'range':500,'radius':1,'topspeed':12,'throttle':130,'turn':60,'turnspeed':5,'weapons':(27,28,29,30,35,36,37,38,39,40,41,42,43,44,45,46,47,48,53,54)}))
Here is your problem..
"Shredder from UK! "
It should be
"Shredder from UK!"
-
S32 do i have to remove the ! in the bot?
EDIT:ACAMS I did that and it crashed.
-
Do you have DirectionalSpinner.py in your AI folder?
Make sure in the bot name that Shredder from UK! has ONLY one space between each.
Here is another problem.....DELETE THIS....,'tur n':60
-
like i said the space error came on due to a GTM fail.
No i dont have directionalspinner.py in the ai folder but matilda works!
Hmm....
-
like i said the space error came on due to a GTM fail.
No i dont have directionalspinner.py in the ai folder but matilda works!
Hmm....
Did you export it as Bot0, Bot1, Bot2, Bot3, Bot4, or Bot5?
-
Bot2(well second time.)
-
Replace your line with this WHOLE line
list.append(("Shredder from UK!","DirectionalSpinner",{'nose':math.pi*2.25,'range ':500,'radius':1,'topspeed':12,'throttle':130,'turnspeed':5,'weapons':(27,28,29,30,35,36,3 7,38,39,40,41,42,43,44,45,46,47,48,53,54)}))
And MAKE SURE you have DirectionalSpinner.py in your AI folder
Make sure you have the bot file and double check the name
Where did you come up with "DirectionalSpinner" anyway?
WOW..junky high dollar vBulletin DOES mess up ,'tur n':60,'
-
*sigh*ACAMS i vainly checked the ai. no sight of directionspinner.py. please send it.
-
Try using other AI.py files, see if that helps.
-
I don't have it is why I ask
Change the name to "Spinner"
-
/headdesk
dam! gotta be something else.
-
put your bot in a rar file, upload it and pm it to me and I will write a line for it and you can compare the 2 and learn where you went wrong
-
what I dont get is that some of the bots, eg civil uprising, have directionalSpinner in the binding line but there is no directionalspinner py file.....
-
because the py file "spinner" contains both spinner and directional spinner coding inside it
-
It's actually not a py document itself, but rather resides 'in' another; "Spinner.py".
Edit: Thanks Joe. Snail dial-up at my parents house...
.
.