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

Offline Hard Bot

  • Were you looking for someone else?
  • Super Heavyweight
  • Posts: 908
  • Rep: 1
  • My RAM is full of .bot files
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #820 on: February 27, 2011, 07:36:23 PM »
It still says runtime error.

Offline Stagfish

  • Ultra Heavyweight
  • Posts: 2963
  • Rep: 0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #821 on: February 28, 2011, 01:30:51 AM »
In your team folder is the bot file called Bot0?

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #822 on: February 28, 2011, 03:29:14 PM »
When my bot loads  in the game, it says runtime error. What do I do?
Anyway, here is a picture of my bot:

I now I made correct bindings.

if your bot is AIed :
if RA2 crashes before showing the arena the most common reasons are :
- your bot use unreferenced  components (much as if you take a DSL bot and put it in a  stock context)
-the binding is no good :
   -blank (white space)  used instead of tabulation
   -name error (name get white space you didn't notice) ,  AI name error,  missing ')', missing ',', case sensitive error
  -double binding with the same name, and last one is with error (but your always looking at the first one)
 -correct binding, but you don't have the associated AI ( the file something.py that should exist under your AI/ folder)

if it crashes after showing the arena and the countdown ... well you have touched the something.py.

if your bot is not AIed :
maybe this is your file RA2/teams/teams.txt that is corrupted.
Correction is not easy. this is what i adive :
-take a file RA2/teams/teams.txt from a good archive and erase yours.
-under RA2, re-creae teams (but do not create bots in these teams)
-exit RA2 and edit the file  RA2/teams/teams.tx
-for each team that got bots, modify the line
Code: [Select]
Robots:
by
Code: [Select]
Robots: 0 1 2 3 4 5
if you've gor 6 bots for your team.

Easiest way (file teams.txt corrupted)  :
-Copy your file RA2/teams/teamnumber/bot0 under RA2/teams/Robot design
-do the same for each of your bot
-take a file RA2/teams/teams.txt from a good archive and erase yours : you have loosed all of your teams but your bots maybe imported.

last spring : (if your bot is not AIed) : send me your file teams.txt

  last spring : (if your bot is AIed) : send me your file binding .py

please, give feedback
« Last Edit: February 28, 2011, 03:51:38 PM by philetbabe »

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 #823 on: June 12, 2011, 05:08:02 AM »
Bump.


I made a TRFBD, and then for AI'ing it, I copied the wiring of the LW TRFBD in 123 AI exactly. I used the same binding line. However, it only functions as it should for ~2 seconds, whereupon it fails to move at all, and if an enemy approaches it, it sits and spins for a few seconds, before returning to its stationaryness. Anyone know why this may be the case?
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 Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #824 on: June 12, 2011, 05:09:56 AM »
Check your nose, wiring, etc. How different is it from the one in 123AI?
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, nose-orienting R+D, and help)
« Reply #825 on: June 12, 2011, 05:10:56 AM »
Nose and wiring are identical.

as for differences, there are no flails, if that helps.
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 Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #826 on: June 12, 2011, 05:18:11 AM »
Piglet motors?
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, nose-orienting R+D, and help)
« Reply #827 on: June 12, 2011, 05:19:54 AM »
ja.
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 Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #828 on: June 12, 2011, 05:22:41 AM »
Well, I tried. TBH I shouldn't even be helping as I don't know the AI.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Clickbeetle

  • *
  • Posts: 3375
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #829 on: June 16, 2011, 12:34:34 AM »
And all the other TRFBD's still work?


I have no idea what could be wrong.  It would seem to be an issue with the drive, since the "Spin" weapon control seems to work fine, but if you're sure the wiring, control names, and bindings are exactly the same... who knows.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

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 #830 on: June 16, 2011, 05:23:47 AM »
I've not got it in a game with other TRFBD's. Is there an update in Tactics.py or something?
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 Clickbeetle

  • *
  • Posts: 3375
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #831 on: June 16, 2011, 10:57:18 PM »
TRFBD.py doesn't use any new tactics so it's not that.


Does the bot move correctly when you drive it?  Sometimes wiring for crawlers is quite weird.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

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 #832 on: June 17, 2011, 03:43:57 AM »
The driving itself is mostly ok, but it does veer off to one side a tad.
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 #833 on: June 18, 2011, 02:31:17 PM »
Here's a game of spot the binding error! :D

Code: [Select]
    list.append(("Gicquel","Popup",{'radius':1,'topspeed':100,'throttle':130,'turn':100,'turnspeed':2,'weapons':(0)}))
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 nightcracker

  • *
  • Posts: 505
  • Rep: 7
  • Script kiddo
    • View Profile
    • NC Labs
    • Awards
  • Skype: orsonpeters
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #834 on: June 18, 2011, 02:38:18 PM »
Ugh, who started using "list" as variable name?

Please don't do that in Python, "list" is the name of the built-in type list. If you overwrite that name you can't turn other things in lists anymore (for example, "list((5, 3, 2))").

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 #835 on: June 18, 2011, 02:38:58 PM »
I cant't help it, it's the binding line for RA2.
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 #836 on: June 18, 2011, 02:55:59 PM »
Here's a game of spot the binding error! :D

Code: [Select]
    list.append(("Gicquel","Popup",{'radius':1,'topspeed':100,'throttle':130,'turn':100,'turnspeed':2,'weapons':(0)}))

Pretty sure you need a comma after your 0 in the weapons entry.

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 #837 on: June 18, 2011, 03:04:45 PM »
Smeg, I do, cheers Nary.
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 Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7587
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #838 on: June 25, 2011, 12:06:49 PM »
Can anyone advise me on how to AI a trinity SnS like this?


Also, I can't seem to find the link to those weightless smartzones.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: AI-ing (.py files, coding, nose-orienting R+D, and help)
« Reply #839 on: June 25, 2011, 12:10:00 PM »
It doesn't matter if its overweight cause of a smartzone

Anyway, try just AI'ing like a normal SnS on FBSPlus, but with the pistons wired to "Spin"