Author Topic: can i make AI bots?  (Read 1541 times)

Offline z1271beta

  • Lightweight
  • Posts: 207
  • Rep: 0
    • youtube.com/z1271beta
    • View Profile
    • THAH BLAWG!
    • Awards
can i make AI bots?
« on: September 05, 2006, 02:01:46 AM »
ive been looking at mr weedy's post about making an AI and a new team for DSL TC, but one problem, i did edit the teams.txt. but in bindings.pyc it is very hard to understand, im not sure what i did wrong. But when i click on my team to see if it is there the game crashes. :?

I copied the Arthrobotics data in the bindings file and changed it so it is:


    # 20 - Team Juggernaut
   
list.append(("Juggernaut","Flipper",{'nose':math.pi*2,'range':15,'radius':0.4,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(2,)}))

what did i do wrong?

(in the teams.txt file i did this:
index 20
Team Juggernaut
"Aye, you dare defile z1271beta's robots?! YOU AUT TO DIE!!!."
AI\juggnaut.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)
what's wrong plz help me i want to kill my own creations :lol:

Offline Mr. Weedy

  • Heavyweight
  • Posts: 477
  • Rep: 0
    • View Profile
    • http://www.acidplanet.com/artist.asp?songs=546612&T=8556
    • Awards
Re: can i make AI bots?
« Reply #1 on: September 05, 2006, 01:23:53 PM »
This is what is wrong with you. Go under AI folder and then open bindings.py file and add this:

Code: [Select]

# 20 - Team Juggernaut
    list.append(("AW-Nanowhirl","Spinner",{'nose':math.pi*2,'range':15,'radius':0.4,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(2,)}))
    list.append(("AW-Terminus","Omni",{'nose':math.pi*2,'radius':0.1,'range':15,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(17,)}))
    list.append(("BW-Microwhirl","Spinner",{'nose':math.pi*2,'range':30,'radius':0.4,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5,'weapons':(6,9,10,11,12)}))
    list.append(("BW-True Love","Omni",{'invertible':True,'nose':math.pi*2,'radius':0.1,'range':30,'topspeed':100,'throttle':130,'turn':60,'turnspeed':3,'weapons':(12,13,14,15)}))
    list.append(("BW-Peer Pressure","Flipper",{'nose':math.pi*2,'range':99,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':4.5,'weapons':(10,)}))
    list.append(("BW-Robokillase","Rammer",{'invertible':True,'nose':math.pi*2,'radius':0.1,'topspeed':100,'throttle':130,'turn':60,'turnspeed':2.5}))


You miss 5 robots out of the slots where the robots should be. I just copied and pasted ant robot team there so rename them and so on.

Then make new folder under AI folder. Name it as Team20 and put there the robots which should be in slot 1, 2, 3, 4, 5 and 6. If you have exported a robot to like juggernaut.bot file then copy it and paste it under Team20 folder and repeat this until you have 6 juggernaut.bot files under Team20 folder. Now rename robots to Bot0, Bot1, Bot2, Bot3, Bot4 and Bot5.

Now you should see the new team when you select new AI robot to fight against. There is only the same robot at each slot because game will crash if there isn't any robot in every single slot.

When you do new robots replace for example Bot0 at your new light weight robot or if you want to do new robot replace either Bot2 or bot5. Bots 1 and 4 are MWs and of course bots 0 and 3 are LWs.

There you go.

Edit: And is this on purpose as "AI\juggnaut.bmp " and not like "AI\juggernaut.bmp"?
I was Da beta tester Da da dada DA, Da. And that felt good.  :mrgreen:

Offline z1271beta

  • Lightweight
  • Posts: 207
  • Rep: 0
    • youtube.com/z1271beta
    • View Profile
    • THAH BLAWG!
    • Awards
can i make AI bots?
« Reply #2 on: September 05, 2006, 02:46:44 PM »
no its ok i figured it out last nite :mrgreen:

but i just cant figure out how the smartzone works, my robot is a flipper and has a large smartzone on the flipper called "weapon" and the controls are called "Forward" and "LeftRight" as for the flipping control it is "Fire".

But my robot drives perfectly and goes after me but it never attemtps to self-right or flip somebody else.

Offline z1271beta

  • Lightweight
  • Posts: 207
  • Rep: 0
    • youtube.com/z1271beta
    • View Profile
    • THAH BLAWG!
    • Awards
can i make AI bots?
« Reply #3 on: September 05, 2006, 05:21:07 PM »
IT OK I FIGURED ALL OF IT ON MY OWN (F.Y.I. u dont need to fill in ALL of the slots for the team, but u if u add data for a robot in the Bindings.py file than u need to have a robot in a slot :D )