gametechmods
Robot Arena => Modifications => Topic started by: Urjak 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.
-
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.
-
Woah... okay, well I will try.
-
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
-
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?
-
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.
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
...
-
Okay thanks, I think I've got it.
EDIT: It worked, thanks.
-
Cool.
Thanks, Phil... And BTW, I didn't forget about sending you some coding, just been overwhelmed... I'll get it to you soon.