.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
A Couple Questions???
Old
  (#1)
red_dots
Member
 
Status: Offline
Posts: 4
Join Date: Jan 2004
Location: alaska
Default A Couple Questions??? - 10-01-2004

I am looking to start coding my own bot but would like some questions answerd first if possible.

First I am looking to make the bot code with OOP. I know this can be done but would it be possible to start adding classes to botmans template and slowly convert everything over that would be converted without breaking the code? I would like to start by makeing a bot class that I use for the bots thinking. Then I would like to be able to compile the bot and test it after I get combat or something converted over without changeing all the other stuff (nav, looking for items, etc.) Not sure if this is the best example as I am just learning the bot code but it should get the point across.

Second I was wondering how you get a list of new entities with steam mods (cs 1.6,tfc,etc.)? Since the dlls apear to be in the cache files.

Thanks in advanced for any help. I have also been searching through the backup of botmans forums for answers to these question but have failed so far.
  
Reply With Quote
Re: A Couple Questions???
Old
  (#2)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: A Couple Questions??? - 10-01-2004

Well for a start, I suggest you make your bot a metamod plugin. This way, you won't need to worry about the game entities and you'll let Will Day alone deal with the madness of the Steam compatibility.

In my opinion, it is definitely be possible to port botman's code to OOP, although it's a perilous exercice. I would rather suggest you start writing your own bot, using botman's code to pick ideas from, with a class hierarchy similar to this :

Player (top level)

Bot (as Player::Bot, subclass of Player)

subclasses of Bot (like Bot::BotBrain, for example)

And additional side classes like "Server", "Round", "Mission", etc.

Good luck !



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: A Couple Questions???
Old
  (#3)
koraX
Member
 
koraX's Avatar
 
Status: Offline
Posts: 145
Join Date: Jan 2004
Location: Slovak Republic
Default Re: A Couple Questions??? - 10-01-2004

Quote:
Originally Posted by red_dots
First I am looking to make the bot code with OOP. I know this can be done but would it be possible to start adding classes to botmans template and slowly convert everything over that would be converted without breaking the code? I would like to start by makeing a bot class that I use for the bots thinking. Then I would like to be able to compile the bot and test it after I get combat or something converted over without changeing all the other stuff (nav, looking for items, etc.) Not sure if this is the best example as I am just learning the bot code but it should get the point across.
That is exactly what I was doing. I started with botman's code and I transformed it into Classes (well I never tried to convert botman's bot waypoints and pBot structure, I made my own) It can be done.
You can dl my code at http://sourceforge.net/projects/kxbot
(It's far from finished but you can see how I used OOP. working under CS 1.5, it only has support for spawning bot, joining team, buying waepons, talking, moving and turning)


kXBot
koraX's utils
- see my homepage for other projects (OpenGL CSG Editor, FAT16 Sim, NNetwork Sim, ...)
  
Reply With Quote
Re: A Couple Questions???
Old
  (#4)
koraX
Member
 
koraX's Avatar
 
Status: Offline
Posts: 145
Join Date: Jan 2004
Location: Slovak Republic
Default Re: A Couple Questions??? - 10-01-2004

Quote:
Originally Posted by Pierre-Marie Baty
I would rather suggest you start writing your own bot, using botman's code to pick ideas from, with a class hierarchy similar to this :
Player (top level)
Bot (as Player::Bot, subclass of Player)
subclasses of Bot (like Bot::BotBrain, for example)
And additional side classes like "Server", "Round", "Mission", etc.
Good luck !
In short I used this structure :
CGeneral for general things (logging, containing instances of other classes)
CGame for handling general stuff for clients and bots
CClient for client
CBot derived from CClient
CBot has instances of these classes :
: CSensoric - for example testing if bot is stuck
: CCognitive - thinking, navigation
: CMotoric - moving, ...


kXBot
koraX's utils
- see my homepage for other projects (OpenGL CSG Editor, FAT16 Sim, NNetwork Sim, ...)

Last edited by koraX; 10-01-2004 at 13:01..
  
Reply With Quote
Re: A Couple Questions???
Old
  (#5)
red_dots
Member
 
Status: Offline
Posts: 4
Join Date: Jan 2004
Location: alaska
Default Re: A Couple Questions??? - 11-01-2004

Thanks korax I will have to check it out should help me a lot.

So thats why a lot of bots are metamod plugins. Should make it easier. Thanks for the info Pierre. Hopefully I will have the class system worked out better in a week or so.
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com