garrysmod-issues icon indicating copy to clipboard operation
garrysmod-issues copied to clipboard

Syntax errors in Lua modules cause lua panic on map startup

Open willox opened this issue 9 years ago • 2 comments

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   
---------------------------

willox avatar Nov 02 '15 15:11 willox

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.

Kefta avatar Nov 03 '15 03:11 Kefta

I believe this is also the case for syntax errors in gamemodes, not sure though

maritaria avatar Nov 21 '15 18:11 maritaria