Ulysses
Ulysses Stuff => Releases => Topic started by: BMCha 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.
(http://i295.photobucket.com/albums/mm156/BMCha/gm_flatgrass0117.jpg)
-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.
-
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:
"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
}
}
-
Excellence!
-
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.
-
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.
-
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! :)
-
You got the wrong impression. I was gonna do that but my PHP,SQL and Lua monkey went back to Uni ( SnakeSVx )
-
Any chance of one without the uTime?
I would attempt it myself but I would probably mess it up ::)
-
@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
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.
-
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: 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.
-
turned it to a standard linky instead.
-
Whatever works!
-
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 :)
-
Annother request for this. Make the team name a bit longer. Some of my teams run into the hours.
Thanks :D
-
Gotcha. I am making a few more tweaks to the board. Next update should be this week.
-
Cool ;D
-
Can you make one with just avatars without Utime and hours? Please? :)
-
umm... this may be a stupid question, but where did the download go? i mean, i woul;d rly love to put this on my server but cant find where to down load it from, also probibly another stupid question, but do these plugins work with ulib/ulx svn version?
-
Darkfire, you must be a registered forum user to see many of the file attachments of Ulysses boards.
Though I'm not logged in where I'm at (and won't for security reasons), I'm pretty sure thats why you can't see the link.
Feel free to join. We don't spam, and appreciate any conversation, ideas, or input you may have.
-
I'm pretty sure thats why you can't see the link.
Confirmed, must be registered and logged in. Feel free to join us!
-
Confirmed, must be registered and logged in. Feel free to join us!
Many thanks JamminR
As you can see I'm now registered, and I was able to dl this addon (great work btw).
Once again thank you JamminR for your help :)
-
nice :
sui_scoreboard\player_row.lua:128: attempt to call method 'GetUTime' (a nil value)
sui_scoreboard\player_row.lua:128: attempt to call method 'GetUTime' (a nil value)
sui_scoreboard\player_row.lua:128: attempt to call method 'GetUTime' (a nil value)
sui_scoreboard\player_row.lua:128: attempt to call method 'GetUTime' (a nil value)
sui_scoreboard\player_row.lua:128: attempt to call method 'GetUTime' (a nil value)
sui_scoreboard\player_row.lua:128: attempt to call method 'GetUTime' (a nil value)
s
-
You need UTime (see thread title)
-
is there any way i can disable this when using RP or any other game modes when their boards are needed?
-
come on guys there must be a way to do it
-
or is there a simple on/off command somthing like "sui_scoreboard 1/0" that would help loads
-
Just gets stuck after i click tab, it doesn't show up names or anything, just gets stuck.
-
What gamemode are you running?
I know I havent put hardly any work into the board this month, but I will be getting on the updates as soon as possible. The "sui_scoreboard 1/0" is a good idea, I'm not sure how we can make this work on the fly, but I'll see what I can do. I will try to release the original, this current version, and a new version without the uTime part. All credits will go to the original code authors, namely Garry, Suicidal Banana, BMCha, and me.
I'll post again when I have more info. Suggestions and comments welcome.
-
Garry added a new lua function that checks to see if someone if your steam friend, he put it in the original scoreboard,
would be really cool if you added something to this one to indicate friends :D
-
I have a suggestion: sort players by hours isthead frags. Gmod isn't counter-strike or DM (
-
where can i download the version 3 ?
-
I think that would be "sui_scoreboard_modified_v2-1" even know 2-1=1 haha, a little side joke
-
they took out avatar support in last update so now this don't work because of the avatar, back to the one i fixed up :S
EDIT/ADD: I like how he did not add my vote button fix before he even released this from the start!?
-
they took out avatar support in last update so now this don't work because of the avatar, back to the one i fixed up :S
I thought maybe this was a temporary problem because of the issue with the SteamID change on Tuesday? Can anyone find any information on it?
Also, the release notes for the latest OB Engine update say "Reverted the change that capped rate at 30000". I'm assuming that means the maximum rate for Source games is no longer capped?
-
well im having the same problem as another user is there a way to not load this when in specific game modes in OSE (onslaught evolved) the screen gets stuck and glitches because the game mode uses its own UI Menus and Scoreboard
-
I stoped playing gmod for a few days now, I did a update and TF2 went from 54 to 51... so might as well ask does this work again now?
-
It's worked for me ever since VALVe rolled back the update.
-
I made a slightly altered version of this menu for my own server,
In my version the time column reports session time rather than overall time, because personally that is what I'm more interested in. I also removed all of the extra ratings, and left the original ones (sorry guys, I know a lot of time was put into them but they just weren't my cup-o-tea).
If anyone would like this slightly altered version you can PM me. I'm not trying to hyjack the thread or even release something, just letting you guys know I've got it if you want it ;D
As for the original developers, if you don't like me posting this, let me know via PM and I'll delete the post.
-
Feel free to post your version here tony. The original author of the scoreboard gave us permission to modify the board... and since the community has seen no sign of him for years, I assume he won't mind anyone else building off it.
-
I assume he won't mind anyone else building off it.
Be nice and at least mention the author in any credits.
Though many projects I've worked on (coding/documentation/whatever) have ended up only using 5-10% of the original authors works, I often place "Originally based on <blah> by <author>" or "Inspired by <author>"
-
Ok, I just downloaded this, and it's awesome! Looks great!
A few issues I'm having though... you need UTime for this... and my UTime is not working, it does not save the time. All it does is show session time. Map restart, rejoin, server restart... poof... time's gone. I don't want UTime on the server if it does not save the time, but I can't remove it because it screws up the scoreboard.
Can someone please make a non UTime dependant version or tell me how to fix my Utime?
I will give you any info you need to solve this issue!
-Adrian (sorry about the "lolol" username, I created it a while ago because I was in need of quick help :P)
EDIT: Wait... I just checked the UTime thread, and it seems as if the VALVe update screwed up something... I guess that's the problem?
-
sui_scoreboard breaks non-sandbox gamemodes. Is there any way to disable it from running on anything but Sandbox?
-
^ I'm not sure if there's a way to do that. There probably is and it shouldn't be too hard to fix. I may look into it if I have time.
Anyway, I just released a version with all the Utime lines commented out. Attachment in first post.
-
I repeatedly see the 'how to disable" request.
Is it really that difficult?
Simplest way possible, allow it to run only in Sandbox mode.
Line 13 of lua\autorun\sui_scoreboard.lua
elseif string.lower(GAMEMODE.Name) == "sandbox" then
Plenty other ways, but thats the most direct.
Use and loop through a table if you want to support more than 2 or 3 gamemodes.
-
the no utime version link is down...
-
?
-
5 days later.... no answer
Nice active forum T_T'
I think i have the time to learn lua code and try to fix the code by myself....
-
Frel, we ignore bumpers.
No, this isn't Facepunch, and we prefer it that way. (Or we would have banned you 2 bumps ago)
Our host company had to rebuild our forum recently, some attachments got broken.
The only two people who can (or might) be able to fix it haven't been here in over a week.
(1) The author of this mod. 2) Megiddo, the forum owner )
They're busy. Adjust. Be patient. This is a hobby for us, not a job.
Great, learn Lua. Good idea
-
When you are an admin, you need to come on your website at least one time per day... That what i do
If you cant do that, its time to give the website to another one. That do almost 10 days im waiting for that and no new...
Same for ULX... how many time we will need to wait for get it work???
-
Same for ULX... how many time we will need to wait for get it work???
Use SVN to get it to work, had the same problem.
If you cannot SVN on your server then SVN on your PC then upload to server ^_^
Also, I am waiting for a link to the UTime version of this plugin also, thanks for any replies.
-
The admin of this site did not make the program, and can't fix the link.
As I explained before, our hosting company broke the server, and restored from a copy before the link.
The author of this release will have to re-upload.
As for ULX... we're testing in SVN. (Thanks for explaining loversame)
If that answer isn't good enough for you Frel, and you don't want to assist or can't by testing SVN, please go use another admin mod.
I have no patience for supporting you with your current attitude, and my other team mates won't have time.
-
Im using the SVN version and the chat command not working... And admin dont load when i start server
More info here http://www.facepunch.com/showthread.php?t=260947&page=55
-
How many year ill need to wait before to get this scoreboard???
-
An extra year is tacked on for every post you waste our time with. The attachment is nowhere on the server, BMCha will need to reupload it. I guess his upload must have coincided with when Dreamhost was having major issues with the server we were on.
-
I have a version without uTime available. It's attached to this post.
It has had some edits (Sandbox only, etc.) You should be able to find them and alter to your needs.
-
BLAH BLAH BLAH, This thing works perfectly. Great work! ;D
-
This one doesn't seem to work in cube gamemode, it just stays up once you press tab and spams some errors.
vgui.Create: Error when calling 'SuiScoreBoard':Init (sui_scoreboard\player_infocard.lua:112: attempt to call method 'GetWebsite' (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)
vgui.Create: Error when calling 'SuiScoreBoard':Init (sui_scoreboard\player_infocard.lua:112: attempt to call method 'GetWebsite' (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)
vgui.Create: Error when calling 'SuiScoreBoard':Init (sui_scoreboard\player_infocard.lua:112: attempt to call method 'GetWebsite' (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)
vgui.Create: Error when calling 'SuiScoreBoard':Init (sui_scoreboard\player_infocard.lua:112: attempt to call method 'GetWebsite' (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)
vgui.Create: Error when calling 'SuiScoreBoard':Init (sui_scoreboard\player_infocard.lua:112: attempt to call method 'GetWebsite' (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)
vgui.Create: Error when calling 'SuiScoreBoard':Init (sui_scoreboard\player_infocard.lua:112: attempt to call method 'GetWebsite' (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)
vgui.Create: Error when calling 'SuiScoreBoard':Init (sui_scoreboard\player_infocard.lua:112: attempt to call method 'GetWebsite' (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)
vgui.Create: Error when calling 'SuiScoreBoard':Init (sui_scoreboard\player_infocard.lua:112: attempt to call method 'GetWebsite' (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 only works in sandbox derivatives.
-
So I have to delete it to get it not to show up in other gamemodes?
-
Just a quick post to say thanks: I was looking for this.
-
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.
-
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.
-
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.
-
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!
-
Easy-- Open lua\sui_scoreboard\player_row.lua, then find the line:
function PANEL:UpdatePlayerData()
(around line #120)
Then in that function, find this line of code:
self.lblTeam:SetText( team.GetName(self.Player:Team()) )
...And then add this line of code right under that line:
self.lblTeam:SizeToContents()
I haven't tested it (I'm at work right now), but I'm 90% sure it should work ;D
-
You know derma entirely to well now Stickly :P
-
It's a gift.... and a curse!
-
Easy-- Open lua\sui_scoreboard\player_row.lua, then find the line:
function PANEL:UpdatePlayerData()
(around line #120)
Then in that function, find this line of code:
self.lblTeam:SetText( team.GetName(self.Player:Team()) )
...And then add this line of code right under that line:
self.lblTeam:SizeToContents()
I haven't tested it (I'm at work right now), but I'm 90% sure it should work ;D
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..
-
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)
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))
-
Thats exactly how i did it...
-
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?!?!?
-
I've been getting this error contantly, If it's an error or not I don't know
(http://img820.imageshack.us/img820/7569/wutdq.png)
Any ideas?
-
I've been getting this error contantly, If it's an error or not I don't know
(http://img820.imageshack.us/img820/7569/wutdq.png)
Any ideas?
What's wrong?
-
Eh, the Logo?
-
Eh, the Logo?
other than it looks awesome, i don't understand what you mean, should it not be a g?
-
What's your UTeam config?
-
WAIT, Nvm lol I fixed it, the owner color was apparently causing it! XD
-
Hi I've been using this for some time now [I had a different forum name but forgot it] on my sandbox server, but I have recently been jumping between fretta gamemodes and sandbox. The scoreboard conflicts with the custom freta boards, is there some way to have it only open in sandbox mode?
Thank you in advance!
-
http://forums.ulyssesmod.net/index.php/topic,3650.msg14329.html#msg14329
Forgot i answered that years ago.
Used search bar of this thread 'disable' to find it.
The code should still be good.
-
Great, thanks so much, I was close to fixing it on my own, but had the code wrong :P
-
Can we please get a more elaborate answer as to how to restrict the scoreboard to the sandbox gamemode only? Like said it doesn't work in all other gamemodes.
-
Go into the addons folder, into the SUI scoreboard folder, whatever version you downloaded (utime or no utime) from the first post of this thread, go into the lua folder, go into autorun folder, open sui_scoreboard.lua with a text editor (notepad is fine, another program editor that shows line numbers is better), count 13 lines down, should be a
else
and change it to
elseif string.lower(GAMEMODE.Name) == "sandbox" then
-
Yes, I did that, but now the scoreboard doesn't work at all. Have you tested that line?
-
I actually had the same problem after trying it, I've just been running without the scoreboard the past week
-
i've not tested recently. Don't have GMod installed. The time I posted that it worked (was tested), but Gmod has had several updates since.
He may have changed the gamemode table names for case sensitivity, etc.
-
Thanks for the help even without gmod installed, i will mess with it a little bit and post back if i have any solutions
-
May try using GM.Name instead of GAMEMODE.Name . Seems looking over the wiki, I found an article explaining a global table (which "Name" would be a part of) gets loaded into GM. http://wiki.garrysmod.com/?title=Internal_gamemode_workings
(Though, later on it also mentions GAMEMODE table.
Megiddo, feel free to instruct me here. Why isn't my suggested line working? :P
-
I just gave GM.Name a try, no dice
-
I found a function called Gmod.GetGameMode on the wiki. However, even it says the command is redundant as "GAMEMODE.Name" should contain the name.
So, let's see if there is a metatable issue (with Gmod or your server/gamemode), or a screw up in my code example.
Go to your server console, run the following. It should say Sandbox. If it does, means it's probably my syntax someway somehow.
lua_run print(GAMEMODE.Name)
If that fails, try
lua_run print(GM.Name)
Let me know if either return data, and if so, what they return.
-
GM is only loaded into the globals if your code is located in the gamemode files, I believe. Otherwise, you need to use GAMEMODE. (If I remember correctly!)
-
Megiddo, thanks, see any other problem with the code replacement suggestion?
Krooks,
Try this in server console.
lua_run print(GAMEMODE.Name)
-
I don't see anything wrong with the code, no.
-
Hey sorry for this late reply, Christmas time n all, things get busy ;)
Hope everyone had a good one (if you celebrate) and a happy new year!
On the server's consol, I get "Sandbox" for print(GAMEMODE.Name) and print(GM.Name) returns a nil value.
As a note I changed the lowercase s to a capital S in the code you provided with no results.
-
As a note I changed the lowercase s to a capital S in the code you provided with no results.
No worries, we've been busy too.
So, GAMEMODE contains the right table information.
The change you made (capital S) should definitely not work, as I use string.lower lua function to convert GAMEMODE.Name to lower case.
You could try
elseif GAMEMODE.Name == "Sandbox" then
but that shouldn't work any better than original suggestion.
I'm really at a loss as to why it's not working. No errors when server is starting up about a null table? (Maybe Gamemode table fills after script runs?)
Just to verify for me, if you change that line 13 back to JUST 'else', the scoreboard works, but in every gamemode including those that do thier own?
-
Tried the new code, and like you expected, it didn't work.
To go more in depth, it does not show _at all_ when I make these changes, only the default scoreboard shows.
I just changed it back to "else", and can confirm it shows up in sandbox, but also shows in other gamemodes.
It does not display any stats on those gamemodes (im sure their unique scoring etc isn't written into the code, so obviously they wouldn't) but the thing about it, is it shows up on top of the provided gamemode scoreboard, blocking it.
And to make things worse, it will not go away, making the game unplayable.
That's the best I can do as far as a description goes ^^
Errors:
nil value for tempadduser lua:29
a missing 'end' to close 'function' on line 73 of AutoPromote lua:164
-
Not forgotten, just not made / found time to test/research deeper.
As for the errors, well, it's not this release causing those (kind of obvious, no?)
-
It's all good man, take your time.
Yes I had an idea that they would be unrelated, but I've had plugins conflict on me before, so figured I'd list it all ;D
-
Hmm, I think I remember running into an error with this once in XGUI, not being able to properly determine the gamemode name right when the scripts were loaded.. I'll try and look at my code as soon as possible.
-
Did you guys try ULib.isSandbox()? http://ulyssesmod.net/docs/files/lua/ulib/shared/util-lua.html#isSandbox
It returns true if sandbox or sandbox-derived, but.. might not work if you want ONLY sandbox.
EDIT: Nevermind, it's just as I suspected. The sui_scoreboard script is being loaded before the GAMEMODE is properly established, and before even ULib/ULX loads. In order to get your check to work properly, you'll have to delay the startup of sui_scoreboard (done with Timer.Simple( 0, function )). However, this ends up delaying it till it's pretty much the last thing loaded, so this may or may not end up causing more problems (for the few minutes I tested it, everything was working fine.)
Assuming the sui_scoreboard.lua file is exactly the same whether you have the UTime versions or not (or some other modified version), then your code should look something like this:
if SERVER then
AddCSLuaFile( "autorun/sui_scoreboard.lua" )
AddCSLuaFile( "sui_scoreboard/admin_buttons.lua" )
AddCSLuaFile( "sui_scoreboard/cl_tooltips.lua" )
AddCSLuaFile( "sui_scoreboard/player_frame.lua" )
AddCSLuaFile( "sui_scoreboard/player_infocard.lua" )
AddCSLuaFile( "sui_scoreboard/player_row.lua" )
AddCSLuaFile( "sui_scoreboard/scoreboard.lua" )
AddCSLuaFile( "sui_scoreboard/vote_button.lua" )
include( "sui_scoreboard/rating.lua" )
else
local function sui_startup()
if GAMEMODE.Name == "Sandbox" then
include( "sui_scoreboard/scoreboard.lua" )
SuiScoreBoard = nil
timer.Simple( 1.5, function()
function GAMEMODE:CreateScoreboard()
if ( ScoreBoard ) then
ScoreBoard:Remove()
ScoreBoard = nil
end
SuiScoreBoard = vgui.Create( "SuiScoreBoard" )
return true
end
function GAMEMODE:ScoreboardShow()
if not SuiScoreBoard then
self:CreateScoreboard()
end
GAMEMODE.ShowScoreboard = true
gui.EnableScreenClicker( true )
SuiScoreBoard:SetVisible( true )
SuiScoreBoard:UpdateScoreboard( true )
return true
end
function GAMEMODE:ScoreboardHide()
GAMEMODE.ShowScoreboard = false
gui.EnableScreenClicker( false )
SuiScoreBoard:SetVisible( false )
return true
end
end )
end
end
timer.Simple( 0, sui_startup )
end
It creates a function with all of the sui_scoreboard client startup code, then calls it after the timer.Simple goes through (which is basically when everything is loaded, ESPECIALLY the gamemode). Once that function is called, the first thing we do is check and see if it's a Sandbox gamemode or not-- If it is, then continue loading sui_scoreboard, if not, then just cancel it.
Hope that helps!
-
Stickly man, the GAMEMODE table not being ready was actually my first theory I was going to test.
Even the original code itself has a timer in it to add the "CreateScoreboard" function to GAMEMODE table delayed, so I thought that was the root cause.
Thanks for chasing it down.
-
will be giving this a go tomorrow, thanks
-
How do I make it so that if a player reaches like 15 hours, he will get promoted to the next group?
-
How do I make it so that if a player reaches like 15 hours, he will get promoted to the next group?
Use AutoPromote
-
Oops, thought I replied to this with the results, I guess I didn't!
The code Stickly Man provided worked perfectly, thank you!
Now.. to fix other (unrelated) addons in the same way :( lol
Maybe I learned enough from this to figure it out though :)
Thanks again
-
Welcome. If you ever want help with (well, just about) any Lua code (or, even non-Lua), check out the developers corner area of the forum. Even if one single team member can't find the solution to your challenge/question/idea/whatever, we combine forces well enough to do it, and of course, our community as a whole has a diverse base.
-
Awesome, sounds good, I usually use forums as last resort, but you may see me there ;D
-
hello, i ressently started up a sandbox server for own use and friends. I downloaded this scoreboard and well i had lots of bugs in the beginning wich i all fixed with own knownledge and the use of this topic (wich really helped me out alot) the only problem is, with the teams. I made a group called owner with the same commands as superadmin. Only difference is in UTeam.txt They have some more hp, armor, other model etc. But the problem is wenever someone in the group owner joins, and i think this is the same for superadmin, on the scoreboard they are just admins. But still we can do every command we would normally have and when i join it still says i'm in the group owner...
this is my uteam folder for the first team.
{
"teams"
{
"1"
{
"name" "Owner"
"group" "Owner"
"armor" "1000"
"hp" "2000"
"color"
{
"a" "255"
"B" "85"
"g" "200"
"r" "50"
}
"plytable"
{
"1" "SprintSpeed:1000"
"2" "WalkSpeed:500"
}
}
this is the part of the groups.txt itself from ulib.
"owner"
{
"deny"
{
}
"allow"
{
"ulx hiddenecho"
"ulx adduser"
"ulx adduserid"
"ulx removeuser"
"ulx userallow"
"ulx userdeny"
"ulx addgroup"
"ulx removegroup"
"ulx groupallow"
"ulx groupdeny"
"ulx rcon"
"ulx luarun"
"ulx cexec"
"ulx ent"
"overcomeimmunity"
}
"inherit_from"
{
"admin"
}
}
superadmin looks just the same just in the uteam.txt they have some different settings. I really hope someone can help me out and. greeting bpgilly ^^
EDIT - JAMMINR: Placed text examples in code tag for easier formatting/forum whitespace
-
Try changing
"group" "Owner"
to
"group" "owner"
-
**EDIT**
It's fixed thnx the O did it --', thank you for helping me out here ^^
-
i got the rank owner, but when i join it keep showing me as "Unassigned"
-
i got the rank owner, but when i join it keep showing me as "Unassigned"
You have to set the owner group's title and name. You can do this with XGUI, which, is built into ulx svn. Just go into your groups tab, hit Manage teams, and create new. The rest should be self explanatory.
-
i tried to add my self to admin or superadmin, but it will still show me as unassigned.
- and i already did that ;)
-
Are you using UTeam?
From my understanding it pulls names from UTeam, not the Garrysmod groups.
You should also probably be running ULX/ULIB from svn, just to make sure it all works together correctly.
********
EDIT
********
I have also found that you can manage teams without UTeam if you have the SVN of ULX/ULIB and are using XGUI. Teams made in XGUI will show up correctly on the board as well.
-
well, i figure it out, and it works fine now.
thanks.
-
Seems DarkRP links this thread.
If your going to use it for DarkRP you might want to add self.lblTeam:SizeToContents() around line 125 of player_row.lua
This is just to update the label widths, as it kept shortening my job names. (Might need to move he label left a tad, I didn't as I removed Health.
-
Holy s***, is that Pantho from BYB? , I never knew you he was on here ;)
-
Just kinda Curious, since I dont know much about Lua, But with this scoreboard is it possible to make it were if someone was a admin and I looked at the scoreboard, in the middle of their Card it would be kinda glowing in and out like It does on PERP?
-
I got it to work and stuff, but when I made a rank "Respected" and added to Uteam and stuff and tried using it on my sevrer, it just stayed at the previous rank. I did try slaying them and stuff but it didn't work. Help please.
-
I assume this does not work any more because I can not see the teams tab or colors at all?
Nevermind my FTP decided to derp and not upload the autorun file...
-
Anyone know how to get this working with the new update? The scoreboard won't just show up, when I press tab.
-
I tried getting it working. I got it working, but not pretty. Before, it would update while you had it open, but now it will not, and it also looks retarded.
(http://cloud.steampowered.com/ugc/540692484818266151/93F386A2D2095B2005B010DB263D99338E551D96/)
If anyone wants to take a shot at making it look prettier, by all means.
-
http://steamcommunity.com/sharedfiles/filedetails/?id=105273424
Found it on workshop ^_^
Enjoy.
-
The version of workshop are not working.
Please keep working on your version @Adult. With or without Utime.
The version from Workshop as created 28 oct this year, so they are not updating, so are not working ok.
Giving errors
[ERROR] lua/autorun/cl_utime.lua:41: attempt to call method 'GetActiveWeapon' (a nil value)
1. unknown - lua/autorun/cl_utime.lua:41
Timer Failed! [UTimeThink][@lua/autorun/cl_utime.lua (line 64)]
/
And
--- Missing Vgui material gui/silkicons/star
--- Missing Vgui material gui/silkicons/palette
--- Missing Vgui material gui/silkicons/heart
--- Missing Vgui material gui/silkicons/user
--- Missing Vgui material gui/silkicons/exclamation
And Utime are not repositioning
-
I fixed some of the quirks in Wrex's version (the workshop link) and added mute buttons on the player info panels since garry moved that functionality from the menu to the scoreboard
https://dl.dropbox.com/u/7934790/gmod/sui_scoreboard.zip
edit: oh and made the steam avatars clickable again
-
Thanks Tweak, I'll be setting up a SB server here soon, will grab your version.
-
Hi, using the upload from TweaK I'm getting disconnected every time I bring up the scoreboard, I'm not sure whether it's due to me not installing it properly but I get the 'Too many lua errors' or something like that error...here's what it says in console
'[ERROR] lua/sui_scoreboard/player_row.lua:112: attempt to call method 'GetUTimeTotalTime' (a nil value)
1. UpdatePlayerData - lua/sui_scoreboard/player_row.lua:112
2. SetPlayer - lua/sui_scoreboard/player_row.lua:91
3. AddPlayerRow - lua/sui_scoreboard/scoreboard.lua:94
4. UpdateScoreboard - lua/sui_scoreboard/scoreboard.lua:269
5. Init - lua/sui_scoreboard/scoreboard.lua:62
6. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:153
7. CreateScoreboard - lua/autorun/sui_scoreboard.lua:33
8. unknown - lua/autorun/sui_scoreboard.lua:40
[ERROR] lua/sui_scoreboard/scoreboard.lua:234: attempt to index field 'lblPing' (a nil value)
1. unknown - lua/sui_scoreboard/scoreboard.lua:234
[ERROR] lua/sui_scoreboard/scoreboard.lua:202: attempt to index field 'lblPing' (a nil value)
1. unknown - lua/sui_scoreboard/scoreboard.lua:202
[ERROR] lua/sui_scoreboard/player_row.lua:112: attempt to call method 'GetUTimeTotalTime' (a nil value)
1. UpdatePlayerData - lua/sui_scoreboard/player_row.lua:112
2. unknown - lua/sui_scoreboard/player_row.lua:264
[ERROR] lua/sui_scoreboard/scoreboard.lua:202: attempt '
Any help and feedback is appreciated! Would like to know how to properly install this as well please just in case I'm not doing it correctly.
-
Looks like you don't have UTime installed
-
Looks like you don't have UTime installed
Any ideas as to where I can get Utime? XD
-
http://forums.ulyssesmod.net/index.php/topic,3039.0.html (http://forums.ulyssesmod.net/index.php/topic,3039.0.html)
-
Technically the latest version is on GitHub like all our other up-to-date things. We're hoping to have actual releases sometime soon, though! :)
-
Thanks guys, I'm just adding everything to my server now, and re installing the scoreboard (this time with Utime installed, I got this Utime version from github also so should be the latest one) I'll let you guys know how it goes, thanks again
-
Okay, so I ran the server with Utime and the SUI scoreboard installed, Utime from the github and the scoreboard was TweaKs upload. I still got some errors, I don't think I'm installing the SUI correctly, can anyone provide some quick installation steps please? Just to ensure I am doing it right. Here's the errors still:
'[ERROR] lua/sui_scoreboard/player_row.lua:112: attempt to call method 'GetUTimeTotalTime' (a nil value)
1. UpdatePlayerData - lua/sui_scoreboard/player_row.lua:112
2. SetPlayer - lua/sui_scoreboard/player_row.lua:91
3. AddPlayerRow - lua/sui_scoreboard/scoreboard.lua:94
4. UpdateScoreboard - lua/sui_scoreboard/scoreboard.lua:269
5. Init - lua/sui_scoreboard/scoreboard.lua:62
6. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:153
7. CreateScoreboard - lua/autorun/sui_scoreboard.lua:33
8. unknown - lua/autorun/sui_scoreboard.lua:40
[ERROR] lua/sui_scoreboard/scoreboard.lua:234: attempt to index field 'lblPing' (a nil value)
1. unknown - lua/sui_scoreboard/scoreboard.lua:234
[ERROR] lua/sui_scoreboard/scoreboard.lua:202: attempt to index field 'lblPing' (a nil value)
1. unknown - lua/sui_scoreboard/scoreboard.lua:202
[ERROR] lua/sui_scoreboard/player_row.lua:112: attempt to call method 'GetUTimeTotalTime' (a nil value)
1. UpdatePlayerData - lua/sui_scoreboard/player_row.lua:112
2. unknown - lua/sui_scoreboard/player_row.lua:264
[ERROR] lua/sui_scoreboard/scoreboard.lua:202: attempt to index field 'lblPing' (a nil value)
1. unknown - lua/sui_scoreboard/scoreboard.lua:202'
-
Yeah you might want to check and see if UTime is installed correctly, that "attempt to call method 'GetUTimeTotalTime' (a nil value)" error means it isn't loading. The path should be addons/utime/addon.txt with no folders in between.
-
Finally got it to work, thanks guys appreciate all the help! :)
-
how do i install it ;(
-
Hmm, looks really nice! Would this be able to work with death run perhaps?
-
I haven't tested it on any gamemode other than sandbox, but if ulx ulib and utime all work then I don't see any reason this wouldn't.
-
Don't most gamemodes have their own scoreboard?
I've seen people complain in the original re-release we did of sui_scoreboard years back that this would pop up above or under some custom gamemode scoreboards.
-
Changed the rating icons to use builtin pngs so the material files are not needed anymore. Here's the link again https://dl.dropbox.com/u/7934790/gmod/sui_scoreboard.zip
Thinking about making it so that it works with or without utime... would anyone have a use for that?
-
[ERROR] addons/sui_scoreboard/lua/sui_scoreboard/player_infocard.lua:124: attempt to call method 'GetCount' (a nil value)
1. UpdatePlayerData - addons/sui_scoreboard/lua/sui_scoreboard/player_infocard.lua:124
2. SetPlayer - addons/sui_scoreboard/lua/sui_scoreboard/player_infocard.lua:107
3. SetPlayer - addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:91
4. AddPlayerRow - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:94
5. UpdateScoreboard - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:269
6. Init - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:62
7. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:153
8. CreateScoreboard - addons/sui_scoreboard/lua/autorun/sui_scoreboard.lua:33
9. 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/scoreboard.lua:202: attempt to index field 'lblPing' (a nil value)
1. unknown - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:202
I get them errors any advise please?
-
I'm not sure why that would be happening... does it still happen with only the scoreboard, ulx, ulib, and utime installed?
-
Well i have installed UTeam and on the section in the scoreboared saying teams it says unassigned and i have tryed looking on this forums everywhere to fix it and i cant find a answer so could you please help
-
You don't 'install' Uteam anymore.
ULX comes with UTeam.
You go into XGUI and adjust team colors to match what groups you want.
-
Hi Tweak,
I've just turned off FAdmin and added Utime and your sui scoreboard. It works, but then for some reason mid-session the scoreboard will switch back to the sandbox one. I'm not sure if a specific action is causing this though, any ideas? Thanks.
-
I haven't used the scoreboard on any gamemode other than sandbox so I'm not sure. Are you getting any Lua errors?
-
It's just happened mid-game. The only thing I can think of is that I updated the a lua file with the server was running. No errors at all...
-
Yeah... unfortunately there's not really anything I can do if you can't find some way to reproduce the problem.
-
Pretty sure this happens when I update a file when the server is running, which I guess can be avoided easily once it's complete.
Another question though, is there a way to remove the buttons that give people points (eg the 'GAY!' etc)?
-
Pretty sure this happens when I update a file when the server is running
Though Garry added features to 'reload' code while a server is running, ULib isn't designed (and therefore, any project relying on it (UTime, ULX, etc)) to be refreshed mid-stream.
I'm reasonably sure Megiddo has probably looked into doing it, but I'm also reasonably sure redevelopment time vs benefit is extremely proportional to not worthy the limited time Megiddo has, even with the full team's help (which, we're all limited in ways too. I know my RealLife time takes more than here over the past few years)
-
Though Garry added features to 'reload' code while a server is running, ULib isn't designed (and therefore, any project relying on it (UTime, ULX, etc)) to be refreshed mid-stream.
I'm reasonably sure Megiddo has probably looked into doing it, but I'm also reasonably sure redevelopment time vs benefit is extremely proportional to not worthy the limited time Megiddo has, even with the full team's help (which, we're all limited in ways too. I know my RealLife time takes more than here over the past few years)
Thanks for the info Jammin.
Does anyone else know if you can remove the 'points system' on the sui_scoreboard?
-
You mean the ratings? Shouldn't be too hard to hide if you comment out some things in the info panel...
-
Yes I mean those. I'll have a look, although I'm noob ;)
-
Does this work on TTT?
-
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!" )
-
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.
-
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
-
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?
-
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.
-
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
-
[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?
-
[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.
-
So where is the data for each individual client's ratings stored?
-
The ratings are stored in sv.db if I remember correctly. It's a SQLite database.
-
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.
-
(http://cloud-4.steampowered.com/ugc/598153784021913477/13C2D101196699202A3170BF09C7FD7ED608AEC9/) (http://steamcommunity.com/sharedfiles/filedetails/?id=160121673)
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 (https://github.com/nexbr/sui-scoreboard) or Steam Workshop (http://steamcommunity.com/sharedfiles/filedetails/?id=160121673)
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.
-
Will this work with murder gamemode?
Thanks
notownz
-
I get following error and dont know why, utime is running, it shows up in clients.
it doesn't matter if its the utime version or no utime version
[ERROR] addons/sui_scoreboard/lua/sui_scoreboard/player_infocard.lua:124: attempt to call method 'GetCount' (a nil value)
1. UpdatePlayerData - addons/sui_scoreboard/lua/sui_scoreboard/player_infocard.lua:124
2. SetPlayer - addons/sui_scoreboard/lua/sui_scoreboard/player_infocard.lua:107
3. SetPlayer - addons/sui_scoreboard/lua/sui_scoreboard/player_row.lua:91
4. AddPlayerRow - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:94
5. UpdateScoreboard - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:269
6. Init - addons/sui_scoreboard/lua/sui_scoreboard/scoreboard.lua:62
7. Create - lua/includes/extensions/client/panel/scriptedpanels.lua:37
8. CreateScoreboard - addons/sui_scoreboard/lua/autorun/sui_scoreboard.lua:33
9. 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/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/autorun/sui_scoreboard.lua:56: attempt to index global 'SuiScoreBoard' (a nil value)
1. unknown - addons/sui_scoreboard/lua/autorun/sui_scoreboard.lua:56
-
Xopez, I'd be surprised if you could get this working.
The original post is 4+ years old.
The last post of the thread before yours was 1.5 years ago.
Make sure you're using the last known working code, submitted by someone other than the original developer, from this 1.5 year old message.
https://forums.ulyssesmod.net/index.php/topic,3650.msg35204.html#msg35204
If it's not working, we likely need to move it to Release archives in read-only.
I probably didn't move it last time I cleaned the releases section because it was about a year ago, and that link I posted above was probably working at the time.
Gmod's updated many times since then, as has ULIb and ULX.
-
I'd recommend using the workshop version: http://steamcommunity.com/sharedfiles/filedetails/?id=162141543&searchtext=Sui+scoreboard
-
I'd recommend using the workshop version
It's even older than the one I linked.
Updated Jul 23, 2013 @ 5:13pm