Author Topic: AI-ing (.py files, coding, nose-orienting R+D, and help)  (Read 160073 times)

Offline 090901

  • alcoholic in denial
  • *
  • Posts: 7006
  • Rep: 22
  • :mrgreen:
  • Awards Donated money for site hosting 2019 GTMCS2 Divison Winner GTMCS Division Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1020 on: April 10, 2013, 02:55:31 PM »
Isn't there also a typhoon spike on the DSL bar?

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1021 on: April 10, 2013, 03:14:27 PM »
After digging through the posts that you made in your showcase, I would say that you want something like this as your bindings:
Code: [Select]
    list.append(("Toxic Wound","Omni",{'range':50,'radius':1,'topspeed':100,'throttle':100,'turn':100,'turnspeed':2.5,'weapons':(13,)}))

Just be sure that you are using a button or analog controller named "Spin" instead of a switch (like I previously mentioned).

Offline MassimoV

  • I Move Weight
  • *
  • Posts: 8929
  • Rep: 24
  • I make rap for people of Serbia
    • MassimoVTV
  • Awards BOTM Winner
    • View Profile
    • Mourning Glory
    • Awards
  • See profile for gamer tags: Yes
  • Skype: myhandsarefood
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1022 on: June 15, 2013, 09:33:27 PM »
I think it's preset because I remember someone making an Arnold the Terminager bot of sort and it would land on its back and wouldn't selfright. Or Rampard sticking the landing in BB6.

Offline G.K.

  • *
  • Posts: 12157
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1023 on: June 16, 2013, 04:19:02 AM »
Quick question. In a line of bindings using omni.py, which is the variable that determines how far over a bot has to tip before it uses its srimech? Or does such a variable exist?

Are you talking about my Heavy Metal entry, by any chance?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17537
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1024 on: June 21, 2013, 11:27:59 AM »
So whenever I AI a rammer, it keeps backing into walls too much in the ring arena. Is there a way to change this in the bindings?
they look like this:
Code: [Select]
    list.append(("Kurt Rambis 2","Rammer",{'ThresholdSpeed':1.5,'SightRange':4,'invertible':True,'radius':0.5,'topspeed':100,'throttle':100,'turn':100,'turnspeed':2.5}))

Offline G.K.

  • *
  • Posts: 12157
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1025 on: June 25, 2013, 05:17:08 AM »
I'm using OmniInverted.py, but my bot doesn't drive when it is righted and the bot continues to fire its inverter constantly. My guess is it is to do with the wiring, but can anyone give me a hand?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline G.K.

  • *
  • Posts: 12157
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1026 on: June 27, 2013, 05:48:43 AM »
Look in Rammer.py, do you have all the .py's mentioned at the top of it like tactics in your AI folder?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline 090901

  • alcoholic in denial
  • *
  • Posts: 7006
  • Rep: 22
  • :mrgreen:
  • Awards Donated money for site hosting 2019 GTMCS2 Divison Winner GTMCS Division Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1027 on: July 12, 2013, 10:14:56 AM »
Ok, so I need help AIing ty4er's Tusslers 3 robot. The robot refuses to drive when AI'd even though it drives fine in the bot lab, any ideas?

Offline G.K.

  • *
  • Posts: 12157
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1028 on: July 12, 2013, 10:27:22 AM »
Put the bot and AI line up.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Virus Bomb

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1029 on: July 12, 2013, 11:03:23 AM »
you probably misspelled forward or something.

Offline 090901

  • alcoholic in denial
  • *
  • Posts: 7006
  • Rep: 22
  • :mrgreen:
  • Awards Donated money for site hosting 2019 GTMCS2 Divison Winner GTMCS Division Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1030 on: July 12, 2013, 12:12:24 PM »
Put the bot and AI line up.
https://gametechmods.com/uploads/files/6512Gaze.zip
Code: [Select]
list.append(("Gaze","Omni",{'invertible':True,'radius':0.1,'topspeed':99,'throttle':130,'turn':60,'turnspeed':2.5,'range':99,'weapons':(0,)}))

Offline MassimoV

  • I Move Weight
  • *
  • Posts: 8929
  • Rep: 24
  • I make rap for people of Serbia
    • MassimoVTV
  • Awards BOTM Winner
    • View Profile
    • Mourning Glory
    • Awards
  • See profile for gamer tags: Yes
  • Skype: myhandsarefood
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1031 on: July 14, 2013, 01:19:20 PM »
I'm pretty sure that you can't change it.

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17537
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1032 on: July 14, 2013, 02:41:38 PM »
Having a bit of trouble with FBS_2.py, it says in the file that if I enter any number other than 1 for the 'clockwise' value in the bindings, it'll spin left (the way I need it to spin), but I've tried a bunch of different numbers including negatives with no luck. Any tips?

Have you tried -1?

