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

0 Members and 3 Guests are viewing this topic.

Offline Dazzuh

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
It seems to be happening to people who join for the first time, here's what I get in clientside_errors.txt

Code: [Select]
[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:168
      5. GetAll - [C]:-1
       6. fn - addons/ulx/lua/ulx/modules/sh/chat.lua:245
        7. Call - addons/ulib/lua/ulib/shared/hook.lua:168
         8. fn - addons/ulib/lua/ulib/cl_init.lua:40
          9. unknown - addons/ulib/lua/ulib/shared/hook.lua:168
           10. LocalPlayer - [C]:-1
            11. fn - addons/ulib/lua/ulib/cl_init.lua:39
             12. unknown - addons/ulib/lua/ulib/shared/hook.lua:168


controlpanel.Get() - Error creating a ControlPanel!
You're calling this function too early! Call it in a hook!

And this is the block I changed, starting on line 286 of cl_utime.lua
Code: [Select]
function resetCvars()
RunConsoleCommand( "utime_outsidecolor_r", "40" )
RunConsoleCommand( "utime_outsidecolor_g", "40" )
RunConsoleCommand( "utime_outsidecolor_b", "40" )
   
RunConsoleCommand( "utime_outsidetext_r", "255" )
RunConsoleCommand( "utime_outsidetext_g", "255" )
RunConsoleCommand( "utime_outsidetext_b", "255" )
   
RunConsoleCommand( "utime_insidecolor_r", "250" )
RunConsoleCommand( "utime_insidecolor_g", "250" )
RunConsoleCommand( "utime_insidecolor_b", "245" )
   
RunConsoleCommand( "utime_insidetext_r", "0" )
RunConsoleCommand( "utime_insidetext_g", "0" )
RunConsoleCommand( "utime_insidetext_b", "0" )
   
RunConsoleCommand( "utime_pos_x", "1" )
RunConsoleCommand( "utime_pos_y", "90" )
buildCP( controlpanel.Get( "Utime" ) )
end
concommand.Add( "utime_reset", resetCvars )
Just the default color and position. Is this the wrong place to change such things?
Was there ever a fix for this?
Whenever people join my server they get this error the first time, losing allot of players due to it yet it is a useful plugin.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Yes, that was fixed in January.
Experiencing God's grace one day at a time.

Offline SaintSin

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
Players are still getting the Too Many Lua Errors crash on their first connection. Was there any fix for this? I haven't found one yet.

Quote
[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:183
      5. LocalPlayer - [C]:-1
       6. fn - addons/ulib/lua/ulib/cl_init.lua:39
        7. unknown - addons/ulib/lua/ulib/shared/hook.lua:183


NAME ID
controlpanel.Get() - Error creating a ControlPanel!
You're calling this function too early! Call it in a hook!

Another issue is the 4 days changing to 1 week and 4 days. Any fixes?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Both of those were fixed in January... please update.
Experiencing God's grace one day at a time.

Offline sabo

  • Full Member
  • ***
  • Posts: 136
  • Karma: 2
  • Hello :)
    • The Elite Gaming
I am sorry if this has been posted already but I thought Ill just let it here:

Code: [Select]
KeyValues Error: RecursiveLoadFromBuffer:  got EOF instead of keyname in file materials/models/zombie_classic/zombie_players_sheet.vmt
VertexLitGeneric, (*proxies*), (*Clamp*),
TTT Client post-init...
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Cbuf_AddText: buffer overflow
Warning: vgui.Create failed to create the VGUI component (ControlPanel)

Trace:
1: Line 32 "Trace" lua/includes/extensions/debug.lua
2: Line 13 "Get" lua/includes/modules/controlpanel.lua
3: Line 305 "resetCvars" addons/utime/lua/autorun/cl_utime.lua
4: Line 334 "fn" addons/utime/lua/autorun/cl_utime.lua
5: Line 183 "nil" addons/ulib/lua/ulib/shared/hook.lua
6 C function
7: Line 143 "nil" addons/utime/lua/autorun/cl_utime.lua


controlpanel.Get() - Error creating a ControlPanel!
You're calling this function too early! Call it in a hook!

[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:183
      5. TraceLine - [C]:-1
       6. unknown - addons/utime/lua/autorun/cl_utime.lua:143


This is what I got after restarting the server and joining for the first time, on the 2nd join I did not get any errors.




Another thing: Can I view the player time from someone without having to look at him? and how can I disable the hud part clientside?

Also, is it possible to make the time sync over multiple servers?
« Last Edit: June 19, 2013, 08:47:20 AM by sabo »

Offline drake90001

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
  • Formerly xXMyFateXx
Yes, I too would like to know how to check my members time without having them in game.

Offline Mors Quaedam

  • Newbie
  • *
  • Posts: 30
  • Karma: 1
You could always code a PHP interface and use the MySQL addon for this ;)

Offline Freedom

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Is it possible to disable the ability for players to view another player's time by placing their cursor on them. I currently run a TTT server and being able to see through the disguiser with Utime is undesirable.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Yes, I too would like to know how to check my members time without having them in game.

Not possible in current UTime. You'd need to read from the database yourself (it's a fairly simple format).

Is it possible to disable the ability for players to view another player's time by placing their cursor on them. I currently run a TTT server and being able to see through the disguiser with Utime is undesirable.

No, and I can't think of any way I could support that, either.
Experiencing God's grace one day at a time.

Offline smitester

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Hey I'm loving this addon. I'm using it for a TTT server but I have one issue with it and I was wondering if anyone could help me fix it. Whenever you hover over someone it shows their time played but the problem is when a traitor is disguised if you hover over them it still shows their name and time played so it kind a ruins the whole purpose of the disguise. I was just wondering if anyone out there could help me with this. I know it may be something hard to fix but I would love it if someone could find a way to fix this.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Hey I'm loving this addon. I'm using it for a TTT server but I have one issue with it and I was wondering if anyone could help me fix it. Whenever you hover over someone it shows their time played but the problem is when a traitor is disguised if you hover over them it still shows their name and time played so it kind a ruins the whole purpose of the disguise. I was just wondering if anyone out there could help me with this. I know it may be something hard to fix but I would love it if someone could find a way to fix this.

I'm actually not familiar with the rules of TTT, and the quick introduction to TTT I found here doesn't seem to explain why traitors would need to keep their name secret. Could you explain why their name needs to stay secret? (I'm assuming traitors look just like innocents?)
Experiencing God's grace one day at a time.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
A disguiser hides their name so when someone aims at them, nothing shows up at all (normally it would show name, how healthy you are and such).

So when they're disguised, letting people see their name makes the Disguiser useless.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
So, let me get this straight.
NOT using UTime...
If I'm playing TTT, and I aim at someone, who isn't disguised, I get name/health.
But if they're in disguise, I don't get name/health?
Is that right?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
A disguiser hides their name so when someone aims at them, nothing shows up at all (normally it would show name, how healthy you are and such).

So when they're disguised, letting people see their name makes the Disguiser useless.

Hmm, since TTT is included with gmod by default, I'll look into it, but it may be too specific for me to address in UTime.
Experiencing God's grace one day at a time.

Offline smitester

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
I'm actually not familiar with the rules of TTT, and the quick introduction to TTT I found here doesn't seem to explain why traitors would need to keep their name secret. Could you explain why their name needs to stay secret? (I'm assuming traitors look just like innocents?)
Yes a traitor looks exactly like an innocent and whenever they use a disguiser it hides their name so when they are shooting no one knows who it is but with Utime it shows their name so it ruins the disguiser and everyone can still see their name. Thank you for trying to help :)