Print all server's console errors to client's console ?
7 replies, posted
Hello facepunch, i am developing RolePlay gamemode, and i've encountered a problem, in this rp, you can take drugs, and it has certain variable "DrugTimer" which decreases every second, so player is less "high".
But the problem is, that on my own, rented server, the DrugTimer is not decreasing. I am not a noob at lua or something like that, it works on sp, or server hosted by me, just not on my rented 1. So the question is, how can i print all errors server have to my own console ( or to every player on server, doesn't matter ) just to let me see what's going on.
It automaticly displays all server errors on the client. There the ones in blue.
Eeerm, nope. You're wrong.
If it would, this thread would not exist.
Or your not getting any errors on the server. Go make a file, put it in autorun/server and make an error in it, you'll see.
[editline]10:41AM[/editline]
put this in autorun/server:
[lua]
local table = {}
local addedtable = table + 34234
Msg(addedtable)
[/lua]
It'll give you an error about adding numbers to a table value. In blue. In the top right corner of the screen.
I did it, and guess what? None of clients had error on their hud, me neither.
[QUOTE=bobthe2lol;16833879]Or your not getting any errors on the server. Go make a file, put it in autorun/server and make an error in it, you'll see.
[editline]10:41AM[/editline]
put this in autorun/server:
[lua]
local table = {}
local addedtable = table + 34234
Msg(addedtable)
[/lua]
It'll give you an error about adding numbers to a table value. In blue. In the top right corner of the screen.[/QUOTE]Only on a listen server.
put
[code]lua_log_sv 1[/code] in your server.cfg file, and you will get an error log in your server's root folder.
Oh, i was doing it in SP :D
Lexic, big thanks to You! now my problem is solved. You're a nice person :D
Sorry, you need to Log In to post a reply to this thread.