IPB

Welcome Guest ( Log In | Register )

3 Pages V  1 2 3 >  
Reply to this topicStart new topic
> 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
LordSkitch
post Jan 14 2005, 10:34 AM
Post #2


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



Damn! Now to see if I can get .net studio from the college...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Jan 14 2005, 11:08 AM
Post #3


Admin
*****

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



If you can't theres a project converter somewhere

ah here it is tongue.gif

http://codeproject.com/tools/prjconverter.asp
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post Jan 14 2005, 11:57 AM
Post #4


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



MMmmmm... Project converter.... ::drools::

Wait, does .NET have like.. line numbers for the code? I'll upgrade solely for that...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Jan 14 2005, 12:41 PM
Post #5


Admin
*****

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



Yeah, I just found the option, i've been looking for it myself for ages rolleyes.gif (tools->options->text edtior->c/c++->display line numbers) ! (tha's .NET) can't find it in 6.0
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 12 2005, 08:43 PM
Post #6


Admin
*****

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



I've fixed a few things in the bot code for rcbot2 so far such as path-finding, a bug I noticed in HL randomInt code which kept giving the same bloody numbers again and again, sorted out the stuff for using the new bot interfaces with SDK and added better decision making (well "better" as in using neurons to make decsiosn but they're pretty crap at the moment !!) I'll need to upload a new source soon. *pheeww* big sentence
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Gun-Nut
post Mar 14 2005, 11:33 AM
Post #7


Member
**

Group: Members
Posts: 12
Joined: 14-March 05
Member No.: 514



cool glad your getting some where can't wait for the first realese biggrin.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
HeavyDelta
post Oct 23 2006, 10:47 PM
Post #8


Member
**

Group: Members
Posts: 12
Joined: 23-October 06
Member No.: 909



I'm trying to compile but I have a problem--The RCbot source needs mathlib.cpp but recently, Valve removed the mathlib.cpp from the SDK and are using the mathlib.lib file in the lib folder now. Can someone either..

1. tell me how do to make the RCbot source use the mathlib.lib file instead of the mathlib.cpp file? (Im on MSVC 2005)

or 2. send me the mathlib.cpp file from an older SDK.

Thanks in advance. smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Oct 23 2006, 11:17 PM
Post #9


Admin
*****

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



QUOTE(HeavyDelta @ Oct 23 2006, 11:47 PM) *

I'm trying to compile but I have a problem--The RCbot source needs mathlib.cpp but recently, Valve removed the mathlib.cpp from the SDK and are using the mathlib.lib file in the lib folder now. Can someone either..

1. tell me how do to make the RCbot source use the mathlib.lib file instead of the mathlib.cpp file? (Im on MSVC 2005)

or 2. send me the mathlib.cpp file from an older SDK.

Thanks in advance. smile.gif


goto project settings -> linker -> input -> additional dependencies -> add "mathlib.lib"
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
HeavyDelta
post Oct 23 2006, 11:58 PM
Post #10


Member
**

Group: Members
Posts: 12
Joined: 23-October 06
Member No.: 909



awesome, thanks for the quick reply, cheeseh
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cpaulv
post Oct 24 2006, 01:34 PM
Post #11


Newbie
*

Group: Members
Posts: 3
Joined: 24-October 06
Member No.: 912



I tried that but it couldn't find mathlib.lib

*edit*

ok now it says it can't find mathlib.obj
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
HeavyDelta
post Oct 24 2006, 03:39 PM
Post #12


Member
**

Group: Members
Posts: 12
Joined: 23-October 06
Member No.: 909



QUOTE(Cpaulv @ Oct 24 2006, 08:34 AM) *

I tried that but it couldn't find mathlib.lib

*edit*

ok now it says it can't find mathlib.obj

did you copy the mathlib.lib file to the program files/microsoft platform SDK.../lib folder?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
HeavyDelta
post Oct 24 2006, 05:16 PM
Post #13


Member
**

Group: Members
Posts: 12
Joined: 23-October 06
Member No.: 909



EDIT: nevermind, fixed my problem
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Oct 25 2006, 01:09 AM
Post #14


Admin
*****

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



QUOTE(HeavyDelta @ Oct 24 2006, 06:16 PM) *

I'm having another problem, the only way i can compile is to exclude memoryoverride.cpp from compiling, since when i compile with memoryoverride, i get a bunch of errors similar to...

