LuaGuard, Admin Alert For Serverside Errors

LuaGuard, Admin Alert For Serverside Errors

http://ups.imagup.com/ano1/1280834083.png

This lua prompt a text message when there is a (serverside) lua script error.
It only shows the message to admin… so, the simple players can’t view it.
There is also a sound when the message shows!
**

Ingame it looks like that

http://ups.imagup.com/ano1/1280832966.png

=============================
Console Commands
=============================**
=> LuaGuard_soundenabled (1,0) Enable or Disable Error Sound
=> LuaGuard_adminonly (0=All) (1=admin) (2=superadmin) only show error for a specific rank…
=> LuaGuard_floodlimit (x) For prevent lua errors to flood players, when the same error is detected 5 times LuaGuard says “(Flood) [LuaGuard] ERROR” and the error will be ignored.
=> LuaGuard_printerrors Show errors Logs
=> LuaGuard_purgeerrors Clear errors Logs

:siren:


This require gm_luaerror by Chrisaster (http://www.facepunch.com/showthread.php?t=859872) included in the zip

:siren:

Changelog:

Error log file sample:


Thanks to Chrisaster for the gm_luaerror module


Download V1.1 Here
http://t2.gstatic.com/images?q=tbn:5R9-xeTHpsDY3M:http://www.kruit-software.nl/agrowi/images/stories/download_button.png

Download V1.2 Here
http://t2.gstatic.com/images?q=tbn:5R9-xeTHpsDY3M:http://www.kruit-software.nl/agrowi/images/stories/download_button.png


basicly, you hooked into the lua error module then printed the error to the chat? not the best idea, but nice one anyway :slight_smile: like the coding.

Maybe have all the lua errors save to a log?

Yes Comming soon :wink:

:slight_smile: cool

Instead of using SendLua use usermessages its less expensive.

What’s more expensive - making the file shared, making a clientside file, or using one function?

V 1.2 Relased!

Changelog:

[editline]11:34PM[/editline]

making the file shared ?

lua_log_sv 1? v:v:v

Give credit to chris for the module~

Linux version plz</troll>

Nice that someone else got frustrated too with not being able to see server errors.

And then make it email us.

Nice work :slight_smile:

no, garrysmod.org says “This file has been reported” beacause contains a dll file… its for that

My garrysmod.org profile: http://www.garrysmod.org/user/?u=72324&rnum=743255