Ulysses Stuff > Releases

Utime -- Show how long your players have been connected this session and total

<< < (28/84) > >>

Botman:
The most recent gmod update seems to have caused the play time of all players in my server to be reset to 0. Is there anything to do..?

edit: this has actually become really, really severe in my server. I'm running a quite active sandbox server and I'd have no chance of manually resetting every player's play time -- there are just way too many and there must be another solution for me. I'm also using the promotion script which relies on UTime; and it doesn't even respond to UTime anymore despite displaying no lua errors. (I'm able to set UTime manually thanks to Aaron113's code above.) I have a feeling there's something mysterious to it judging by the way UTime is behaving. I'm also afraid that the script is now overwriting the old player time saves so that no matter if the problem is resolved, my every players' time will be reset to 0 and forced to start over again. This in turn would cause longstanding consequences for the established player environment in the server.

Megiddo:
Perhaps there's something wrong with the database? You could try deleting the "sv.db" file in the garrysmod root and set everyone's time manually again to see if that fixes your problem.

Botman:
Just tried that, Megiddo. Yes, it does stabilise the database and fixes all other problems scriptwise. This still feels very hopeless though as I've absolutely not got enough time to reset everyone's time manually, the task would be too immense (this is a 16-slots, and active). What can I do? Please, please tell me there are any options...

Megiddo:

--- Quote from: Botman on February 09, 2011, 10:04:17 AM ---Just tried that, Megiddo. Yes, it does stabilise the database and fixes all other problems scriptwise. This still feels very hopeless though as I've absolutely not got enough time to reset everyone's time manually, the task would be too immense (this is a 16-slots, and active). What can I do? Please, please tell me there are any options...

--- End quote ---

If I were in your shoes, I'd probably look into using an sqlite tool to export the UTime table, then import it into the new database. My experience with SQL is limited, so your mileage may vary. I'm not sure what caused your issues in the first place, so this might just bring the problems to the new database...

saintwubbles:
Having trouble with UtimeM as well since this update.

Timer Error: [@addons\ulx\lua\ulx\lib.lua:70] bad arguement #2 to 'format' (number expected, got nil)

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version