Author Topic: .Py bindings help  (Read 10582 times)

Offline JoeBlo

Re: .Py bindings help
« Reply #80 on: July 15, 2010, 11:17:48 PM »
Make a copy of your "LeftRight"

Name the copy "Spin" (make sure its still an analog)

Name your forward to "Ahead"

Get a copy of FBS_1 if you dont have already

And use a binding line like this

Code: [Select]
list.append(("Beserk Killer","FBS_1",{'invertible':True,'nose':math.pi*2,'PreSpinEntrance':3, 'SpinDirection(1/-1)':-1, 'ReMobilizeRoutineTime(10-60)':30, 'range':99, 'radius':4, 'topspeed':100, 'throttle':130, 'turn':60, 'turnspeed':2, 'weapons':(1)}))

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #81 on: July 16, 2010, 03:51:02 PM »
The team won't open in the game.

Offline JoeBlo

Re: .Py bindings help
« Reply #82 on: July 16, 2010, 11:21:46 PM »
the team ?

then you have made a mistake with your teams text

https://gametechmods.com/forums/index.php/topic,3942.0.html

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #83 on: July 17, 2010, 04:35:48 PM »
here is the team index

Code: [Select]
index 29
The End of the Road
"This is the end for you"
AI\end.bmp
Robots: 0 1 2
Robot In Event: -1
0
16
16
0
0
0
0
0
100000
true
0
false
0
-1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0
0
0

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #84 on: July 18, 2010, 12:31:29 PM »
Code: [Select]
index 29
The End of the Road
"This is were your robots lifes end!"
AI\end
Robots: 0 1 2
Robot IN Event: -1
0
16
16
0
0
0
0
0
100000
true
0
false
0
-1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0
0
0
Got the one i was going to use for the ELBITE

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #85 on: September 06, 2010, 05:58:35 PM »
TP I am trying to AI to get ready for my tournament. And I acually got a bot (Crabmeat by Jack Daniels from the bot exchange) from a team to work but it just only runs forward and it is backwards in the begining of a fight so it keeps running into the wall. And the other bot T-4 from the BBEANS bot pack from the bots section in the downloads catagory does not work at all.

The bindings:
Code: [Select]
    # 21 - Team Xforce
    list.append(("T-4","Flipper",{'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(1)}))
    list.append(("Crabmeat","Rammer",{'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5}))

Offline Clickbeetle

  • *
  • Posts: 3375
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: .Py bindings help
« Reply #86 on: September 06, 2010, 11:51:49 PM »
here is the team index

Code: [Select]
index 29
The End of the Road
"This is the end for you"
AI\end.bmp
Robots: 0 1 2
Robot In Event: -1
0
16
16
0
0
0
0
0
100000
true
0
false
0
-1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0
0
0


This looks fine.  But the other one you posted is full of errors.  Make sure your Teams.txt entry looks like this.

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 Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: .Py bindings help
« Reply #87 on: September 07, 2010, 12:48:26 PM »
Replace you latest bindings with these:
Code: [Select]
    # 21 - Team Xforce
    list.append(("T-4","Flipper",{'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(1,)}))
    list.append(("Crabmeat","Rammer",{'radius':0.1,'nose':math.pi*2,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5}))

You needed a comma after the weapon ID for T-4 and you needed to reverse the nose heading for Crabmeat.

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #88 on: September 11, 2010, 11:02:11 AM »
Still having problems withe crabmeat. It starts backwards and drives out of the online arena. Those bindings did not work for crabmeat but worked with T-4

Offline JoeBlo

Re: .Py bindings help
« Reply #89 on: September 11, 2010, 11:11:19 AM »
delete the part I have marked in red for Crabmeat

list.append(("Crabmeat","Rammer",{'radius':0.1,'nose':math.pi*2,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5}))

now it will face the correct way

Edit: is it actually 180 degrees the wrong way ??? or less amount (say 90)

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #90 on: September 11, 2010, 11:14:35 AM »
180 degrees
Here is the picture:

Offline JoeBlo

Re: .Py bindings help
« Reply #91 on: September 11, 2010, 11:16:48 AM »
then deleting that part I said should fix this.. just wondering as trov put it there to fix the problem to start with

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: .Py bindings help
« Reply #92 on: September 11, 2010, 11:19:10 AM »
Darn, Joe beat me to it... I don't know what I was thinking when I suggested PI*2...

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #93 on: September 11, 2010, 11:22:34 AM »
It still doesn't work

Offline Madiaba

Re: .Py bindings help
« Reply #94 on: September 11, 2010, 09:14:37 PM »
GRW, did you get it working correctly yet?  If not, just send over (PM) the bot and bindings line and I'll help out.

*Wonders where the 'Mods' are...*


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...