.:: 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
Whistler's new bot framework
Old
  (#1)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Whistler's new bot framework - 02-08-2004

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
  
Reply With Quote
Re: Whistler's new bot framework
Old
  (#2)
sPlOrYgOn
<-- He did it.
 
sPlOrYgOn's Avatar
 
Status: Offline
Posts: 1,558
Join Date: Jan 2004
Location: Los Angeles, California, USA, North America, Earth, Solar System, Milky Way.
Default Re: Whistler's new bot framework - 03-08-2004

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..
  
Reply With Quote
Re: Whistler's new bot framework
Old
  (#3)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Whistler's new bot framework - 03-08-2004

reading through this code makes me feel like a little kid now... wow.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Whistler's new bot framework
Old
  (#4)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: Whistler's new bot framework - 03-08-2004

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 ...



Last edited by @$3.1415rin; 08-12-2004 at 16:57..
  
Reply With Quote
Re: Whistler's new bot framework
Old
  (#5)
javalino
Member
 
Status: Offline
Posts: 1
Join Date: Aug 2004
Default Re: Whistler's new bot framework - 17-08-2004

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.
  
Reply With Quote
Re: Whistler's new bot framework
Old
  (#6)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Whistler's new bot framework - 18-08-2004

You've come again
Let's see how long you'll live this time...
  
Reply With Quote
Re: Whistler's new bot framework
Old
  (#7)
Nova
Council Member
 
Nova's Avatar
 
Status: Offline
Posts: 761
Join Date: Nov 2003
Location: Kiel, Germany
Default Re: Whistler's new bot framework - 18-08-2004

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


nova

- Quote: <kodex> I swear. Beta testing increases your e-wang ! :p

- Remember, today is the tomorrow you worried about yesterday.


  
Reply With Quote
Re: Whistler's new bot framework
Old
  (#8)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: Whistler's new bot framework - 19-08-2004

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

Last edited by Cheeseh; 19-08-2004 at 02:54..
  
Reply With Quote
Re: Whistler's new bot framework
Old
  (#9)
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: Whistler's new bot framework - 20-08-2004

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.



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: Whistler's new bot framework
Old
  (#10)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: Whistler's new bot framework - 30-08-2004

I've moved this file to:
http://yapb.mapzap.org/files/bot.zip
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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