.:: 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
Buying weapons routines
Old
  (#1)
sten
Guest
 
Status:
Posts: n/a
Default Buying weapons routines - 06-11-2004

How can I make my bot to buy things. I have altered botmans code to make a new cs bot. So far I havent seen anything that refers buying. I tought that when I put engine_debug flag on, I would get some info, but couldn't do that, because there wasnt such a flag in engine.cpp. I made a new FireWeapon function wich works so far, but it's kind of hard to chooce weapons when bot only have a pistol and knife.

I planned that BotThink function would call "BotBuyWeapon" function if bot is in buying area and for example don't have a primary weapon. So now I would need to know what kind of message should be sent, or better if there is some free routines for this, those would be nice, so I would not have to "invent wheel again"..

thx: NiCo

PS: Couldn't find answers with that awesome search this time..
  
Reply With Quote
Re: Buying weapons routines
Old
  (#2)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Buying weapons routines - 06-11-2004

maybe you just look at the buy routines in some open source bots, like joebot, realbot, racc ( maybe ), and all the others ...

the code in joebot is in dlls/CBotCS.cpp bool CBotCS :: BuyWeapon(void)


  
Reply With Quote
Re: Buying weapons routines
Old
  (#3)
sten
Guest
 
Status:
Posts: n/a
Default Re: Buying weapons routines - 06-11-2004

Didn't know there are opensource bots. That joebot is easy to undestand because it's object kind of construct.. I like it, I like it a lot! Was very usefull for my purpose. Thanks @$3.1415rin, that reply saved my day!

-NiCo
  
Reply With Quote
Re: Buying weapons routines
Old
  (#4)
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: Buying weapons routines - 06-11-2004

omg, sten, you're the first human being I see to actually understand Joebot

congratulations



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: Buying weapons routines
Old
  (#5)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Buying weapons routines - 06-11-2004

hey pierre, what do you say to understanding joebotxp ? I guess you once had a look at the sources


  
Reply With Quote
Re: Buying weapons routines
Old
  (#6)
Rifleman
This user broke our rules and has been BANNED
 
Status: Offline
Posts: 128
Join Date: Sep 2004
Location: Mars
Default Re: Buying weapons routines - 08-11-2004

I think joebot are not very hard to read (not easy too) , but I have to manually add some spaces between lines
  
Reply With Quote
Re: Buying weapons routines
Old
  (#7)
sten
Guest
 
Status:
Posts: n/a
Default Re: Buying weapons routines - 08-11-2004

Is there a class diagram of joebot available somewhere.. Wouldn't fit on one A4 I think
  
Reply With Quote
Re: Buying weapons routines
Old
  (#8)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Buying weapons routines - 08-11-2004

no, for joebot there isnt one ... although it's wouldnt be that big, compared to joebotxp. JoeBOT is only in parts sort of OO, therefore just a few classes, most of them belong to the neural network simulator. if I'd find a really nice uml editor ( which'd be affordable ) I could do one



Last edited by @$3.1415rin; 08-11-2004 at 18:57..
  
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