.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Coding my first bot. how? (http://forums.bots-united.com/showthread.php?t=849)

MusicMan 22-02-2004 19:24

Coding my first bot. how?
 
Hello everybody here at Bots-United. Firstly I would like to say how much I enjoy your work. Thank you very much for making me have fun with my computer;) .

Well I have always admired bots. I love to see them develop from first beta and becoming better and better. So I have always wanted to be able to code my own bot. So my question is to you people. How do you do it?. I know Basic C++ and have alot of experience with computers. I am not sure how to define how much I know about C++. I know object oriented C++(not everything about it im sure) but still. I just want to ask how I would make a bot spawn nothing more for now. I have looked a little at the SDK and eventhough I know some C++, this just seems very complicated. I mean how do you know what to change and add in the code to make a bot do something you yourself make?. I know I may sound newbie, but If anyone could help me I would be very happy or just give me alot of links to anything related to bot coding and learning the SDK really well=) I would be very thankful.

Cheers everyone;)

MusicMan

Rick 22-02-2004 19:33

Re: Coding my first bot. how?
 
Just download both botmans template(hpb_bot) and Pierre's template(RACC bot). Read the readme that comes with botmans template and you can find out most of the basic stuff to make a bot work for another mod. You can use the RACC bot to find out how the hl engine stuff works sinds its very good commented.

Pierre-Marie Baty 22-02-2004 19:39

Re: Coding my first bot. how?
 
I believe the solution is trial and error and then hard work... :)

Look at various bots' source codes. I advise you to pay more attention to the most simple ones, such as the HPB_bot template. Then you'll learn how to differenciate what are the HL engine function calls and what are the functions that the bot maker wrote himself ; also what data structures are provided with the HL SDK, and what are the data structures that the programmer made up himself.

To spawn one bot in the game, the key function in most bots source code is called "BotCreate()".

Good luck ! :)

MusicMan 22-02-2004 20:02

Re: Coding my first bot. how?
 
Thank you very much. I will get busy right away;)

MusicMan 23-02-2004 10:06

Re: Coding my first bot. how?
 
Thank you everybody. This is helping me very much. I am reading botman's HPB bot template readme and I already feel enlightened=) .

Thanks again everyone, well I gotta go read some more readme;) , then after botmans readme I will read Pierre Marie's RACC Template Readme;)

Thanks=)

MusicMan 23-02-2004 16:49

Re: Coding my first bot. how?
 
Ok i have now read the entire HPB bot template readme and I feel that I am ready to create a bot myself, but could still need some more info so i went to Pierre Marie's website and found two templates should I get them both and look through them or what?

Thanks in advance:)

MusicMan

Terran 23-02-2004 18:07

Re: Coding my first bot. how?
 
If you read PMB'S comments about the templates you should know it by yourself ;)

MusicMan 23-02-2004 18:18

Re: Coding my first bot. how?
 
whoops I am lazy didnt quite read it, but thanks man now I know;)


All times are GMT +2. The time now is 18:20.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.