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

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #680 on: June 26, 2010, 08:31:43 AM »
also drop the 'PreSpinEntrance':20 value right down unless you want it to drive about like normal at the match start for 20 tick (I think its ticks?)

Offline Madiaba

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #681 on: June 26, 2010, 08:34:42 AM »
It is....
 
Just to clarify 'PreSpinEntrance' use: It determines how far you want your bot to enter the arena before spinning up. Some like to their bot to 'ram' the opponent before spinning up (just play around as Joe suggested).
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #682 on: June 26, 2010, 08:44:12 AM »
if only I knew how to use it when I did CC2 :P could have avoided those long no contact SnS matches in the RW arena.

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #683 on: June 26, 2010, 09:05:04 AM »
What bindings line should I put in to make a SnS bot spin the other way?

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #684 on: June 26, 2010, 09:06:31 AM »
umm could you be more specific ? which python file ?

Offline Naryar

  • Posts: 23278
  • Rep: 20
  • hybrids oui oui
    • http://www.youtube.com/us
  • Awards BOTM Winner
    • View Profile
    • Awards
  • Skype: TheMightyNaryar
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #685 on: June 26, 2010, 09:11:04 AM »
Badnik if you read the py's you can see that easily...

Or just invert the spinning command's wiring.

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #686 on: June 27, 2010, 10:42:06 AM »
With my AI, I require some sort of movement once the wheels fall off. The first DSL bar rarely falls off.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline G.K.

  • *
  • Posts: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #687 on: July 04, 2010, 03:47:23 PM »
Is
Code: [Select]
'tactic':Ram the right thing to put in the binding line to change tactics?
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 Sage

  • *
  • Posts: 6179
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #688 on: July 04, 2010, 04:12:57 PM »
pi = 180 degrees

wooo trig.
You got my vote for RA2 Wizard. Always and forever.

Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #689 on: July 04, 2010, 08:44:33 PM »
old news Sage :P

@GK: at what point do you wish to add that? there is already countless ramming pythons

Offline G.K.

  • *
  • Posts: 12156
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #690 on: July 05, 2010, 12:37:48 AM »
I don't necessarily wan to add it, I'm just asking if that's the right way to change tactics in the bindings with a .py that supports changing tactics.
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 JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #691 on: July 05, 2010, 03:53:03 AM »
yes if its put in the correct place with the correct supporting code

Offline Badnik96

  • tired of your shit
  • *
  • Posts: 17536
  • Rep: 3
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #692 on: July 18, 2010, 07:05:59 PM »
What would the nose line for this be?


Thanks.

Offline Sage

  • *
  • Posts: 6179
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #693 on: July 19, 2010, 01:10:14 AM »
pi/2 i believe... or -pi/2
You got my vote for RA2 Wizard. Always and forever.

Offline ianh05

  • *
  • Posts: 2778
  • Rep: 4
  • Stock AW Builder and Tourney Host!
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #694 on: July 20, 2010, 06:00:40 AM »
for FBS_2 how do i get the robot to spin the opposite way when inverted? here are my current bindings:

Code: [Select]
    list.append(("AW - Thorny Devil","FBS_2",{'fbs_range':15,'right': "1",'invertible':True,'nose':math.pi,'radius':0.2,'range':99,'topspeed':99,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(1)}))
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 Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, R+D, and help)
« Reply #695 on: July 20, 2010, 07:57:12 AM »
Use FBSInvertDir.py
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

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 #696 on: July 20, 2010, 08:04:56 AM »
damn, I was hoping there would be a way to make it work while inverted so I wouldn't have to change the AI.
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 JoeBlo

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #697 on: July 20, 2010, 08:23:40 AM »
I think you have to edit the python itself to do it from memory

I would use FBSinvert drive with a high spinspeed value to get a sit and spin strategy with inverted direction

Offline NFX

  • *
  • Posts: 14035
  • Rep: 11
  • SliSliSliSliSliSliSliSli(0)
    • AwesomeFish921
  • Awards BOTM Winner
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: nfxtreme0992
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #698 on: July 20, 2010, 08:58:16 AM »
Badnik, I think it would be 3pi/2. 360 degrees equates to 2pi, so 270 (Which I think yours is) degrees would be one and a half pi, or 3pi/2. ;)
Co-creator of The RA2 Randomiser



Offline JoeBlo

Re: AI-ing (.py files, coding, R+D, and help)
« Reply #699 on: July 20, 2010, 09:07:44 AM »
I posted this a while ago...

(Image removed from quote.)

math.pi*2 is the default heading when you dont change it.. so as I said if you provided the correct details with (just past 180)

turn your head to the side, 0 / 360 point is the top of the grid when making a chassis (I will put this into the form of pic tutorial sometime)

there is more simplistic expressions but cant remember the exact one