gametechmods

Robot Arena => General Support => Topic started by: RedAce on April 12, 2014, 09:47:24 AM

Title: Srimech Issue
Post by: RedAce on April 12, 2014, 09:47:24 AM
I'm probably posting this in the wrong thread, so if I am, please move this topic. Thanks.

Anyway I'm having trouble AI'ing this bot:

https://gametechmods.com/uploads/files/2897SHW-Chanticleer.zip (https://gametechmods.com/uploads/files/2897SHW-Chanticleer.zip)

Bindings:
Code: [Select]
    list.append(("SHW-Chanticleer","Flipper",{'nose':0,'radius':1,'topspeed':100,'throttle':100,'turn':100,'turnspeed':2.5,'UseSrimech':0,'EnemyMoveRadius':1,'EnemyMoveTime':3,'PrioritizeFlipper':0,'NoChassisTime':1,'SrimechInterval':0,'weapons':(0,)}))
Now I only want the flipping scoops to fire when opposing bots are in the smart zone,

(https://gametechmods.com/uploads/images/77505chanticleerflipper.png)

and I only want the srimech lid to fire when the bot is on it's back.

(https://gametechmods.com/uploads/images/66669chanticleersrimech.png)

But the problem is the lid doesn't fire unless it get the phase where the srimech reaches it's limit (picture on the right for more details). Instead, It just uses the scoops to try to flip itself back.

(https://gametechmods.com/uploads/images/88256chanticleerissue.png)

Am I AIing it wrong? Is there something missing in the bindings? Do I need to modify the button functions in the wiring? Am I excluding something in this explanation?

Thank you.
Title: Re: Srimech Issue
Post by: Philippa on April 12, 2014, 10:06:33 AM
Try looking at the AI for Panic Attack, it self-rights using a different thing.
Title: Re: Srimech Issue
Post by: RedAce on April 12, 2014, 10:31:01 AM
Try looking at the AI for Panic Attack, it self-rights using a different thing.
Oh yeah, I forgot about Panic Attack's AI.

Anyway, I tried it, and the srimech is working better now. Thank you Kurt Wylde!
Now if only I can +1 his rep to show my appreciation.
Title: Re: Srimech Issue
Post by: Badnik96 on April 12, 2014, 10:31:34 AM
hmm. If you're using the new flipper.py, try fire/weapon for the weapon instead of flip. That should work. You'll have to deal with slightly less responsive AI but that's just what happens I guess.
Title: Re: Srimech Issue
Post by: JamesAvery on April 12, 2014, 10:33:20 AM
try Fire instead of Flipper it Works for my AI bots.
Title: Re: Srimech Issue
Post by: Clickbeetle on April 13, 2014, 05:23:42 PM
You need to set 'UseSrimech':1 in the bindings for Flip and Srimech controls to work together.