gametechmods

Robot Arena => General Support => Topic started by: SteveM4 on January 16, 2011, 12:59:11 AM

Title: House Robot AI
Post by: SteveM4 on January 16, 2011, 12:59:11 AM
In short, I got this far in the House Robot AI for MicroMetal 1.

The Housebot (grey) sits idle

The Housebot moves when I come close

The Housebot doesn't stop though.
Title: Re: House Robot AI
Post by: JoeBlo on January 16, 2011, 03:01:43 AM
care to tell us any actual info so we dont have to play guessing games ?  :rolleyes:

did you write a .py for this or what?
Title: Re: House Robot AI
Post by: Vertigo on January 16, 2011, 03:03:36 AM
Its just an AI bot as far as I can tell
Title: Re: House Robot AI
Post by: Pwnator on January 16, 2011, 03:07:38 AM
Did you wire its LeftRight (or did you properly name it)?
Title: Re: House Robot AI
Post by: Badnik96 on January 16, 2011, 11:25:45 AM
Well it's a good start.

What happens if you dont come near it though? Does it move to escape count out?
Title: Re: House Robot AI
Post by: SteveM4 on January 16, 2011, 11:45:58 AM
No, just sits there.
Title: Re: House Robot AI
Post by: Badnik96 on January 16, 2011, 11:47:09 AM
You should fix that. What if the fight doesn't progress to that square, the bot gets counted out, and then they move over to the square?
Title: Re: House Robot AI
Post by: G.K. on January 16, 2011, 11:48:13 AM
Show us the AI code plz.
Title: Re: House Robot AI
Post by: SteveM4 on January 16, 2011, 11:57:53 AM
Code: [Select]
list.append(("Housebot","Flipper",{'nose':math.pi*2,'range':99,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':3,'weapons':(18,19)}))
Title: Re: House Robot AI
Post by: G.K. on January 16, 2011, 12:01:33 PM
How is that suppsoed to avoid/ignore stuff?
Title: Re: House Robot AI
Post by: SteveM4 on January 16, 2011, 12:02:39 PM
On another subject.

Can you have 4 smartzones on one bot?
Title: Re: House Robot AI
Post by: Stagfish on January 16, 2011, 12:36:15 PM
You can have loads.

:O Smartzone AI'ed bots!
Title: Re: House Robot AI
Post by: Urjak on January 16, 2011, 12:40:22 PM
One issue I see is that this bot is just like any other bot. The combatants will likely attack the house robot just as often as it attacks the actual opponent. You need to find a way for the entrants to ignore the housebot.
Title: Re: House Robot AI
Post by: Clickbeetle on January 16, 2011, 11:30:05 PM
Best way to do housebots (really the ONLY way as far as I know) is to put them in the .gmf like the rover in the Mars Base and Mad's housebots in the Pittsfield arena.


However, that method is problematic in its own way.
Title: Re: House Robot AI
Post by: Trovaner on January 17, 2011, 11:15:16 AM
Best way to do housebots (really the ONLY way as far as I know) is to put them in the .gmf like the rover in the Mars Base and Mad's housebots in the Pittsfield arena.

However, that method is problematic in its own way.
Such as an inability to receive damage, lose components, or get tracked effectively by the AI.

If you want to use AI housebots, you can add a line in the Arena.py to restrict their movement to certain sections of the arena until some criteria is met. Doing it this way, you can make all the other AI bots avoid/target the housebots. You could also make it so that only AI bots with certain names become housebots and/or certain BotIDs become housebots.

I was actually in the process of making an arena that would use GMF housebots and also have the above AI housebots when the hazards were turned off...
Title: Re: House Robot AI
Post by: J on January 17, 2011, 11:16:55 AM
You can have loads.

:O Smartzone AI'ed bots!
So maybe make a smartzone that causes the robot to return to its original location apon it hitting a wall?
Title: Re: House Robot AI
Post by: SteveM4 on January 17, 2011, 11:18:44 AM
That was very confusing.

I can only basically AI, I was working on a theory that is now debunked because I will be using Teams for MM1

:O Smartzone AI'ed bots!

You think I have tried that already?

(https://gametechmods.com/uploads/images/74860screenshot_497.jpg)
Title: Re: House Robot AI
Post by: Trovaner on January 17, 2011, 12:37:47 PM
It is possible to guide an AI bot using solely SZs but you would want to have at least one on the left and one on the right (there is no need to have it in front of ore behind the bot but having them could potentially simplify the coding). Madiaba once posted this idea for guiding SOW bots but I think they concluded that it was easier just to look at the servo's angle instead... I use a variation of this for guiding my GMF housebots (the biggest difference would be how I handled being inverted).
Title: Re: House Robot AI
Post by: SteveM4 on January 17, 2011, 02:18:35 PM
How do you 'wire' 4 smartzones though, they are all called 'flip'.
Title: Re: House Robot AI
Post by: Vertigo on January 17, 2011, 02:20:34 PM
How do you 'wire' 4 smartzones though, they are all called 'flip'.
thats fine then

Just wire them as you would with just 1 smartzone
Title: Re: House Robot AI
Post by: SteveM4 on January 17, 2011, 02:28:14 PM
So the controls would be

Up - Smatzone in front - name Flip
Down - Smartzone on rear - Name Flip
Left - Smartzone on left - Flip
Right, meh you know
Title: Re: House Robot AI
Post by: Stagfish on January 17, 2011, 02:59:19 PM
No, use OmniMultiZone.py.
Title: Re: House Robot AI
Post by: SteveM4 on January 17, 2011, 03:10:14 PM
whats a omnimultizone thing when it at home?
Title: Re: House Robot AI
Post by: Stagfish on January 17, 2011, 03:12:51 PM
Theres Flipper.py, Omni.py, ect. OmniMultiZone is another Ai line thingy.

I forgot what the smartzone names where though, look in the py using notepad to find out.
Title: Re: House Robot AI
Post by: SteveM4 on January 18, 2011, 01:34:48 AM
Is omnimultizone.py in DSL?
Title: Re: House Robot AI
Post by: Naryar on January 18, 2011, 01:53:03 AM
In NAR AI.