![]() |
![]() |
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 |
||
![]() ![]() |
Salvax |
![]()
Post
#2
|
![]() Advanced Member ![]() ![]() ![]() Group: Members Posts: 75 Joined: 14-February 07 Member No.: 1,034 ![]() |
so...like this ?! BTW,I use Visual Studio .NET 2003.
QUOTE #ifdef _WIN32 #if _MSC_VER >= 1300 void *__cdecl _aligned_malloc( size_t size, size_t align ) //********************* { return _malloc_base( size ); } void *__cdecl _aligned_realloc_base( void *ptr, size_t size, size_t align ) { return _realloc_base( ptr, size ); } void __cdecl _aligned_free( void *ptr ) //******************* { _free_base( ptr ); } 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); //****************** } void *__cdecl _aligned_realloc(void *memblock, size_t size, size_t align) { return _aligned_realloc_base(memblock, size, align); } void *__cdecl _aligned_offset_malloc(size_t size, size_t align, size_t offset) { return _aligned_malloc( size, align ); //********************** } void *__cdecl _aligned_offset_realloc(void *memblock, size_t size, size_t align, size_t offset) { return _aligned_realloc_base( memblock, size, align ); } #endif ok, tested... i have to remove all _CRTNOALIAS and _CRTRESTRICT in memoverride.cpp and it won't give errors about _CRTNOALIAS and _CRTRESTRICT. but still some errors left : ![]() QUOTE ------ Rebuild All started: Project: HPB_bot2, Configuration: Release Win32 ------ Deleting intermediate files and output files for project 'HPB_bot2', configuration 'Release|Win32'. Compiling... 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 memoverride.cpp \hl2scr\public\tier0\memoverride.cpp(830) : error C2065: '_locale_t' : undeclared identifier \hl2scr\public\tier0\memoverride.cpp(830) : error C2146: syntax error : missing ')' before identifier 'plocinfo' \hl2scr\public\tier0\memoverride.cpp(830) : warning C4229: anachronism used : modifiers on data are ignored \hl2scr\public\tier0\memoverride.cpp(830) : error C2182: '_printMemBlockData' : illegal use of type 'void' \hl2scr\public\tier0\memoverride.cpp(830) : error C2059: syntax error : ')' \hl2scr\public\tier0\memoverride.cpp(831) : error C2143: syntax error : missing ';' before '{' \hl2scr\public\tier0\memoverride.cpp(831) : error C2447: '{' : missing function header (old-style formal list?) \hl2scr\public\tier0\memoverride.cpp(835) : error C2061: syntax error : identifier '_locale_t' \hl2scr\public\tier0\memoverride.cpp(973) : error C2146: syntax error : missing ';' before identifier '_cacheid' \hl2scr\public\tier0\memoverride.cpp(973) : error C2501: 'setloc_struct::LC_ID' : missing storage-class or type specifiers \hl2scr\public\tier0\memoverride.cpp(973) : error C2501: 'setloc_struct::_cacheid' : missing storage-class or type specifiers \hl2scr\public\tier0\memoverride.cpp(1006) : error C2065: 'MB_LEN_MAX' : undeclared identifier \hl2scr\public\tier0\memoverride.cpp(1022) : error C2146: syntax error : missing ';' before identifier 'ptmbcinfo' \hl2scr\public\tier0\memoverride.cpp(1022) : error C2501: '_tiddata::pthreadmbcinfo' : missing storage-class or type specifiers \hl2scr\public\tier0\memoverride.cpp(1022) : error C2501: '_tiddata::ptmbcinfo' : missing storage-class or type specifiers \hl2scr\public\tier0\memoverride.cpp(1025) : error C2146: syntax error : missing ';' before identifier 'ptlocinfo' \hl2scr\public\tier0\memoverride.cpp(1025) : error C2501: '_tiddata::pthreadlocinfo' : missing storage-class or type specifiers \hl2scr\public\tier0\memoverride.cpp(1025) : error C2501: '_tiddata::ptlocinfo' : missing storage-class or type specifiers \hl2scr\public\tier0\memoverride.cpp(1073) : error C2146: syntax error : missing ';' before identifier 'localeinfo' \hl2scr\public\tier0\memoverride.cpp(1073) : error C2501: '_LocaleUpdate::_locale_tstruct' : missing storage-class or type specifiers \hl2scr\public\tier0\memoverride.cpp(1073) : error C2501: '_LocaleUpdate::localeinfo' : missing storage-class or type specifiers \hl2scr\public\tier0\memoverride.cpp(1077) : error C2146: syntax error : missing ')' before identifier 'plocinfo' \hl2scr\public\tier0\memoverride.cpp(1077) : error C2146: syntax error : missing ';' before identifier 'plocinfo' \hl2scr\public\tier0\memoverride.cpp(1077) : error C2460: '_LocaleUpdate::_locale_t' : uses '_LocaleUpdate', which is being defined \hl2scr\public\tier0\memoverride.cpp(1072) : see declaration of '_LocaleUpdate' \hl2scr\public\tier0\memoverride.cpp(1077) : error C2059: syntax error : ')' \hl2scr\public\tier0\memoverride.cpp(1078) : error C2327: '_LocaleUpdate::updated' : is not a type name, static, or enumerator \hl2scr\public\tier0\memoverride.cpp(1078) : error C3861: 'updated': identifier not found, even with argument-dependent lookup \hl2scr\public\tier0\memoverride.cpp(1079) : error C2501: '_LocaleUpdate::plocinfo' : missing storage-class or type specifiers \hl2scr\public\tier0\memoverride.cpp(1101) : error C2588: '::~_LocaleUpdate' : illegal global destructor \hl2scr\public\tier0\memoverride.cpp(1106) : error C2146: syntax error : missing ';' before identifier 'GetLocaleT' \hl2scr\public\tier0\memoverride.cpp(1106) : error C2501: '_locale_t' : missing storage-class or type specifiers \hl2scr\public\tier0\memoverride.cpp(1106) : error C2371: '_locale_t' : redefinition; different basic types \hl2scr\public\tier0\memoverride.cpp(1108) : error C2065: 'localeinfo' : undeclared identifier \hl2scr\public\tier0\memoverride.cpp(1110) : error C2059: syntax error : '}' \hl2scr\public\tier0\memoverride.cpp(1110) : error C2143: syntax error : missing ';' before '}' \hl2scr\public\tier0\memoverride.cpp(1110) : error C2059: syntax error : '}' KeyValues.cpp interface.cpp convar.cpp Build log was saved at "file://c:\hl2scr\utils\HPB_Bot2\Release\BuildLog.htm" HPB_bot2 - 35 error(s), 1 warning(s) ---------------------- Done ---------------------- Rebuild All: 0 succeeded, 1 failed, 0 skipped |
Cheeseh |
![]()
Post
#3
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
argh. you're using the wrong memoverride, there is a memoverride-vc7.cpp
you also need to change : project properties-> linker->general->additional library directories-> change each occurence of lib to lib-vc7 after VALVE added more functionality the overwritten the memoverride.cpp version with all this new stuff that just likes to crap up. But they left in a memoverride-vc7.cpp in the same folder, so either remove memoverride.cpp from your solution and add memoverride-vc7 instead, or delete memoverride.cpp and rename memoverride-vc7.cpp to memoverride.cpp. they also overwritten library files for different versions of MS Visual Studio over the same friggin file names!!! |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 22nd August 2025 - 07:37 AM |