Talk:Adding Lua

From Valve Developer Community
Jump to navigation Jump to search

Some discussion: http://www.moddb.com/forum/thread/source-adding-lua

LNK2019

When I Build my mod (Debug), I get this error:

2>gameinterface.obj : error LNK2019: unresolved external symbol "class CGELUAManager * __cdecl GELua(void)" (?GELua@@YAPAVCGELUAManager@@XZ) referenced in function "public: virtual bool __thiscall CServerGameDLL::DLLInit(void * (__cdecl*)(char const *,int *),void * (__cdecl*)(char const *,int *),void * (__cdecl*)(char const *,int *),class CGlobalVars *)" (?DLLInit@CServerGameDLL@@UAE_NP6APAXPBDPAH@Z22PAVCGlobalVars@@@Z) --Adam.gamedev 14:44, 11 July 2010 (UTC)

WRITING YOUR OWN LUA INSTANCE

Things seem straightfowardes but one problem is I dont know where to put any of the code after the first step especially creating the instance, I get errors when compiling when put into gameinterface.cpp. Is it supposed to be there and im just doing it wrong or is it supposed to be somewhere else entirely? --skarano 11:32, 29 June 2024 (PST)