gametechmods

Robot Arena => General Support => Topic started by: trumpetguy on December 18, 2009, 09:17:41 PM

Title: Son of Wayachi Ai Help
Post by: trumpetguy on December 18, 2009, 09:17:41 PM
How can I AI this?
(https://gametechmods.com/uploads/images/53607SOW.jpg)
I can drive it manually, or is it to complicated for the AI?
Title: Re: Son of Wayachi Ai Help
Post by: Clickbeetle on December 23, 2009, 08:44:59 PM
That will be hard.  You need to make a custom .py with new Throttle, Turning, and navigation.  Unless it is absolutely necessary to AI this bot, I would avoid it.
Title: Re: Son of Wayachi Ai Help
Post by: Madiaba on December 24, 2009, 07:51:32 AM
I agree with CB,... tuffy/mucho workos.
But, TG, would you explain or show a pic of its internal components anyway.
Title: Re: Son of Wayachi Ai Help
Post by: trumpetguy on December 25, 2009, 01:17:55 PM
It's really simple, only the pistons drive the bot, and the only thing different from a 'normal' bot. The pistons in the bot (the ones peeking out of the chassis) drives the bot forward and if the outer piston in the front pistons are fired it will turn in the other direction. I know that sounds confusing, but let me post a video in this post later. The pistons outside, when fired drives the bot backwards.
Title: Re: Son of Wayachi Ai Help
Post by: Naryar on December 25, 2009, 01:39:15 PM
I attempted something with this drive already... a 4SPD (4 Storm piston drive) MW rammer, ripped off Mike's designs.  Two pistons fire forward, two fire backward, and you make it turn by firing one of both sets.

But yes, i can see this being a bitch to AI.
Title: Re: Son of Wayachi Ai Help
Post by: Sparkey98 on December 28, 2009, 08:03:10 PM
I have some experience with AI's so I can at least tell you how to get it to go forward/backward
Title: Re: Son of Wayachi Ai Help
Post by: Madiaba on December 28, 2009, 10:23:13 PM
FBS_1 has some handy bot tactic steering capabilities at the beginning under Tick.  But you can take this and:
-When the bot's heading is near '0' (say between -.1and .1), then make both sides' pistons fire to move ahead.
-If the bot heading is greater than '.1', then have one side piston(s) fire to turn the bot toward enemy.
-If the bot heading is less than '-.1', then have the other side piston(s) fire to turn the bot toward enemy.

The parameters are rough starting points, you'll have to test and tweek...