Author Topic: Guides on making/editing tactics?  (Read 1129 times)

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
Guides on making/editing tactics?
« on: September 02, 2009, 05:21:39 PM »
Hey All
I was wondering if there was any guides on making and editng ai tactics?
I knew there was one, but i cant find it.
Thanks
Wham
Damn I should probably put something fancy in this bit huh?

Offline roboman2444

  • Ultra Heavyweight
  • Posts: 1212
  • Rep: 0
  • Linux, Nexuiz, Quake, and Darkplaces lover.
    • View Profile
    • http://www.freewebs.com/teamrckm
    • Awards
Guides on making/editing tactics?
« Reply #1 on: September 02, 2009, 05:26:52 PM »
i know there is a .pdf that i think philetbabe made but i cant find it either.
Real life robotics team www.teamrckm.tk
Real life game studio www.v2games.tk


Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
Guides on making/editing tactics?
« Reply #2 on: September 03, 2009, 02:53:25 AM »
i don't think i have ever write much on this subject.
briefly, if you want to write a tactic, you have to create a class with 3 functions :
_init_ : declare class variable
Evaluate: gives back a number which help to choose between tactics : the higher the number, the more chance this tactic is choosen. in fact a bot may have many (all?) tactics, each time it has to do something (probably on each tick) the evaluate function is called for each bot's tactic, the best one is keept.
Execute : What to currently do if this tactic is choosen.


- The tactic may be define in the file tactics.py or inside your own AI.

see the file tactics.py to learn more about .

typically, a useful tactic  should be one which evalutes its  current win-point  and the one of the other bots, and if it wins with more than 1000 pt, it tries  to avoid combat
« Last Edit: September 03, 2009, 06:59:32 AM by philetbabe »

Offline Madiaba

Guides on making/editing tactics?
« Reply #3 on: September 03, 2009, 06:42:00 AM »
Hey there stranger.  Thanks for the help/input.
Wham it might help if you were more specific about what you're trying to do...
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...

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
Guides on making/editing tactics?
« Reply #4 on: September 03, 2009, 08:13:50 AM »
Well, basically, the title says it.
I want to know how to make and edit tactics, so that if i i dont have to stay to the normal ones, but i can then allow more interesting designs to take an appearence on Wild Robots for example.
Plus i'd like to know how to edit them, say telling the frenzy.py to put the axe back at all times when not in use, ect.
Damn I should probably put something fancy in this bit huh?

Offline philetbabe

  • *
  • Posts: 497
  • Rep: 2
  • Drop D
    • View Profile
    • Awards
Guides on making/editing tactics?
« Reply #5 on: September 03, 2009, 08:24:04 AM »
Tactic mostly deals with bot movement : go forward, turn , go back etc.
AI (like frenzy, whipper, spinner etc) deals more with weapon and motor .

I think your need is more how to  write AI than how to write tactics. Typically, you calculate the distance between your bot and its nearest ennemy. if the distance is over a certain amount, you act the way you want.

About AI, yet there is this tutorial :
Quote from: philetbabe;44801
here is a new version of the AI chart ..
« Last Edit: September 03, 2009, 08:52:07 AM by philetbabe »

Offline roboman2444

  • Ultra Heavyweight
  • Posts: 1212
  • Rep: 0
  • Linux, Nexuiz, Quake, and Darkplaces lover.
    • View Profile
    • http://www.freewebs.com/teamrckm
    • Awards
Guides on making/editing tactics?
« Reply #6 on: September 03, 2009, 02:11:02 PM »
there it is!
Real life robotics team www.teamrckm.tk
Real life game studio www.v2games.tk