gametechmods

Robot Arena => General Support => Topic started by: Mr. Weedy on November 05, 2005, 05:36:36 AM

Title: How to turn own robots to AI robots?
Post by: Mr. Weedy on November 05, 2005, 05:36:36 AM
Yes how that goes? I just create a normal robot and add weapons and everything on it and then wire it up and paint it if I want and then add smartzone on it and then I create a new team under AI folder and then name it as Team16 and then copy my robot there and name it as Bot2.bot and that's it?

Oh yeah of course I could add a logo for the team. But does it go something like that?

Because I would like to see some of my own robots against me when I'm waiting for DSL 2.0 to be released so I could see how good they normally and overall are.
Title: How to turn own robots to AI robots?
Post by: Mr. Weedy on November 06, 2005, 03:29:34 AM
Heyyyy.

Someone said on these forums that he could help somebody with AI'ing his robots but I don't any more remember who it was.
Title: How to turn own robots to AI robots?
Post by: Clickbeetle on November 09, 2005, 10:09:34 PM
That's basically how you do it, you just have to edit bindings.py and Teams.txt too.
Title: How to turn own robots to AI robots?
Post by: Mr. Weedy on November 10, 2005, 02:11:59 PM
Well I managed to get my game work with my own robot what is turned to AI robot but now the AI robot doesn't respond to anything. It just stays at its place and does nothing.

So what's wrong?

Oh yeah I copied typhoon's information in bindings.py and then changed weapon to omni. And in teams.txt I just copied 15th team's infos and renamed the team as 16 and renamed it to Test Team and renamed robot's as AI Defender II because I'm testing only that AI Defender II in all weight classes.

And my robot has 5 smartzones so does that mess it up? They all are named as weapon.

The robot what I turned to AI robot is Defender II if that helps. Lol...
Title: How to turn own robots to AI robots?
Post by: Clickbeetle on November 11, 2005, 01:01:09 PM
Multiple smartzones can work, but you need to make a custom AI type to do it.

Fortunately, in this case you actually only need 1.  Spinners don't require a smart zone, just a button control called "Spin".  Then you just need a smart zone for the poking weapon called "weapon" and a button control called "Fire".  Also make sure the driving controls are called "Forward" and "LeftRight".
Title: How to turn own robots to AI robots?
Post by: Mr. Weedy on November 12, 2005, 08:40:17 AM
I noticed 1 thing when I made the AI Defender II to move and so on.

The robot was totally messed up in movement. It was heading towards right wall when I was facing it in arena and so the robot thought it was driving towards me though it was driving towards arena's right wall.

What could cause that when I'll turn my robot to AI robot it doesn't understand which side is its front. But DSL AI robots know which side is their front. So how you explane this?

And that forward heading arrow didn't got any kind of effect to my robots.

And I tried several chasis heading directions when I was building my robots and those didn't have any kind of effect to my robots' understanding when they were on an arena floor. They were still driving forward there where they were heading to.

So how I make my robot so that they are facing my robot on the arena, not the arena's wall.

Here are some pictures for explication.
(http://img424.imageshack.us/img424/2944/help7lx.th.jpg) (http://img424.imageshack.us/my.php?image=help7lx.jpg) (http://img424.imageshack.us/img424/7529/help26ru.th.jpg) (http://img424.imageshack.us/my.php?image=help26ru.jpg)
Title: How to turn own robots to AI robots?
Post by: ham on December 07, 2005, 12:41:41 PM
you have to mess with the nose:If your bot attacks the wall, experiment using nose: math.pi, -math.pi/2, or math.pi/2 and test to see what one works. im still working on that too...my robot crunchy is always facing and ramming the wall...
Title: How to turn own robots to AI robots?
Post by: Mr. Weedy on December 08, 2005, 02:49:24 AM
Thank you. =) I'll try that maybe on weekend and then report back.
Title: How to turn own robots to AI robots?
Post by: Mr. Weedy on December 11, 2005, 07:30:07 AM
Wohoo it works. Thank you. :D
Title: How to turn own robots to AI robots?
Post by: ham on December 11, 2005, 10:17:24 PM
Your welcome, if you have ANY questions about ai'ing il be happy to answer them...im ai'ing a pack myself infact  :mrgreen: ,if you wanna help me with the bots that would be awesome  :D