gametechmods

Robot Arena => Modifications => Topic started by: Lemonism on November 13, 2014, 01:37:01 PM

Title: Mortis-style AI Release
Post by: Lemonism on November 13, 2014, 01:37:01 PM
Here's an AI to use for Mortis style robots, using a frenZy style hammer with a burst motor flipper:

https://gametechmods.com/uploads/files/7042Mortis py.zip (https://gametechmods.com/uploads/files/7042Mortis py.zip)

To use the AI you need the flipper's control to be a button called 'Flip' and the flipper smartzone to be called 'flip', and you need the hammer control to be an analogue called 'Hammer' with a smartzone named 'whipzone'.
The AI will use the burst flipper as a srimech.
So you don't have to make your own robot to test the .py I've packaged a demonstration robot, called Axon, and here is just a basic Bindings line for it:
Code: [Select]
    list.append(("Axon","Mortis",{'invertible':False,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(15,)}))Obviously to use Axon you will have to add it to an AI team.
Massive thanks to Trov, without whom my code would never have actually worked :P
Title: Re: Mortis-style AI Release
Post by: RedAce on November 13, 2014, 02:44:13 PM
Oh cool. Maybe I can finally use that Mortis type bot in my lab and work reliably.

Thanks for this dude!
Title: Re: Mortis-style AI Release
Post by: Jaydee99 on November 13, 2014, 05:00:16 PM
Thank you. This is really helpful for jaydee wars.
Title: Re: Mortis-style AI Release
Post by: Naryar on November 13, 2014, 05:53:15 PM
So how did you make this exactly ? just a whipper.py + spinner.py ?

i would have added a Frenzy.py to Omni but just my imput. Good work anyways, i've wanted to enter a mortis-like bot to an IRL tourney for a while.
Title: Re: Mortis-style AI Release
Post by: Lemonism on November 13, 2014, 06:00:36 PM
So how did you make this exactly ? just a whipper.py + spinner.py ?

i would have added a Frenzy.py to Omni but just my imput. Good work anyways, i've wanted to enter a mortis-like bot to an IRL tourney for a while.
Flipper.py + Frenzy.py. I took the stuff that controlled firing the flipper from the Flipper.py and added it to the Frenzy.py, along with making a few changes as well.
Title: Re: Mortis-style AI Release
Post by: Resetti's Replicas on November 13, 2014, 06:37:22 PM
So how did you make this exactly ? just a whipper.py + spinner.py ?

i would have added a Frenzy.py to Omni but just my imput. Good work anyways, i've wanted to enter a mortis-like bot to an IRL tourney for a while.
What exactly would you copy/paste to make that happen?  If it's a simple matter of copying some lines of code between documents, I'll have a go at it.
Title: Re: Mortis-style AI Release
Post by: Trovaner on November 13, 2014, 10:21:06 PM
So how did you make this exactly ? just a whipper.py + spinner.py ?

i would have added a Frenzy.py to Omni but just my imput. Good work anyways, i've wanted to enter a mortis-like bot to an IRL tourney for a while.
What exactly would you copy/paste to make that happen?  If it's a simple matter of copying some lines of code between documents, I'll have a go at it.
It wouldn't be that difficult but I'd recommend merging Omni.py into Frenzy.py if you're going to do it. That said, you could easily replace Frenzy.py with Mortis.py to have the added benefits of Flipper.py.
Title: Re: Mortis-style AI Release
Post by: Naryar on November 16, 2014, 11:49:51 AM
nevermind me randomly speaking of spinner.py, i was partly drunk at the time

I meant whipper.py + something like poker or flipper.

So how did you make this exactly ? just a whipper.py + spinner.py ?

i would have added a Frenzy.py to Omni but just my imput. Good work anyways, i've wanted to enter a mortis-like bot to an IRL tourney for a while.
What exactly would you copy/paste to make that happen?  If it's a simple matter of copying some lines of code between documents, I'll have a go at it.

yes, it's just copying some lines of code.

Adding a smartzone detector and the frenzy code (also known as whipper.py with whip=BackAndForth) to omni.

I could try but my .py making skills are so rusty.