![]() |
Re: rcbot 2 source base
Quote:
|
Re: rcbot 2 source base
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 :D 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 |
Re: rcbot 2 source base
Well, next time I'll surely consider the use of virtual destructors :P 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 :) |
Re: rcbot 2 source base
@$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... |
Re: rcbot 2 source base
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 |
Re: rcbot 2 source base
Cheeseh you rock! :)
I'll go play with them asap! *update* Fun stuff :D they slowed down my comp though (I had 19), fun :D :D |
Re: rcbot 2 source base
Cheeseh nice work with rcbot2 :D (intresting code), have you had any luck with bot weapon identification/selection? i`m currently stumped???:(.
|
Re: rcbot 2 source base
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 |
Re: rcbot 2 source base
nice work :D also you might find g_pDebugOverlay->AddEntityTextOverlay (...) for debugging internal bot vars intresting. How did you go about finding all that info?
|
Re: rcbot 2 source base
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 |
All times are GMT +2. The time now is 07:35. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.