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

0 Members and 1 Guest are viewing this topic.

Offline BMCha

  • Newbie
  • *
  • Posts: 5
  • Karma: 4
sui_scoreboard with UTime and Steam Avatars
« on: September 16, 2008, 10:02:12 PM »
New non-Utime version attached (I reuploaded)
I have modified the sui_scoreboard found in this section and added an hours column that works with UTime, and I have added Steam Avatars that replace the ratings icon.  If you do not have utime there is a possibility that the scoreboard wil throw errors and not disapear for some players. If you want a version with only steam avatars, I will make one. EDIT: tas has edited it and fixed the vote buttons. I have updated the attachment with his version, which is also in post 3.

-Credits-
Suicidal.Banana - sui_scoreboard
Garry - Steam Avatar Code in default scoreboard
BMCha - Integrating Garry's code and Utime, and correcting the layout to fit the avatars.
tas - Fixing the vote buttons and numerous other fixes.

.:Changelog:.
=V(4?) BMCha=
    Finally made the non-Utime version
    1 or 2 other fixes(credits line length and something else which I don't remember)
=V3= by tas
     Made the columns wider for the email|website fields!
     Made the server name look slightly better.
     Fixed some crucial code errors.
=V2= by tas
     Vote buttons fixed
=V1= by BMCha
     Steam Avatars added
     Utime added

Zip files attached. Unzip into addons. You need to be logged in to download.
« Last Edit: August 05, 2009, 03:07:00 PM by BMCha »

Offline tas

  • Newbie
  • *
  • Posts: 20
  • Karma: 3
  • NG Clan Administrator
    • Nocturnal Gaming
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #1 on: September 16, 2008, 10:55:15 PM »
I was just checking through some of the code and I notice that the vote buttons do not show up right. I know this was a problem before somewhere but I took the liberty of fixing the code. You can update your post with this version if you like.

I give you version 2.1! :)

Edit: Removed old version.


EDIT: August 2010.
Because uteam is now integrated into ULX, you have to specify a "order" under "team". For example:

Code: [Select]
"superadmin"   
{
   "allow"   
   {
      "ulx command"
      "ulx command"
   }
   "inherit_from"   "admin"
   "team"
   {
      "order" "1"
      "name" "Super Admin"
      "color_red" 25
      "color_blue" 105
      "color_green" 220
      "health" 400
   }
}
"admin"   
{
   "allow"   
   {
      "ulx command"
      "ulx command"
   }
   "inherit_from"   "moderator"
   "team"
   {
      "order" "2"
      "name" "Admin"
      "color_red" 255
      "color_blue" 50
      "color_green" 50
      "health" 300
   }
}
"moderator"   
{
   "allow"   
   {
      "ulx command"
      "ulx command"
   }
   "inherit_from"   "respected"
   "team"
   {
      "order" "3"
      "name" "Moderator"
      "color_red" 255
      "color_blue" 50
      "color_green" 200
      "health" 250
   }
}
« Last Edit: August 26, 2010, 09:50:38 AM by tas »
Malum consilium quod mutari non potest.

Someone once said "Don't try to be a great man. Just be a man, and let history make its own judgment."
That's rhetorical nonsense. Who said that?
You did, ten years from now
--Star Trek, First Contact


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 #2 on: September 17, 2008, 06:04:41 PM »
Excellence!
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Killers2

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #3 on: September 21, 2008, 04:02:27 AM »
Going to take a look at this for my SB server. Would put it on my PSW server but it does not have all the category's and I can't be arsed to fiddle with it.

Offline Killers2

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #4 on: September 21, 2008, 05:59:21 AM »
Ok I got this working but I noticed some layout bugs and I was wondering if you could fix them.
http://www.killersservers.co.uk/images/scoreboard%20bugs.jpg
You see it is not showing all of the server name and my MSN and Email are slightly obstructed by Ballons and Buttons.
« Last Edit: September 23, 2008, 11:17:54 AM by Killers2 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6213
  • Karma: 394
  • Project Lead
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #5 on: September 21, 2008, 07:22:05 AM »
Any chance you might share the code to what I assume you're using to connect your PHPBB forums to the ULX user DB, Killers2? Or maybe I got the wrong impression completely? :P

