I’m looking for someone to make a script that creates log files which will pick up all lua errors from the server, even while nobody is in there, as well as chat messages sent by players. I want the lua errors to show up as they would in the console and I want chat messages to come out like this:
[Time] STEAMID | Name: Chat message
So if my Steam ID was STEAM_0:0:100500100, my name was Billy Bob Joe, and my message was Pressed the elevator button. and I said this at 01:23:45 PM (hh:mm:ss), the log would print…
[01:23:45 PM] STEAM_0:0:100500100 | Billy Bob Joe: Pressed the elevator button.
Of course, I need timestamps for lua errors too. So if my error was Hook ‘Vcu_HideVehicleHud’ Failed: [autorun\client\cl_vcu.lua:248] attempt to index field ‘Entity’ (a nil value), then I want it to show up like this, on the same line as the error:
[01:23:45 PM] Hook 'Vcu_HideVehicleHud' Failed: [autorun\client\cl_vcu.lua:248] attempt to index field 'Entity' (a nil value)
The reason I want this specifically is because I need a way to log errors as they happen and I would like to go on the server at times and enter chat messages as a commentary so I know what I just did, so if an error is popping up that I’m not seeing for some reason, it will show up in the log and I will have a commentary message explaining what action caused said error.
Source logging does not pick up lua errors and it doesn’t pick up chat messages nor does it pick up much of anything at all and I cannot use ULX because it is incompatible with my operation. Or at least it apparently doesn’t pick up lua errors, because it’s only picking up some hardly important crap that could in no way be interfering with the fact that I am currently running a broken gamemode and there’s no errors to show for it.
I would like these log files to show up in the data folder, titled like this: Saturday 31-12-2011.txt
As today is Saturday, it is the thirty first day of the twelfth month of the year, and it is 2011. DD:MM:YY format.
Thank you for your time.