gametechmods

Robot Arena => General Support => Topic started by: Phoenyx on September 20, 2012, 07:19:54 PM

Title: AI fail - Robot charges forward without any purpose what-so-ever
Post by: Phoenyx on September 20, 2012, 07:19:54 PM
http://www.youtube.com/watch?v=RDoLmtaAN-c#ws (http://www.youtube.com/watch?v=RDoLmtaAN-c#ws)

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.
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: Mr. AS 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
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: Badnik96 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)
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: Phoenyx on September 20, 2012, 09:40:18 PM
Double-checked using Notepad++. It is listed as LeftRight.
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: Badnik96 on September 20, 2012, 09:55:15 PM
With no spaces surrounding it at all?
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: Phoenyx 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.
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: G.K. on September 21, 2012, 10:33:38 AM
Looks like a Nose issue to me.
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: Badnik96 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
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: G.K. 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.
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: Trovaner 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.
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: 123savethewhales on October 01, 2012, 08:50:34 AM
Did you...... WIRE THE DRIVE TO TURN?
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: Phoenyx on October 02, 2012, 03:24:21 AM
Did you...... WIRE THE DRIVE TO TURN?

Yes.
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: Naryar 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
Title: Re: AI fail - Robot charges forward without any purpose what-so-ever
Post by: Trovaner 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).