Author Topic: Can AI use the teams other three bots in events?  (Read 1458 times)

Offline Juza1

  • Antweight
  • Posts: 14
  • Rep: 2
    • View Profile
    • Awards
Can AI use the teams other three bots in events?
« on: August 14, 2013, 10:30:30 AM »
Is there a way to make DSL 2.1 AI teams use the other 3 bots (Bot3, Bot4, Bot5) in the team folder in events? I like to play with replica- or real-based bots and with them there's no way to beat the AI :vista: (except with some bots)

Offline Philippa

  • The Queen of GTM
  • Giga Heavyweight
  • Posts: 6186
  • Rep: 0
  • ✊ Viva la Standard! ✊
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Can AI use the teams other three bots in events?
« Reply #1 on: August 14, 2013, 10:39:38 AM »
Yes, but it's moderately time consuming.

Step 1 - Go into your AI folder.

Step 2 - Do some file renaming. Go into Team0 folder. Swap the names of Bot0 and Bot3 around, Bot1 and Bot4 around, and Bot2 and Bot5 around.

Step 3 - Continue for Team1 - 15. Don't do the rest of the teams (Discs of Doom, Arthrobotics etc.) because they don't fight in events.

Step 4 - In your AI folder there is a file named "Bindings" which is a PY file. If you open that you will see the scripting for each robot. Fortunately they are all separated into teams. Move the bottom three from each group to the top of the group.

That should work, but I'm not certain.



If you don't want to edit the Bindings then I'd be happy to do it.

Offline Juza1

  • Antweight
  • Posts: 14
  • Rep: 2
    • View Profile
    • Awards
Re: Can AI use the teams other three bots in events?
« Reply #2 on: August 14, 2013, 12:14:53 PM »
Thanks. I tried the first step before but didn't do the bindings. I'm quite new to modding robot arena. It's great that an old game like RA2 still has a great fanbase.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: Can AI use the teams other three bots in events?
« Reply #3 on: August 14, 2013, 12:17:51 PM »
Kurt is close but not quite right (or missing information) on some points.

Step 2 - Do some file renaming. Go into Team0 folder. Swap the names of Bot0 and Bot3 around, Bot1 and Bot4 around, and Bot2 and Bot5 around.
If you don't care about the weight classes of each bot than you can do this or use Madiaba's Batch Rotator 3 (does the same thing but its automated). If the weight class of your opponent matters than you will need to make sure that LWs get renamed to Bot0.bot, MWs get renamed to Bot1.bot, and HWs get renamed to Bot2.bot.

Step 4 - In your AI folder there is a file named "Bindings" which is a PY file. If you open that you will see the scripting for each robot. Fortunately they are all separated into teams. Move the bottom three from each group to the top of the group.
You don't need to do this. In fact, I would recommend not doing this just because it can only lead to more problems.

Edit: Thanks for the correction playzooki.

Offline playzooki

  • A title is a prefix or suffix added to someone's name in certain contexts. It may signify either veneration, an official position or a professional or academic qualification. In some languages, titles may be inserted before a last name (for example,
  • Posts: 2122
  • Rep: -34
    • View Profile
    • click to download more ram
    • Awards
  • Skype: dont stalk me
Re: Can AI use the teams other three bots in events?
« Reply #4 on: August 14, 2013, 01:10:25 PM »
HW's are Bot2

Offline Juza1

  • Antweight
  • Posts: 14
  • Rep: 2
    • View Profile
    • Awards
Re: Can AI use the teams other three bots in events?
« Reply #5 on: August 14, 2013, 01:16:32 PM »
I remember seeing the batch rotator but couldn't find it. Kurt Wylde's instructions worked for me.

Offline Philippa

  • The Queen of GTM
  • Giga Heavyweight
  • Posts: 6186
  • Rep: 0
  • ✊ Viva la Standard! ✊
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Can AI use the teams other three bots in events?
« Reply #6 on: August 14, 2013, 02:00:20 PM »
Kurt Wylde's instructions worked for me.
"Technical Advisor - Kurt Wylde" Has a nice ring to it.  :gawe:

Question for Trov, if you don't change the Bindings file how does it work?

Offline 090901

  • alcoholic in denial
  • *
  • Posts: 7009
  • Rep: 22
  • :mrgreen:
  • Awards Donated money for site hosting 2019 GTMCS2 Divison Winner GTMCS Division Winner
    • View Profile
    • Awards
Re: Can AI use the teams other three bots in events?
« Reply #7 on: August 14, 2013, 02:20:07 PM »
Question for Trov, if you don't change the Bindings file how does it work?
The game does not care where the binding lines are. Just open up the normal stock ai bindings. The ordered binding structure idea was first done by Starcore IIRC.

Offline Philippa

  • The Queen of GTM
  • Giga Heavyweight
  • Posts: 6186
  • Rep: 0
  • ✊ Viva la Standard! ✊
  • Awards BOTM Winner
    • View Profile
    • Awards
Re: Can AI use the teams other three bots in events?
« Reply #8 on: August 14, 2013, 03:31:53 PM »
Question for Trov, if you don't change the Bindings file how does it work?
The game does not care where the binding lines are. Just open up the normal stock ai bindings. The ordered binding structure idea was first done by Starcore IIRC.
Oh, I didn't know that.