IPB

Welcome Guest ( Log In | Register )

> RCBot 2 base-Source, so far...
Cheeseh
post Jan 14 2005, 12:24 AM
Post #1


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



I've been working hard on this fickle beast and I've got to a point where I can make the source available since it seems to work at the lowest of levels.

Source link is at the bottom of this post

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



it only works with CS:S atm if you manage to compile it, requires MS.NET.

Note : there are some crashes in the getOrigin() code (anything relating to Networkables) if they bots/players leave the server. Still to get a better way of getting origins.

source download:

http://filebase.bots-united.com/index.php?action=file&id=259
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
Salvax
post Feb 21 2007, 01:23 PM
Post #2


Advanced Member
***

Group: Members
Posts: 75
Joined: 14-February 07
Member No.: 1,034



COOOOOOOOOOOOOL!!!!!!!!!!!!!!!! My Captain !!!!!!!!!!!!!!!!!! Hat's off to u !!!!!!!!!!!!!!!WOOOOOOOOOOOOOOOW!!!!!!!!!!!!!!!!!!!!!!

OK, i fully followed ur instruction again.

i add memoverride-vc7.cpp to the solution

then modified project properties-> linker->general->additional library directories-> to this:

..\..\lib-vc7\public;..\..\lib-vc7\common

then re-build solution !!!!!!!!!!!! WOOOOOOOOOOOOOOOOOW I make it !!!!!!!!!!!!!!!!!!!!!!!!



QUOTE

------ Rebuild All started: Project: HPB_bot2, Configuration: Release Win32 ------

Deleting intermediate files and output files for project 'HPB_bot2', configuration 'Release|Win32'.
Compiling...
memoverride-vc7.cpp
bitbuf.cpp
bot_weapons.cpp
bot_waypoint_visibility.cpp
bot_waypoint_locations.cpp
bot_waypoint.cpp
bot_visibles.cpp
bot_usercmd.cpp
bot_task.cpp
bot_strings.cpp
bot_schedule.cpp
bot_profile.cpp
bot_perceptron.cpp
bot_navmesh.cpp
bot_mods.cpp
bot_main.cpp
bot_kv.cpp
bot_hldm_bot.cpp
bot_globals.cpp
bot_ga_ind.cpp
bot_ga.cpp
bot_events.cpp
bot_css_bot.cpp
bot_convar.cpp
bot_commands.cpp
bot_client.cpp
bot_buttons.cpp
bot_accessclient.cpp
bot.cpp
Compiling...
utlbuffer.cpp
KeyValues.cpp
interface.cpp
convar.cpp
Linking...
Creating library .\Release/HPB_bot2.lib and object .\Release/HPB_bot2.exp
Performing Custom Build Step
Can't find file - C:\program files\Valve\steam\steamapps\********\counter strike source\bin\rcbot.dll

Build log was saved at "file://c:\hl2scr\utils\HPB_Bot2\Release\BuildLog.htm"
HPB_bot2 - 0 error(s), 0 warning(s)


---------------------- Done ----------------------

Rebuild All: 1 succeeded, 0 failed, 0 skipped


PS:
how to fix this:
QUOTE
Can't find file - C:\program files\Valve\steam\steamapps\********\counter strike source\bin\rcbot.dll


and sometimes it gives me this warnning, u told me to ignore it , but it is really annoying, plz tell me how to get rid of it, thx !!

QUOTE

------ Rebuild All started: Project: HPB_bot2, Configuration: Release Win32 ------

Deleting intermediate files and output files for project 'HPB_bot2', configuration 'Release|Win32'.

HPB_bot2 : warning PRJ0042 : The 'Outputs' property for the custom build step for file 'tier0.lib' is not set. The custom build step will be skipped.
Performing Custom Build Step
The custom build tool has been skipped.


Compiling...
bitbuf.cpp
memoverride-vc7.cpp
bot_weapons.cpp
bot_waypoint_visibility.cpp
bot_waypoint_locations.cpp
...
..
.



PS2:
it seems release is ok , but in debug mode i get some errors, plz check thx,Captain!

QUOTE

------ Rebuild All started: Project: HPB_bot2, Configuration: Release Win32 ------

Deleting intermediate files and output files for project 'HPB_bot2', configuration 'Release|Win32'.
HPB_bot2 : warning PRJ0042 : The 'Outputs' property for the custom build step for file 'tier0.lib' is not set. The custom build step will be skipped.
Performing Custom Build Step
The custom build tool has been skipped.
Compiling...
bitbuf.cpp
memoverride-vc7.cpp
bot_weapons.cpp
bot_waypoint_visibility.cpp
bot_waypoint_locations.cpp
bot_waypoint.cpp
bot_visibles.cpp
bot_usercmd.cpp
bot_task.cpp
bot_strings.cpp
bot_schedule.cpp
bot_profile.cpp
bot_perceptron.cpp
bot_navmesh.cpp
bot_mods.cpp
bot_main.cpp
bot_kv.cpp
bot_hldm_bot.cpp
bot_globals.cpp
bot_ga_ind.cpp
bot_ga.cpp
bot_events.cpp
bot_css_bot.cpp
bot_convar.cpp
bot_commands.cpp
bot_client.cpp
bot_buttons.cpp
bot_accessclient.cpp
bot.cpp
Compiling...
utlbuffer.cpp
KeyValues.cpp
interface.cpp
convar.cpp
Linking...
Creating library .\Release/HPB_bot2.lib and object .\Release/HPB_bot2.exp
Performing Custom Build Step
Can't fine file - C:\Program Files\Valve\Steam\SteamApps\*******\counter-strike source\bin\rcbot.dll

