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

Offline Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #760 on: December 22, 2010, 04:41:18 AM »
My memory is failing. What do I need to call the spin motor's control for omni.py?


Offline G.K.

  • *
  • Posts: 12156
  • 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 #761 on: December 22, 2010, 04:42:44 AM »
Spin, I told you yesterday :P
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 Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #762 on: December 22, 2010, 04:44:00 AM »
I know. That's why I said, "My memory is failing". :P

Thanks.


Offline Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #763 on: December 22, 2010, 07:00:07 AM »
DP!

Can anyone see what's wrong with this A.I line?

Code: [Select]
    list.append(("Drumbelina","Omni",{'radius':0.1,'topspeed':99,'throttle':130,'range':99,'turn':50,'turnspeed':2,'weapons':(1)}))


Offline G.K.

  • *
  • Posts: 12156
  • 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 #764 on: December 22, 2010, 07:08:26 AM »
You need a comma after the 1 in weapons.
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 Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #765 on: December 22, 2010, 07:13:05 AM »
Thanks. :D


Offline G.K.

  • *
  • Posts: 12156
  • 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 #766 on: January 02, 2011, 03:24:34 PM »
I AI'd Zog's BTTB bot with the following AI line:

    list.append(("Huge SnS","FBS",{'invertible':True,'direction':-1,'spinspeed':18,'radius':0.1,'throttle':130,'topspeed':99,'turn':60,'turnspeed':5,'weapons':(13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32)}))

However, to bot doesn't translate. Any idea why?
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 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, nose-orienting R+D, and help)
« Reply #767 on: January 02, 2011, 05:49:01 PM »
Are the wirings correct ? If yes, try reducing spinspeed.

What are torque and maxspeed of these bluebird-like motors anyway ?

Offline JoeBlo

Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #768 on: January 02, 2011, 08:43:15 PM »
its too slow to translate much without spinning really slow

(look back to CC3, remember how fast your robot moved GK, compared to LDL's)

for its drive speed (or rather, lack of it) I would use FBS_1

Offline G.K.

  • *
  • Posts: 12156
  • 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 #769 on: January 03, 2011, 05:43:22 AM »
Ok, thanks.
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: 12156
  • 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 #770 on: January 03, 2011, 08:45:26 AM »
DP:

With

Code: [Select]
    list.append(("Huge SnS","FBS_1",{'invertible':True,'PreSpinEntrance':0,'SpinDirection(1/-1)':1,'ReMobilizeRoutineTime(10-60)':10,'radius':0.1,'throttle':130,'topspeed':99,'turn':60,'turnspeed':5,'weapons':(13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32)}))
It just chases the opposing bot around and sways. Any ways to make it spin like normal?
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, nose-orienting R+D, and help)
« Reply #771 on: January 03, 2011, 08:51:46 AM »
named your controls correct ?

Spin (Analog) wired to drive and weapon motors (if required)

Ahead (Analog) same as what Forward would normally do

LeftRight (Analog)



a control called Forward will hinder spinning


Offline G.K.

  • *
  • Posts: 12156
  • 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 #772 on: January 03, 2011, 08:56:08 AM »
That would explain everything. I forgot to change the comtrol names. :P
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: 12156
  • 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 #773 on: January 03, 2011, 09:23:52 AM »
DP: Now it drives up to the opponent, sways for a few seconds before spinning.
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, nose-orienting R+D, and help)
« Reply #774 on: January 03, 2011, 09:27:27 AM »
is your 'PreSpinEntrance': still set as 0

in any case try 'PreSpinEntrance':1 and see if it does any better..

you only have these controls correct?

Spin (Analog) wired to drive and weapon motors (if required)

Ahead (Analog) same as what Forward would normally do

LeftRight (Analog)


because a "Forward" control will effect the spinning process

Offline G.K.

  • *
  • Posts: 12156
  • 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 #775 on: January 03, 2011, 09:29:30 AM »
Controls were renamed and applied.

Prespin entrance was set at 15 but I'll try 1.
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: 12156
  • 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 #776 on: January 03, 2011, 09:32:41 AM »
DP: Going even more wacko with 'PrespinEntrance':1, not spinning at all.
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, nose-orienting R+D, and help)
« Reply #777 on: January 03, 2011, 09:39:20 AM »
Prespin entrance was set at 15

thats really bad :P PreSpinEntrance is the number of tick intervals the robot will wait before spinning...

send me the robot and I will see what you have done...

Offline G.K.

  • *
  • Posts: 12156
  • 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 #778 on: January 03, 2011, 09:59:49 AM »
https://gametechmods.com/Robot_Exchange/HW/Zog_Huge%20SnS.bot

Current AI line:

Code: [Select]
    list.append(("Huge SnS","FBS_1",{'invertible':True,'PreSpinEntrance':1,'SpinDirection(1/-1)':-1,'ReMobilizeRoutineTime(10-60)':10,'radius':0.1,'throttle':130,'topspeed':99,'turn':60,'turnspeed':5,'weapons':(13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32)}))
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, nose-orienting R+D, and help)
« Reply #779 on: January 03, 2011, 11:34:53 PM »
The main problem was no range value.. thats why I wouldnt spin until close.. and the re-immobile time was to slow for a slow robot :P

Code: [Select]
    list.append(("Huge SnS","FBS_1",{'invertible':True,'PreSpinEntrance':1,'SpinDirection(1/-1)':-1,'ReMobilizeRoutineTime(10-60)':60,'range':99,'radius':0.1,'throttle':100,'topspeed':99,'turn':60,'turnspeed':5,'weapons':(1,)}))
controls themselves were fine

this .py is probably one of the most advanced / technical to work with.. a lot of different things / strategies can be made with this and FBS_2...