IPB

Welcome Guest ( Log In | Register )

3 Pages V < 1 2 3 >  
Reply to this topicStart new topic
> RCBot 2 base-Source, so far...
Cpaulv
post Oct 25 2006, 01:56 AM
Post #21


Newbie
*

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



now I have 29 errors, lol, I'm just not having any luck with C++ lately.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Oct 25 2006, 01:22 PM
Post #22


Admin
*****

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



did you read this http://developer.valvesoftware.com/wiki/Co...vs._VS_Standard

I use 2003 version but I still had to put in the memovverride patch on that page
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
HeavyDelta
post Nov 8 2006, 02:16 AM
Post #23


Member
**

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



Good news, the SDK beta (released Oct. 31) now has 2005 support and other bugfixes.

http://developer.valvesoftware.com/wiki/So...K_Release_Notes
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Salvax
post Feb 19 2007, 07:36 AM
Post #24


Advanced Member
***

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



so...can i compile the source code with VC++6.0 + SP6 ?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Salvax
post Feb 20 2007, 10:39 AM
Post #25


Advanced Member
***

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



QUOTE(HeavyDelta @ Oct 24 2006, 03:39 PM) *

did you copy the mathlib.lib file to the program files/microsoft platform SDK.../lib folder?


do i copy the [E:\src\lib\public\mathlib.lib] here ?:
C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\PlatformSDK\Lib\

as u said:
QUOTE
project settings -> linker -> input -> additional dependencies -> add "mathlib.lib"


mine additional dependencies is like this :
odbc32.lib odbccp32.lib tier0.lib tier1.lib tier2.lib tier3.lib mathlib.lib

but i still get the

c1xx : fatal error C1083: can't open source file:“\src\public\mathlib.cpp”: No such file or directory
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 20 2007, 12:18 PM
Post #26


Admin
*****

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



just install the bot source into the HL2 source code utils folder and it should be fine. The bot should have additional library folder locations set relative to the bot source folder inside the hl2 source code.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Salvax
post Feb 20 2007, 01:02 PM
Post #27


Advanced Member
***

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



ok thx !!

as I ignored the Microsoft Visual SourceSafe error ,

now i only get 2 errors:

1.HPB_bot2 : warning PRJ0042 : ??? "tier0.lib" ??? "output" properties
2.c1xx : fatal error C1083: can't open source file:“\hl2scr\public\mathlib.cpp”: No such file or directory

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 20 2007, 02:08 PM
Post #28


Admin
*****

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



ignore tier0.lib output warning

is there a mathlib.cpp in that folder, did you check? Did you extract the HL2 source code properly (using instructions above)? Is rcbot2's HPB_Bot2 folder in the utils folder?

(Use this instead of PMs to help others)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Salvax
post Feb 20 2007, 02:30 PM
Post #29


Advanced Member
***

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



QUOTE(Cheeseh @ Feb 20 2007, 02:08 PM) *

ignore tier0.lib output warning

is there a mathlib.cpp in that folder, did you check? Did you extract the HL2 source code properly (using instructions above)? Is rcbot2's HPB_Bot2 folder in the utils folder?

(Use this instead of PMs to help others)


No, there is no mathlib.cpp in that folder

Yes, i extracted the HL2 code with ur intructions above

i put HPB_Bot2 folder in C:\hl2scr\utils\

For GOD sake ! plz tell me what to do ? Or could u just share ur mathlib.cpp ?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 20 2007, 03:23 PM
Post #30


Admin
*****

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



I can't share anything FTP is broken. If you have 1 missing file chances are you have more than 1 missing file.

instead of "source code only", try "Create a Mod from scratch" in the Steam -> Tools -> Source SDK -> create a mod, you should get everything required with the steam SDK

And put rcbot2 in the utils/ folder of the extracted source that steam makes for the new mod.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Salvax
post Feb 20 2007, 03:28 PM
Post #31


Advanced Member
***

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



plz upload the mathlib.cpp here:

http://rapidshare.de/

or here:

http://www.sendspace.com/

or send me an E-mail biggrin.gif

_____

I will have a try anyway !(i can search for mathlib.cpp with GCFScape, let me see if the mathlib.cpp in the gcf file)

PS:*faint*... No mathlib.cpp in any GCF files...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 20 2007, 03:42 PM
Post #32


Admin
*****

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



follow this

