1. Post #1
    Skondra's Avatar
    June 2009
    333 Posts
    Download:

    http://christopherthorne.googlecode....m_luaerror.dll

    Sample code:

    require("luaerror")
    
    lua_showerrors = CreateConVar("lua_showerrors", 1)
    
    hook.Add("LuaError", "LE", function(err) --Return anything other than nil to stop the standard error display
    	local var = lua_showerrors:GetInt()
    	
    	if (var == 0) then
    		return false
    	elseif (var == 1) then
    		Msg(err)
    		
    		return false
    	end
    end )
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Useful Useful x 14Dumb Dumb x 6Lua King Lua King x 5Lua Helper Lua Helper x 3 (list)

  2. Post #2
    Gold Member
    SlayerFin's Avatar
    May 2008
    4,241 Posts
    Uhm, so this hides the lua errors?
    Reply With Quote Edit / Delete Reply Finland Show Events Disagree Disagree x 3Dumb Dumb x 2 (list)

  3. Post #3
    Skondra's Avatar
    June 2009
    333 Posts
    Uhm, so this hides the lua errors?
    It can if you want it to.
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Funny Funny x 10Dumb Dumb x 1Agree Agree x 1Informative Informative x 1 (list)

  4. Post #4
    Get your own DarkRP Server!
    FPtje's Avatar
    January 2006
    5,722 Posts
    So many people want this. Nice work.
    Reply With Quote Edit / Delete Reply Netherlands Show Events Agree Agree x 17Dumb Dumb x 5Disagree Disagree x 1Friendly Friendly x 1 (list)

  5. Post #5
    Grocel's Avatar
    October 2008
    1,249 Posts
    So bad Lua coder can hide their mistakes now. :/
    Reply With Quote Edit / Delete Reply Germany Show Events Agree x 29Dumb x 5Funny x 2Bad Spelling x 2Zing x 1 (list)

  6. Post #6
    Skondra's Avatar
    June 2009
    333 Posts
    So bad lua coder can hide there mistakes now. :/
    They can hide the errors from themselves if they really want to.
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Agree Agree x 13Useful Useful x 1Zing Zing x 1Funny Funny x 1 (list)

  7. Post #7
    Gold Member
    Deco Da Man's Avatar
    July 2007
    1,017 Posts
    require("luaerror")
    
    hook.Add("LuaError", "LE", function(err)
    	error("!")
    end)

    oh shit?
    Reply With Quote Edit / Delete Reply Australia Show Events Funny Funny x 33Dumb Dumb x 2Agree Agree x 2 (list)

  8. Post #8
    Lau
    Lau's Avatar
    November 2009
    97 Posts
    This is going to be so good for stoned to use in the lua console addon.

    Another useful module is released
    Reply With Quote Edit / Delete Reply United States Show Events Friendly Friendly x 2Dumb Dumb x 1Agree Agree x 1 (list)

  9. Post #9
    Gold Member
    LuaStoned's Avatar
    September 2007
    1,358 Posts
    This is going to be so good for stoned to use in the lua console addon.

    Another useful module is released
    I already implemented it :D
    Reply With Quote Edit / Delete Reply Austria Show Events Friendly Friendly x 4Dumb Dumb x 2Informative Informative x 1 (list)

  10. Post #10
    Salads's Avatar
    November 2008
    176 Posts
    require("luaerror")
    
    hook.Add("LuaError", "LE", function(err)
    	error("!")
    end)

    oh shit?
    Oh look, it's gmod9's error handling.
    Reply With Quote Edit / Delete Reply United States Show Events Funny Funny x 46Agree Agree x 1 (list)

  11. Post #11
    [iBite]Khyber's Avatar
    November 2009
    6 Posts
    Kinda lost as to where I put this, I'm new :/

  12. Post #12
    |FlapJack|'s Avatar
    July 2009
    6,138 Posts
    garrysmod/lua/includes/modules for the dll
    garrysmod/lua/autorun/client for the lua file.
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Informative Informative x 3Useful Useful x 2Late Late x 1 (list)

  13. Post #13
    [iBite]Khyber's Avatar
    November 2009
    6 Posts
    garrysmod/lua/includes/modules for the dll
    garrysmod/lua/autorun/client for the lua file.
    Thanks bud ^^

    Edited:

    Oh nose I don't have an autorun file in the lua folder, what do I do :/
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 9Funny Funny x 3 (list)

  14. Post #14
    Skondra's Avatar
    June 2009
    333 Posts
    Thanks bud ^^

    Edited:

    Oh nose I don't have an autorun file in the lua folder, what do I do :/
    Create it.
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Agree x 4Useful x 3Funny x 1Disagree x 1Optimistic x 1Lua Helper x 1 (list)

  15. Post #15
    [iBite]Khyber's Avatar
    November 2009
    6 Posts
    all fine and stuff but when I open the file I don't have a lua file to put into my newly made folders, just the a dll, cpp, and a "file h"
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 6Bad Reading Bad Reading x 1Funny Funny x 1 (list)

  16. Post #16
    Gold Member
    Deco Da Man's Avatar
    July 2007
    1,017 Posts
    This module is not for you, Khyber.
    It will serve you no purpose.
    Reply With Quote Edit / Delete Reply Australia Show Events Agree Agree x 16Disagree Disagree x 2 (list)

  17. Post #17
    [iBite]Khyber's Avatar
    November 2009
    6 Posts
    This module is not for you, Khyber.
    It will serve you no purpose.
    I want to hide the error box so yeah it would be
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 8Agree Agree x 2Funny Funny x 2 (list)

  18. Post #18
    Skondra's Avatar
    June 2009
    333 Posts
    all fine and stuff but when I open the file I don't have a lua file to put into my newly made folders, just the a dll, cpp, and a "file h"
    Use the sample code in the OP.

  19. Post #19
    [iBite]Khyber's Avatar
    November 2009
    6 Posts
    Use the sample code in the OP.
    sorry to bother you so much skondra but what is the OP?

    and where would it go?
    Reply With Quote Edit / Delete Reply United States Show Events Funny Funny x 5Dumb Dumb x 4Bad Reading Bad Reading x 1Lua King Lua King x 1 (list)

  20. Post #20
    Skondra's Avatar
    June 2009
    333 Posts
    sorry to bother you so much skondra but what is the OP?

    and where would it go?
    The original post. Put the code inside a Lua file and save it where FlapJack told you to.
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Friendly Friendly x 4 (list)

  21. Post #21
    [iBite]Khyber's Avatar
    November 2009
    6 Posts
    The original post. Put the code inside a Lua file and save it where FlapJack told you to.
    I think I will just give up, I have no idea wtf does what and that damnable debug box is always showing me errors... I have no idea how to save a lua file either :/ sorry to have wasted you nice folk's time
    Reply With Quote Edit / Delete Reply United States Show Events Friendly Friendly x 16Dumb Dumb x 7Funny Funny x 1 (list)

  22. Post #22
    aualin's Avatar
    April 2007
    439 Posts
    This is so damn useful, now i can tweet lua errors, or send emails to myself, or even shoot them into my face!
    Reply With Quote Edit / Delete Reply Sweden Show Events Funny x 9Bad Reading x 1Friendly x 1Disagree x 1Agree x 1Zing x 1 (list)

  23. Post #23
    Gold Member
    Dennab
    June 2008
    1,186 Posts
    -snip-, was my script not the module
    Reply With Quote Edit / Delete Reply United States Show Events Friendly Friendly x 1 (list)

  24. Post #24
    foxcock
    Bletotum's Avatar
    June 2008
    6,874 Posts
    I want to hide the error box so yeah it would be
    Quit using poor addons then.
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 7Agree Agree x 1 (list)

  25. Post #25
    CapsAdmin's Avatar
    August 2005
    3,985 Posts
    Quit using poor addons then.
    He might've joined a server you know.
    Reply With Quote Edit / Delete Reply Norway Show Events Agree Agree x 1Disagree Disagree x 1 (list)

  26. Post #26
    Salads's Avatar
    November 2008
    176 Posts
    He might've joined a server you know.
    Maybe he should stop playing on darkrp servers.
    Reply With Quote Edit / Delete Reply United States Show Events Agree Agree x 22Funny Funny x 7Zing Zing x 7Dumb Dumb x 1 (list)

  27. Post #27
    foxcock
    Bletotum's Avatar
    June 2008
    6,874 Posts
    Zing.
    Reply With Quote Edit / Delete Reply United States Show Events Dumb Dumb x 19Zing Zing x 4Bad Spelling Bad Spelling x 1Agree Agree x 1 (list)

  28. Post #28
    CapsAdmin's Avatar
    August 2005
    3,985 Posts
    Linux please.
    Reply With Quote Edit / Delete Reply Norway Show Events Agree Agree x 6Dumb Dumb x 1 (list)

  29. Post #29
    Dennab
    August 2008
    263 Posts
    What happened to the link?

  30. Post #30
    Gold Member
    maurits150's Avatar
    February 2007
    1,818 Posts
    look down
    Reply With Quote Edit / Delete Reply Netherlands Show Events Friendly Friendly x 1 (list)

  31. Post #31
    likes men
    Python1320's Avatar
    May 2007
    1,722 Posts
    Linux please.
    Reply With Quote Edit / Delete Reply Finland Show Events Agree Agree x 2Dumb Dumb x 1Late Late x 1 (list)

  32. Post #32
    ryanhaych1's Avatar
    July 2010
    63 Posts
    how do i download it
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Dumb Dumb x 3 (list)

  33. Post #33
    Gold Member
    slayer3032's Avatar
    November 2007
    3,500 Posts
    http://chrisaster .googlecode.com/svn/trunk/gm_luaerror/Release/

    download it there

    Edited:

    Really, chrisaster is fucking wordfiltered still.....

    Edited:

    Take the space out..
    Reply With Quote Edit / Delete Reply United States Show Events Funny Funny x 1 (list)

  34. Post #34
    King of the Oil Refinery
    Tobba's Avatar
    December 2008
    6,228 Posts
    Pretty good for an error logger, but last time i tried this it crashed if you loaded it too early
    this might be fixed by now though

  35. Post #35
    ryanhaych1's Avatar
    July 2010
    63 Posts
    where do i put the stuff
    Reply With Quote Edit / Delete Reply United Kingdom Show Events Dumb Dumb x 2 (list)

  36. Post #36
    yakahughes's Avatar
    April 2008
    1,318 Posts
    Kinda lost as to where I put this, I'm new :/
    garrysmod/lua/includes/modules for the dll
    garrysmod/lua/autorun/client for the lua file.

  37. Post #37
    Scorpio471's Avatar
    May 2010
    38 Posts
    i have the .dll, but where is the lua?

  38. Post #38
    |FlapJack|'s Avatar
    July 2009
    6,138 Posts
    See the sample code? That's the Lua file.

  39. Post #39
    Scorpio471's Avatar
    May 2010
    38 Posts
    OH THANK YOU!Now i can use that buggy Portal Gun without seeing errors!Thank you!
    Reply With Quote Edit / Delete Reply Germany Show Events Funny Funny x 6Dumb Dumb x 2Lua King Lua King x 1 (list)

  40. Post #40
    Mr Donovan's Avatar
    August 2008
    124 Posts
    I like aualin's idea of using it to automatically report bugs :3