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

Offline Conraaa

  • Certified Hood Classic
  • *
  • Posts: 3325
  • Rep: 10
  • I like my sugar with coffee and cream
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1000 on: December 30, 2012, 04:51:47 PM »
Make sure the names the same, sometimes that is what causes it for me.

Offline d-lark

  • Antweight
  • Posts: 115
  • Rep: 0
  • Oh look, no over there, not there! there!
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1001 on: December 30, 2012, 05:02:33 PM »
There it is, I had to look in .bot but sure as heck, it had a space after the last number in the name! Found it, thanks for the tip

Offline d-lark

  • Antweight
  • Posts: 115
  • Rep: 0
  • Oh look, no over there, not there! there!
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1002 on: December 30, 2012, 10:06:58 PM »
Double Post.
Alright this is something I haven't seen before, the AI is a standard Rammer AI used in countless bots fine, but when applied to this particular one, the robot acts.. well, derpy, its nose is fine and it is oriented fine in the arena, but all it does is drive forward into a wall, slowly, when it starts to get counted out, it backs up quickly enough, but then again drives forward. I've searched the bindings but don't know what could be causing this problem for the particular robot, its a very simple Rammer with Forward and LeftRight controls.

Code: [Select]
    list.append(("Narrowhead","Rammer",{'invertible':True,'ThresholdSpeed':1.5,'radius':0.5,'topspeed':100,'throttle':100,'turn':30,'turnspeed':2,'weapons':(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24)}))

