Author Topic: Utime -- Show how long your players have been connected this session and total  (Read 538364 times)

0 Members and 2 Guests are viewing this topic.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
When someone says "root" folder, specifically in this place, Gmod, it means the first folder.
Megiddo did not mention addons.
He mentioned sv.db in root folder
So, you need to make sure the user that your server runs as has write access to <your gmod folder>/sv.db
That file stores much information about Gmod and some addons, not just UTime.
If you do not know how to do that, check with your host.
Checking write permissions of that file is beyond the support of this thread.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Canne

  • Newbie
  • *
  • Posts: 41
  • Karma: -9
When someone says "root" folder, specifically in this place, Gmod, it means the first folder.
Megiddo did not mention addons.
He mentioned sv.db in root folder
So, you need to make sure the user that your server runs as has write access to <your gmod folder>/sv.db
That file stores much information about Gmod and some addons, not just UTime.
If you do not know how to do that, check with your host.
Checking write permissions of that file is beyond the support of this thread.

I can't see .db files on my pc wtf

Offline TT=open again Isabella Jazzlyn

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
We've never been able to figure out why some users get that error occasionally, but it's harmless.


oke any idea how to implement utime into a ttt_scoreboard?

Offline Canne

  • Newbie
  • *
  • Posts: 41
  • Karma: -9
I stil didn't get any help i'm sorry but my utime resets all the time... anyone that can help me? i would appreciate it it's really annoying when i restart my server everyone lose their stats of time it goes back to 0 and i have auto promote ranks....

Offline Canne

  • Newbie
  • *
  • Posts: 41
  • Karma: -9
When someone says "root" folder, specifically in this place, Gmod, it means the first folder.
Megiddo did not mention addons.
He mentioned sv.db in root folder
So, you need to make sure the user that your server runs as has write access to <your gmod folder>/sv.db
That file stores much information about Gmod and some addons, not just UTime.
If you do not know how to do that, check with your host.
Checking write permissions of that file is beyond the support of this thread.
ii contacted my host they say it has the permissons my utime stil resets all the time any other thing i can do ? any other addon that has utime aswell?

Offline monkeymacman

  • Newbie
  • *
  • Posts: 44
  • Karma: 13

oke any idea how to implement utime into a ttt_scoreboard?
If you know GLua then it is pretty simple just look at the TTT hook documentation, if you don't then it's pretty easy you could learn or I'm sure somebody on here would be glad to do it for you (I can throw together a quick 5 minute or less code, but I don't have my computer so I can't test it.)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
ii contacted my host they say it has the permissons my utime stil resets all the time any other thing i can do ? any other addon that has utime aswell?

Something is removing information from the database. Try removing all addons EXCEPT UTime and see if you have a conflict somewhere.
Experiencing God's grace one day at a time.

Offline TT=open again Isabella Jazzlyn

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
If you know GLua then it is pretty simple just look at the TTT hook documentation, if you don't then it's pretty easy you could learn or I'm sure somebody on here would be glad to do it for you (I can throw together a quick 5 minute or less code, but I don't have my computer so I can't test it.)

Thnx found someone to do it for me  ;D

Offline Canne

  • Newbie
  • *
  • Posts: 41
  • Karma: -9
Heeey utime dissapeared out of the nowhere wtf? how can i get it back it's not ingame more do i have to reinstal it or something?

Offline Canne

  • Newbie
  • *
  • Posts: 41
  • Karma: -9
Can it get fixed pleasse?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Did you disable UTime?
Experiencing God's grace one day at a time.

Offline Canne

  • Newbie
  • *
  • Posts: 41
  • Karma: -9
disable where??

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
In the client settings, you can disable UTime. Run the following in your client console...
Code: [Select]
utime_enable 1.0
Experiencing God's grace one day at a time.

Offline Canne

  • Newbie
  • *
  • Posts: 41
  • Karma: -9
In the client settings, you can disable UTime. Run the following in your client console...
Code: [Select]
utime_enable 1.0
this is the error i get...
it stoped working out of nowhere didn't touch anything at all

[ERROR] addons/utime/lua/autorun/cl_utime.lua:310: attempt to index local 'cpanel' (a nil value)
  1. buildCP - addons/utime/lua/autorun/cl_utime.lua:310
   2. resetCvars - addons/utime/lua/autorun/cl_utime.lua:305
    3. fn - addons/utime/lua/autorun/cl_utime.lua:334
     4. unknown - addons/ulib/lua/ulib/shared/hook.lua:105
      5. LocalPlayer - [C]:-1
       6. fn - addons/utime/lua/autorun/cl_utime.lua:333
        7. unknown - addons/ulib/lua/ulib/shared/hook.lua:105
 

it's enabled...

Code: [Select]
local utime_enable = CreateClientConVar( "utime_enable", "1.0", true, false )
« Last Edit: January 25, 2016, 12:05:09 PM by Canne »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
You need to run "utime_enable 1.0" in your console.
Experiencing God's grace one day at a time.