Talk:Adding Lua: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
m (Nesciuse moved page Talk:Multipage Base Pages Temp Storage/Adding Lua to Talk:Adding Lua without leaving a redirect: Moving back to proper place)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Some discussion: http://www.moddb.com/forum/thread/source-adding-lua
Some discussion: http://www.moddb.com/forum/thread/source-adding-lua


== Using Garrys Mod Files ==
== LNK2019 ==


Will this let me use Garrys Mod Lua Files with some modification? --[[User:Adam.gamedev|Adam.gamedev]] 18:03, 8 July 2010 (UTC)
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)
--[[User:Adam.gamedev|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?
--[[User:skarano|skarano]] 11:32, 29 June 2024 (PST)

Latest revision as of 16:00, 15 July 2024

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)