Build log was saved at "file://e:\hl2scr\utils\HPB_Bot2\Release\BuildLog.htm"
HPB_bot2 - 0 error(s), 1 warning(s)


------ Rebuild All started: Project: HPB_bot2, Configuration: Debug Win32 ------

Deleting intermediate files and output files for project 'HPB_bot2', configuration 'Debug|Win32'.
HPB_bot2 : warning PRJ0042 : The 'Outputs' property for the custom build step for file 'tier0.lib' is not set. The custom build step will be skipped.
Performing Custom Build Step
The custom build tool has been skipped.
Compiling...
bitbuf.cpp
memoverride-vc7.cpp
bot_weapons.cpp
bot_waypoint_visibility.cpp
bot_waypoint_locations.cpp
bot_waypoint.cpp
bot_visibles.cpp
bot_usercmd.cpp
bot_task.cpp
bot_strings.cpp
bot_schedule.cpp
bot_profile.cpp
bot_perceptron.cpp
bot_navmesh.cpp
bot_mods.cpp
bot_main.cpp
bot_kv.cpp
bot_hldm_bot.cpp
bot_globals.cpp
bot_ga_ind.cpp
Generating Code...
Compiling...
bot_ga.cpp
bot_events.cpp
bot_css_bot.cpp
bot_convar.cpp
bot_commands.cpp
bot_client.cpp
bot_buttons.cpp
bot_accessclient.cpp
bot.cpp
Generating Code...
Compiling...
utlbuffer.cpp
KeyValues.cpp
interface.cpp
convar.cpp
Generating Code...
Linking...
LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification
Creating library .\Debug/HPB_bot2.lib and object .\Debug/HPB_bot2.exp
bot.obj : error LNK2001: unresolved external symbol _pfSqrt
bot_globals.obj : error LNK2001: unresolved external symbol _pfSqrt
bot_waypoint.obj : error LNK2001: unresolved external symbol _pfSqrt
bot.obj : error LNK2019: unresolved external symbol "void __cdecl AngleVectors(class QAngle const &,class Vector *)" (?AngleVectors@@YAXABVQAngle@@PAVVector@@@Z) referenced in function "public: float __thiscall CBot::DotProductFromOrigin(class Vector &)" (?DotProductFromOrigin@CBot@@QAEMAAVVector@@@Z)
bot.obj : error LNK2019: unresolved external symbol "void __cdecl VectorAngles(class Vector const &,class QAngle &)" (?VectorAngles@@YAXABVVector@@AAVQAngle@@@Z) referenced in function "protected: void __thiscall CBot::doLook(void)" (?doLook@CBot@@IAEXXZ)
bot_globals.obj : error LNK2001: unresolved external symbol "void __cdecl VectorAngles(class Vector const &,class QAngle &)" (?VectorAngles@@YAXABVVector@@AAVQAngle@@@Z)
bot_main.obj : error LNK2019: unresolved external symbol "void __cdecl MathLib_Init(float,float,float,int,bool,bool,bool,bool)" (?MathLib_Init@@YAXMMMH_N000@Z) referenced in function "public: virtual bool __thiscall CRCBotPlugin::Load(void * (__cdecl*)(char const *,int *),void * (__cdecl*)(char const *,int *))" (?Load@CRCBotPlugin@@UAE_NP6APAXPBDPAH@Z2@Z)
tier1.lib(strtools.obj) : error LNK2019: unresolved external symbol __ftol2_sse referenced in function "char * __cdecl V_pretifymem(float,int,bool)" (?V_pretifymem@@YAPADMH_N@Z)
.\Debug/HPB_bot2.dll : fatal error LNK1120: 5 unresolved externals

Build log was saved at "file://e:\hl2scr\utils\HPB_Bot2\Debug\BuildLog.htm"
HPB_bot2 - 9 error(s), 2 warning(s)


---------------------- Done ----------------------

