• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Fix/Patch [Trunk] Luascript crashing.

slaw

Software Developer
Joined
Aug 27, 2007
Messages
3,670
Solutions
125
Reaction score
1,117
Location
Germany
GitHub
slawkens
Well, is someone using TRUNK, then you maybe know that errors arent printed after starting, and server crash.

Thats very simple solution, but i have just found it today after some time searching. :)

luascript.cpp
In this function:
Code:
int32_t LuaScriptInterface::loadFile(const std::string& file, Npc* npc /* = NULL*/)

just comment this line: (//)
Code:
reportError(NULL, m_lastLuaError);

Hehe, thats sad :( ; o
 
int32_t LuaScriptInterface::loadFile(const std::string& file, Npc* npc /reportError(NULL, m_lastLuaError);/)
Its put same like here? or how... ?
 
Back
Top Bottom