"LIBCMTD.lib(dbgheap.obj) : error LNK2005: __CrtMemDifference already defined in memoverride.obj"

But when I try "rcbot addbot" ingame with the compiled dll exluding the memoryoverride.cpp, i get lots of memory related errors and "debug assertion failed" etc.

anyone know how i can compile without excluding memoryoverride.cpp? Thanks.


add an ignore library for LIBCMTD in link settings->input, see what happens

also you dont need to copy the library files to the MSVC++ library folder, just add a folder to the link settings (In link->general->additional library folders->add "../../lib/public")
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
HeavyDelta
post Oct 25 2006, 01:12 AM
Post #15


Member
**

Group: Members
Posts: 12
Joined: 23-October 06
Member No.: 909



QUOTE(Cheeseh @ Oct 24 2006, 08:09 PM) *

add an ignore library for LIBCMTD in link settings->input, see what happens

also you dont need to copy the library files to the MSVC++ library folder, just add a folder to the link settings (In link->general->additional library folders->add "../../lib/public")



Thanks, Cheeseh, I tried ignoring the LIBCMTD but that gave me hundreds of errors which i expected. I just commented out the portions of memoryoverride.cpp that tried to override libcmt.lib and now the bot is running fine with no memory errors.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Oct 25 2006, 01:16 AM
Post #16


Admin
*****

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



QUOTE(HeavyDelta @ Oct 25 2006, 02:12 AM) *

Thanks, Cheeseh, I tried ignoring the LIBCMTD but that gave me hundreds of errors which i expected. I just commented out the portions of memoryoverride.cpp that tried to override libcmt.lib and now the bot is running fine with no memory errors.


My problem was slightly different, I had to ingore LIBCD and also include tier1.lib to the build,

also had to apply the memoverride.cpp patch (on valve wiki)

CODE

#if defined(_DEBUG) && _MSC_VER >= 1300
void    __cdecl _aligned_free(
        void *
        );
void *  __cdecl _aligned_malloc(
        size_t,
        size_t
        );
void * __cdecl _aligned_malloc_base(
        size_t size,
        size_t align
        )
{
    return _aligned_malloc(size, align);
}
void __cdecl _aligned_free_base(
        void *memblock
        )
{
    _aligned_free(memblock);
}
#endif


havn't tried the bot after the build yet though

edit

also I think HL2 likes to override the memory stuff so you should try and get it to compile without commenting everything !
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
HeavyDelta
post Oct 25 2006, 01:22 AM
Post #17


Member
**

Group: Members
Posts: 12
Joined: 23-October 06
Member No.: 909



cool, thanks for the info. btw you did great work on the bots, i noticed it even has code so the bots can hunt down their enemies if they go out of sight. It's much better than when bots first came out for HL1.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Oct 25 2006, 01:24 AM
Post #18


Admin
*****

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



QUOTE(HeavyDelta @ Oct 25 2006, 02:22 AM) *

cool, thanks for the info. btw you did great work on the bots, i noticed it even has code so the bots can hunt down their enemies if they go out of sight. It's much better than when bots first came out for HL1.


I did have code that made them follow their last enemy, but I'm going to remove that eventually and add a belief system instead as they can then remember several enemies and not just their last enemy. Also this makes them choose safer paths and can decide whether or not to go stealth/run/flank/throw a grenade etc


---edit again ---

and when you ignore the specific library, HL libs may have those functionalities, you should try linking several libraries in hl2/src/lib/public to see if you can find the correct library (typically tier1.lib has what you need)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cpaulv
post Oct 25 2006, 01:47 AM
Post #19


Newbie
*

Group: Members
Posts: 3
Joined: 24-October 06
Member No.: 912



no matter what was said I still get that it can't find mathlib.obj
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
HeavyDelta
post Oct 25 2006, 01:53 AM
Post #20


Member
**

Group: Members
Posts: 12
Joined: 23-October 06
Member No.: 909



QUOTE(Cpaulv @ Oct 24 2006, 08:47 PM) *

no matter what was said I still get that it can't find mathlib.obj


you removed/excluded mathlib.cpp from the solution, correct? And use Rebuild Solution instead of Build solution just in case, too.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

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

 



- Lo-Fi Version Time is now: 22nd August 2025 - 03:49 AM