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

Quote:
Originally Posted by Iced_Eagle
Or rather could someone upload just a compiled copy if they are still in the christmas spirit rofl......o_O
Yeah don't be mean like Valve do your public a service ppl! :'(
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#12)
@$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 - 15-01-2005

you are currently in the "developer" part of this forums, therefore you can mostly find stuff here which is currently being developed. Normally this released code here isnt fully working, just shows some working features, isnt working at all, some code is just snippets etc. pp. If the author of a bot hasnt released any binaries yet, it is his decision. often the current state of code doesnt yet match the quality of the last released bot, there are too many bugs, whatever. So you may thank the developers here for uploading their code, show problems with the code, help in general, but please stop this crying for binaries.

you'll surely get binaries when they are ready for public.

@cheesy: with the STL, i was always content with the provided push/pop_back/front, erase, iterator classes I also havnt yet realized problems with unwanted calls of destructors by the compiler. the only problems I once had was when I wasnt sure myself in which ordner destructors are called, if base class destructors are also called when using virtual destructors and so forth. generally destructors are pretty powerful and saving quite a lot of coding work and/or management code



Last edited by @$3.1415rin; 15-01-2005 at 11:51..
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#13)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: rcbot 2 source base - 15-01-2005

Well, next time I'll surely consider the use of virtual destructors Although I've got quite a lot of explicit deleting of classes since a lot of stuff is kept during map change and some stuff aren't.

Actually, I only messed around with an STL class (i think it was the list class) and used an iterator once before it bugged me, as it kept crashing for some reason I couldn't understand, the list was instantiated properly but anytime when I just tried to clear() it (to initialize) it would crash, I never understood why. so I gave up and kept to my own made up structures
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#14)
Iced_Eagle
Member
 
Status: Offline
Posts: 30
Join Date: Jan 2005
Default Re: rcbot 2 source base - 15-01-2005

@$3.1415rin: I know, it's just that I like to see the development process unfold, usually I do testing (such as look in the Call of Duty and Call of Duty United Offensive credits and their I am under tester )

I'll mess around more though. Fun to experiment and figure it out...
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#15)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: rcbot 2 source base - 16-01-2005

Okay I got the enemy code sorted, lots of annoying stuff I had to fix. So I've updated the source with the changes (not exaclty noticable, I don't keep a very good history of changes )

Also I've uploaded some binaries so you can test the bot without needing to compile it, it's a debug dll file so you need to use -allowdebug option on CS:S shortcut.

you can get it here: http://filebase.bots-united.com/inde...on=file&id=260
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#16)
Iced_Eagle
Member
 
Status: Offline
Posts: 30
Join Date: Jan 2005
Default Re: rcbot 2 source base - 16-01-2005

Cheeseh you rock!

I'll go play with them asap!

*update* Fun stuff they slowed down my comp though (I had 19), fun

Last edited by Iced_Eagle; 16-01-2005 at 06:43..
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#17)
dub
Member
 
dub's Avatar
 
Status: Offline
Posts: 89
Join Date: Aug 2004
Location: UK
Default Re: rcbot 2 source base - 17-01-2005

Cheeseh nice work with rcbot2 (intresting code), have you had any luck with bot weapon identification/selection? i`m currently stumped???.


Dubb`s Coding Cave WiP - YeGods - Free Image hosting
4u-servers.co.uk : YeGods Gin Palace II - Refloated - 195.20.108.30:27025
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#18)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: rcbot 2 source base - 17-01-2005

I haven't had a look at any weapon stuff yet. I've been looking at some GameEvent stuff, I've found a few, in my source code I have a debug mode for finding game events (the source code uploaded at the moment is incomplete in that area)

just check my next post for game event stuff

Last edited by Cheeseh; 17-01-2005 at 17:43..
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#19)
dub
Member
 
dub's Avatar
 
Status: Offline
Posts: 89
Join Date: Aug 2004
Location: UK
Default Re: rcbot 2 source base - 17-01-2005

nice work also you might find g_pDebugOverlay->AddEntityTextOverlay (...) for debugging internal bot vars intresting. How did you go about finding all that info?


Dubb`s Coding Cave WiP - YeGods - Free Image hosting
4u-servers.co.uk : YeGods Gin Palace II - Refloated - 195.20.108.30:27025
  
Reply With Quote
Re: rcbot 2 source base
Old
  (#20)
Cheeseh
[rcbot]
 
Cheeseh's Avatar
 
Status: Offline
Posts: 361
Join Date: Dec 2003
Location: China
Default Re: rcbot 2 source base - 17-01-2005

ok I'm getting all this info from debugging, the gamevents.h had comments on how to print keys/values.

I also wrote down the evnt id's, I don't know if they are static or not, but will come in useful when comparing the events instead of comparing a whole string you can compare the event id (integer)

I got these:

"weapon_fire"
-------------
userid : int
time : int?
eventid : int (43)

"bullet_impact"
--------------

userid : int
x : float
y : float
z : float
time : int
eventid : int (51)

"player_connect"
----------------

userid : int
index : int
name : string
networkid : string (steam id)
address : string ?
time : int
event id : int (4)

"player_activate"
----------------
userid : int
time: int
eventid : int (7)

"player_team"
-------------
userid : int
team : int
oldteam : int
disconnect : int?
time : int
eventid : int (11)

"bomb_dropped"
---------------
userid : int
time : int
eventid : int (30)

"bomb_pickup"
--------------
userid : int
time : int
eventid : int (31)

"player_footstep"
----------------
userid : int
time : int
eventid : int (52)

"player_death"
-------------
userid : int
attacker : int
weapon : string (e.g. "world")
headshot : int (bool ?)
priority : int
time : int
eventid : int (13)

"round_end"
------------
winner : int (team Index)
reason : int
message : string (e.g. #Game_Commencing, #Round_Draw)
time : int
eventid : int (25)


"round_start"
------------
timelimit : int (time in seconds)
fraglimit : int
objective : string ? (e.g. "BOMB TARGET" for de_ maps, "HOSTAGE_RESCUE" for cs_ maps)
time : int
eventid : int (24)


"player_radio"
-------------
userid : int
slot : int
time : int
eventid : int (41)



=====================

any more that I find i'll put them up

Last edited by Cheeseh; 17-01-2005 at 17:37..
  
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