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

0 Members and 3 Guests are viewing this topic.

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Indeed, utime uses the inbuilt SQLite database, just copy your sv.db in server/garrysmod/.

Avoid

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Hi people, do any of you know where the time data is stored?

I'm moving server hosts and I dont want my players to lose their time on my server.
Blast from the past!
where is the player time info stored for this addon?
In SQLite, which manifests itself as sv.db in the garrysmod root.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Malkeur

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
I don't quite follow how to load sv.db into your mysql database.

Offline PatPeter

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
I have NO Lua errors, but every time I switch maps on my server, utime starts at 0! Has anyone else has this problem/know how to fix it?

A player on my server had Lua problems, but he hasn't given them to me yet.

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
I don't quite follow how to load sv.db into your mysql database.

sv.db is the mysql database. What are you even trying to do?

I have NO Lua errors, but every time I switch maps on my server, utime starts at 0! Has anyone else has this problem/know how to fix it?

A player on my server had Lua problems, but he hasn't given them to me yet.

Sounds like a compatibility issue with another addon. Are you using sui_scoreboard by any chance?
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
sv.db is the mysql database.
FYI, it's my understanding its a SQLite database, not mysql.
Similar, but different enough to be a pain in conversion
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Bite That Apple

  • Hero Member
  • *****
  • Posts: 858
  • Karma: 416
  • Apple Innovations 2010®
    • Fun 4 Everyone Gaming
FYI, it's my understanding its a SQLite database, not mysql.
Similar, but different enough to be a pain in conversion

... -.- :p

I forgot the "i" in mysql.
Quote from: John F. Kennedy 1963
A man may die, nations may rise and fall, but an idea lives on.

Offline Ticket

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Can anyone let me know how? I can't see the settings.

Offline PatPeter

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
@chaos13125 I'm running Trouble in Terrorist Town, with custom editions to its scoreboard. Would that matter?

I'm looking in my sv.db file and it has a utime table with the fields:

id | player | totaltime | lastvisit

But there are no rows.

EDIT: I fixed the corruption and now it's saving again.
« Last Edit: August 09, 2014, 11:40:46 AM by PatPeter »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Can anyone let me know how? I can't see the settings.
Colors are controlled on client.
Start a single player listen server in Sandbox mode, you'll then be able to change stuff in settings.
I don't remember if UTime has color change settings though.
Also, why did you not ask this in the UTime thread???
EDIT - MERGED
« Last Edit: August 04, 2014, 09:46:45 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline frustratedgamers

  • Newbie
  • *
  • Posts: 36
  • Karma: -1
Is this being developed still at all? Seems even like on a vanilla server it always will throw an error here and there.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Is this being developed still at all? Seems even like on a vanilla server it always will throw an error here and there.

Works fine for me.
Out of the Garry's Mod business.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
FrustratedGamers, there's a much newer code base at our Github, rather than using the link in first post.
Make sure you grab it (it's part of the Zip at github that comes with all our projects)
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline nar308

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Is there a reason why some players dont see the Total Session box at the top right corner?

Offline Avoid

  • Full Member
  • ***
  • Posts: 142
  • Karma: 42
Is there a reason why some players dont see the Total Session box at the top right corner?
utime_enable 1