Ulysses Stuff > Releases

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

<< < (36/84) > >>

zaph:

--- Quote from: seven50six6 on February 06, 2013, 10:16:39 PM ---Hello,

I got this working with my TTT server but I am trying to reposition it so that it is in the same place for everyone, even for people with different resolutions. I changed the code to move it beside the "preparing" box but with people who have different resolutions, it appears covering the timer. It also seems like when people join it won't correct the positioning if changed between the time they left last time and rejoined; it shows were it was when they left last time.

Some screenshots of the positioning differences:
http://cloud.steampowered.com/ugc/1119412561814368440/F012A5E6E60F812E6F59CDC6FC821C96A72AC7C5/
http://cloud.steampowered.com/ugc/1119412561814346767/50CE8357A867D592C3C43087F60928432CEA363C/


Also, how do I force utime to reset the positioning on the box whenever a player joins instead of having to use that command? (Which currently caused lua error crashing)

--- End quote ---


bumping for same issue

nathan736:
you need to pos it by %  not flat numbers i believe as i cant look at pics because im at school >: (

krooks:

--- Quote from: Megiddo on January 27, 2013, 07:33:32 PM ---Updated:

--- End quote ---
I was just coming on to report the times, thanks for the fix!

krooks:
Still jumping to 1 week after reaching 4 days for some reason.
Maybe it's because I edit it?
All I do is comment out:
AddCSLuaFile( "autorun/cl_utime.lua" )
on line 3 of sh_utime.lua
and remove the cl_utime.lua file.

I do this to get rid of the display, and built a custom scoreboard to show the times.
To get it to show on my scoreboard I copied this to the scoreboard file:

--- Code: ---function timeToStr( time )
local tmp = time
local s = tmp % 60
tmp = math.floor( tmp / 60 )
local m = tmp % 60
tmp = math.floor( tmp / 60 )
local h = tmp % 24
tmp = math.floor( tmp / 24 )
local d = tmp % 7
local w = math.floor( tmp / 7 )

return string.format( "%02iw %id %02ih %02im %02is", w, d, h, m, s )
end
--- End code ---
Because I wasn't sure how to call it from outside.

Could this be the issue in my case?

Milk_:
hm.. whenever somebody on my server almost reaches 2 weeks, they reset back to 1 week.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version