gametechmods

Robot Arena => General Support => Topic started by: System32 on February 19, 2009, 09:20:30 AM

Title: Bots face wrong Direction!
Post by: System32 on February 19, 2009, 09:20:30 AM
I've Tried to AI two LW Bots With the Spinner AI For My AI pack, the first is a HS Called Alpha 2, the Second a VS Called Beta. When I run them, they face the wrong way. I've treid To fix it by changing the Direction in the workshop, but that does not work. Any help?
Title: Bots face wrong Direction!
Post by: R1885 on February 19, 2009, 09:48:08 AM
I had the same problem, until I learned the nose function. Hard to explain, but it lets you set the "nose" of the bot.
Title: Bots face wrong Direction!
Post by: System32 on February 19, 2009, 09:51:53 AM
Nose?
Title: Bots face wrong Direction!
Post by: R1885 on February 19, 2009, 09:57:42 AM
Give me some time to make a screen shot, I'm at school at the moment, and I will get an image up when  get home.
Title: Bots face wrong Direction!
Post by: Dragonfire on February 19, 2009, 10:30:42 AM
you need to change their direction in the AI bindings.py - changing it in the workshop doesn't effect it's orientation:
Code: [Select]
[font=courier]   list.append(("M.O.E.","DirectionalSpinner",{'invertible':True,[COLOR=Red]'nose':math.pi[/COLOR],'range':99,'radius':.5,'turn':30,'turnspeed':2.5,'weapons':(12,13,25,26,27,28,29,30)}))[/font]here, i am using the example of DSL M.O.E. The specific code to orientate M.O.E. 180° is in red.
For more guidance on this, read the section from Starcore's AI tutorial:
https://gametechmods.com/RA2wiki/index.php?title=How_to_AI_your_bot#Fixing_orientation
Title: Bots face wrong Direction!
Post by: Serge on February 19, 2009, 01:33:27 PM
And it's in radians, so:
0 degrees - 0 radians
90 degrees - pi/2 radians
180 degrees - pi radians
270 degrees - 3pi/2 radians
360 degrees - 2pi radians
Title: Bots face wrong Direction!
Post by: Madiaba on February 19, 2009, 01:45:08 PM
Here's an easy paradigm (post #54): https://gametechmods.com/forums/showthread.php?t=1103&page=2 (https://gametechmods.com/forums/showthread.php?t=1103&page=2)
 
Paste it at the top of your Bindings.py, for a reference.
 
..
Title: Bots face wrong Direction!
Post by: System32 on February 19, 2009, 03:20:05 PM
Thanks for all the support.

I promise what I'm making won't dissapoint.

New Problem: I've made some HS and VS, but none of their weapons Work, As in, The won't spin up. Any help?
Title: Bots face wrong Direction!
Post by: Somebody on February 19, 2009, 05:54:37 PM
You must label the command "spin"
Title: Bots face wrong Direction!
Post by: Naryar on February 19, 2009, 11:48:30 PM
Lurk.
Title: Bots face wrong Direction!
Post by: System32 on February 20, 2009, 07:46:18 AM
I did, that's the problem. Perhaps it's just The "Spinner" AI.