ULX

Author Topic: sui_scoreboard with UTime and Steam Avatars  (Read 116110 times)

0 Members and 1 Guest are viewing this topic.

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #150 on: April 16, 2013, 11:35:25 AM »
You mean the ratings? Shouldn't be too hard to hide if you comment out some things in the info panel...


Offline Ch1lly

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #151 on: April 16, 2013, 12:04:57 PM »
Yes I mean those. I'll have a look, although I'm noob ;)

Offline Duke Nukem

  • Newbie
  • *
  • Posts: 23
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #152 on: April 17, 2013, 06:43:16 AM »
Does this work on TTT?

Offline Ch1lly

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #153 on: April 17, 2013, 12:44:42 PM »
You mean the ratings? Shouldn't be too hard to hide if you comment out some things in the info panel...

Are these the lines I should comment out from player_infocard.lua?

self.VoteButtons[5] = vgui.Create( "suispawnmenuvotebutton", self )
   self.VoteButtons[5]:SetUp( "icon16/wrench.png", "builder", "Good at building!" )

Offline bballchamp99

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #154 on: April 18, 2013, 07:09:08 PM »
I keep getting this error with both versions of sui_scoreboard

[ERROR] addons/sui_scoreboard_modified_v4_no_utime/lua/sui_scoreboard/player_row.lua:3: bad argument #2 to 'CreateFont' (table expected, got number)
  1. CreateFont - [C]:-1
   2. unknown - addons/sui_scoreboard_modified_v4_no_utime/lua/sui_scoreboard/player_row.lua:3
    3. include - [C]:-1
     4. unknown - addons/sui_scoreboard_modified_v4_no_utime/lua/sui_scoreboard/scoreboard.lua:1
      5. include - [C]:-1
       6. unknown - addons/sui_scoreboard_modified_v4_no_utime/lua/autorun/sui_scoreboard.lua:14


[ERROR] addons/sui_scoreboard_modified_v4_no_utime/lua/sui_scoreboard/scoreboard.lua:4: bad argument #2 to 'CreateFont' (table expected, got number)
  1. CreateFont - [C]:-1
   2. unknown - addons/sui_scoreboard_modified_v4_no_utime/lua/sui_scoreboard/scoreboard.lua:4
    3. include - [C]:-1
     4. unknown - addons/sui_scoreboard_modified_


any help would be great and thank you.

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #155 on: April 19, 2013, 01:23:21 AM »
I keep getting this error with both versions of sui_scoreboard

-stuff-

any help would be great and thank you.
I think you downloaded the gm12 version from the OP, give this one a try https://dl.dropbox.com/u/7934790/gmod/sui_scoreboard.zip

Are these the lines I should comment out from player_infocard.lua?

self.VoteButtons[5] = vgui.Create( "suispawnmenuvotebutton", self )
   self.VoteButtons[5]:SetUp( "icon16/wrench.png", "builder", "Good at building!" )
Give it a try *shrug* that may be all you need to do


Offline bballchamp99

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #156 on: April 19, 2013, 02:39:52 PM »
Ok the version you gave me works but it says my team is unassigned! I tried to set teams for myself and changed groups in ulx but it wont work any help?

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #157 on: April 20, 2013, 08:42:07 AM »
Yeah, sounds like a problem with your teams/groups setup... make sure you have given them all a name/color and such, beyond that I'm not really sure.


Offline Ch1lly

  • Newbie
  • *
  • Posts: 9
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #158 on: May 06, 2013, 01:37:16 AM »
I think you downloaded the gm12 version from the OP, give this one a try https://dl.dropbox.com/u/7934790/gmod/sui_scoreboard.zip
Give it a try *shrug* that may be all you need to do

Sorry for the necro but I thought it would be useful info for the thread. The lines I stated are the ones that need removing/commenting out to get rid of the buttons.

In player_infocard.lua just comment out lines 21 to 68.

Now when you expand someones details on the scoreboard, you'll get an error. Simply comment out lines 234 to 244 in player_infocard.lua also. See below

