[B]LuaGuard, Admin Alert For Serverside Errors[/B]
[IMG]http://ups.imagup.com/ano1/1280834083.png[/IMG]
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!
[B]
[U]Ingame it looks like that[/U]
[IMG]http://ups.imagup.com/ano1/1280832966.png[/IMG]
=============================
Console Commands
=============================[/B]
=> LuaGuard_soundenabled (1,0) [B]Enable or Disable Error Sound[/B]
=> LuaGuard_adminonly (0=All) (1=admin) (2=superadmin) [B]only show error for a specific rank...[/B]
=> LuaGuard_floodlimit (x) [B]For prevent lua errors to flood players, when the same error is detected 5 times LuaGuard says [U]"(Flood) [LuaGuard] ERROR"[/U] and the error will be ignored.[/B]
=> LuaGuard_printerrors [B]Show errors Logs[/B]
=> LuaGuard_purgeerrors [B]Clear errors Logs[/B]
:siren:[highlight]This require gm_luaerror by Chrisaster ([url]http://www.facepunch.com/showthread.php?t=859872[/url]) included in the zip[/highlight]:siren:
Changelog:
[QUOTE]
Added a save system for logs (log files can be found in data/LuaGuard).
[/QUOTE]
Error log file sample:
[QUOTE]
(08/03/10 00:42:29) ...s\wiresocketrad\lua\includes\modules\socket\smtp.lua:16: loop or previous error loading module 'socket'
[1 Times]
(08/03/10 00:42:29) ...ns\wiresocketrad\lua\includes\modules\socket\ftp.lua:15: loop or previous error loading module 'socket'
[1 Times]
(08/03/10 00:52:24) Hook 'LSTakeDamage' Failed: ...s\life support\lua\autorun\server\sv_lifesupport.lua:396: attempt to compare number with nil
[1 Times]
(08/03/10 00:42:56) Hook 'SpawnScoreboard' Failed: addons\lua_scoreboard\lua\autorun\server\spawn.lua:21: bad argument #1 to 'SetPos' (Vector expected, got nil)
[1 Times]
[/QUOTE]
[highlight]Thanks to Chrisaster for the gm_luaerror module[/highlight]
*******************************
Download V1.1 Here
[url=http://www.mediafire.com/?zptlmfpzp8884qd][img]http://t2.gstatic.com/images?q=tbn:5R9-xeTHpsDY3M:http://www.kruit-software.nl/agrowi/images/stories/download_button.png[/img][/url]
Download V1.2 Here
[url=http://www.mediafire.com/?71nidi0y4zebunc][img]http://t2.gstatic.com/images?q=tbn:5R9-xeTHpsDY3M:http://www.kruit-software.nl/agrowi/images/stories/download_button.png[/img][/url]
*******************************
basicly, you hooked into the lua error module then printed the error to the chat? not the best idea, but nice one anyway :) like the coding.
Maybe have all the lua errors save to a log?
Yes Comming soon ;)
:) cool
Instead of using SendLua use usermessages its less expensive.
[QUOTE=Wizard of Ass;23784890]Instead of using SendLua use usermessages its less expensive.[/QUOTE]
What's more expensive - making the file shared, making a clientside file, or using one function?
V 1.2 Relased!
Changelog:
[QUOTE]
Added a save system for logs (log files can be found in data/LuaGuard).
[/QUOTE]
[editline]11:34PM[/editline]
[QUOTE=nicatronTg;23788674]What's more expensive - making the file shared, making a clientside file, or using one function?[/QUOTE]
making the file shared ?
[QUOTE=Ningaglio;23784265]Maybe have all the lua errors save to a log?[/QUOTE]
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 :)
no, garrysmod.org says "This file has been reported" beacause contains a dll file... its for that
My garrysmod.org profile: [url]http://www.garrysmod.org/user/?u=72324&rnum=743255[/url]
Sorry, you need to Log In to post a reply to this thread.