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

Offline Mystic2000

  • Utter Edgelord
  • Super Heavyweight
  • Posts: 1031
  • Rep: 0
  • Used to suck at IRL, probably still does.
    • View Profile
    • Awards
  • Skype: bastien.bourgon
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1060 on: October 14, 2013, 12:50:20 PM »
i was thinking of a new py file for flippers that i named for now OOTA.py:
So basically when the enemy goes into the flipper smartzone the robot charges to the nearest wall and when close enough, fire the flipper which is going to ensure a quite high degree of OOTA chance

now i have no clue of this is possible
Robocraft Username: Bob5768
PSN Username: Bob5768

Offline AlexGRFan97

  • Super Heavyweight
  • Posts: 870
  • Rep: -7
  • Cheeki Breeki.
    • AlexGRFan97
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1061 on: October 14, 2013, 02:05:22 PM »
There's already plenty of robots that can score OOTA purposefully. Just fight Second Sentinel in the DSL Tournament Arena for example.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1062 on: October 14, 2013, 03:03:33 PM »
There's already plenty of robots that can score OOTA purposefully. Just fight Second Sentinel in the DSL Tournament Arena for example.
Nowhere in Second Sentinel's code does it say that it should throw a bot OOTA. It may have a tendency of doing it but it certainly doesn't do it intentionally.  More to point, there currently aren't any AI.py files that throw bots OOTA intentionally.

i was thinking of a new py file for flippers that i named for now OOTA.py:
So basically when the enemy goes into the flipper smartzone the robot charges to the nearest wall and when close enough, fire the flipper which is going to ensure a quite high degree of OOTA chance

now i have no clue of this is possible
You could use Arenas.currentArena.RayTest to try to find walls. Technically, the map files were designed for this type of thing but they are very inaccurate and many arenas don't have them. The problem is that arenas aren't always flat so you would need some funky handling for ramps.

Once you find a wall, you could use self.DriveToLocation to get close to it and fire the weapon once the bot is within some predefined distance. One of the parameters of DriveToLocation indicates whether you want to avoid hazards or go straight through them but there is no distinction between pits and other hazards so you could either be driving straight into pits or giving your opponent more time to escape. To counteract this, I would probably use a combination of GetNearestHazard and RayTest to figure out if it is a pit and base the DriveToLocation on that (updating the boolean for avoiding hazards accordingly as the bot gets close to them).

You may also want to include a threshold for determining if the wall is too far away. The PushOffEdge tactic has a check for this and for determining which bot would be easiest to push but it doesn't work very well (in fact, I'm almost certain that it doesn't behave as intended by its programmer). Personally, I would use it as a reference point but I wouldn't try to modify it to suit your needs because it is way too different.

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 #1063 on: November 29, 2013, 02:43:26 PM »
How do I AI this?

Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7558
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1064 on: November 29, 2013, 03:23:52 PM »
electrichammer.py? Just copy/edit bisectors AI from DSL BBEANS AI.
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 playzooki

  • A title is a prefix or suffix added to someone's name in certain contexts. It may signify either veneration, an official position or a professional or academic qualification. In some languages, titles may be inserted before a last name (for example,
  • Posts: 2122
  • Rep: -34
    • View Profile
    • click to download more ram
    • Awards
  • Skype: dont stalk me
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1065 on: January 13, 2014, 02:41:25 PM »
Code: [Select]
list.append(("29 minutes to HELL", "Pusher",{'invertible':False,'radius':0.1,'topspeed':100,'throttle':100,'turn':60,'turnspeed':2.5,'weapons':(7,9)}))Doesnt work. Does pusher have a different srimech name or something?

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1066 on: January 13, 2014, 03:16:26 PM »
Pusher doesn't have a srimech. However, OmniRam has everything that Pusher has plus the three basic triggers (Srimech, Fire, and Spin).

Offline playzooki

  • A title is a prefix or suffix added to someone's name in certain contexts. It may signify either veneration, an official position or a professional or academic qualification. In some languages, titles may be inserted before a last name (for example,
  • Posts: 2122
  • Rep: -34
    • View Profile
    • click to download more ram
    • Awards
  • Skype: dont stalk me
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1067 on: January 14, 2014, 09:27:11 AM »
Thanks!
EDIT:
Doesnt work:
Code: [Select]
list.append(("29 minutes to HELL", "OmniRam",{'invertible':False,'radius':0.5,'throttle':100,'turn':55,'turnspeed':2.4,'weapons':(4,5)}))
« Last Edit: January 14, 2014, 02:19:43 PM by playzooki »

Offline playzooki

  • A title is a prefix or suffix added to someone's name in certain contexts. It may signify either veneration, an official position or a professional or academic qualification. In some languages, titles may be inserted before a last name (for example,
  • Posts: 2122
  • Rep: -34
    • View Profile
    • click to download more ram
    • Awards
  • Skype: dont stalk me
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1068 on: March 07, 2014, 01:50:44 PM »
of course i cant ai every time i try to ai it doesnt work.

