gametechmods

Robot Arena => General Support => Topic started by: yugitom on January 30, 2016, 07:36:00 PM

Title: Bot Always Faces Backward
Post 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?
Title: Re: Bot Always Faces Backward
Post by: Thrackerzod on January 30, 2016, 07:42:28 PM
What AI lines have you tried so far that don't work?
Title: Re: Bot Always Faces Backward
Post by: yugitom on January 30, 2016, 07:43:58 PM
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.
Title: Re: Bot Always Faces Backward
Post by: Thrackerzod on January 30, 2016, 07:44:53 PM
Try it with math.pi/2 ?
Title: Re: Bot Always Faces Backward
Post by: yugitom on January 30, 2016, 07:49:43 PM
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.
Title: Re: Bot Always Faces Backward
Post by: Thrackerzod on January 30, 2016, 07:50:51 PM
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?
Title: Re: Bot Always Faces Backward
Post by: yugitom on January 30, 2016, 07:52:44 PM
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.
Title: Re: Bot Always Faces Backward
Post by: Mr. AS on January 30, 2016, 07:55:46 PM
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
Title: Re: Bot Always Faces Backward
Post by: yugitom on January 30, 2016, 08:02:18 PM
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.
Title: Re: Bot Always Faces Backward
Post by: Thrackerzod on January 30, 2016, 08:13:07 PM
Oh dang, well, glad you got it figured out.