CBaseEntity in a ServerPlugin?

Grab your favourite IDE and tinker with the innards of game engines

CBaseEntity in a ServerPlugin?

Postby omnicoder on Thu Aug 12, 2010 3:43 am

Been trying all sorts of crazy stuff and pulling my hair out trying to get access to CBaseEntity in a serverplugin based off of serverplugin_empty for the past week. I added cbase.h, changed all the references of GameEventManager to GameEventManager2 etc, and although I have no errors before compiling/in design mode, I get a link error from my obj file that it cannot 'resolve external symbol' for every line where I use CBaseEntity. Same error happens for filesystem which is also from cbase.h. Is there something else I need in order to do this, or another way to access the filesystem and entity keyvalues?
Image
If only the future implemented IForeseeable...
"whats threading? does it have to do with strings?" - stegarootbeer
User avatar
omnicoder
Been Here A While
Been Here A While
 
Joined: Sun Feb 07, 2010 8:35 am

Re: CBaseEntity in a ServerPlugin?

Postby Shrinker on Sat Aug 14, 2010 7:52 am

I have no idea how the SDK looks like from file perspective, but it looks like either a static library reference (.lib, see project settings/linker/additional dependencies) or a cpp file is missing. Missing linker symbols usually indicate that the compiler saw the header declaration, but no implementation in code. On the other hand, you probably already know all of this.
User avatar
Shrinker
Been Here A While
Been Here A While
 
Joined: Fri Nov 09, 2007 5:52 pm
Location: Germany

Return to Programming

Who is online

Users browsing this forum: No registered users

cron