Rebuild All: 1 succeeded, 1 failed, 0 skipped
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic
Cheeseh   RCBot 2 base-Source   Jan 14 2005, 12:24 AM
LordSkitch   Damn! Now to see if I can get .net studio from...   Jan 14 2005, 10:34 AM
Cheeseh   If you can't theres a project converter somewh...   Jan 14 2005, 11:08 AM
LordSkitch   MMmmmm... Project converter.... ::drools:: Wait, ...   Jan 14 2005, 11:57 AM
Cheeseh   Yeah, I just found the option, i've been looki...   Jan 14 2005, 12:41 PM
Cheeseh   I've fixed a few things in the bot code for rc...   Feb 12 2005, 08:43 PM
Gun-Nut   cool glad your getting some where can't wait f...   Mar 14 2005, 11:33 AM
HeavyDelta   I'm trying to compile but I have a problem--Th...   Oct 23 2006, 10:47 PM
Cheeseh   I'm trying to compile but I have a problem--T...   Oct 23 2006, 11:17 PM
HeavyDelta   awesome, thanks for the quick reply, cheeseh   Oct 23 2006, 11:58 PM
Cpaulv   I tried that but it couldn't find mathlib.lib ...   Oct 24 2006, 01:34 PM
HeavyDelta   I tried that but it couldn't find mathlib.lib...   Oct 24 2006, 03:39 PM
Salvax   did you copy the mathlib.lib file to the program ...   Feb 20 2007, 10:39 AM
Cheeseh   just install the bot source into the HL2 source co...   Feb 20 2007, 12:18 PM
Salvax   ok thx !! as I ignored the Microsoft Visu...   Feb 20 2007, 01:02 PM
Cheeseh   ignore tier0.lib output warning is there a mathli...   Feb 20 2007, 02:08 PM
Salvax   ignore tier0.lib output warning is there a mathl...   Feb 20 2007, 02:30 PM
Cheeseh   I can't share anything FTP is broken. If you h...   Feb 20 2007, 03:23 PM
HeavyDelta   EDIT: nevermind, fixed my problem   Oct 24 2006, 05:16 PM
Cheeseh   I'm having another problem, the only way i ca...   Oct 25 2006, 01:09 AM
HeavyDelta   add an ignore library for LIBCMTD in link setting...   Oct 25 2006, 01:12 AM
Cheeseh   Thanks, Cheeseh, I tried ignoring the LIBCMTD but...   Oct 25 2006, 01:16 AM
HeavyDelta   cool, thanks for the info. btw you did great work ...   Oct 25 2006, 01:22 AM
Cheeseh   cool, thanks for the info. btw you did great work...   Oct 25 2006, 01:24 AM
Cpaulv   no matter what was said I still get that it can...   Oct 25 2006, 01:47 AM
HeavyDelta   no matter what was said I still get that it can...   Oct 25 2006, 01:53 AM
Cpaulv   now I have 29 errors, lol, I'm just not having...   Oct 25 2006, 01:56 AM
Cheeseh   did you read this http://developer.valvesoftware.c...   Oct 25 2006, 01:22 PM
HeavyDelta   Good news, the SDK beta (released Oct. 31) now has...   Nov 8 2006, 02:16 AM
Salvax   so...can i compile the source code with VC++6.0 + ...   Feb 19 2007, 07:36 AM
Salvax   plz upload the mathlib.cpp here: http://rapidshar...   Feb 20 2007, 03:28 PM
Cheeseh   follow this MS Visual Studio 2003 -> load HPB_...   Feb 20 2007, 03:42 PM
Salvax   Faint! mathlib.cpp error gone! but i go...   Feb 20 2007, 04:00 PM
Cheeseh   I wrote about this already on the first page of th...   Feb 20 2007, 04:10 PM
Salvax   so...how can i edit my memoverride.cpp ? i am new...   Feb 20 2007, 04:19 PM
Cheeseh   1. you don't need mathlib.cpp (I forgot to rem...   Feb 20 2007, 05:39 PM
Salvax   sorry, i'll be more patient from now on. :P ...   Feb 21 2007, 01:05 AM
Cheeseh   remove all of the _CRTNOALIAS and _CRTRESTRICT def...   Feb 21 2007, 02:16 AM
Salvax   so...like this ?! BTW,I use Visual Studio .NET...   Feb 21 2007, 02:36 AM
Cheeseh   argh. you're using the wrong memoverride, ther...   Feb 21 2007, 12:24 PM
Salvax   faint ! so... 1. delet the memoverride.cpp f...   Feb 21 2007, 12:54 PM
Cheeseh   it would had been better to remove memoverride fro...   Feb 21 2007, 01:14 PM
Salvax   COOOOOOOOOOOOOL!!!!!!...   Feb 21 2007, 01:23 PM
Cheeseh   Did you do the same things to the project properti...   Feb 21 2007, 05:14 PM
Salvax   ok, i got it! thx Captain, I owe u tooooooooo ...   Feb 21 2007, 05:20 PM
Cheeseh   ok, i got it! thx Captain, I owe u tooooooooo...   Feb 21 2007, 05:29 PM
Salvax   OK!!! Finally ... thx !!...   Feb 21 2007, 05:36 PM


Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 22nd August 2025 - 07:39 AM