MS Visual Studio 2003 -> load HPB_Bot2 -> right click 'mathlib.cpp' in solution explorer -> select Excluded from build "Yes" (Or delete mathlib.cpp it from solution explorer)

right click "HPB_Bot2" in solution explorer -> Properties -> Linker -> Input -> Additional dependencies -> Add "mathlib.lib"


QUOTE

ok, roger that ,Captain, now let's focus on the mathlib.cpp problem, plz don't let me wast a whole day biggrin.gif laugh.gif


rome wasn't built in a day !!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Salvax
post Feb 20 2007, 04:00 PM
Post #33


Advanced Member
***

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



Faint!

mathlib.cpp error gone!

but i got another 104 errors... sad.gif

error C2065 "int_CRTNOALIAS" ??? \hl2scr\public\tier0\memoveride.cpp(124);

error C2146

Error C2501

error .
.
.
.

I really wanna cry sad.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 20 2007, 04:10 PM
Post #34


Admin
*****

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



I wrote about this already on the first page of this thread: http://rcbot.bots-united.com/forums/index....post&p=6616

QUOTE

Memoverride Linking Errors & Fixes:

memoverride.obj : error LNK2019: unresolved external symbol __aligned_malloc_base referenced in function __aligned_malloc memoverride.obj : error LNK2019: unresolved external symbol __aligned_free_base referenced in function __aligned_free

Lines 405 - 430 in memoverride.cpp:

Before:

#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

After:

#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


source: http://developer.valvesoftware.com/wiki/Co...ng_under_VS2005
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Salvax
post Feb 20 2007, 04:19 PM
Post #35


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 ... sad.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 20 2007, 05:39 PM
Post #36


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 sad.gif

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.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Salvax
post Feb 21 2007, 01:05 AM
Post #37


Advanced Member
***

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



sorry, i'll be more patient from now on. tongue.gif

the memoverride.cpp in my c:\hl2scr\public\tier0\

I think it is this part, and i'v no idea how to edit it, so many differences ...

from line 486 to 528:

QUOTE

#ifdef _WIN32

#if _MSC_VER >= 1300

_CRTNOALIAS _CRTRESTRICT void *__cdecl _aligned_malloc_base( size_t size, size_t align )
{
return _malloc_base( size );
}

_CRTNOALIAS _CRTRESTRICT void *__cdecl _aligned_realloc_base( void *ptr, size_t size, size_t align )
{
return _realloc_base( ptr, size );
}

_CRTNOALIAS void __cdecl _aligned_free_base( void *ptr )
{
_free_base( ptr );
}

_CRTNOALIAS _CRTRESTRICT void * __cdecl _aligned_malloc( size_t size, size_t align )
{
return _aligned_malloc_base( size, align );
}

_CRTNOALIAS void __cdecl _aligned_free( void *memblock )
{
_aligned_free_base(memblock);
}

_CRTNOALIAS _CRTRESTRICT void *__cdecl _aligned_realloc(void *memblock, size_t size, size_t align)
{
return _aligned_realloc_base(memblock, size, align);
}

_CRTNOALIAS _CRTRESTRICT void *__cdecl _aligned_offset_malloc(size_t size, size_t align, size_t offset)
{
return _aligned_malloc_base( size, align );
}

_CRTNOALIAS _CRTRESTRICT void *__cdecl _aligned_offset_realloc(void *memblock, size_t size, size_t align, size_t offset)
{
return _aligned_realloc_base( memblock, size, align );
}
#endif



PS:
then i edited it to this , plz check it if i am right or not , thx ! "//**************" is the line i modified

QUOTE

#ifdef _WIN32

#if _MSC_VER >= 1300

_CRTNOALIAS _CRTRESTRICT void *__cdecl _aligned_malloc( size_t size, size_t align ) //*********************
{
return _malloc_base( size );
}

_CRTNOALIAS _CRTRESTRICT void *__cdecl _aligned_realloc_base( void *ptr, size_t size, size_t align )
{
return _realloc_base( ptr, size );
}

_CRTNOALIAS void __cdecl _aligned_free( void *ptr ) //*******************
{
_free_base( ptr );
}

_CRTNOALIAS _CRTRESTRICT void * __cdecl _aligned_malloc_base( size_t size, size_t align ) //*********************
{
return _aligned_malloc( size, align ); //***********************
}

