![]() |
![]() |
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...how can i edit my memoverride.cpp ?
i am new to this... this is from line 405 to 430, do i del it and replace it with something new or just add the 1st part before line 405 and add the 2nd part after line 430 ? CODE #define AttribIfCrt() CAttibCRT _attrib(nBlockUse) #elif defined(_LINUX) #define AttribIfCrt() #endif // _WIN32 extern "C" { void *__cdecl _nh_malloc_dbg( size_t nSize, int nFlag, int nBlockUse, const char *pFileName, int nLine ) { AttribIfCrt(); return g_pMemAlloc->Alloc(nSize, pFileName, nLine); } //!!! //* void *__cdecl _malloc_dbg( size_t nSize, int nBlockUse, const char *pFileName, int nLine ) { AttribIfCrt(); return g_pMemAlloc->Alloc(nSize, pFileName, nLine); } //*/ could u upload a fixed memoverride.cpp for me (if it donot take much time also send me the mathlib.cpp) QUOTE rome wasn't built in a day !! i just want to build a dll ... ![]() |
Cheeseh |
![]()
Post
#3
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
1. you don't need mathlib.cpp (I forgot to remove it from the source solution) As I said remove it from the solution or exclude it from build, and use the mathlib.lib (Because you get that with the source SDK), I thought you did this, didn't it remove the mathlib error?
2. The memoverride stuff, this file is in the actual valve source code files, not within the bot source. Open it with visual studio and follow the instructions given. The lines will be different though different versions of the file The file is in public/tier0 find the section: QUOTE #if defined(_DEBUG) && _MSC_VER >= 1300 void __cdecl _aligned_free_base( void * ); void * __cdecl _aligned_malloc_base( size_t, size_t ); void * __cdecl _aligned_malloc( size_t size, size_t align ) { return _aligned_malloc_base(size, align); } void __cdecl _aligned_free( void *memblock ) { _aligned_free_base(memblock); } #endif and replace it with the section QUOTE #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 QUOTE i just want to build a dll ... explaining to build a dll to a new person with no experience in the programming language or compiling is a difficult task ![]() any more problems read: http://developer.valvesoftware.com/wiki/Co...ng_under_VS2005 http://developer.valvesoftware.com/wiki/Server_Plugins The bot code compiles properly with the SDK in place, it is the Source SDK that is causing you problems, not the bot source as such. Even if you do compile it, I already have compiled versions Debug/Release in the rcbot 2 source zip. So I fail to see exactly what you plan modify so soon? You must understand C++, the basic HL2 engine code, and the many of the bot objects to get started with anything. So don't expect to do everything within a day, it took me several years to understand the language, HL engine concepts and object oriented programming. |
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 22nd August 2025 - 07:41 AM |