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

0 Members and 4 Guests are viewing this topic.

Offline someone920

  • Newbie
  • *
  • Posts: 47
  • Karma: 3
I'm getting a problem with this utime. It doesn't save total time and shows the session time for both. We are using the ULX SVN if that makes any difference.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Did you delete sv.db or set it to read only?
Experiencing God's grace one day at a time.

Offline someone920

  • Newbie
  • *
  • Posts: 47
  • Karma: 3
I did now, it's working for now, but what's weird is it was working fine up to a couple days ago.

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
When your looking at a player and you have that dropdown menu out, when they disconnect you get a bunch of lua errors and the same for when your looking in scoreboard and someone leaves.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
When your looking at a player and you have that dropdown menu out, when they disconnect you get a bunch of lua errors and the same for when your looking in scoreboard and someone leaves.

That was fixed in v1.4, make sure you're up to date.
Experiencing God's grace one day at a time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Has anyone been having issues with this since the latest gmod update?
Experiencing God's grace one day at a time.

Offline Aaron113

  • Hero Member
  • *****
  • Posts: 803
  • Karma: 102
If your talking about the scoreboard errors, yes.  If your talking about UTime's little on screen menu, one person did complain they couldn't see it.  Everyone but him seems to be able to though.


EDIT:  Then again, maybe I never updated.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Scoreboard errors? That wouldn't relate to UTime. I asked because people on the UTimeM thread were having issues but I didn't see any problems with this one.
Experiencing God's grace one day at a time.

Offline Frrz

  • Jr. Member
  • **
  • Posts: 65
  • Karma: 0
    • Youtube ftw
One of my friends joined my server and he keeps geting this error

Code: [Select]
Timer Error: autorun\cl_utime.lua:43: attempt to index upvalue 'gpanel' (a nil value)Timer Error: autorun\cl_utime.lua:43: a

I have utime on the server, and I have no problem.. just wondering if it's my server or if it's him.. and what to do.





Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
One of my friends joined my server and he keeps geting this error

Code: [Select]
Timer Error: autorun\cl_utime.lua:43: attempt to index upvalue 'gpanel' (a nil value)Timer Error: autorun\cl_utime.lua:43: a

I have utime on the server, and I have no problem.. just wondering if it's my server or if it's him.. and what to do.

OK I've attached a slightly modified file that fixes the error that someone920 mentioned,
and also I've found a place where I fixed another error I was getting a long time ago.

And to Megiddo, the part I changed to fix the error that someone920 mentioned is this:

(Starting at line 31 and ending at line 38)
Code: [Select]
function initialize( ent )
if ent == LocalPlayer() then -- Player has been initialized
gpanel = vgui.Create( "UTimeMain" )
gpanel:SetSize( gpanel.Wide, gpanel.Small )
hook.Remove( "OnEntityCreated", "UtimeInitialize" )
end
end
hook.Add( "OnEntityCreated", "UtimeInitialize", initialize )

I changed it to this:

(Starting at line 31 and ending at line 36)
Code: [Select]
function initialize()
gpanel = vgui.Create( "UTimeMain" )
gpanel:SetSize( gpanel.Wide, gpanel.Small )
hook.Remove( "InitPostEntity", "UtimeInitialize" )
end
hook.Add( "InitPostEntity", "UtimeInitialize", initialize )

Let me know if this is flawed in some way.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
It's strange though, because I haven't been able to reproduce that error. And if you are getting that error I'm worried it's an indication of a deeper underlying problem which should be fixed rather than the symptoms in UTime. Do you personally have this problem, Buggzie?
Experiencing God's grace one day at a time.

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
It's strange though, because I haven't been able to reproduce that error. And if you are getting that error I'm worried it's an indication of a deeper underlying problem which should be fixed rather than the symptoms in UTime. Do you personally have this problem, Buggzie?

Well, Due to the Garry's Mod updates, It seems to be removed, I'm guessing.

Anyways its a problem with Sui Scoreboard which kept spamming errors on the right side of the screen as well as console.

I got line 45 instead of 43, Might be due to an edited version but.

Once you have the old version of UTime and you press tab with sui scoreboard, It started spamming that error for me. So I did what that guy said to do, In my post above and it worked perfectly.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Update, v1.41

Quote from: changelog
v1.41 - *(08/06/10)*
   * [FIX] A a few bugs some people were getting preventing the GUI from showing correctly.

I implemented Ryno's change... even though I was unable to reproduce the problem or able to see what might cause the problem, the change can't harm anything.
Experiencing God's grace one day at a time.

Offline tsmelinda

  • Newbie
  • *
  • Posts: 40
  • Karma: 1
where is the player time info stored for this addon?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
where is the player time info stored for this addon?

In SQLite, which manifests itself as sv.db in the garrysmod root.
Experiencing God's grace one day at a time.