garrysmod-issues
garrysmod-issues copied to clipboard
Syntax errors in Lua modules cause lua panic on map startup
I don't know what is causing it. It only happens for modules that are actually used.
mini dumps: http://scrnsht.me/u/oJ/raw http://scrnsht.me/u/nJ/raw
---------------------------
Engine Error
---------------------------
Lua Panic! Something went horribly wrong!
"attempt to call a number value"
---------------------------
OK
---------------------------
I can confirm that this has been happening for over a year. It also happens if you use a branched function inside of a module that hasn't been included yet -- ex. math.Clamp inside of the Color module.
I believe this is also the case for syntax errors in gamemodes, not sure though