_CRTNOALIAS void __cdecl _aligned_free_base( void *memblock ) //********************
{
_aligned_free(memblock); //******************
}

_CRTNOALIAS _CRTRESTRICT void *__cdecl _aligned_realloc(void *memblock, size_t size, size_t align)
{
return _aligned_realloc_base(memblock, size, align);
}

_CRTNOALIAS _CRTRESTRICT void *__cdecl _aligned_offset_malloc(size_t size, size_t align, size_t offset)
{
return _aligned_malloc( size, align ); //**********************
}

_CRTNOALIAS _CRTRESTRICT void *__cdecl _aligned_offset_realloc(void *memblock, size_t size, size_t align, size_t offset)
{
return _aligned_realloc_base( memblock, size, align );
}
#endif



then i tried to compile, thus: sad.gif sad.gifsad.gif sad.gifsad.gif sad.gif

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(124) : error C2146: syntax error : missing ';' before identifier '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(124) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(124) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(124) : error C2501: '_CRTRESTRICT' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(129) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(129) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(129) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(134) : error C2146: syntax error : missing ';' before identifier '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(134) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(134) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(134) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(134) : error C2501: '_CRTRESTRICT' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(134) : error C2086: 'int _CRTRESTRICT' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(139) : error C2146: syntax error : missing ';' before identifier '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(139) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(139) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(139) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(139) : error C2501: '_CRTRESTRICT' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(139) : error C2086: 'int _CRTRESTRICT' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(189) : error C2146: syntax error : missing ';' before identifier '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(189) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(189) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(189) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(189) : error C2501: '_CRTRESTRICT' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(189) : error C2086: 'int _CRTRESTRICT' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(490) : error C2146: syntax error : missing ';' before identifier '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(490) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(490) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(490) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(490) : error C2501: '_CRTRESTRICT' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(490) : error C2086: 'int _CRTRESTRICT' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(495) : error C2146: syntax error : missing ';' before identifier '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(495) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(495) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(495) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(495) : error C2501: '_CRTRESTRICT' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(495) : error C2086: 'int _CRTRESTRICT' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(500) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(500) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(500) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(505) : error C2146: syntax error : missing ';' before identifier '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(505) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(505) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(505) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(505) : error C2501: '_CRTRESTRICT' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(505) : error C2086: 'int _CRTRESTRICT' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(510) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(510) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(510) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(515) : error C2146: syntax error : missing ';' before identifier '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(515) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(515) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(515) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(515) : error C2501: '_CRTRESTRICT' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(515) : error C2086: 'int _CRTRESTRICT' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(520) : error C2146: syntax error : missing ';' before identifier '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(520) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(520) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(520) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(520) : error C2501: '_CRTRESTRICT' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(520) : error C2086: 'int _CRTRESTRICT' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(525) : error C2146: syntax error : missing ';' before identifier '_CRTRESTRICT'
\hl2scr\public\tier0\memoverride.cpp(525) : error C2501: '_CRTNOALIAS' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(525) : error C2086: 'int _CRTNOALIAS' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTNOALIAS'
\hl2scr\public\tier0\memoverride.cpp(525) : error C2144: syntax error : 'void' should be preceded by ';'
\hl2scr\public\tier0\memoverride.cpp(525) : error C2501: '_CRTRESTRICT' : missing storage-class or type specifiers
\hl2scr\public\tier0\memoverride.cpp(525) : error C2086: 'int _CRTRESTRICT' : redefinition
\hl2scr\public\tier0\memoverride.cpp(124) : see declaration of '_CRTRESTRICT'
\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) : fatal error C1003: error count exceeds 100; stopping compilation
KeyValues.cpp
interface.cpp
convar.cpp

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


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

Rebuild All: 0 succeeded, 1 failed, 0 skipped

User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 21 2007, 02:16 AM
Post #38


Admin
*****

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



remove all of the _CRTNOALIAS and _CRTRESTRICT definitions before each of those functions and try again (Notice there weren't any in the code I gave you tongue.gif)

What version of Microsoft Visual Studio are you trying to compile with??

I believe _CRTNOALIAS and _CRTRESTRICT are Visual Studio 2005.NET specific
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Salvax
post Feb 21 2007, 02:36 AM
Post #39


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 :
sad.gif

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
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Feb 21 2007, 12:24 PM
Post #40


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!!!
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 - 06:10 AM