.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   Whistler's new bot framework (http://forums.bots-united.com/showthread.php?t=2408)

Whistler 02-08-2004 09:12

Whistler's new bot framework
 
You can get it from here:

http://yapb.mapzap.org/bot.zip (source code is under the BSD License)

this is the readme file:
Quote:


This is my first bot framework. Welcome.

Please take a look at the file "license.txt" in this directory to see what you can do with this source code.

I have started completely from scratch and this framework is quite different from the original HPB bot source code, anyway the game-to-engine interfacing code is still botman's code so credit goes to him.

Honestly this is my first time to do this, and this is only 4-5 days' work, so if you think "this is stupid!" after seeing the code you're probably right...

Currently it only works under CS (However I do plan on extend it to HLDM, OpFor, and Ricochet). Bots just spawn into the game and do nothing. No AI code, buy code, radio code, waypoint graph code and whatever code is actually there. You are on your own to write them. Anyway I just hope it can help other bot coders. :)

This is still the beginning. I'll definitely make a fully functional bot based on this as long as I have plenty of time to do so.

Any feedback is welcome :) My current e-mail address can be found at my homepage.

Happy hacking.

- Wei 'Whistler' Mingzhi
http://yapb.mapzap.org

sPlOrYgOn 03-08-2004 03:06

Re: Whistler's new bot framework
 
I've got a question..
Code:

CBaseBot::CBaseBot():
m_iWantedTeam(-1),
m_iWantedClass(-1),
m_iSkill(1),
m_iStartAction(0),
m_flMoveSpeed(0),
m_flSideMoveSpeed(0),
m_flUpMoveSpeed(0),
m_fIsStarted(false),
m_flTimeThink(0)
{
  m_biBotInput.actionflags = 0;
  m_biBotInput.dir = g_vecZero;
  m_biBotInput.idealangles = g_vecZero;
  m_biBotInput.weapon = 0;
}

is the constructor being derived from those other functions?
I've never seen this kind of code before..

stefanhendriks 03-08-2004 12:20

Re: Whistler's new bot framework
 
reading through this code makes me feel like a little kid now... wow.

@$3.1415rin 03-08-2004 12:41

Re: Whistler's new bot framework
 
Quote:

Originally Posted by sPlOrYgOn
I've got a question..
Code:

CBaseBot::CBaseBot():
m_iWantedTeam(-1),
m_iWantedClass(-1),
m_iSkill(1),
m_iStartAction(0),
m_flMoveSpeed(0),
m_flSideMoveSpeed(0),
m_flUpMoveSpeed(0),
m_fIsStarted(false),
m_flTimeThink(0)
{
m_biBotInput.actionflags = 0;
m_biBotInput.dir = g_vecZero;
m_biBotInput.idealangles = g_vecZero;
m_biBotInput.weapon = 0;
}

is the constructor being derived from those other functions?
I've never seen this kind of code before..

that's just intializing of variables. doing m_flSideMoveSpeed = 0; inside the constructor would be almost the same, but for data types which need a constructor parameter, this is the only way to do it.

therefore it's not needed for the std data types like float etc ...

javalino 16-08-2004 23:25

Re: Whistler's new bot framework
 
Quote:

Originally Posted by Whistler
You can get it from here:

Hey whistler , im a newbye on making mods, but i have experience in programming. Could you tell me what files i dont need to worry to made a bot for cstrike.if is more easy for you, say those wich a have to modify.

And...., there's a reference API for the classes ? something like the reference api for java sdk.
Did you have something in UML ???

well, thanks at advance.

Javalino
PS: im loking right now on HL sdk to get used with the terms.

Whistler 18-08-2004 11:25

Re: Whistler's new bot framework
 
You've come again :)
Let's see how long you'll live this time...

Nova 18-08-2004 12:52

Re: Whistler's new bot framework
 
Quote:

Originally Posted by Whistler
You've come again :)
Let's see how long you'll live this time...

You reckon its (3)COLORS again ?

Seb

Cheeseh 19-08-2004 01:33

Re: Whistler's new bot framework
 
Their IP's are totally different (don't know about the hostnames) - halfway across the world difference infact, brazil -> malaysia, if they're the same then he's gone clever :) But I wouldn't point any fingers atm.

Maybe we should create an AI to determine who really is ;)

Pierre-Marie Baty 20-08-2004 21:03

Re: Whistler's new bot framework
 
I don't think javalino == 3COLORS.

Unfortunately for the HL SDK there is no reference available. But if Whistler commented his code sufficiently well, that shouldn't be a big problem. The longest part is to get started. Once you're used to it, everything rolls right away.

Whistler 30-08-2004 11:05

Re: Whistler's new bot framework
 
I've moved this file to:
http://yapb.mapzap.org/files/bot.zip


All times are GMT +2. The time now is 06:33.

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