-- for k, v in ipairs( self.VoteButtons ) do
      -- v:InvalidateLayout()
      -- if k < 6 then
         -- v:SetPos( self:GetWide() -  k * 25, 0 )
      -- elseif k < 11 then
         -- v:SetPos( self:GetWide() -  (k-5) * 25, 36 )
      -- else
         -- v:SetPos( self:GetWide() -  (k-10) * 25, 72 )
      -- end
      -- v:SetSize( 20, 32 )
   -- end

Offline venom1324

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #159 on: July 05, 2013, 06:32:20 AM »
[ERROR] addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:113: attempt to call method 'GetUTimeTotalTime' (a nil value)
  1. UpdatePlayerData - addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:113
   2. SetPlayer - addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:92
    3. AddPlayerRow - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:94
     4. UpdateScoreboard - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:269
      5. Init - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:62
       6. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:153
        7. CreateScoreboard - addons/sui_scoreboard/lua/autorun/sui_scoreboard.lua:33
         8. unknown - addons/sui_scoreboard/lua/autorun/sui_scoreboard.lua:40


[ERROR] addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:234: attempt to index field 'lblPing' (a nil value)
  1. unknown - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:234


[ERROR] addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:202: attempt to index field 'lblPing' (a nil value)
  1. unknown - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:202


[ERROR] addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:113: attempt to call method 'GetUTimeTotalTime' (a nil value)
  1. UpdatePlayerData - addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:113
   2. unknown - addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:251



When trying to open scoreboard on server. Why this addon is soo outdated?

Offline TweaK

  • Jr. Member
  • **
  • Posts: 80
  • Karma: 14
    • Garry's Mod Engineers
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #160 on: July 05, 2013, 11:07:11 AM »
[ERROR] addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:113: attempt to call method 'GetUTimeTotalTime' (a nil value)
  1. UpdatePlayerData - addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:113
   2. SetPlayer - addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:92
    3. AddPlayerRow - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:94
     4. UpdateScoreboard - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:269
      5. Init - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:62
       6. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:153
        7. CreateScoreboard - addons/sui_scoreboard/lua/autorun/sui_scoreboard.lua:33
         8. unknown - addons/sui_scoreboard/lua/autorun/sui_scoreboard.lua:40


[ERROR] addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:234: attempt to index field 'lblPing' (a nil value)
  1. unknown - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:234


[ERROR] addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:202: attempt to index field 'lblPing' (a nil value)
  1. unknown - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:202


[ERROR] addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:113: attempt to call method 'GetUTimeTotalTime' (a nil value)
  1. UpdatePlayerData - addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:113
   2. unknown - addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:251



When trying to open scoreboard on server. Why this addon is soo outdated?

That error is due to not having UTime properly installed.


Offline Epsilon

  • Newbie
  • *
  • Posts: 19
  • Karma: -1
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #161 on: July 28, 2013, 03:00:25 AM »
So where is the data for each individual client's ratings stored?

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #162 on: July 28, 2013, 03:10:23 AM »
The ratings are stored in sv.db if I remember correctly. It's a SQLite database.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #163 on: July 28, 2013, 05:50:32 AM »
The ratings are stored in sv.db if I remember correctly. It's a SQLite database.
Memory serves you well.
From UTime thread - http://forums.ulyssesmod.net/index.php/topic,3039.msg10509.html#msg10509 starts a 3-4 post discussion confirming it.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline nexbr

  • Jr. Member
  • **
  • Posts: 55
  • Karma: 5
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #164 on: February 06, 2014, 03:36:26 AM »

I like to share here my version of SUI Scoreboard, it is compatible with Exsto or ULX + uTime or only ULX.

It have the mute button and i fixed the Steam Avatar clickable but this is not the TweaK's code.
I imported the missing vgui textures from Garry's Mod 11, and it will be downloaded automatically from steam Workshop.
The time connected (total or only from the current session (without uTime)) are formated as weeks, days, hours, minutes, and seconds just like in uTime.
Fixed Admin buttons (Kick, 1h Ban and PermBan).

You can download it from Github or Steam Workshop

It have suicidal.banana approved Seal  ;).
If you think on my version there is some coding you did (and if you really did) i'll be happy to add the credits.
« Last Edit: February 06, 2014, 03:38:06 AM by nexbr »