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

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #40 on: June 14, 2010, 06:52:05 PM »
The bindings look fine to me.  Make sure that:


- You have Rammer.py, Spinner.py, SpinnerOmni.py, and Pusher.py in your AI folder.
- You have at least 15 AI teams.
- All these bots are in a folder named "TeamX" where X is the number of their team in Teams.txt.
- The bot files are named Bot0.bot, Bot1.bot, Bot2.bot, Bot3.bot, Bot4.bot, and Bot5.bot.
got all that but if i am using DSL and there is 20 teams do i still do TeamX?

Offline Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: .Py bindings help
« Reply #41 on: June 15, 2010, 10:17:56 AM »
It looks like these aren't correct:

Code: [Select]
list.append( ("101", "Rammer", { 'weapons': (4, 1), 'invertible': True }) )
 list.append( ("The Windcallers", "Spinner", { 'topspeed': 190.0, 'turnspeed': 150.0, 'throttle': 110, 'weapons': (21, 22, 1, 2) }) )

They are both missing a bracket at the end (I think?) and in 101 you need a comma after the weapons like this:

Code: [Select]
list.append( ("101", "Rammer", { 'weapons': (4, 1,), 'invertible': True }) )

:D


Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: .Py bindings help
« Reply #42 on: June 15, 2010, 10:26:44 AM »
Actually Gazea, neither of the things you said are correct.
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: 7582
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: .Py bindings help
« Reply #43 on: June 15, 2010, 10:33:23 AM »
There are loads of extra spaces.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: .Py bindings help
« Reply #44 on: June 15, 2010, 12:56:23 PM »
Actually Gazea, neither of the things you said are correct.

Aren't they? I had to do that for my bindings.


Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: .Py bindings help
« Reply #45 on: June 15, 2010, 01:53:57 PM »
@Gazea2: G.K. is right.

@GroudonRobotWars: The problem is that you have a trailing comma after 'radius':1.4 for 1337. If you are still experiencing problems, make sure that every line has a total of 4 spaces (no tabs) before each of the lines that you posted.

The bindings look fine to me.  Make sure that:

- You have Rammer.py, Spinner.py, SpinnerOmni.py, and Pusher.py in your AI folder.
- You have at least 15 AI teams.
- All these bots are in a folder named "TeamX" where X is the number of their team in Teams.txt.
- The bot files are named Bot0.bot, Bot1.bot, Bot2.bot, Bot3.bot, Bot4.bot, and Bot5.bot.
got all that but if i am using DSL and there is 20 teams do i still do TeamX?
Click's suggestions hold true regardless of what AI pack is installed. There should be the same number of Team folders as there are indexes in Teams.txt. If you have just been replacing othert DSL bots, there shouldn't be any problems. If you have been adding teams for your AI bots, make sure that you have a corresponding index in Teams.txt.

Offline Gazea2

  • Ultra Heavyweight
  • Posts: 3670
  • Rep: 9
  • the one and only
    • View Profile
    • Awards
  • Skype: gazea2
Re: .Py bindings help
« Reply #46 on: June 15, 2010, 02:04:15 PM »
Ok, sorry. Just trying to help. :)


Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #47 on: June 16, 2010, 05:12:36 PM »
@Gazea2: G.K. is right.

@GroudonRobotWars: The problem is that you have a trailing comma after 'radius':1.4 for 1337. If you are still experiencing problems, make sure that every line has a total of 4 spaces (no tabs) before each of the lines that you posted.

The bindings look fine to me.  Make sure that:

- You have Rammer.py, Spinner.py, SpinnerOmni.py, and Pusher.py in your AI folder.
- You have at least 15 AI teams.
- All these bots are in a folder named "TeamX" where X is the number of their team in Teams.txt.
- The bot files are named Bot0.bot, Bot1.bot, Bot2.bot, Bot3.bot, Bot4.bot, and Bot5.bot.
got all that but if i am using DSL and there is 20 teams do i still do TeamX?
Click's suggestions hold true regardless of what AI pack is installed. There should be the same number of Team folders as there are indexes in Teams.txt. If you have just been replacing othert DSL bots, there shouldn't be any problems. If you have been adding teams for your AI bots, make sure that you have a corresponding index in Teams.txt.
I put the team 21 in the text with the correct info  but when i try to use the team it just crashes my game

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: .Py bindings help
« Reply #48 on: June 16, 2010, 07:01:34 PM »
Do you mind posting Team21's Teams.txt reference? It sounds like the problem is there.

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #49 on: June 17, 2010, 08:55:29 PM »
Team 21
Thunder Bots
"Bots Of Thunder"
AI\arclogo.bmp
Robots: 0 1 2 3 4 5
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 JoeBlo

Re: .Py bindings help
« Reply #50 on: June 17, 2010, 09:59:44 PM »
bingo.. right at the start

you dont write Team 21 you write index 21 as seem below

Code: [Select]
index 21
The Scrappers
"We are scrap parts specialists."
AI\the_scrappers.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

then make sure you have a Team 21 folder in the AI folder

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #51 on: June 17, 2010, 10:03:34 PM »
Thanks and i do have a team 21 in my folder

Edit: I put the right thing went in the game tryed opening the team and it still crashed.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: .Py bindings help
« Reply #52 on: June 20, 2010, 12:08:24 AM »
How many bots are in the Team 21 folder? If you are adding less than 6 bots, you need to change your current Team.txt index so that it isn't loading bots that don't exist.

This line would be changed depending on which bots you have in the Team 21 folder:
Robots: 0 1 2 3 4 5

For example, if your folder only contains one HW bot, you would rename the file so that it is called Bot2.bot then you would replace the above line (from Teams.txt) with:
Robots: 2

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: .Py bindings help
« Reply #53 on: June 21, 2010, 08:46:59 PM »
Is the team folder named Team21?(Not Team 21)

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #54 on: June 21, 2010, 08:59:12 PM »
Ohhhh....

Edit Got the team open but now the problem is when i try playing with the bots it says runtime error

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: .Py bindings help
« Reply #55 on: June 22, 2010, 02:36:00 PM »
Are all the bots in that team not working?

When do you get the error? (it it before or after the countdown)

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #56 on: June 22, 2010, 05:08:48 PM »
Are all the bots in that team not working?

When do you get the error? (it it before or after the countdown)
I get it before the countdown

Offline JoeBlo

Re: .Py bindings help
« Reply #57 on: June 22, 2010, 10:16:59 PM »
its either the AI or arena.. try different arenas as see what happens

Offline GroudonRobotWars

  • Ultra Heavyweight
  • Posts: 2671
  • Rep: 0
    • Groudonrct3
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
Re: .Py bindings help
« Reply #58 on: June 23, 2010, 12:20:21 AM »
It might be the combat arena, robotwars arena or battlebots arena

Offline JoeBlo

Re: .Py bindings help
« Reply #59 on: June 23, 2010, 12:50:49 AM »
just try multiple arenas and see if you get the same result.. then arenas can be taken out of the equation and we can focus on AI issues