![]() |
![]() |
Cheeseh |
![]()
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
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 |
||
![]() ![]() |
HeavyDelta |
![]()
Post
#2
|
Member ![]() ![]() Group: Members Posts: 12 Joined: 23-October 06 Member No.: 909 ![]() |
EDIT: nevermind, fixed my problem
|
Cheeseh |
![]()
Post
#3
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
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") |
HeavyDelta |
![]()
Post
#4
|
Member ![]() ![]() Group: Members Posts: 12 Joined: 23-October 06 Member No.: 909 ![]() |
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. |
Cheeseh |
![]()
Post
#5
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
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 ! |
HeavyDelta |
![]()
Post
#6
|
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.
|
Cheeseh |
![]()
Post
#7
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
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) |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 22nd August 2025 - 07:40 AM |