Ulysses Stuff > Releases

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

<< < (37/84) > >>

Dazzuh:

--- Quote from: krooks on December 31, 2012, 10:17:33 AM ---It seems to be happening to people who join for the first time, here's what I get in clientside_errors.txt


--- Code: ---[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!
--- End code ---

And this is the block I changed, starting on line 286 of cl_utime.lua

--- Code: ---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 )

--- End code ---
Just the default color and position. Is this the wrong place to change such things?

--- End quote ---
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.

Megiddo:
Yes, that was fixed in January.

SaintSin:
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!
--- End quote ---

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

Megiddo:
Both of those were fixed in January... please update.

sabo:
I am sorry if this has been posted already but I thought Ill just let it here:


--- Code: ---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


--- End code ---

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?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version