Offline Pwnator

  • *
  • Posts: 6676
  • Rep: 15
  • Awards BOTM Winner
    • View Profile
    • http://pwnator.tumblr.com
    • Awards
  • See profile for gamer tags: Yes
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1003 on: December 30, 2012, 10:39:20 PM »
Try increasing the radius.
Clash Cubes 1 - Grey Matter (Runner-Up)
King of Karnage - Sideshow Freak (Runner-Up, Best Engineered)
Rust In Pieces - Paper Cut 3 (Grand Champion, Most Dangerous Bot)
Wheely Tag Tournament - Ion Thruster (Grand Champion, along with Ounces' DiSemboweLment)
UK vs USA - Dark Striker (Grand Champion)
Rust In Pieces 2 - Claymore (Runner-Up, Favourite Bot)
BBEANS 6 - Infection 4 (Runner-Up)
RA2 Team Championships - Serious Business, Skeksis (Runner-Up, along with Scrappy, S_M, and Badnik)
RA2 Team Championships 2 - The Other Stig (Runner-Up, along with Scrappy, S_M, Badnik, 090901, and R1885)
Replica Wars 3 - Abaddon (Runner-Up, Luckiest Bot)
BroBots - wheebot & yaybot (Runner-Up)
Robo Zone 2 - Dipper (4th place, Survival Champion, & Best Axle Bot)
ARBBC - The Covenant (3rd place, BW Rumble Winner, Most Feared BW)

Offline d-lark

  • Antweight
  • Posts: 115
  • Rep: 0
  • Oh look, no over there, not there! there!
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1004 on: December 30, 2012, 11:30:38 PM »
Thanks, I'd given that a go already to no avail.

What did end up working, was deleting the LeftRight Analog, replacing it again, and re-exporting it, dunno why but it worked, so hooray for that

Offline MassimoV

  • I Move Weight
  • *
  • Posts: 8929
  • Rep: 25
  • 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 #1005 on: March 07, 2013, 09:37:38 PM »
Does anyone know of an AI which combines THZ and omnimultizone?

Offline Virus Bomb

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1006 on: March 07, 2013, 09:49:03 PM »
Is there anyway to AI bots using OmniInverted so that they don't have to turn around after they flip themselves over? I'm tired of fighting robots such as Drowning Pool that have to turn around to face me right after they invert themselves. I tried messing around with the nose settings so that the bot's starting position would result in the bot facing the right way right after inverting itself, but the bot then turns around and drives away from the opponent. I also tried messing around with the drive wiring but still to no avail. Anyone have any other suggestions?

anyone ever found a solution to this?

Offline Virus Bomb

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1007 on: March 23, 2013, 03:52:37 PM »
the inverted caster popups such as this:



Drowning Pool is pretty much just like it.

Offline 090901

  • alcoholic in denial
  • *
  • Posts: 7009
  • 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 #1008 on: March 23, 2013, 06:00:17 PM »
Quick question, I'm trying to use SwitchWep.py to get a spinner to stop spinning and go to Pusher.py if the weapon breaks, how would I do this?
So is there any way to do this?
Most .pys already auto-switch to Shove/Ram tactics if their spinner breaks.

Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7557
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1009 on: March 23, 2013, 10:01:37 PM »
he means .py files
How you make Alarm Clock Pizza is:
Step 1: You buy an alarm clock from the store, and then you have to break it and put it in the sauce.
Step 2: Fold the sauce in 5 slices and put it in the dough.
Step 3: Paint the eggs with a pitcher of a clock showing what time you want to wake up and eat pizza for breakfast.
Step 4: Put the eggs in the dough.
Step 5: Make it flat into a round shape and draw the time you want on it.
Step 6: Put some old steel to prevent other peple from stealing it.
Step 7: Make it flat and cut into 60 slices 1 for each minute in 1 our.
Step 8: Put in the oven set the timer to 30048813.2884 seconds and put the temperature on 'Volcano' setting.
Step 9: If you think it is take to long, then get yor alarm clock and set it to now so that it will ring and you can take it out.
Step 10: Take it out uv the uvin wen it is redy and go to bed. In the morning eat pizza and also eat yor hands bi mistake.

Offline ianh05

  • *
  • Posts: 2778
  • Rep: 4
  • Stock AW Builder and Tourney Host!
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1010 on: March 24, 2013, 08:03:45 AM »
Looking for help AI'ing Clickbeetle's AW Hammer (ElectricHammer.py) in Ultimate Stock AW AI.

Currently I think the main problem is 'StartAngle':math.pi, because this bot uses a front caster and tips over at the start of the match I have no idea what to use as the starting angle for the weapon. Also while I'm here do ElectricHammer.py bots use a button to fire or analog?
Check out my UI Improvements topic for stuff like longer team/bot import lists:
https://gametechmods.com/forums/index.php?topic=13324.0
How to make awesome splashes with paint:
https://gametechmods.com/forums/index.php?topic=13310.0
My showcase filled with antweights:
https://gametechmods.com/forums/index.php?topic=1595.0
How to AI: For newbies (with pics!):
https://gametechmods.com/forums/index.php?topic=13814.0
Best tournament results:
Tag Team Challenge and CombatAnts 3: runner-up
Around the World: 3rd place.

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1011 on: March 24, 2013, 09:44:15 AM »
Analog to fire. What is the problem with the bot when AI'ed?

Offline ianh05

  • *
  • Posts: 2778
  • Rep: 4
  • Stock AW Builder and Tourney Host!
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1012 on: March 24, 2013, 09:53:44 AM »
The weapon seems to get stuck under the bot so I'm not even sure if it's firing. I'm sure it has something to do with the start angle.
Check out my UI Improvements topic for stuff like longer team/bot import lists:
https://gametechmods.com/forums/index.php?topic=13324.0
How to make awesome splashes with paint:
https://gametechmods.com/forums/index.php?topic=13310.0
My showcase filled with antweights:
https://gametechmods.com/forums/index.php?topic=1595.0
How to AI: For newbies (with pics!):
https://gametechmods.com/forums/index.php?topic=13814.0
Best tournament results:
Tag Team Challenge and CombatAnts 3: runner-up
Around the World: 3rd place.

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1013 on: March 24, 2013, 10:36:24 AM »
Is the motorid correct?

Offline ianh05

  • *
  • Posts: 2778
  • Rep: 4
  • Stock AW Builder and Tourney Host!
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1014 on: March 24, 2013, 11:06:29 AM »
Not sure, I'm using this:

    list.append(("AW hammer","ElectricHammer",{'invertible':True,'nose':math.pi*2,'radius':1,'topspeed':100,'throttle':100,'turn':100,'turnspeed':2.5,'MotorID':2,'NoChassisTime':2,'StartAngle':math.pi,'SwingTime':5,'weapons':(0,)}))

For this:
https://gametechmods.com/uploads/files/5099Bot2.rar
Check out my UI Improvements topic for stuff like longer team/bot import lists:
https://gametechmods.com/forums/index.php?topic=13324.0
How to make awesome splashes with paint:
https://gametechmods.com/forums/index.php?topic=13310.0
My showcase filled with antweights:
https://gametechmods.com/forums/index.php?topic=1595.0
How to AI: For newbies (with pics!):
https://gametechmods.com/forums/index.php?topic=13814.0
Best tournament results:
Tag Team Challenge and CombatAnts 3: runner-up
Around the World: 3rd place.

Offline Virus Bomb

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1015 on: March 27, 2013, 12:28:23 AM »
Are your weapon IDs listed in the bindings?

Offline Virus Bomb

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1016 on: March 31, 2013, 08:00:51 PM »
You mean the numbers? If so, then only the ones that I'd need the robot to switch tactics for if it broke (so things like static weapons were not included)


yeah.

Offline 090901

  • alcoholic in denial
  • *
  • Posts: 7009
  • 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 #1017 on: April 07, 2013, 04:12:13 AM »
Well, I don't get why it matters so much to have it stop spinning when you have it set up to stop spinning after the DSL bar breaks.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1018 on: April 09, 2013, 12:46:32 PM »
The weapon IDs used by that piece of code come from the IDs that you gave in your bindings. With that in mind, there shouldn't be any reason for your bot not to switch tactics (assuming that the three IDs that you have listed are correct). On a side note, tactics deal with the movement of your bot and the AI.py deals with controlling the weapon and changing tactics as necessary.

The part that actually tells your AI to stop spinning is actually the "if self.weapons:" line found in the Tick method (in combination with the method that you posted). Once all the weapons that you listed have broken off, the condition becomes false which means that the Spin control is not triggered again.

I suspect that you are using a switch to control the weapon motor. You need to use either an analog controller or button for it to turn off when all the weapons are broken.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1019 on: April 10, 2013, 10:08:14 AM »
Assuming that you have three weapons that you want to break before switching tactics, it would look something like this "'weapons':(13,14,15)" in the bindings (exactly how you posted it). Just be sure that 13, 14, and 15 are the correct Component IDs (if you aren't already using it, Apanx made a really good tool for getting these).

If it still doesn't work, feel free to PM me the bot file and I'll take a look at it when I get the chance.