• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!
  • 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,888
Solutions
134
Reaction score
1,370
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