Code: [Select]
list.append(("For Danny", "Pusher",{'invertible':True,'radius':.5,'turn':20,'turnspeed':1.5,'weapons':(7,)}))
EDIT: fixed.

Offline KOS

  • Heavyweight
  • Posts: 578
  • Rep: 8
    • NoxoraGTR
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: george.boenke
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1069 on: March 09, 2014, 01:30:57 PM »
I am trying to AI a trinity SnS

Code: [Select]
list.append( ("Nonstop", "FBS_2", {'radius':1, 'invertible': True, 'topspeed' : 100, 'throttle' : 110,'range':5,'fbs_range':15,'clockwise':1,'turnspeed': 1.5, 'weapons': (25, 26) }) )
It fires the pistons and spins clockwise, but it fires the pistons and spins at the same distance, meaning the trinity wont work. (what i'm trying to do is make the pistons fire at a shorter distance than the spin) any help would be appreciated


Offline Mr. AS

  • TheGloriousCarbideArstotzkanIronsideChaosProtocol
  • *
  • Posts: 7558
  • Rep: 19
    • robotarenagtm
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1070 on: March 09, 2014, 02:14:10 PM »
It should be able to work even if you AI it like any other FBS.

example
Code: [Select]
    list.append(("Algae2","FBSInvertDir",{'spinspeed':18,'invertible':True,'direction':1,'nose':0,'radius':0.1,'topspeed':1000,'throttle':1000,'turn':190,'turnspeed':30,'weapons':(0,)}))
Notice mine doesn't have 'range':X, or 'fbs_range':Y
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 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 #1071 on: March 09, 2014, 02:22:34 PM »
Does anyone have EternalFlame.py?
Oh I'll be doing some banging.......

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 #1072 on: March 09, 2014, 05:40:53 PM »
Does anyone have EternalFlame.py?
it's in NarAI somewhere.

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 #1073 on: March 09, 2014, 06:28:28 PM »
Does anyone have EternalFlame.py?
it's in NarAI somewhere.

Not in my NarAI.
Oh I'll be doing some banging.......

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17537
  • Rep: 3
    • Badnik96GTM
  • Awards BOTM Winner
    • View Profile
    • BattleBots Wiki
    • Awards
  • See profile for gamer tags: Yes
  • Skype: Badnik96
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1074 on: March 09, 2014, 06:29:30 PM »
Download the latest version?

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 #1075 on: March 10, 2014, 06:53:21 PM »
https://gametechmods.com/Robot_Exchange/DSL_HW/MassimoV_Spaulding%202.bot

Can't for the life of me AI this robot.

(still needing EternalFlame.py)
Oh I'll be doing some banging.......

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 #1076 on: March 10, 2014, 10:24:02 PM »
https://gametechmods.com/Robot_Exchange/DSL_HW/MassimoV_Spaulding%202.bot

Can't for the life of me AI this robot.

have you tried putting the Up Arrow as the postive axis and the down arrow as the negative axis in the controls

Offline playzooki

  • A title is a prefix or suffix added to someone's name in certain contexts. It may signify either veneration, an official position or a professional or academic qualification. In some languages, titles may be inserted before a last name (for example,
  • Posts: 2122
  • Rep: -34
    • View Profile
    • click to download more ram
    • Awards
  • Skype: dont stalk me
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1077 on: March 24, 2014, 04:00:11 PM »
Thanks!
EDIT:
Doesnt work:
Code: [Select]
list.append(("29 minutes to HELL", "OmniRam",{'invertible':False,'radius':0.5,'throttle':100,'turn':55,'turnspeed':2.4,'weapons':(4,5)}))
ok
so i found the problem with the ai attempts, but with this robot a strange thing happend. when i have an ai match with this robot in it, it wont load. the loading symbol appears and nothing happens until the screensaver appears and the game crashes. it works fine with any other ai or human robot, even when i control this robot

please help

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 #1078 on: March 24, 2014, 04:04:47 PM »
there's a space right here:          :thumbdown
list.append(("29 minutes to HELL", "OmniRam",{'invertible':False,'radius':0.5,'throttle':100,'turn':55,'turnspeed':2.4,'weapons':(4,5)}))

Could that be the problem?
Oh I'll be doing some banging.......

Offline playzooki

  • A title is a prefix or suffix added to someone's name in certain contexts. It may signify either veneration, an official position or a professional or academic qualification. In some languages, titles may be inserted before a last name (for example,
  • Posts: 2122
  • Rep: -34
    • View Profile
    • click to download more ram
    • Awards
  • Skype: dont stalk me
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #1079 on: March 24, 2014, 04:31:22 PM »
there's a space right here:          :thumbdown
list.append(("29 minutes to HELL", "OmniRam",{'invertible':False,'radius':0.5,'throttle':100,'turn':55,'turnspeed':2.4,'weapons':(4,5)}))

Could that be the problem?
maybe
but
doesnt it crash at the splash screen if there is a coed problem?
ill try it tomorrow g2g