• TTT - Easy Scoreboard Ranks
    308 replies, posted
[QUOTE=CaptianMeep;44560879][ERROR] gamemodes/terrortown/gamemode/vgui/sb_row.lua:164: attempt to call field 'GetPlayerText' (a nil value) 1. UpdatePlayerData - gamemodes/terrortown/gamemode/vgui/sb_row.lua:164 2. UpdatePlayerData - gamemodes/terrortown/gamemode/vgui/sb_team.lua:128 3. UpdateScoreboard - gamemodes/terrortown/gamemode/vgui/sb_main.lua:284 4. unknown - gamemodes/terrortown/gamemode/cl_scoreboard.lua:40 [ERROR] gamemodes/terrortown/gamemode/vgui/sb_row.lua:164: attempt to call field 'GetPlayerText' (a nil value) 1. UpdatePlayerData - gamemodes/terrortown/gamemode/vgui/sb_row.lua:164 2. UpdatePlayerData - gamemodes/terrortown/gamemode/vgui/sb_team.lua:128 3. UpdateScoreboard - gamemodes/terrortown/gamemode/vgui/sb_main.lua:284 4. unknown - gamemodes/terrortown/gamemode/vgui/sb_main.lua:155 Timer Failed! [TTTScoreboardUpdater][@gamemodes/terrortown/gamemode/vgui/sb_main.lua (line 151)] Getting this error. Anyone know how to fix it?[/QUOTE] Post your scoreboard lua, you may have broken something in there if you were changing it
[QUOTE=danjono;44561266]Post your scoreboard lua, you may have broken something in there if you were changing it[/QUOTE] It worked fine but this error occurred after the gmod update.
TTT now uses a new scoreboard column adding system. Example here: [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/vgui/sb_row.lua#L20-L27[/url]
[QUOTE=kpjVideo;44536049]How exactly do we use that Rainbow function?[/QUOTE] From a quick glance it looks like you just set color = "rainbow" inside the usergroup or steam ID that you setup. Is it possible to adjust the width of a column or the width of the background?
[QUOTE=code_gs;44563730]TTT now uses a new scoreboard column adding system. Example here: [url]https://github.com/garrynewman/garrysmod/blob/master/garrysmod/gamemodes/terrortown/gamemode/vgui/sb_row.lua#L20-L27[/url][/QUOTE] Yeah, just update to the newest version To make rainbow names do EZS.Ranks["rank"] = "rainbow" Currently you cannot adjust the width of the background.
Is the new version working for the newest version of TTT?
[QUOTE=Sjokomelk;44577742]Is the new version working for the newest version of TTT?[/QUOTE] Yes
The latest updates on github allow you to adjust the width of the columns easily (for when it is pushed or if you want to manually add it) [url]https://github.com/garrynewman/garrysmod/commit/9df86a8b34f284205a0acebc460fb369df5320f2[/url] I am curious would it be possible to add silkicons to a column using the new hooks? EDIT: Never mind, I've got it working now.
Just wanting to know if someone could give me some help :) im pretty new when it comes down to LUA i've put this on to my server only thing i can't get to work right now is the rainbow so could someone give me a step by step in how to do this? i no idea where to place the ranks that i want etc so a step by step would be great thankyou :)
Hey, can you maybe put a function in that you can edit the Tag ingame? So you can set custom ranks? Would be nice if that is doable!
[QUOTE=rejax;44466815]fixed some bugs, added steamid support Where do i put the addon?
[QUOTE=ejcole7;45139951] Where do i put the addon?[/QUOTE] surprisingly, the addon goes in the addons/ folder
[QUOTE=rejax;45142311]surprisingly, the addon goes in the addons/ folder[/QUOTE] i tried and it didn't show up please help, Thanks [editline]18th June 2014[/editline] [QUOTE=EverCandy;43945086]Do stop by my server relax! I am adding you to the Donator (for helping me) rank! IP: nightflaregaming.no-ip.org[/QUOTE] cant find your server add me on steam - Metro
for some reason when i put in the addon in its default state it works fine. However, when i add in lets say a rank for the co-owner, then everything just goes back to the way it was before the addon was added. The rank column goes away and the scoreboard goes back to normal. All I do is simply replace the donator spot with the co owner rank and the display use to co owner. Then i change the color. As soon as i do it just doesnt work. What I'm trying to say is am i doing it wrong if so how do I do it right?
Can you post the code that you have changed?
Ok so here is the original code EZS.Ranks["superadmin"] = { name = "S. Admin", color = Color( 255, 0, 0 ), admin = true } I change it to EZS.Ranks["subowner"] = { name = "Sub-Owner", color = Color( 0, 0, 255 ), admin = true } simple change but it screws everything up so please let me know if I did it wrong in some way. Another thing just to make sure im doing this right, I go into the addon folder i navigate to the directory of the TTT_Easyscoreboard.lua and i edit that file correct? Edit: The same thing also happens when I choose to add a new rank to the coding too.
The addon is super awesome I love it but there's one feature I would like to have added. Silkicons to the right of the name and you could choose between having it on in the config and having like an extra thing to this line like EZS.Ranks["admin"] = { name = "Admin", color = Color( 150, 100, 100 ),icon = ( "gui/silkicons/shield" ), admin = true } . Thanks :P [editline]17th July 2014[/editline] [QUOTE=nar308;45233644]Ok so here is the original code EZS.Ranks["superadmin"] = { name = "S. Admin", color = Color( 255, 0, 0 ), admin = true } I change it to EZS.Ranks["subowner"] = { name = "Sub-Owner", color = Color( 0, 0, 255 ), admin = true } simple change but it screws everything up so please let me know if I did it wrong in some way. Another thing just to make sure im doing this right, I go into the addon folder i navigate to the directory of the TTT_Easyscoreboard.lua and i edit that file correct? Edit: The same thing also happens when I choose to add a new rank to the coding too.[/QUOTE] Are you sure the rank is named subowner without upper case in the Admin mod you use. Because in ULX if one character is upper/lower case when it shouldn't be it wont work.. Example: EZS.Ranks["Admin"] instead of admin wich is default for both the config and ULX admin mod it wont work.
I can't figure out how to make a rank rainbow with this different format EZS.Ranks["donator"] = { name = "VIP", color = Color( 255, 64, 255 ), admin = false } I wanna know how to make that ^^^ rainbow please help.
[QUOTE=SkyzAEColo;45435469]I can't figure out how to make a rank rainbow with this different format EZS.Ranks["donator"] = { name = "VIP", color = Color( 255, 64, 255 ), admin = false } I wanna know how to make that ^^^ rainbow please help.[/QUOTE] EZS.Ranks["donator"] = { name = "VIP", color = "rainbow", admin = false }
[QUOTE=Pictodon;45422043]The addon is super awesome I love it but there's one feature I would like to have added. Silkicons to the right of the name and you could choose between having it on in the config and having like an extra thing to this line like EZS.Ranks["admin"] = { name = "Admin", color = Color( 150, 100, 100 ),icon = ( "gui/silkicons/shield" ), admin = true } . Thanks :P [editline]17th July 2014[/editline] Are you sure the rank is named subowner without upper case in the Admin mod you use. Because in ULX if one character is upper/lower case when it shouldn't be it wont work.. Example: EZS.Ranks["Admin"] instead of admin wich is default for both the config and ULX admin mod it wont work.[/QUOTE] I added silk icons to it. I'll post it here when I get home.
any reason your script can't make separate colors for name and rank? EDIT: [B]Hello people i present you little EZS update[/B] [B]Features:[/B] *removed menu *you can now color name and rank separately! [B]Download: [/B][url]https://dl.dropboxusercontent.com/u/84539988/fucking_scoreboard_ranks.rar[/url] enjoy! And i dont want to insult rejax just he couldnt add very simple feature in all this time so i fixed it for him (EDIT: he said that he will add it which is cool too) . It's like edit of script i personaly use and i just shared it.
why not just request a feature? I'll be doing some changes to the repo tomorrow, including adding a way for separate name and rank colors also the only major change i can see in your version is some changes to the config and comments, And the removal of the right click menu (which can be disabled??) but thanks for your input anyway
[QUOTE=rejax;45493158]why not just request a feature? I'll be doing some changes to the repo tomorrow, including adding a way for separate name and rank colors also the only major change i can see in your version is some changes to the config and comments, And the removal of the right click menu (which can be disabled??) but thanks for your input anyway[/QUOTE] Add ability to change rank collum width because you can do that now. Also add ability to give custom rank and color for SteamID that overwrites group player is in settings.
Will have a look at width You can already use steam ids?
[QUOTE=rejax;45495487]Will have a look at width You can already use steam ids?[/QUOTE] Thanks for mentioning that you can use steam ids earlier. [IMG]https://dl.dropboxusercontent.com/u/84539988/ShareX/2014/07/17-47-04.jpg[/IMG] I think its width problem. if width was bigger it would push tags further. now text can't fit into his tiny field and stretches causing problems.
ok update [b]+[/b] added support for name colors ( rank.namecolor ) [b]+[/b] added a way to move tags/search icon to the left ( EZS.ShiftOthers ) [b]+[/b] added 2 hooks for external addons, "EZS_AddRightClickFunction" and "EZS_GetPlayerRankName" [b]+[/b] added an experimental tag system ( move ezs_tags.lua from lua/ to lua/autorun ) [URL=http://facepunch.com/showthread.php?t=1356376&p=45093772&viewfull=1#post45093772]@Desasterx3;45093772[/URL] [b]+[/b] added some more ulx commands to the right click thingo, and a method to sort them via table structure [b]*[/b] cleaned up some code also some other things: - icons are not a possibility right now, as the ttt hook limits you to a label - adjusting the width/placement of the background will [b]not[/b] be happening due to the nature of the ttt scoreboard if you guys have any more requests/bugs, shoot :)
Thought it would be nice to also add Private Message to the right click commands. For anyone who wants it and if you're using the ULX TTT Commands addon. SlayNR may also be nice to have. [lua]["Private Message"] = { func = function( ply ) Derma_StringRequest( "Private Message", ply:Nick(), "", function( text ) RunConsoleCommand( 'ulx', 'psay', ply:Nick():gsub( ";", "" ), text ) end, function() end ) end, icon = "icon16/email.png" } ["Slay Next Round"] = { func = function( ply ) RunConsoleCommand( "ulx", "slaynr", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/pill_go.png" } [/lua] Also I've previously had silk icons working on the scoreboard with a few changes. I can't find my old file though so I'll try again.
Silk icons can work on the old scoreboard, however you need to either add it without a column or change the base file; otherwise it tries to set the icons don't which breaks edit: Actually i just had a look at the base and i might have a way
I had it working fairly recently. [url]http://facepunch.com/showthread.php?t=1356376&p=44834050&viewfull=1#post44834050[/url] It was just a really ugly way of getting it to work, but it had worked. Just got home and am going to mess with it. Got it working [img]http://puu.sh/ax3Pp/ba94a1f1fa.jpg[/img] Got it working by painting over the row. [lua]local function AddIcon( sb ) sb:AddColumn( "Icon", function( ply, lbl ) lbl:GetParent().PaintOver = function surface.SetMaterial( Material( 'icon16/heart.png' ) ) surface.DrawTexturedRect( lbl:GetPos()-8, 4, 16, 16 ) end return '' end) end hook.Add( "TTTScoreboardColumns", "SB_Columns", AddIcon )[/lua]
I can't add more than a single rank without it not working on my end, any help? I've added you on steam, hopefully you can add me.
Sorry, you need to Log In to post a reply to this thread.