Author Topic: Help Creating a new AI team in DSL.  (Read 1545 times)

Offline Urjak

  • *
  • Posts: 2753
  • Rep: 6
  • Shell Spinner King
    • http://www.youtube.com/wa
    • View Profile
    • Awards
Help Creating a new AI team in DSL.
« on: October 25, 2008, 10:37:27 AM »
Does anyone know how to add a new AI team in DSL. I know you have to create the team folder, then edit the teams.txt folder. Does anyone know the proper way to edit it? And is there any other steps besides these two I need to do?

EDIT:Gahhh, I put this in the wrong place I think.
Any comments would be appreciated. :D

Offline ACAMS

Help Creating a new AI team in DSL.
« Reply #1 on: October 25, 2008, 11:49:34 AM »
NO, that has never been done and there are no tutorials on it no matter how hard you look.....infact I think it is impossible, but you can try.

Offline Urjak

  • *
  • Posts: 2753
  • Rep: 6
  • Shell Spinner King
    • http://www.youtube.com/wa
    • View Profile
    • Awards
Help Creating a new AI team in DSL.
« Reply #2 on: October 25, 2008, 11:52:37 AM »
Woah... okay, well I will try.
Any comments would be appreciated. :D

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
Help Creating a new AI team in DSL.
« Reply #3 on: October 25, 2008, 12:03:36 PM »
So you've made your team and create it as TeamXXX under the AI directory.
XXX is a number, and in fact the max(teams number).
So you also have edited the AI/bindings.py to add your ai.
Well, let's work now on teamt.txt. Append the description of your team :

Each team is describe like this :
index of the Team
Team Descrition
Classical data about team

with

index of the team like 'index XXX'

Team description : this is 4 lines which reads :
your team name
your team motto
your team bitmap
which bots you have : write 0 if you've got a bot0, 1 if you've got bot 1 etc.

for instance; if your team  is name 'superKillerTeam', your motto is 'Get afraid, here i am', your bitmap is under AI/killerTeam.bmp and you have all the 6 bots, this part will be like :

superKillerTeam
Get afraid, here i am'
AI/killerTeam.bmp
Robots: 0 1 2 3 4 5

Finally, the last part is like this one :
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

So the lines you will append to teams.txt will be like  this (image you add the team 23):

index 23
superKillerTeam
Get afraid, here i am'
AI/killerTeam.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 Urjak

  • *
  • Posts: 2753
  • Rep: 6
  • Shell Spinner King
    • http://www.youtube.com/wa
    • View Profile
    • Awards
Help Creating a new AI team in DSL.
« Reply #4 on: October 25, 2008, 12:05:55 PM »
So actually make the team number XXX?

EDIT: and lets ay you only have bots 3, 4 and 5. Would I only put 3, 4, 5, in the "Robots:" line?
Any comments would be appreciated. :D

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
Help Creating a new AI team in DSL.
« Reply #5 on: October 25, 2008, 12:12:53 PM »
Quote from: Urjak;18606
So actually make the team number XXX?

you've done your bot in the laboratory, you have export them as bot4.bot, bot5.bot etc whatever is their real name .

you create a new directory TEAMXXX under AI and you copy the bots from robot design to AI/TeamXXX.
In fact, the AI/TeamXXX directory does only contains bots, no other files.


about their AI (modification of the file bindings.py) :  there are now many tutorial.

Quote from: Urjak;18606
EDIT: and lets ay you only have bots 3, 4 and 5. Would I only put 3, 4, 5, in the "Robots:" line?

if you've got only bot3.bot , bot4.bot  and bot5.bot  in your  AI/TeamXXX (where XXX IS A NUMBER! )

the corresponding line in the file AI/teams.txt will be :

...
Robots: 3 4 5
...

Offline Urjak

  • *
  • Posts: 2753
  • Rep: 6
  • Shell Spinner King
    • http://www.youtube.com/wa
    • View Profile
    • Awards
Help Creating a new AI team in DSL.
« Reply #6 on: October 25, 2008, 12:15:01 PM »
Okay thanks, I think I've got it.

EDIT: It worked, thanks.
« Last Edit: October 25, 2008, 01:28:04 PM by Urjak »
Any comments would be appreciated. :D

Offline Madiaba

Help Creating a new AI team in DSL.
« Reply #7 on: October 25, 2008, 02:35:36 PM »
 
Cool.
Thanks, Phil... And BTW, I didn't forget about sending you some coding, just been overwhelmed...  I'll get it to you soon.
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...