gametechmods
Robot Arena => General Support => Topic started by: yugitom on January 30, 2016, 07:36:00 PM
-
So I am AI'ing a robot and no matter what I do to this: 'nose':math.pi, the robot always seems to face backward when beginning a match. It's forward facing is correct in the bot lab, too. Anyone else had this problem before?
-
What AI lines have you tried so far that don't work?
-
The generic 'nose':math.pi and 'nose':math.pi*2. No matter the forward facing orientation, that should flip where it faces by 180 degrees no matter what but the robot loves to stare at the wall regardless.
-
Try it with math.pi/2 ?
-
I was ready to slap myself for not trying that but it doesn't work. Still ramming head first in the wall :P Thanks for the suggestion and help, though.
-
Hrm darn, I was hoping that'd at least make it sideways or something.
Can you share the bot file or is it a secret?
-
It's for a tournament, so I'd rather not share it publicly but it's one you're not entering so I'll send it to you, along with the AI line I have for it, if you want.
-
Try:
'nose':math.pi
'nose':0
'nose':-math.pi
'nose':-math.pi/2
'nose':-math.pi*2
'nose':math.pi/2
'nose':math.pi*2
Also check to make sure you only have 1 'nose':math.pi
-
Ffs, I have found the solution and I really should have realised sooner. The name of the robot shares a name with a replica in DSL, so it's taking that replica's AI line, first. I'll have to make a slight adjustment to the robot's name. Thanks for the help anyway, guys.
-
Oh dang, well, glad you got it figured out.