gametechmods

Robot Arena => Modifications => Topic started by: life robot arena2 on July 04, 2009, 07:16:50 AM

Title: help!
Post 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.
Title: help!
Post by: man manu on July 04, 2009, 07:23:30 AM
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.
Title: help!
Post by: life robot arena2 on July 04, 2009, 08:16:55 AM
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)}))
Title: help!
Post by: Pwnator on July 04, 2009, 08:53:32 AM
Probably because the nose only ranges from -math.pi to math.pi. Also, you have a spacing error in 'tur n'.
Title: help!
Post by: life robot arena2 on July 04, 2009, 08:58:00 AM
thats a quirk of gtm in the bindings there isnt a spacing error.
Title: help!
Post by: Pwnator on July 04, 2009, 09:47:42 AM
Oh, ok. Fix the nose then and check if it works.
Title: help!
Post by: JoeBlo on July 04, 2009, 09:55:37 AM
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
Title: help!
Post by: Reier on July 04, 2009, 10:15:03 AM
Also "Spinner from the UK (space) ". Maybe.
Title: help!
Post by: Urjak on July 04, 2009, 12:27:53 PM
Another issue is that the problem could be in the Team.txt file, which controls the AI teams. Did you edit that page correctly?
Title: help!
Post by: System32 on July 04, 2009, 12:40:09 PM
Dude, he have a "!" !

He can't export it!

Also, don't use double spaces...
Title: help!
Post by: ACAMS on July 04, 2009, 01:05:50 PM
Quote from: life robot arena2;48614
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!"
Title: help!
Post by: life robot arena2 on July 04, 2009, 01:41:11 PM
S32 do i have to remove the ! in the bot?
EDIT:ACAMS I did that and it crashed.
Title: help!
Post by: ACAMS on July 04, 2009, 01:59:16 PM
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
Title: help!
Post by: life robot arena2 on July 04, 2009, 02:01:00 PM
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....
Title: help!
Post by: R1885 on July 04, 2009, 02:07:37 PM
Quote from: life robot arena2;48711
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?
Title: help!
Post by: life robot arena2 on July 04, 2009, 02:12:10 PM
Bot2(well second time.)
Title: help!
Post by: ACAMS on July 04, 2009, 02:13:31 PM
Replace your line with this WHOLE line
 
Code: [Select]
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,'
Title: help!
Post by: life robot arena2 on July 04, 2009, 02:17:11 PM
*sigh*ACAMS i vainly checked the ai. no sight of directionspinner.py. please send it.
Title: help!
Post by: takatsukiyayoi on July 04, 2009, 02:18:11 PM
Try using other AI.py files, see if that helps.
Title: help!
Post by: ACAMS on July 04, 2009, 02:21:00 PM
I don't have it is why I ask
 
Change the name to "Spinner"
Title: help!
Post by: life robot arena2 on July 04, 2009, 02:23:53 PM
/headdesk
dam!  gotta be something else.
Title: help!
Post by: JoeBlo on July 04, 2009, 08:16:17 PM
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
Title: help!
Post by: Doomkiller on July 04, 2009, 09:53:21 PM
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.....
Title: help!
Post by: JoeBlo on July 04, 2009, 10:22:09 PM
because the py file "spinner" contains both spinner and directional spinner coding inside it
Title: help!
Post by: Madiaba on July 04, 2009, 10:32:27 PM
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...
.
.