.:: 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
functions, variables etc.
Old
  (#1)
MusicMan
Member
 
Status: Offline
Posts: 236
Join Date: Feb 2004
Default functions, variables etc. - 16-04-2004

Where do you find all the variables, functions etc. you can use when coding a bot?, that is actually one of the biggest problems I have when I try to code bots

Thanks in advance

MusicMan
  
Reply With Quote
Re: functions, variables etc.
Old
  (#2)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: functions, variables etc. - 16-04-2004

There is no complete function, variable or API reference for the Half-Life SDK or engine.

You have to figure things out on your own by trial and error, find some other Half-Life source code or tutorial that does something similar, or ask someone a question about how to do something on one of the Half-Life coding forums (or here).

Everybody else learns things by seeing what other people had done and by experimenting with new things on their own.

botman
  
Reply With Quote
Re: functions, variables etc.
Old
  (#3)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: functions, variables etc. - 16-04-2004

I guess it's maybe the best way to take code like botman's template code or even a open source bot and look how the variables are used.

there are no official design documents

€: botman was once again faster and more detailed



Last edited by @$3.1415rin; 16-04-2004 at 22:48..
  
Reply With Quote
Re: functions, variables etc.
Old
  (#4)
MusicMan
Member
 
Status: Offline
Posts: 236
Join Date: Feb 2004
Default Re: functions, variables etc. - 17-04-2004

Okay, thanks guys I am currently finding out by trial and error, I just wanted to know if there was an alternate way

Thanks again

MusicMan
  
Reply With Quote
Re: functions, variables etc.
Old
  (#5)
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: functions, variables etc. - 17-04-2004

If you want to find your bot members functions, usually look them up in bot.h, where the bot_t structure is defined.



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: functions, variables etc.
Old
  (#6)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: functions, variables etc. - 17-04-2004

Yes, i would go for the way as pmb describes Most functions are there defined.

Also, i would say you should try to get a basic understanding how the dll works , so you get the basic idea what function comes first. Like BotThink() (in botmans template) is called in StartFrame (dll.cpp).


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
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