Author Topic: Bots face wrong Direction!  (Read 1229 times)

Offline System32

  • *
  • Posts: 4663
  • Rep: 4
  • Reality
    • View Profile
    • Awards
Bots face wrong Direction!
« 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?
Put this onto your signature if you were part of this crappy fad in '03.

Offline R1885

  • *
  • Posts: 2127
  • Rep: 3
  • Forum shopping list generator.
    • View Profile
    • Awards
Bots face wrong Direction!
« Reply #1 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.

Offline System32

  • *
  • Posts: 4663
  • Rep: 4
  • Reality
    • View Profile
    • Awards
Bots face wrong Direction!
« Reply #2 on: February 19, 2009, 09:51:53 AM »
Nose?
Put this onto your signature if you were part of this crappy fad in '03.

Offline R1885

  • *
  • Posts: 2127
  • Rep: 3
  • Forum shopping list generator.
    • View Profile
    • Awards
Bots face wrong Direction!
« Reply #3 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.

Offline Dragonfire

Bots face wrong Direction!
« Reply #4 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

Offline Serge

  • *
  • Posts: 1530
  • Rep: 13
    • View Profile
    • http://www.q3k.org/
    • Awards
Bots face wrong Direction!
« Reply #5 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
home | twitter | yt | gmf de/compiler | component freedom | xmpp: q3k@q3k.org | email: q3k@q3k.org

Offline Madiaba

Bots face wrong Direction!
« Reply #6 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
 
Paste it at the top of your Bindings.py, for a reference.
 
..
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline System32

  • *
  • Posts: 4663
  • Rep: 4
  • Reality
    • View Profile
    • Awards
Bots face wrong Direction!
« Reply #7 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?
Put this onto your signature if you were part of this crappy fad in '03.

Offline Somebody

  • *
  • Posts: 7201
  • Rep: 13
  • CP: +2
    • View Profile
    • Awards
Bots face wrong Direction!
« Reply #8 on: February 19, 2009, 05:54:37 PM »
You must label the command "spin"
I built that big robot on that TV show that time


Offline Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Bots face wrong Direction!
« Reply #9 on: February 19, 2009, 11:48:30 PM »
Lurk.

Offline System32

  • *
  • Posts: 4663
  • Rep: 4
  • Reality
    • View Profile
    • Awards
Bots face wrong Direction!
« Reply #10 on: February 20, 2009, 07:46:18 AM »
I did, that's the problem. Perhaps it's just The "Spinner" AI.
Put this onto your signature if you were part of this crappy fad in '03.