Author Topic: AI fail - Robot charges forward without any purpose what-so-ever  (Read 2157 times)

Offline Phoenyx

  • *
  • Posts: 253
  • Rep: 0
  • Finally using my official Avatar
    • pheonyximperius
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
AI fail - Robot charges forward without any purpose what-so-ever
« on: September 20, 2012, 07:19:54 PM »


This video basically shows the problem.

My bindings:
Code: [Select]
list.append(("Ram Bam Jewel","Omni",{'radius':0.1,'topspeed':100,'throttle':130,'turn':100,'turnspeed':3,'tactic':"Ram",'invertible':1}))
I've also tried rammer, and pusher, all to no avail.

Everything c out in terms of controls. Forward is labeled Forward and Steering is labeled LeftRight.

What's the cause, and how can I get the bot to turn instead of being stupid?

EDIT: I know I'm having problems with DSL, but I'm pretty sure that AI issues apply to both versions of the game. Also, I'm using Clickbeetle's AI essentials.
  :SFTW

Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7557
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #1 on: September 20, 2012, 07:35:22 PM »
are you sure you wired this right ? steering should be "LeftRight"

i think i had the same problem when ai'ing event horizon 3 into my game and it turned out the steering was named new analog instead of what it should be
How you make Alarm Clock Pizza is:
Step 1: You buy an alarm clock from the store, and then you have to break it and put it in the sauce.
Step 2: Fold the sauce in 5 slices and put it in the dough.
Step 3: Paint the eggs with a pitcher of a clock showing what time you want to wake up and eat pizza for breakfast.
Step 4: Put the eggs in the dough.
Step 5: Make it flat into a round shape and draw the time you want on it.
Step 6: Put some old steel to prevent other peple from stealing it.
Step 7: Make it flat and cut into 60 slices 1 for each minute in 1 our.
Step 8: Put in the oven set the timer to 30048813.2884 seconds and put the temperature on 'Volcano' setting.
Step 9: If you think it is take to long, then get yor alarm clock and set it to now so that it will ring and you can take it out.
Step 10: Take it out uv the uvin wen it is redy and go to bed. In the morning eat pizza and also eat yor hands bi mistake.

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17527
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #2 on: September 20, 2012, 07:41:39 PM »
Yeah, LeftRight, no spaces, L and R capitalized. Check using Notepad ++ if you need to.

And I like the name, Kirby Super Star FTW

(realized my last post was stupid so I deleted it)

Offline Phoenyx

  • *
  • Posts: 253
  • Rep: 0
  • Finally using my official Avatar
    • pheonyximperius
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #3 on: September 20, 2012, 09:40:18 PM »
Double-checked using Notepad++. It is listed as LeftRight.
  :SFTW

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17527
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #4 on: September 20, 2012, 09:55:15 PM »
With no spaces surrounding it at all?

Offline Phoenyx

  • *
  • Posts: 253
  • Rep: 0
  • Finally using my official Avatar
    • pheonyximperius
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #5 on: September 20, 2012, 10:29:32 PM »
Nope. None at all. I'm thinking it might be an issue with the Ram strategy, though I have yet to test anything else.
  :SFTW

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #6 on: September 21, 2012, 10:33:38 AM »
Looks like a Nose issue to me.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17527
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #7 on: September 21, 2012, 12:30:39 PM »
Looks like a Nose issue to me.

No, if you look at the beginning the robots charge forward and ram into the opposite wall

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #8 on: September 21, 2012, 02:15:25 PM »
It seems as though the video skipped that when I watched it. :P

Phoenyx, if you want, send the bot over my way and I can take a look at it.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #9 on: September 21, 2012, 03:17:32 PM »
Your bindings work for me so if adding 'AimError':0.1 doesn't help, I would need to look at the bot itself.

Offline 123savethewhales

  • *
  • Posts: 2923
  • Rep: 30
  • Friendship is Magic
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #10 on: October 01, 2012, 08:50:34 AM »
Did you...... WIRE THE DRIVE TO TURN?

Offline Phoenyx

  • *
  • Posts: 253
  • Rep: 0
  • Finally using my official Avatar
    • pheonyximperius
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #11 on: October 02, 2012, 03:24:21 AM »
Did you...... WIRE THE DRIVE TO TURN?

Yes.
  :SFTW

Offline Naryar

  • Posts: 23267
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #12 on: October 02, 2012, 06:55:59 AM »
may be the 'Tactic':"Ram" being a bitch,

also invertible can be put to binary values as well ? This is interesting

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: AI fail - Robot charges forward without any purpose what-so-ever
« Reply #13 on: October 02, 2012, 10:16:57 AM »
also invertible can be put to binary values as well ? This is interesting
Boolean values get translated into 0 (False) and 1 (True) but you can also give it any other non-zero number and it will evaluate to True. It is actually slightly faster to check the Boolean of a number as opposed to checking if the number is not 0 (None also evaluates to False so be careful if you mix them).

Change your radius to something like 1.2. That way, IsStraightPathClear will tell the AI to stay further away from the walls (in the very slim chance that they are preventing you from turning).