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

0 Members and 1 Guest are viewing this topic.

Offline sharp

  • Newbie
  • *
  • Posts: 10
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #60 on: November 11, 2009, 12:30:52 AM »
I like this scoreboard it works good.  I'm using the one with uteam and utime.

Do you think adding a AFK column to work with the anti AFK Ulib module flag would be a good addition?  just a suggestion.

Offline Glockshna

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #61 on: November 13, 2009, 11:51:48 PM »
Hmm wont let me download it. Says i need to login, but obviously i am logged in :P Any ideas? can someone post a direct link to the download?
thanks.

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 #62 on: November 14, 2009, 10:36:15 AM »
You don't see the links now that you are logged in?
When I click them from the first post, I get no error message and get prompted to save the file.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #63 on: June 15, 2010, 06:26:41 AM »
Sorry to bump this thread but, When someone changes team for instance they were 'User' and now 'Respected' it will say Resp... until you click on their name. Is there a way to refresh it as soon as teamchange or a player has died?

Thanks!

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #64 on: June 15, 2010, 08:24:03 AM »
Easy-- Open lua\sui_scoreboard\player_row.lua, then find the line:
Code: [Select]
function PANEL:UpdatePlayerData()(around line #120)

Then in that function, find this line of code:
Code: [Select]
self.lblTeam:SetText( team.GetName(self.Player:Team()) )
...And then add this line of code right under that line:
Code: [Select]
self.lblTeam:SizeToContents()
I haven't tested it (I'm at work right now), but I'm 90% sure it should work ;D
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #65 on: June 15, 2010, 09:16:14 AM »
You know derma entirely to well now Stickly :P
Experiencing God's grace one day at a time.

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #66 on: June 15, 2010, 11:06:30 AM »
It's a gift.... and a curse!
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #67 on: June 15, 2010, 11:18:16 PM »
Easy-- Open lua\sui_scoreboard\player_row.lua, then find the line:
Code: [Select]
function PANEL:UpdatePlayerData()(around line #120)

Then in that function, find this line of code:
Code: [Select]
self.lblTeam:SetText( team.GetName(self.Player:Team()) )
...And then add this line of code right under that line:
Code: [Select]
self.lblTeam:SizeToContents()
I haven't tested it (I'm at work right now), but I'm 90% sure it should work ;D

Quote
vgui.Create: Error when calling 'SuiScoreBoard':Init (sui_scoreboard\scoreboard.lua:76: attempt to index local 'button' (a nil value))
ERROR: GAMEMODE:'ScoreboardShow' Failed: autorun\sui_scoreboard.lua:44: attempt to index global 'SuiScoreBoard' (a nil value)
sui_scoreboard\scoreboard.lua:239: attempt to index field 'lblPing' (a nil value)
sui_scoreboard\scoreboard.lua:197: attempt to index field 'lblPing' (a nil value)
sui_scoreboard\scoreboard.lua:197: attempt to index field 'lblPing' (a nil value)
ERROR: GAMEMODE:'ScoreboardHide' Failed: autorun\sui_scoreboard.lua:56: attempt to index global 'SuiScoreBoard' (a nil value)

It broke it..

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #68 on: June 15, 2010, 11:20:49 PM »
Copy/paste the section of code you edited and post it here.

Edit: It SHOULD look something like this: (Depending on whether or not you have the UTime or the non-UTime version)

Code: [Select]
function PANEL:UpdatePlayerData()

if ( !self.Player ) then return end
if ( !self.Player:IsValid() ) then return end

// self.lblName:SetText( team.GetName(self.Player:Team()) .." - ".. self.Player:Nick()  )
self.lblName:SetText( self.Player:Nick() )
self.lblTeam:SetText( team.GetName(self.Player:Team()) )
self.lblTeam:SizeToContents()
self.lblHours:SetText( math.floor((self.Player:GetUTime() + CurTime() - self.Player:GetUTimeStart())/60/60))
« Last Edit: June 15, 2010, 11:25:02 PM by Stickly Man! »
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #69 on: June 16, 2010, 06:30:13 PM »
Thats exactly how i did it...

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #70 on: July 10, 2010, 01:55:54 AM »
I've been having this slight problem where the hostname takes up quite a while to be on the scoreboard and found a little fix.

Open your /addons/sui_scoreboard_modified_v2/lua/sui_scoreboard/scoreboard.lua

Ctrl+F "self.Hostname:SetText( GetGlobalString( "ServerName" ) )"

Without the quotes.
(You will find two lines exactly matching that above)

Replace them with: "self.Hostname:SetText( GetHostName() )"
(Also without the quotes)

Profit?!?!?

Offline NEM1019

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #71 on: July 11, 2010, 12:19:58 PM »
I've been getting this error contantly, If it's an error or not I don't know



Any ideas?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #72 on: July 11, 2010, 01:51:30 PM »
I've been getting this error contantly, If it's an error or not I don't know



Any ideas?

What's wrong?
Experiencing God's grace one day at a time.

Offline NEM1019

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #73 on: July 11, 2010, 07:57:46 PM »
Eh, the Logo?

Offline Buggzie

  • Newbie
  • *
  • Posts: 48
  • Karma: 2
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #74 on: July 11, 2010, 10:14:57 PM »
Eh, the Logo?

other than it looks awesome, i don't understand what you mean, should it not be a g?