.:: 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 > SDK Programming discussions > Half-Life 2 SDK
Half-Life 2 SDK For developments focused around the Half-Life 2 engine Half-Life 2

Reply
 
Thread Tools
rcbot 2 source base
Old
  (#1)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default rcbot 2 source base - 14-01-2005

I have uploaded the source I've been working on so far for my HL2 bot.

http://filebase.bots-united.com/inde...on=file&id=259

unfortunately I think I've stuck it in the wrong category, I meant to put it in "Rcbot" but I can't delete or move it, I'm sure you can sort that out ?

here is the readme
Quote:
RCBot 2 source (v 0.01) (rcbot ver 2.01)

By Cheeseh

--------------

released under GPL license, see licenseGPL.txt

The source so far is very basic in terms of AI, and is currently a bit buggy.
Enemy bots sometimes won't see each other for some reason, still to figure that out.

Anyway, source has:

- OO'd structure
- waypoints & pathwaypoints
- 3d waypoint hash table
- bitwise waypoint visibility table
- allowed clients file (clients to give bot command access to) "config/accessclients.ini"
- tasks & schedules
- bots join random teams in CSS.
- creates folders automatically for waypoints/config files etc in steamapps/email/rcbot2
- concurrent-ish & fast-ish A* waypoint path finding
- concurrent-ish & fast-ish bot visibles
- bot commands
- bot buttons allowing; start press time, end hold time, let go time
- probably more stuff
(waypoint commands are the same as rcbot for hl 1)

Last edited by Cheeseh; 14-01-2005 at 01:27..
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#2)
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: rcbot 2 source base - 14-01-2005

Sorted...

You can edit your own files, as a member by going back to the screen where you have the 3 options "add file" "delete file" and "edit file", and as an admin by having the side bar on the left, browsing to the file and clicking edit on the side bar.

wow anyway! do your bots select weapons correctly ? we're having trouble doing that...



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: rcbot 2 source base
Old
  (#3)
WildPods
Member
 
Status: Offline
Posts: 4
Join Date: Jan 2005
Default Re: rcbot 2 source base - 14-01-2005

Compile it please!
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#4)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: rcbot 2 source base - 14-01-2005

They don't have weapon code yet That will be the next stuff to work on I think

You know when I compile in Release mode I get all the compile erros I got when adding CBaseentity.h and sutff, obviously a _DEBUG flag was somewhere in those h files messing everything up.. I can post a debug dll somewhere but i'm not sure if it would work if you're not debugging.. steam usaully complains.

Last edited by Cheeseh; 14-01-2005 at 12:21..
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#5)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: rcbot 2 source base - 14-01-2005

nice !

( but next time, please remove the ncb file before, or 56k ppl like pmb will kill you )


  
Reply With Quote
Re: rcbot 2 source base
Old
  (#6)
Whistler
Summoner
 
Whistler's Avatar
 
Status: Offline
Posts: 1,499
Join Date: Feb 2004
Location: Mist Village
Default Re: rcbot 2 source base - 14-01-2005

for MSVC6 the .dsw, .opt, .ncb, .plg are all removable
and for VS.net you can also remove the .suo and .sln files
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#7)
@$3.1415rin
Council Member, Author of JoeBOT
 
@$3.1415rin's Avatar
 
Status: Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Default Re: rcbot 2 source base - 14-01-2005

if you only have a single project in one workspace you are right about the .dsw or .sln files, otherwise that won't be too much fun recreating them manually

@cheesy: at some classes I asked myself "why dont he use virtual destructors ?" when using polymorphism this might be handy.
another point : why no STL, but own implementations of stack, queue etc. ?


  
Reply With Quote
Re: rcbot 2 source base
Old
  (#8)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: rcbot 2 source base - 14-01-2005

I've had bad experiences with destructuors, sometimes MSVC destructed lots of stuff implicitly which I didn't like, because it messed up my data structures, I just stuck to making my own explicit delete/destroy functions.

I have some STL, but I changed most of the structures to my own because I didn't like the lack of methods (e.g. remove & member functions, adding to begining and end of queues, etc..)

and okay I removed the ncb file, I forgot which ones were unnecessary, the whole zip is now only 94 kb lol

oh, heres a simple de_cbble waypoint file (in the appropriate folders) if you manage to compile it.
Attached Files
File Type: zip rcbot2.zip (3.6 KB, 483 views)

Last edited by Cheeseh; 14-01-2005 at 15:53..
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#9)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: rcbot 2 source base - 14-01-2005

cool Cheeseh i just hope we get weapon support soon, then we'll be having some cool stuff going on.


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#10)
Iced_Eagle
Member
 
Status: Offline
Posts: 30
Join Date: Jan 2005
Default Re: rcbot 2 source base - 14-01-2005

Steam does complain when you use debug, but if you add -allowdebug onto the command line for Half-Life 2 (go into play games, right click on HL2, properites, launch options and add the flag -allowdebug)

Is that what you were talking about?

Thx Cheeseh

*edit* I got MSVC++ .NET from my programming brother (got it at circuit city or something lol) anyways no clue what to do on how to compile, can anyone provide some sort of FAQ or documentation on how to compile custom stuff?

Or rather could someone upload just a compiled copy if they are still in the christmas spirit rofl......o_O

Last edited by Iced_Eagle; 15-01-2005 at 03:02..
  
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