Offline rnifnuf

  • Forum Linguist
  • Heavyweight
  • Posts: 434
  • Rep: 5
  • Proponent of competitive sonnet improvisation
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1033 on: July 17, 2013, 05:36:37 PM »
Hello and good evening to you.

I really hate to go partially off-topic, but I need some help.

What is this " 'weapons':(x)" nonsense in the bindings? How do I find out what numbers to input in place of x?
Follow me on Twitter? I'd like to see you try!

Stock Showcase     DSL Showcase     Ironforge Showcase

Offline rnifnuf

  • Forum Linguist
  • Heavyweight
  • Posts: 434
  • Rep: 5
  • Proponent of competitive sonnet improvisation
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1034 on: July 17, 2013, 06:19:44 PM »
Thanks, Lightning.

Now I need help with something else:

I have a popup called "Cutting Wedge III" that I am trying to AI. Here is the binding:
Code: [Select]
    list.append(("RNF-0032III Cutting Wedge III","Flipper",{'nose':math.pi*2,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(12,13,14,15,16,17,18,19)}))Weapons 12-19 are all razors.

Here is the controller:

The smartzone is named "weapon". The buttons "Fire" and "Srimech" are both wired to the BSGs.

What do I do to get Cutting Wedge to fire the BSGs?
« Last Edit: July 17, 2013, 10:18:00 PM by Trovaner »
Follow me on Twitter? I'd like to see you try!

Stock Showcase     DSL Showcase     Ironforge Showcase

Offline helloface

  • Posts: 3884
  • Rep: -11
  • 090901's cumslave
    • https://www.youtube.com/c
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: helloface199
  • Discord: Helloface#2112
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1035 on: July 17, 2013, 08:20:18 PM »
I use Omni.
Oh I'll be doing some banging.......

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1036 on: July 17, 2013, 10:30:44 PM »
As Lightning S. mentioned, Flipper.py requires the trigger to be called "Flip" and the smartzone to be called "flip". It is also worth noting that there is no Srimech option.

Omni.py would be a slight upgrade to Flipper.py just because it has a Srimech and the upsidedown checker doesn't work well for Flipper.py (Omni doesn't have one).

Popup.py would be better than both of the above because it only fires when an opponent's chassis enters the smartzone. If you use this, I would recommend adding 'NoChassisTime' with the number of seconds that you want it to have a component in the zone before it will stop waiting for the chassis before attacking.

Offline rnifnuf

  • Forum Linguist
  • Heavyweight
  • Posts: 434
  • Rep: 5
  • Proponent of competitive sonnet improvisation
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1037 on: July 18, 2013, 05:37:33 PM »
Good evening Trov and Lightning.

I finally got Cutting Wedge to work. Thank you both for the advice :mrgreen:

But now I have another dilemma.

I have a Superheavyweight HS that I AI'ed that crashes the game when the bot loads.

Binding:
Code: [Select]
    list.append(("RNF-0016 Roto Destructo (SHW)","DirectionalSpinner",{'nose':math.pi*2,'radius':0.2,'range':99,'topspeed':100,'throttle':130,'turn':60,'turnspeed':3,'weapons':(14,15,16,17,18,19,20,21,22,23,24,25)}))Weapons 14-25 are all Large beater bars.

Any tips?
« Last Edit: July 18, 2013, 06:08:39 PM by Trovaner »
Follow me on Twitter? I'd like to see you try!

Stock Showcase     DSL Showcase     Ironforge Showcase

Offline helloface

  • Posts: 3884
  • Rep: -11
  • 090901's cumslave
    • https://www.youtube.com/c
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: helloface199
  • Discord: Helloface#2112
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1038 on: July 18, 2013, 05:42:47 PM »
You need four spaces infront of list.append
    list.append(("RNF-0016 Roto Destructo (SHW)","DirectionalSpinner",{'nose':math.pi*2,'radius':0.2,'range':99,'topspeed':100,'throttle':130,'turn':60,'turnspeed':3,'weapons':(14,15,16,17,18,19,20,21,22,23,24,25)}))
Oh I'll be doing some banging.......

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1039 on: July 18, 2013, 06:37:30 PM »
Since it is crashing when the bot loads, I'm guessing that it isn't a problem with spacing but a problem with the name of your bot not matching the name given in the bindings.

DirectionalSpinner is found inside of Spinner.py (a file that comes with RA2). Unless your HS has a Srimech, you can leave it as a DirectionalSpinner with no significant difference in performance (most people use Omni for HS). DirectionalSpinner uses a trigger called "Spin" unless you rename if from in the bindings.

For future reference, please use the BBC tags for code instead of the box tags. I don't mind fixing it but it is obviously better if you do it. If you are on the post screen than it is the button that has a "#" on it. You could also do it manually like so: [code]Your code[/code]

Just for completeness, it looks like this when you post it:
Code: [Select]
Your code