• TTT - Easy Scoreboard Ranks
    308 replies, posted
[QUOTE=Horrocks;46805698]Very great work from rejax!!! However we get the following error on our server: [ERROR] addons/easyscoreboard/lua/autorun/client/ttt_easyscoreboard.lua:162: Tried to use a NULL entity! 1. SteamID - [C]:-1 2. GetRank - addons/easyscoreboard/lua/autorun/client/ttt_easyscoreboard.lua:162 3. unknown - addons/easyscoreboard/lua/autorun/client/ttt_easyscoreboard.lua:297 Has anyone an idea how to solve this? Keep up this great work![/QUOTE] Post your code for those lines that are making the error. It looks like it's from the right click commands, which might be caused by incorrect table values for the groups. Any changes that you made should be listed as well, that will allow for easier debugging.
Thank you for your reply. The function on line 162 is: [CODE] function EZS.GetRank( ply ) return EZS.Ranks[ply:SteamID()] or EZS.Ranks[RealUserGroup( ply )] end [/CODE] And line 297 is "local rank = EZS.GetRank( ply )" in this section: [CODE] if not rank.dynamic_col then label.Think = function( s ) local rank = EZS.GetRank( ply ) if not rank then return end if not rank.dynamic_col then s:SetTextColor( rank.color ) else s:SetTextColor( EZS.Dynamic( rank, ply ) ) end end elseif not label.AttachedDynamicColors then AttachDynamicColor( label, ply ) end [/CODE] which is pat of the "function EZS.AddRankLabel( sb )" function. I forgot: I added the ranks like this: [CODE] EZS.Ranks["superadmin"] = { name = "Super-Admin", color = Color( 137, 4, 177 ), admin = true } EZS.Ranks["admin"] = { name = "Admin", color = Color( 137, 4, 177 ), admin = true } EZS.Ranks["vice_admin"] = { name = "Vice Admin", color = Color( 137, 4, 177 ), admin = true } EZS.Ranks["operator"] = { name = "Operator", color = Color( 211, 88, 247 ), admin = false } [/CODE]
[QUOTE=Horrocks;46809057]-s[/QUOTE] Thanks for the informative reply :) It looks like the player is being invalidated without the label being removed? I'll add a check, that's pretty odd. Cheers Also sorry for not being active, especially to RDGXTECHX! I'm going to be pretty busy until early next year - but I'm still reading this thread. Merry Christmas/New Years everyone!
thanks for the fast fix!
[QUOTE=rejax;46810395]Thanks for the informative reply :) It looks like the player is being invalidated without the label being removed? I'll add a check, that's pretty odd. Cheers Also sorry for not being active, especially to RDGXTECHX! I'm going to be pretty busy until early next year - but I'm still reading this thread. Merry Christmas/New Years everyone![/QUOTE] Yes Merry Christmas and Happy New Years! and no problem compadre, but I will be subscribed to this thread because this add-on is amazing and still being updated by you, which is awesome :rock:
Merry Christmas and a Happy new year to you to! I'm using this addon quite extensively for my server and it makes it so simple and easy.
Forgive me, but where do I place these files?
Put the ttt_EasyScoreboard.lua in lua/autorun/client and EZS_Ranks.lua in the /lua folder
[QUOTE=RattleEDG;46867922]Put the ttt_EasyScoreboard.lua in lua/autorun/client and EZS_Ranks.lua in the /lua folder[/QUOTE] there is actually a folder inside the zip file you download - simply place that in addons (garrysmod/addons/TTT-EasyScoreboard-master/...blah blah)
I just copied and pasted the text in new files I put in the TCAdmin, and it was just simpler and easier while in game, but that's just how I did it, so that's the method I repeat to others :P.
i sometimes seem to get an issue with this. Sometimes, people's karma on the scoreboard disappears, and, sometimes, anyone in a dead group (spectator, mia, dead) will not show. No lua errors at all, only 2 edited core files which is the hud, and the weapon selection hud. No addons that touch TTT at all.
[QUOTE=Sm63;46887204]i sometimes seem to get an issue with this. Sometimes, people's karma on the scoreboard disappears, and, sometimes, anyone in a dead group (spectator, mia, dead) will not show. No lua errors at all, only 2 edited core files which is the hud, and the weapon selection hud. No addons that touch TTT at all.[/QUOTE] Weird - what version are you running?
[QUOTE=rejax;46889103]Weird - what version are you running?[/QUOTE] Should be the latest from github. I'll re-update, and see if it happens again.
Im sorry to sound like a noob and all but I've readon this thread to put this in garrysmod/addons but every time i turn on my server i get the Lua error: [url]http://gyazo.com/0dd6969ef217dd0f7e5ec3c953fde2de[/url] Please help!
[QUOTE=rejax;46707829]add a function entry to the EZS.DynamicColors table, like [URL=https://github.com/rejax/TTT-EasyScoreboard/blob/master/lua/autorun/client/TTT_EasyScoreboard.lua#L53-L59]this.[/URL] You are given the player as an argument. Then just set a rank/players color to the key. (eg "rainbow") [/QUOTE] Sorry to bother, i don't understand what exactly you mean by "function entry", if it isn't too much trouble could you or someone else provide steps on what to do (to give a rank name a rainbow color)?
Haha sorry, I just mean that [URL=https://github.com/rejax/TTT-EasyScoreboard/blob/master/lua/autorun/client/TTT_EasyScoreboard.lua#L59]this[/URL] line means that you can do [LUA] color = "rainbow" [/LUA] instead of the normal way of setting a color
EZS.Ranks["STEAM_0:0:56107579"] = { name = "Owner", color = "rainbow", icon = "star", admin = true }
Hello again, is EZS.ShiftOthers broken? or have i disabled it stupidly? other than this problem, your addon has worked great, thanks for the work. EDIT: And is there a Function that can make the icons line up in a strait line? [LUA] EZS = {} -- what's one more global to the fray EZS.Ranks = {} --[[ CONFIG ]]-- EZS.Enabled = true -- you can set a silkicon to be used, by adding a "icon" field. for example: icon = "heart" will be drawn as "icon16/heart.png" -- for a full list of silkicons, go to [url]http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png[/url] --EZS.Ranks["rank OR steamid"] = { name = "displayname", color = RankColor, namecolor = (optional), admin = are they admin? (true/false) } EZS.Ranks["Owner"] = { name = "Owner", color = "rainbow" , icon = "star", admin = true } EZS.Ranks["Head Admin"] = { name = "H.Admin", color = Color( 234,21,234 ), icon = "shield", admin = true } EZS.Ranks["superadmin"] = { name = "S.Admin", color = Color( 210,0,0 ), icon = "shield", admin = true } EZS.Ranks["admin"] = { name = "Admin", color = Color( 237,79,18 ), icon = "shield", admin = true } EZS.Ranks["mod"] = { name = "Mod", color = Color( 0,6,255 ), admin = true } EZS.Ranks["tri-mod"] = { name = "Tri-mod", color = Color( 21,234,223 ), admin = true } EZS.Ranks["Pro"] = { name = "Pro", color = Color( 240,0,114 ), icon = "coins", admin = false } EZS.Ranks["Mvp"] = { name = "Mvp", color = Color( 68,172,170 ), icon = "coins", admin = false } EZS.Ranks["Vip"] = { name = "Vip", color = Color( 39,210,30 ), icon = "coins", admin = false } //for the dev of this add-on EZS.Ranks["STEAM_0:1:45852799"] = { name = "Dev", namecolor = Color( 198, 186, 102 ), color = Color( 198, 186, 102 ), admin = false } EZS.Ranks["STEAM_0:1:83402425"] = { name = "Founder", color = "Rainbow", icon = "bug", admin = true } -- label enable on the top? what should it say? EZS.CreateRankLabel = { enabled = true, text = "Rank" } -- what to show when the player doesnt have an entry EZS.DefaultLabel = "" -- sadly there is no way to shift the background bar over as TTT draws it manually :c EZS.HideBackground = false -- Width of the rank columns EZS.ColumnWidth = 63 -- the number of columns (not pixels!!!!!!!) to shift to the left EZS.ShiftLeft = 0 -- shift tags, search marker, etc how much? (IN PIXELS) EZS.ShiftOthers = 230 -- Show icon as well as rank text? (if possible) EZS.ShowIconsWithRanks = true -- Should the icon shift to the left to accomodate the label? EZS.ShiftIconsWithLabels = false -- if ^ is false, where should the icons go (like EZS.ShiftLeft)? EZS.ShiftIconsLeft = .5 -- How far left should we shift the icon RELATIVE to the rank text? EZS.ShiftRankIcon = 7 -- should we color the names? EZS.UseNameColors = true -- if there is no name color set, should we use the rank color? EZS.DefaultNameColorToRankColor = false -- should names get dynamic (changing) color? EZS.AllowNamesToHaveDynamicColor = true EZS.DynamicColors = {} EZS.DynamicColors.rainbow = function( ply ) local frequency, time = 1.5, RealTime() local red = math.sin( frequency * time ) * 127 + 128 local green = math.sin( frequency * time + 2 ) * 127 + 128 local blue = math.sin( frequency * time + 4 ) * 127 + 128 return Color( red, green, blue ) end EZS.RightClickFunction = { enabled = true, ask_admins = true, functions = { ["User Functions"] = { ["Show Profile"] = function( ply ) ply:ShowProfile() end, ["Copy SteamID"] = function( ply ) SetClipboardText( ply:SteamID() ) chat.AddText( color_white, ply:Nick() .. "'s SteamID (", Color( 200, 200, 200 ), ply:SteamID(), color_white, ") copied to clipboard!" ) end, _icon = "icon16/group.png", }, ["Admin Functions"] = { { ["Kick"] = { func = function( ply ) RunConsoleCommand( "ulx", "kick", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/user_delete.png" }, ["Slay"] = { func = function( ply ) RunConsoleCommand( "ulx", "slay", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/pill_delete.png" }, }, { ["Mute"] = { func = function( ply ) RunConsoleCommand( "ulx", "mute", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/comment_delete.png" }, ["Un-Mute"] = { func = function( ply ) RunConsoleCommand( "ulx", "unmute", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/comment_add.png" }, }, { ["Gag"] = { func = function( ply ) RunConsoleCommand( "ulx", "gag", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/sound_mute.png" }, ["Un-Gag"] = { func = function( ply ) RunConsoleCommand( "ulx", "ungag", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/sound.png" }, }, _icon = "icon16/shield.png", } } } hook.Run( "EZS_AddRightClickFunction", EZS.RightClickFunction.functions ) --[[ END CONFIG ]]-- for id, rank in pairs( EZS.Ranks ) do if rank.icon then rank.iconmat = Material( ("icon16/%s.png"):format( rank.icon ) ) end rank.dynamic_col = isstring( rank.color ) rank.dynamic_namecol = isstring( rank.namecolor ) end local function RealUserGroup( ply ) if ply.EV_GetRank then return ply:EV_GetRank() end return ply:GetUserGroup() end function EZS.GetRank( ply ) return EZS.Ranks[ply:SteamID()] or EZS.Ranks[RealUserGroup( ply )] end function EZS.Dynamic( rank, ply ) return (EZS.DynamicColors[rank.color] or EZS.DynamicColors.rainbow)( ply ) end function EZS.HandleShift( sb ) if EZS.ShiftLeft < 1 then return end local function ShiftLeft( parent ) local k = EZS.HideBackground and 6 or 5 local p = parent.cols[k] if not p then return end local shift = EZS.HideBackground and 1 or 0 local karma = KARMA.IsEnabled() and 0 or 1 local left = ( 5 - karma ) - EZS.ShiftLeft local posx, posy = p:GetPos() local mod = ( 50 * ( ( left + shift ) - #parent.cols ) ) p:SetPos( posx + mod, posy ) end if sb.ply_groups then -- sb_main local OldPerformLayout = sb.PerformLayout sb.PerformLayout = function( s ) OldPerformLayout( s ) ShiftLeft( s ) end else -- sb_row local OldLayoutColumns = sb.LayoutColumns sb.LayoutColumns = function( s ) OldLayoutColumns( s ) ShiftLeft( s ) EZS.HandleTags( s ) end end end function EZS.HandleTags( sb ) if EZS.ShiftOthers <= 0 then return end -- copy some from base local cx = sb:GetWide() - 90 for k,v in ipairs(sb.cols) do cx = cx - v.Width end sb.tag:SizeToContents() sb.tag:SetPos((cx - sb.tag:GetWide()/2) - EZS.ShiftOthers, (SB_ROW_HEIGHT - sb.tag:GetTall()) / 2) sb.sresult:SizeToContents() sb.sresult:SetPos((cx - 8)-EZS.ShiftOthers, (SB_ROW_HEIGHT - 16) / 2) end function EZS.AddSpacer( w ) EZS.Scoreboard:AddColumn( "", function() return "" end, w or 0 ) end function EZS.AddRankLabel( sb ) EZS.Scoreboard = sb local heading = EZS.CreateRankLabel.enabled and EZS.CreateRankLabel.text or "" local function AttachDynamicColor( label, ply ) label.HasRainbow = true label.Think = function( s ) if not IsValid( ply ) then return end local rank = EZS.GetRank( ply ) if not rank then s:SetTextColor( color_white ) return end if not rank.dynamic_col then s:SetTextColor( rank.color ) else s:SetTextColor( EZS.Dynamic( rank, ply ) ) end end sb.nick.Think = function( s ) if not IsValid( ply ) then return end local rank = EZS.GetRank( ply ) if not rank then s:SetTextColor( color_white ) return end if not rank.dynamic_col then s:SetTextColor( rank.color ) else if EZS.AllowNamesToHaveDynamicColor then s:SetTextColor( EZS.Dynamic( rank, ply ) ) end end end end if EZS.HideBackground and KARMA.IsEnabled() then -- ttt pls EZS.AddSpacer() end sb:AddColumn( heading, function( ply, label ) local rank = EZS.GetRank( ply ) local ov_name = hook.Run( "EZS_GetPlayerRankName", ply ) if ov_name and not rank then return ov_name end if not rank and not ov_name then return EZS
Hello, I've installed your addon on my server but I don't see any ranks appearing. [url]http://steamcommunity.com/sharedfiles/filedetails/?id=378244506[/url] This is ttt_easyscoreboard.lua [CODE]EZS = {} -- what's one more global to the fray EZS.Ranks = {} --[[ CONFIG ]]-- EZS.Enabled = true -- you can set a silkicon to be used, by adding a "icon" field. for example: icon = "heart" will be drawn as "icon16/heart.png" -- for a full list of silkicons, go to http://www.famfamfam.com/lab/icons/silk/previews/index_abc.png --EZS.Ranks["rank OR steamid"] = { name = "displayname", color = RankColor, namecolor = (optional), admin = are they admin? (true/false) } EZS.Ranks["Council"] = { name = "Council", color = Color ( 255, 0, 0 ), namecolor = Color( 255, 0, 0), admin = true } EZS.Ranks["superadmin"] = { name = "S. Admin", color = Color( 19, 26, 134 ), namecolor = Color( 19, 26, 134 ), admin = true } EZS.Ranks["admin"] = { name = "Admin", color = Color( 57, 188, 24 ), namecolor = Color ( 57, 188, 24 ), admin = true } EZS.Ranks["operator"] = { name = "Moderator", color = Color( 163, 33, 228 ), namecolor = Color ( 163, 33, 228 ), admin = true } EZS.Ranks["moderator"] = { name = "Moderator", color = Color( 163, 33, 228 ), namecolor = Color ( 163, 33, 228 ), admin = true } EZS.Ranks["donator"] = { name = "Donator", color = Color( 33, 202, 228 ), namecolor = Color ( admin = false } -- it would be nice if you left this in :) EZS.Ranks["STEAM_0:1:45852799"] = { name = "rejax", namecolor = Color( 100, 200, 100 ), color = color_white, icon = "bug", admin = false } -- label enable on the top? what should it say? EZS.CreateRankLabel = { enabled = true, text = "Rank" } -- what to show when the player doesnt have an entry EZS.DefaultLabel = "" -- sadly there is no way to shift the background bar over as TTT draws it manually :c EZS.HideBackground = false -- Width of the rank columns EZS.ColumnWidth = 50 -- the number of columns (not pixels!!!!!!!) to shift to the left EZS.ShiftLeft = 0 -- shift tags, search marker, etc how much? (IN PIXELS) EZS.ShiftOthers = 200 -- Show icon as well as rank text? (if possible) EZS.ShowIconsWithRanks = true -- Should the icon shift to the left to accomodate the label? EZS.ShiftIconsWithLabels = true -- if ^ is false, where should the icons go (like EZS.ShiftLeft)? EZS.ShiftIconsLeft = 0 -- How far left should we shift the icon RELATIVE to the rank text? EZS.ShiftRankIcon = 0 -- should we color the names? EZS.UseNameColors = true -- if there is no name color set, should we use the rank color? EZS.DefaultNameColorToRankColor = false -- should names get dynamic (changing) color? EZS.AllowNamesToHaveDynamicColor = true EZS.DynamicColors = {} EZS.DynamicColors.rainbow = function( ply ) local frequency, time = .5, RealTime() local red = math.sin( frequency * time ) * 127 + 128 local green = math.sin( frequency * time + 2 ) * 127 + 128 local blue = math.sin( frequency * time + 4 ) * 127 + 128 return Color( red, green, blue ) end EZS.RightClickFunction = { enabled = true, ask_admins = true, functions = { ["User Functions"] = { ["Show Profile"] = function( ply ) ply:ShowProfile() end, ["Copy SteamID"] = function( ply ) SetClipboardText( ply:SteamID() ) chat.AddText( color_white, ply:Nick() .. "'s SteamID (", Color( 200, 200, 200 ), ply:SteamID(), color_white, ") copied to clipboard!" ) end, _icon = "icon16/group.png", }, ["Admin Functions"] = { { ["Kick"] = { func = function( ply ) RunConsoleCommand( "ulx", "kick", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/user_delete.png" }, ["Slay"] = { func = function( ply ) RunConsoleCommand( "ulx", "slay", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/pill.png" }, }, { ["Mute"] = { func = function( ply ) RunConsoleCommand( "ulx", "mute", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/pill.png" }, ["Un-Mute"] = { func = function( ply ) RunConsoleCommand( "ulx", "unmute", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/pill.png" }, }, { ["Gag"] = { func = function( ply ) RunConsoleCommand( "ulx", "gag", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/sound_mute.png" }, ["Un-Gag"] = { func = function( ply ) RunConsoleCommand( "ulx", "ungag", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/sound.png" }, }, { ["Goto"] = { func = function( ply ) RunConsoleCommand( "ulx", "goto", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/sound_mute.png" }, ["Bring"] = { func = function( ply ) RunConsoleCommand( "ulx", "bring", ply:Nick():gsub( ";", "" ) ) end, icon = "icon16/sound.png" }, }, _icon = "icon16/shield.png", } } } hook.Run( "EZS_AddRightClickFunction", EZS.RightClickFunction.functions ) --[[ END CONFIG ]]-- for id, rank in pairs( EZS.Ranks ) do if rank.icon then rank.iconmat = Material( ("icon16/%s.png"):format( rank.icon ) ) end rank.dynamic_col = isstring( rank.color ) rank.dynamic_namecol = isstring( rank.namecolor ) end local function RealUserGroup( ply ) if ply.EV_GetRank then return ply:EV_GetRank() end return ply:GetUserGroup() end function EZS.GetRank( ply ) return EZS.Ranks[ply:SteamID()] or EZS.Ranks[RealUserGroup( ply )] end function EZS.Dynamic( rank, ply ) return (EZS.DynamicColors[rank.color] or EZS.DynamicColors.rainbow)( ply ) end function EZS.HandleShift( sb ) if EZS.ShiftLeft < 1 then return end local function ShiftLeft( parent ) local k = EZS.HideBackground and 6 or 5 local p = parent.cols[k] if not p then return end local shift = EZS.HideBackground and 1 or 0 local karma = KARMA.IsEnabled() and 0 or 1 local left = ( 5 - karma ) - EZS.ShiftLeft local posx, posy = p:GetPos() local mod = ( 50 * ( ( left + shift ) - #parent.cols ) ) p:SetPos( posx + mod, posy ) end if sb.ply_groups then -- sb_main local OldPerformLayout = sb.PerformLayout sb.PerformLayout = function( s ) OldPerformLayout( s ) ShiftLeft( s ) end else -- sb_row local OldLayoutColumns = sb.LayoutColumns sb.LayoutColumns = function( s ) OldLayoutColumns( s ) ShiftLeft( s ) EZS.HandleTags( s ) end end end function EZS.HandleTags( sb ) if EZS.ShiftOthers <= 0 then return end -- copy some from base local cx = sb:GetWide() - 90 for k,v in ipairs(sb.cols) do cx = cx - v.Width end sb.tag:SizeToContents() sb.tag:SetPos((cx - sb.tag:GetWide()/2) - EZS.ShiftOthers, (SB_ROW_HEIGHT - sb.tag:GetTall()) / 2) sb.sresult:SizeToContents() sb.sresult:SetPos((cx - 8)-EZS.ShiftOthers, (SB_ROW_HEIGHT - 16) / 2) end function EZS.AddSpacer( w ) EZS.Scoreboard:AddColumn( "", function() return "" end, w or 0 ) end function EZS.AddRankLabel( sb ) EZS.Scoreboard = sb local heading = EZS.CreateRankLabel.enabled and EZS.CreateRankLabel.text or "" local function AttachDynamicColor( label, ply ) label.HasRainbow = true label.Think = function( s ) if not IsValid( ply ) then return end local rank = EZS.GetRank( ply ) if not rank then s:SetTextColor( color_white ) return end if not rank.dynamic_col then s:SetTextColor( rank.color ) else s:SetTextColor( EZS.Dynamic( rank, ply ) ) end end sb.nick.Think = function( s ) if not IsValid( ply ) then return end local rank = EZS.GetRank( ply ) if not rank then s:SetTextColor( color_white ) return end if not rank.dynamic_col then s:SetTextColor( rank.color ) else if EZS.AllowNamesToHaveDynamicColor then s:SetTextColor( EZS.Dynamic( rank, ply ) ) end end end end if EZS.HideBackground and KARMA.IsEnabled() then -- ttt pls EZS.AddSpacer() end sb:AddColumn( heading, function( ply, label ) local rank = EZS.GetRank( ply ) local ov_name = hook.Run( "EZS_GetPlayerRankName", ply ) if ov_name and not rank then return ov_name end if not rank and not ov_name
Wezzminer I have the same issue djmuz, try taking out the color("keyword operator") just have the set line EZS.Rank["rank/steamID"] = { name = "scoreboard rank", color = Color( R, B, G ), namecolor = Color( R, B, G ), icon = "whatever icon you want", admin = true }
[QUOTE=RattleEDG;46985971]Wezzminer I have the same issue djmuz, try taking out the color("keyword operator") just have the set line EZS.Rank["rank/steamID"] = { name = "scoreboard rank", color = Color( R, B, G ), namecolor = Color( R, B, G ), icon = "whatever icon you want", admin = true }[/QUOTE] The section is now [CODE]EZS.Ranks["Council"] = { name = "Council", color = Color ( 255, 0, 0 ), namecolor = Color( 255, 0, 0), admin = true } EZS.Ranks["superadmin"] = { name = "S. Admin", color = Color( 19, 26, 134 ), namecolor = Color( 19, 26, 134 ), admin = true } EZS.Ranks["admin"] = { name = "Admin", color = Color( 57, 188, 24 ), namecolor = Color ( 57, 188, 24 ), admin = true } EZS.Ranks["moderator"] = { name = "Moderator", color = Color( 163, 33, 228 ), namecolor = Color ( 163, 33, 228 ), admin = true } EZS.Ranks["donator"] = { name = "Donator", color = Color( 33, 202, 228 ), namecolor = Color ( admin = false }[/CODE] However, I still have the same issue. Additionally, I'm unable to do anything when right clicking on names etc on the scoreboard as I'm pretty sure the addon allows you to do, have I messed up a variable somewhere causing it to de-activate? I assure you that the addon IS installed in the server.
[QUOTE=djmuz;46997758] However, I still have the same issue. Additionally, I'm unable to do anything when right clicking on names etc on the scoreboard as I'm pretty sure the addon allows you to do, have I messed up a variable somewhere causing it to de-activate? I assure you that the addon IS installed in the server.[/QUOTE] What is the file directory for the addon? Usually the reason it won't appear is because you placed the folder containing this addon in the wrong directory. Is there any other information you can give to us to help because it sounds like a file location issue rather than an incorrect variable. Otherwise, the scoreboard wouldn't even work in the first place, you would just get lua errors in console.
[QUOTE=RDGXTECHX;47005945]What is the file directory for the addon? Usually the reason it won't appear is because you placed the folder containing this addon in the wrong directory. Is there any other information you can give to us to help because it sounds like a file location issue rather than an incorrect variable. Otherwise, the scoreboard wouldn't even work in the first place, you would just get lua errors in console.[/QUOTE] I pasted the lua folder from TTT-EasyScoreboard-master into garrysmod/garrysmod and allowed it to merge. It's also in my addons folder.
[QUOTE=djmuz;47016392]I pasted the lua folder from TTT-EasyScoreboard-master into garrysmod/garrysmod and allowed it to merge. It's also in my addons folder.[/QUOTE] Yea that sounds like the issue then, the folder should only be in the addons folder since you've added it to a server. It sounds like you have two instances of the add-on as well and you should remove both and reinstall the add-on again by placing it into the addons folder. It shouldn't be in a directory called garrysmod/garrysmod. It's only one garrysmod folder that holds the addons folder, bin folder, cfg folder, etc... It should be something like garrysmod/addons/TTT-EasyScoreboard-master and with that it should display on the scoreboard.
[QUOTE=rejax;45533596]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 :)[/QUOTE] Wooow haven´t looked in here for a while since i stopped my server. Thanks for actually making this since i´m going to start up my server again next week. YOUR MA HERO BOI
Ok i know i already posted a request for the tag system, but could you maybe add an ulx command so people can set their tag colour? Would be sooo goood. Dont know if its possible though cause of the Rank colour which is already set. Also Tags are not persistenst.
I don't get how to work this, and what i want to do is very simple. I want to move the ranks on the scoreboard more to the left so things like "Mid Tier Donator" can fit. And i want to give people chat tags like this: [Regular] where the word is a color and the brackets are white.
[QUOTE=seabeds;47299307]I don't get how to work this, and what i want to do is very simple. I want to move the ranks on the scoreboard more to the left so things like "Mid Tier Donator" can fit. And i want to give people chat tags like this: [Regular] where the word is a color and the brackets are white.[/QUOTE] You can move them by using the shift left variable that's already listed in the code. You can turn off that background shade on it where it says EZS.hidebackground = false by changing it to true. Then you can use EZS.ShiftLeft to move the text to the left by placing a positive value, i.e. putting 10 will move it 10 columns to the left. You can leave the EZS.Hidebackground as false and still move the tag, but you'll have a random blank column in the scoreboard and it'll just look terrible. The other part to make it state the word in color and brackets are white would have to be coded in by you or rejax.
Would anyone know if this still works with the March 9 update?
It [i]should[/i] :)
Sorry, you need to Log In to post a reply to this thread.