.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   I am new and need help. (http://forums.bots-united.com/showthread.php?t=1137)

Pex657 19-03-2004 19:49

I am new and need help.
 
Hey everyon one. I downloaded the source code for HPB and I still have no idea what is going on. I want to make bots for the mod Rival Species. www.rivalspecies.com Sadly I have no coding experiece what so ever. I would like to know if any one can help me.

I need to know which programs I need, and how to make the bot using the HPB template. Any help would be appreciated. Thanks!

Pierre-Marie Baty 19-03-2004 20:00

Re: I am new and need help.
 
Sure :)

You need a compiler first, and some program to edit the .cpp files. This can be notepad, but there are also really cool development environments programs available, with syntax highlighting, colors and a lot of things. The best of them for Windows is, IMO, Microsoft Visual Studio (MSVC). You only need the Visual C++ part of Visual Studio anyway.

Then you must have noticed a readme coming with the HPB_bot template. Read it (take the time to), even if you don't understand everything, it will be useful for you to understand a bit of what's going on.

Then you can try to compile the bot for one of the already supported mods, such as Half-Life deathmatch for example. Compile the bot, change a few things in the source code where you understand what it's about (for example, change the reaction delays of the bots, or try to make the bots say something on occasion) - browse the source code, notice how it works, copy and paste little blocks when you know what they do, do this for some time and you will improve the bot a bit, but foremost you'll be learning how C/C++ works.

Once you get a little more familiar with the code (not necessarily to know what everything does, but at least when you know roughly where such or such function is located in the .cpp files), you can try to port the bot to your Rival Species mod. To do so, read the readme again and try to follow what it says step by step.

The best place for discussing about bot coding is the bot coders forum (I'm moving the thread there, no objections ?) ; we welcome beginners so don't hesitate to come and ask whenever you've got a question !

Pex657 19-03-2004 20:19

Re: I am new and need help.
 
Where can i get Microsoft Vidusal Studio, and a program that can edit .ccp files.


I read throught the Readme, and that just got me more confused.

Pierre-Marie Baty 19-03-2004 21:19

Re: I am new and need help.
 
If you're a student, or if you work in a school, or if you know a relative who does, you can buy cheap licenses of MSVC from Microsoft. Other than that I suppose you can find copies of MSVC for sale on eBay. I don't recommend the latest version, MSVC .NET, but for a beginner I'd go with the version 6 (Visual Studio 6).

It's normal to be confused if you don't know anything about bots and programming. Build a bot DLL from the source code, and put it to work, then start hacking around (DON'T FORGET TO MAKE BACKUPS IN CASE YOU MESS STUFF UP!). Things will clarify with time.

Pex657 19-03-2004 21:23

Re: I am new and need help.
 
I am a student. Where can I buy it for cheaper?

bluesy 21-03-2004 00:26

Re: I am new and need help.
 
You can try looking in http://www.microsoft.com/education/?ID=AERFind

Cpl. Shrike 21-03-2004 02:47

Re: I am new and need help.
 
Hello, Pex657.

Someone contacted me earlier via drek about a bot for rival species.
I've since then researched the mod some what. and wanted to add rival species to ShrikeBot. If yr interested on coding along you can contact me. (via this boards PM message system.)

------
edit...

oh wait.. you don't have a compiler or anything.
not much ya can help then ...... :| ... sorry.
well let me know when ya get compiling 9_9

Pex657 21-03-2004 19:10

Re: I am new and need help.
 
Thanks, i already Pm you

Crow Willian 22-11-2004 21:33

Re: I am new and need help.
 
I really NEED bots for rival species, if anyone knows about it, post it here please.

THANK U

Whistler 23-11-2004 08:51

Re: I am new and need help.
 
well you don't have to buy MSVC, as there are free replacements which is perfect to compile the bot code:

I would recommend the MinGW (the Windows port of GNU Compiler Collection):
http://prdownloads.sourceforge.net/m...1.exe?download

In case of you need a nice IDE to edit the source code:
http://prdownloads.sourceforge.net/d...p.exe?download

Having said that, you need a bit of work to get HPB bot to compile under current version of MinGW. If you have problems you can ask in the forum or ask me directly.

You can also use the Borland C++ command line compiler, which is freeware. (http://www.borland.com)

@PMB: now I would feel no surprise to see how you're promoting M$ proprietary software which costs quite a lot of $$$ just for using it hehehe... (j/k) :D


All times are GMT +2. The time now is 19:51.

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