Thanks! :)
Experiencing God's grace one day at a time.

Offline Killers2

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #6 on: September 21, 2008, 08:51:22 AM »
You got the wrong impression. I was gonna do that but my PHP,SQL and Lua monkey went back to Uni ( SnakeSVx )

Offline benbrooks

  • Newbie
  • *
  • Posts: 28
  • Karma: 2
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #7 on: September 21, 2008, 10:55:28 AM »
Any chance of one without the uTime?

I would attempt it myself but I would probably mess it up  ::)

Offline tas

  • Newbie
  • *
  • Posts: 20
  • Karma: 3
  • NG Clan Administrator
    • Nocturnal Gaming
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #8 on: September 21, 2008, 08:47:52 PM »
@Killers2

Yes, there is a way to fix this, just look in the player_infocard.lua file and you can adjust the column widths. Look for
Code: [Select]
if(x<100) then
x = x + 190
else
x = x + 100
end
and perhaps increase to 220 and 110?

@benbrooks

To remove the Utime function, look in scoreboard.lua, player_infocard.lua, and player_row.lua. Search for "Hours" and delete any whole line that contans that text. I tried it and it works on my experimental server, where time doesn't matter.
Malum consilium quod mutari non potest.

Someone once said "Don't try to be a great man. Just be a man, and let history make its own judgment."
That's rhetorical nonsense. Who said that?
You did, ten years from now
--Star Trek, First Contact


Offline tas

  • Newbie
  • *
  • Posts: 20
  • Karma: 3
  • NG Clan Administrator
    • Nocturnal Gaming
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #9 on: September 21, 2008, 09:06:22 PM »
Ok, time for mini-update 2.1.

I made a few more small changes such as:

Made the columns wider for the email|website fields!
Made the server name look slightly better.
Fixed some crucial code errors. I saw a:
Code: [Select]
for colunm, do

BMCha, if you have a moment, you mind updating.
PS: Can you reduce the size of your screeny a bit? It only justbreaks the post.
Malum consilium quod mutari non potest.

Someone once said "Don't try to be a great man. Just be a man, and let history make its own judgment."
That's rhetorical nonsense. Who said that?
You did, ten years from now
--Star Trek, First Contact


Offline Killers2

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #10 on: September 23, 2008, 11:18:15 AM »
turned it to a standard linky instead.

Offline tas

  • Newbie
  • *
  • Posts: 20
  • Karma: 3
  • NG Clan Administrator
    • Nocturnal Gaming
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #11 on: September 23, 2008, 12:20:16 PM »
Whatever works!
Malum consilium quod mutari non potest.

Someone once said "Don't try to be a great man. Just be a man, and let history make its own judgment."
That's rhetorical nonsense. Who said that?
You did, ten years from now
--Star Trek, First Contact


Offline Cornflake

  • Newbie
  • *
  • Posts: 26
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #12 on: September 23, 2008, 03:54:09 PM »
Wow, excellent! I've been waiting for this for ages.

Only way to make it better is to include a column with the rating icon on the very right side (or just to the right of the steam avatar picture) so it could be similar to the default scoreboard in that it shows steam pic and rating icon  :)

Offline Killers2

  • Newbie
  • *
  • Posts: 33
  • Karma: 0
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #13 on: October 15, 2008, 08:10:42 AM »
Annother request for this. Make the team name a bit longer. Some of my teams run into the hours.

Thanks  :D

Offline tas

  • Newbie
  • *
  • Posts: 20
  • Karma: 3
  • NG Clan Administrator
    • Nocturnal Gaming
Re: sui_scoreboard with UTime and Steam Avatars
« Reply #14 on: October 15, 2008, 09:19:33 AM »
Gotcha. I am making a few more tweaks to the board. Next update should be this week.
Malum consilium quod mutari non potest.

Someone once said "Don't try to be a great man. Just be a man, and let history make its own judgment."
That's rhetorical nonsense. Who said that?
You did, ten years from now
--Star Trek, First Contact