• Print

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

0 Members and 1 Guest are viewing this topic.

Offline Rupert Cow

  • Newbie
  • *
  • Posts: 1
  • Karma: -1
    • RavenX Gaming
Nice very nice!  ;D

Offline TheAndroid1

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
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.

Line 145 in cl_utime.lua change it to:
Code: [Select]
if !trace.Entity:GetNWBool("disguised", false) then
self.TargetSize = self.Large
self.playerInfo:SetPlayer( trace.Entity )
locktime = CurTime()
end

Offline SaintSin

  • Newbie
  • *
  • Posts: 14
  • Karma: 0
My work around the disguiser glitch was to simply just remove the name bar and instead we added an advertisement to our site were the names would appear. Although it is a pain when you want to get someones name it does prevent the glitch. So it has its pros and cons, you decide if it is worth it.
Also I moved the Utime down to the bottom left of the HUD because the utime window would cover the notifications when people discovered bodies.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Line 145 in cl_utime.lua change it to:
Code: [Select]
if !trace.Entity:GetNWBool("disguised", false) then
self.TargetSize = self.Large
self.playerInfo:SetPlayer( trace.Entity )
locktime = CurTime()
end

Thanks for sharing your patch!
Experiencing God's grace one day at a time.

Offline TheAndroid1

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Thanks for sharing your patch!
No problem!  :)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Your patch was integrated into Utime, by the way.
Experiencing God's grace one day at a time.

Offline TheAndroid1

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Your patch was integrated into Utime, by the way.
Nice ;D

Offline Ledhead900

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Two things.

  • Is there a way to disable showing other players time regardless if they are disguised or not in TTT, Its ultra annoying and I rather the time was hidden and discreet only to showing when you join server.
  • How do you turn off the Utime Hud Element when you are hosting TTT and not Sandbox, you do not have a tools section in TTT

One would think that Utime would integrate with ULX XGUI  but nope that was too much to wish for. Also why would you show the time on players at all it just looks messy it should be disabled by default because I bet a lot of non Sandbox servers will want to get rid of that pronto.


Edit
Killed it I think  8)
Line8
Code: Lua
  1. local utime_enable = CreateClientConVar( "utime_enable", "0.0", true, false )
« Last Edit: August 11, 2013, 09:59:37 pm by Ledhead900 »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
You seem a bit harsh and cynical ... did you register just so you could come here and be that way?
1) No. Not as designed. UTime was written many years before TTT was even written, and, as such, very few of the older projects have been upgraded for TTT.  We thank you for your kind constructive idea though.
2) Can't be done from server. Clients can use convar "utime_enable <0|1>" to hide the hud.

Why would UTime, written totally to be independent of ULX, and I think, perhaps even independent of our library, ULib, be integrated by default into XGUI, a menu system written that requires ULib, and is made to control ULX?

It's not too much to wish for.
Learn Lua. Adding the checks (to ensure UTime was loaded) and creating a UTime tab would be a good learning project.

Then rather than coming and seeming hostile, you could come, join a great community, and contribute to it.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline sabo

  • Full Member
  • ***
  • Posts: 136
  • Karma: 2
  • Hello :)
    • The Elite Gaming
Re: Utime -- Show how long your players have been connected this session and total
« Reply #204 on: September 08, 2013, 02:44:50 pm »
Line 145 in cl_utime.lua change it to:
Code: [Select]
if !trace.Entity:GetNWBool("disguised", false) then
self.TargetSize = self.Large
self.playerInfo:SetPlayer( trace.Entity )
locktime = CurTime()
end

I did this and for some reason the menu which pops down does not go up any longer :I

And Megiddo I tried to replace the files from your first post and it did not work (the disguise feature).

Is anyone else having these issues or am I the only one and doing something wrong maybe? :o

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Utime -- Show how long your players have been connected this session and total
« Reply #205 on: September 08, 2013, 04:03:50 pm »
sabo, grab svn utime and try (from our github)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline sabo

  • Full Member
  • ***
  • Posts: 136
  • Karma: 2
  • Hello :)
    • The Elite Gaming
Re: Utime -- Show how long your players have been connected this session and total
« Reply #206 on: September 09, 2013, 10:01:44 am »
Thanks Jammin :)

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Utime -- Show how long your players have been connected this session and total
« Reply #207 on: September 09, 2013, 07:07:40 pm »
No worries. I looked at the commit logs for utime and saw the last commit attempting to fix a bug in the TTT part.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline sabo

  • Full Member
  • ***
  • Posts: 136
  • Karma: 2
  • Hello :)
    • The Elite Gaming
Re: Utime -- Show how long your players have been connected this session and total
« Reply #208 on: September 17, 2013, 06:23:08 am »
I got another server and was just wondering where the Utime database is saved because if I want to move or something similar then I am pretty much screwed haha :D

  • Print