How i can make all errors go to php?
Example:
Lua error > Send to php > Show at php
capture it with [url]http://wiki.garrysmod.com/page/GM/OnLuaError[/url]
send it using php with [url]http://wiki.garrysmod.com/page/http/Fetch[/url] with your php script setup to store the error in mysql using url arguments such as blahblah.com/blah?error=
display it using php; google it
if you want to send clientside errors you'll want [url]http://wiki.garrysmod.com/page/Net_Library_Usage[/url] so that the gameserver can verify the validity of the sent errors
[editline]1st February 2015[/editline]
but i swear there was a serverside console command to define a server to automatically send errors to
i don't know anything about that
[QUOTE=bitches;47054009]capture it with [url]http://wiki.garrysmod.com/page/GM/OnLuaError[/url]
send it using php with [url]http://wiki.garrysmod.com/page/http/Fetch[/url] with your php script setup to store the error in mysql using url arguments such as blahblah.com/blah?error=
display it using php; google it
if you want to send clientside errors you'll want [url]http://wiki.garrysmod.com/page/Net_Library_Usage[/url] so that the gameserver can verify the validity of the sent errors
[editline]1st February 2015[/editline]
but i swear there was a serverside console command to define a server to automatically send errors to
i don't know anything about that[/QUOTE]
So i have to send the "error" argument?
Or you could just log the srcds console and output lua errors only.
[QUOTE=Knoxed;47054088]Or you could just log the srcds console and output lua errors only.[/QUOTE]
That sounds easier and better. How i would log it? Send the log file? Or i can do it with lua?
Or you could set this in your server.cfg file: [B]lua_error_url[/B] "http://www.file.php" -- Allows to override where to send all occurred Lua errors. If not set, it will send them to Garry's Mod Errors website.
[QUOTE=bitches;47054009]capture it with [url]http://wiki.garrysmod.com/page/GM/OnLuaError[/url]
send it using php with [url]http://wiki.garrysmod.com/page/http/Fetch[/url] with your php script setup to store the error in mysql using url arguments such as blahblah.com/blah?error=
display it using php; google it
if you want to send clientside errors you'll want [url]http://wiki.garrysmod.com/page/Net_Library_Usage[/url] so that the gameserver can verify the validity of the sent errors
[editline]1st February 2015[/editline]
but i swear there was a serverside console command to define a server to automatically send errors to
i don't know anything about that[/QUOTE]
OnLuaError is menu only and thus is useless in game, there was a request on github to have it exist in game but I believe its been ignored. Also "lua_error_url" is the concommand I believe
Robot has been moving a few game commands to menu-state instead of the other way around; a few useful commands such as the ones to force content to be re-mounted ( so that data downloaded with fast-dl works without needing to restart gmod after first connect ) are now menu-state and don't work from in game unfortunately.
[QUOTE=Acecool;47060902]Robot has been moving a few game commands to menu-state instead of the other way around; a few useful commands such as the ones to force content to be re-mounted ( so that data downloaded with fast-dl works without needing to restart gmod after first connect ) are now menu-state and don't work from in game unfortunately.[/QUOTE]
I didn't do anything of what you are accusing me of.
I thought you said you were the one that moved them? Or you may have said "they were moved" and I may have wrongly read it as "you [ I ] moved". My apologies.
Sorry, you need to Log In to post a reply to this thread.