Ulysses

Ulysses Stuff => Releases => Topic started by: Decicus on May 28, 2015, 06:16:12 AM

Title: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: Decicus on May 28, 2015, 06:16:12 AM
This is a project I started a while ago, but never got around to test and eventually forgot it. Saw it in my repos and decided I'd create a post for it on the forums.

The project aims to simplify adding custom ranks for both specific users and groups. You can style the ranks with RGB (Red, Green, Blue) color values (http://www.rapidtables.com/web/color/RGB_Color.htm) or add a "rainbow" effect that cycles through the colors.

Commands:
The commands will be listed in the following format: "command" <parameters> -- Command description/explanation
The console commands have a "ulx " prefix, such as: "ulx command".
The chat commands have a "!" prefix, such as: "!command".

The commands will be listed by permissions. This is just by default and can be edited via ULX/XGUI as any other commands.


Default settings:
The default settings can be found here, just in case you would like to reset them back to default.

Screenshot:
This has the following settings:
(https://i.decic.us/2019-01-13_lXijSC.png)

Installation:

Source code:
The most up-to-date source code can be found on the GitHub repository: https://github.com/Decicus/TTT-Scoreboard-Ranks-for-ULX (https://github.com/Decicus/TTT-Scoreboard-Ranks-for-ULX)
I would not recommend using it from that page (unless you download via the "Releases" page), as it may be untested.

Download:
The latest, stable version will be available at the bottom of this post.
Please keep in mind you have to be registered and logged in to download it directly from this thread.

Changelog:

Other notes:
Feel free to contact me either via this thread, a PM on this forum or by e-mail (alex@thomassen.xyz) if you have any questions.

Version history:
All older and current releases can be found here on the following mirrors:
Title: Re: [TTT] Scoreboard Ranks for ULX
Post by: Decicus on August 18, 2015, 09:53:52 AM
As I already wrote when I replied to your topic in the "Developers Corner" (http://forums.ulyssesmod.net/index.php/topic,8857.msg45254.html#msg45254), I would have no way of currently supporting that unless you edit the core gamemode files themselves. This is not possible as an addon.
Title: Re: [TTT] Scoreboard Ranks for ULX
Post by: Bite That Apple on August 27, 2015, 12:39:44 AM
Looks really nice, I don't entirely understand it, but looks nice.
Title: Re: [TTT] Scoreboard Ranks for ULX
Post by: Luk | twitch.tv/doctorluk on August 30, 2015, 03:42:49 PM
We're having a bit of a problem with this addon.

It randomly causes players to not see "Missing in Action" or "Confirmed Dead" players.

Here is a screenshot of how it looks for me (https://i.imgur.com/DLJPrjv.jpg), and this is a screenshot how it looks for another player (https://i.imgur.com/5f8Qtre.jpg) (note the missing players in the colums "Missing in Action" and "Confirmed Dead").

We're using the version linked in your first post and not from Github.
Title: Re: [TTT] Scoreboard Ranks for ULX
Post by: Decicus on September 02, 2015, 07:13:32 AM
We're having a bit of a problem with this addon.

It randomly causes players to not see "Missing in Action" or "Confirmed Dead" players.

Here is a screenshot of how it looks for me (https://i.imgur.com/DLJPrjv.jpg), and this is a screenshot how it looks for another player (https://i.imgur.com/5f8Qtre.jpg) (note the missing players in the colums "Missing in Action" and "Confirmed Dead").

We're using the version linked in your first post and not from Github.

Sorry for the late reply, I have been travelling for a few days.
This is an issue someone reported to me a little while back on Steam, but I never managed to find a fix for it. The only thing I do to edit the scoreboard, is to use TTT hooks, which makes me believe this is a TTT issue and not an addon issue, but I cannot confirm that 100%.

The other thing is, was that I wasn't able to fully reproduce this bug. At least not with just ULib, ULX and this addon running on TTT.
Title: Re: [TTT] Scoreboard Ranks for ULX
Post by: Bytewave on September 07, 2015, 08:42:57 AM
I'm not sure how your data structure works right now, but if this could support it, is there any chance you could add adding ranks to users by SteamID and not name? It'd help if, say, I was migrating from another addon (which I plan on doing) and moving all my tags over without having everyone sign into the server.
Also, which takes the higher priority? User rank tags or group rank tags? Basically, if I have both set for one player, which one will show? Read the git repo, derp.
Title: Re: [TTT] Scoreboard Ranks for ULX
Post by: Decicus on September 07, 2015, 12:39:17 PM
I'm not sure how your data structure works right now, but if this could support it, is there any chance you could add adding ranks to users by SteamID and not name? It'd help if, say, I was migrating from another addon (which I plan on doing) and moving all my tags over without having everyone sign into the server.

It does actually use the Steam IDs to set the rank, but for some odd reason I never added the commands to do it via Steam ID only. I'll try to update it to support adding/removing via Steam ID by tomorrow.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Decicus on September 08, 2015, 10:35:15 AM
Updated to 1.1 to support Steam IDs in commands on both the GitHub and the original post. I did test it, but let me know if you stumble upon any issues I may have missed.
Title: Re: [TTT] Scoreboard Ranks for ULX
Post by: Isaac.game on October 05, 2015, 06:35:23 PM
Sorry for the late reply, I have been travelling for a few days.
This is an issue someone reported to me a little while back on Steam, but I never managed to find a fix for it. The only thing I do to edit the scoreboard, is to use TTT hooks, which makes me believe this is a TTT issue and not an addon issue, but I cannot confirm that 100%.

The other thing is, was that I wasn't able to fully reproduce this bug. At least not with just ULib, ULX and this addon running on TTT.
I get this problem too on my TTT server and to fix it I always have to do ulx refreshranks command. maybe make it so it force's it to refresh every 20 seconds
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Decicus on October 06, 2015, 05:55:28 AM
I get this problem too on my TTT server and to fix it I always have to do ulx refreshranks command. maybe make it so it force's it to refresh every 20 seconds
That's good to know. As I said, I haven't been able to reproduce it, which makes it hard to fix. By default, "refreshranks" is essentially called every time someone joins/rejoins the server (On a mapchange, this would then occur multiple times in a short timespan due to it counting everyone as joining).

20 seconds would be a bit too often in my opinion, if I decide to make it auto-refresh, but we'll see if I can figure out how to combat this issue.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Vilobion on December 01, 2015, 09:12:13 PM
Just wanted to say that this is great, although I'm experiencing the random disappearing of MIA/Dead/All players issue. Will chime in later if I notice any patterns.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Decicus on December 01, 2015, 09:58:02 PM
Just wanted to say that this is great, although I'm experiencing the random disappearing of MIA/Dead/All players issue. Will chime in later if I notice any patterns.

It sucks that it's an issue, because I still haven't figured out what's causing it. Any more info on it would be great.

I have been working on a version 1.2 that will add a few more features, and heck, maybe the other changes I did to support those features fixes that issue, but I haven't been available enough to finish the release yet.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Vilobion on December 03, 2015, 10:46:45 AM
My gut is saying that it has to do with making changes to ranks/titles while mid-round. I've only had 3 concurrent players on my server thus far while I build it out so it's not a very good sample size.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Decicus on December 03, 2015, 10:52:24 AM
My gut is saying that it has to do with making changes to ranks/titles while mid-round. I've only had 3 concurrent players on my server thus far while I build it out so it's not a very good sample size.

People have stated that running a "ulx refreshranks" when it occurs seems to fix it (but once again, I haven't been able to reproduce the bug so I can't confirm or deny it actually works). Although the ranks are refreshed every time a rank is modified in any way, so it's weird if that would help. For now, you could try that whenever it happens, but of course I don't want that to be the 'permanent fix'.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: GenericDerek on December 10, 2015, 09:07:49 AM
I just wanted to add my input, when this happened to me, refreshing the ranks showed the MIA and KIA sections, but it wasn't moving some players into them when they were killed.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Decicus on December 12, 2015, 11:46:54 AM
I just wanted to add my input, when this happened to me, refreshing the ranks showed the MIA and KIA sections, but it wasn't moving some players into them when they were killed.

That is... interesting. It unfortunately only makes me even more confused though.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: monkeymacman on January 18, 2016, 08:51:48 PM
I know it's been more or less a month since a comment was on this addon, and it also already has problems with it not working properly, but just wanted to say, you can easily change the player's name color without changing core files by using the hook TTTScoreboardColorForPlayer (ply) .
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Decicus on January 18, 2016, 10:06:44 PM
I know it's been more or less a month since a comment was on this addon, and it also already has problems with it not working properly, but just wanted to say, you can easily change the player's name color without changing core files by using the hook TTTScoreboardColorForPlayer (ply) .
My previous replies about the matter has just been me being misinformed. I believe someone emailed me pointing out that this hook exists (http://ttt.badking.net/guides/hooks). I was planning on adding that feature for 1.2, but I just haven't gotten around to developing it yet due to other distractions.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Desasterx3 on February 11, 2016, 05:03:54 AM
Can you edit the ranks in a file aswell? like on Easy Scoreboard by Rejax. I´d like to use this Version as its a ULX one, but im not sure if theres a file where you can directly edit ranks.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Decicus on February 11, 2016, 06:55:35 AM
Can you edit the ranks in a file aswell? like on Easy Scoreboard by Rejax. I´d like to use this Version as its a ULX one, but im not sure if theres a file where you can directly edit ranks.
It's possible, but I don't recommend doing so.

All ranks are saved in a JSON-format inside <Garry's Mod server directory>/data/ttt_sb_ranks/ranks.txt

The file will probably look something like this:
Code: [Select]
{"STEAM_0:1:87654321":{"b":0,"color":"colors","r":0,"text":"Colors #1","g":255},"STEAM_0:1:12345678":{"b":0,"color":"rainbow","r":0,"text":"Rainbow #1","g":0}}
You can copy/paste all of this into something like JSBeautifier (http://jsbeautifier.org/), so it's a bit easier to read.
Doing so, it looks something like this:
Code: [Select]
{
    "STEAM_0:1:87654321": {
        "b": 0,
        "color": "colors",
        "r": 0,
        "text": "Colors #1",
        "g": 255
    },
    "STEAM_0:1:12345678": {
        "b": 0,
        "color": "rainbow",
        "r": 0,
        "text": "Rainbow #1",
        "g": 0
    }
}

And you can manually edit it this way (and run "ulx refreshranks") after editing it to update it on the server.
Keep in mind that you need to follow the proper JSON syntax 100%, as a typing error could mess up the whole ranks file.

But please, if you plan on editing any of the files used by this addon, back them up first.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: GG142 on February 14, 2016, 11:33:26 PM
So, I'm having the same problem, but might be able to give a little extra info;
So it all starts after server restart/map change. First of all, the 'rank' column width resets to 60, even if I set it to something else in the sv_tttsbranks.lua file, or with the column width command. And even weirder; the actual tags stay in the same position.
So say I've set the column width to 200, after a map change the rank column will reset to 60, but the tags will stay in the 200 position.
And then of course the entire I can't see CD or MIA people problem. All these problems seem to go away for everyone after I either update the column width with the ULX command, or refresh the ranks.

I'm currently trying to fix this in the code aswell, but without progress so far.
Good luck! :P
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Decicus on February 15, 2016, 12:03:51 AM
So, I'm having the same problem, but might be able to give a little extra info;
So it all starts after server restart/map change. First of all, the 'rank' column width resets to 60, even if I set it to something else in the sv_tttsbranks.lua file, or with the column width command. And even weirder; the actual tags stay in the same position.
So say I've set the column width to 200, after a map change the rank column will reset to 60, but the tags will stay in the 200 position.
And then of course the entire I can't see CD or MIA people problem. All these problems seem to go away for everyone after I either update the column width with the ULX command, or refresh the ranks.

I'm currently trying to fix this in the code aswell, but without progress so far.
Good luck! :P

I never really checked if the issue happened over a mapchange, but I'll do that when I have time later today. Thanks for letting me know.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: GG142 on February 15, 2016, 01:33:27 AM
So uh, holy shite; I found the start of a fix.

Basicly, in the ttt_sb_ranks.lua file, in a new line under the hook.add statement underneath the END of the refresh function, just call the refresh function.
It fixes the problem after server restart, but after map change things will go baad again.
I know that this is a very edgy way of doing things, but it works :P

Anyone not knowing lua, in the file called ttt_sb_ranks.lua there should be this, somewhere around line 18.
Code: [Select]
local function TTTSBRanksRefresh( ply )

    if not ULib.fileExists( dir ) then ULib.fileCreateDir( dir ) end
    if ULib.fileRead( dir .. ranks ) then TTTSBRanks = util.JSONToTable( ULib.fileRead( dir .. ranks ) ) end
    if ULib.fileRead( dir .. settings ) then TTTSBSettings = util.JSONToTable( ULib.fileRead( dir .. settings ) ) end
    if ULib.fileRead( dir .. groups ) then TTTSBGroups = util.JSONToTable( ULib.fileRead( dir .. groups ) ) end

    if SERVER then

        net.Start( "ULX_TTTSBRanks" )
        net.WriteTable( TTTSBRanks )
        net.WriteTable( TTTSBSettings )
        net.WriteTable( TTTSBGroups )
        if ply then

            net.Send( ply )

        else

            net.Broadcast()

        end

    end

end
hook.Add( "PlayerInitialSpawn", "ULXTTTRefresh_PlayerJoin", TTTSBRanksRefresh )
Simply add
Code: [Select]
TTTSBRanksRefresh() underneath that.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: GG142 on February 15, 2016, 04:22:25 AM
Found a complete fix;
Code: [Select]
local TTTSBGroups = {}

local function TTTSBRanksRefresh( ply )

    if not ULib.fileExists( dir ) then ULib.fileCreateDir( dir ) end
    if ULib.fileRead( dir .. ranks ) then TTTSBRanks = util.JSONToTable( ULib.fileRead( dir .. ranks ) ) end
    if ULib.fileRead( dir .. settings ) then TTTSBSettings = util.JSONToTable( ULib.fileRead( dir .. settings ) ) end
    if ULib.fileRead( dir .. groups ) then TTTSBGroups = util.JSONToTable( ULib.fileRead( dir .. groups ) ) end

    if SERVER then

        net.Start( "ULX_TTTSBRanks" )
        net.WriteTable( TTTSBRanks )
        net.WriteTable( TTTSBSettings )
        net.WriteTable( TTTSBGroups )
        if ply then

            net.Send( ply )

        else

            net.Broadcast()

        end

    end

end

function dirtyhack(ply)
MsgN( ply:Nick() .. " has spawned!" )
TTTSBRanksRefresh()
end
hook.Add( "PlayerInitialSpawn", "ULXTTTRefresh_PlayerJoin", TTTSBRanksRefresh )
hook.Add( "PlayerSpawn", "ulxttt_dirtyhack", dirtyhack )
Simply create another function, calling TTTSBRanksRefresh() but then with the hook "PlayerSpawn". :D ('Dirtyhack' is just a placeholder. Also, Decicus; consider adding this in the actual release ;) )
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Decicus on February 15, 2016, 05:01:30 AM
Found a complete fix;
-snip-
Simply create another function, calling TTTSBRanksRefresh() but then with the hook "PlayerSpawn". :D ('Dirtyhack' is just a placeholder. Also, Decicus; consider adding this in the actual release ;) )

Yeah... I already had the idea of doing it for each PlayerSpawn, but then it could potentially be called too often and in worst cases someone might notice lag (even for a split second for each spawn, but still somewhat annoying).
Although, I think implementing a similar hook for the first round after a mapchange using TTTBeginRound might be a possible fix.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: GG142 on February 15, 2016, 05:05:26 AM
Yeah... I already had the idea of doing it for each PlayerSpawn, but then it could potentially be called too often and in worst cases someone might notice lag (even for a split second for each spawn, but still somewhat annoying).
Although, I think implementing a similar hook for the first round after a mapchange using TTTBeginRound might be a possible fix.
Good! And I do agree on the point of the annoying lag spikes, but the scoreboard works :)
Still wondering why the problem was here in the first place...
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: monkeymacman on February 15, 2016, 09:34:36 PM
I feel like it must have something to do with you using gamemode.call("CreateScoreboard") or whatever but I am unfamiliar with the function. Also, why must you resend the whole file when something is updated? Why not just send what you are adding. Also, I don't see why refreshscoreboard would make the scoreboard work for the whole map because (unless this is a recently added part but I don't think so) it refreshes the scoreboard for a player on playerinitialspawn, so that might just be too early of a hook, but IDK in like 50% of the addon I have no clue why you are doing something.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: Decicus on February 15, 2016, 10:20:58 PM
I feel like it must have something to do with you using gamemode.call("CreateScoreboard") or whatever but I am unfamiliar with the function.

It's possible. I believe I added that as just a quick hack a long time ago when I noticed the scoreboard would bug out if I refreshed the scoreboard.

Also, why must you resend the whole file when something is updated? Why not just send what you are adding. Also, I don't see why refreshscoreboard would make the scoreboard work for the whole map because (unless this is a recently added part but I don't think so) it refreshes the scoreboard for a player on playerinitialspawn, so that might just be too early of a hook, but IDK in like 50% of the addon I have no clue why you are doing something.

That is mainly due to poor practices that I decided to do roughly a year ago when I started this. Over time I've realized that it's honestly a pretty bad addon, as it has become more of a hassle to maintain. Personally I don't really have the time or interest in rewriting this from scratch as I don't actually play Garry's Mod or TTT anymore, even if it would probably be easier than trying to maintain it.

PlayerInitialSpawn might be too early of a hook, I agree. I could possibly look into a different hook for this usage, but for, I might just refresh it on the beginning of a round (as well as the PlayerInitialSpawn) to see if that fixes it.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1
Post by: GG142 on February 16, 2016, 12:30:07 AM
The following seems to work for us, we hardly notice any lag spikes when people join, but maybe another hook would be nice;
Code: [Select]
local function TTTSBRanksRefresh( ply )

    if not ULib.fileExists( dir ) then ULib.fileCreateDir( dir ) end
    if ULib.fileRead( dir .. ranks ) then TTTSBRanks = util.JSONToTable( ULib.fileRead( dir .. ranks ) ) end
    if ULib.fileRead( dir .. settings ) then TTTSBSettings = util.JSONToTable( ULib.fileRead( dir .. settings ) ) end
    if ULib.fileRead( dir .. groups ) then TTTSBGroups = util.JSONToTable( ULib.fileRead( dir .. groups ) ) end

    if SERVER then

        net.Start( "ULX_TTTSBRanks" )
        net.WriteTable( TTTSBRanks )
        net.WriteTable( TTTSBSettings )
        net.WriteTable( TTTSBGroups )
        if ply then

            net.Send( ply )

        else

            net.Broadcast()

        end

    end

end
hook.Add( "PlayerInitialSpawn", "ULXTTTRefresh_PlayerJoin", TTTSBRanksRefresh )
function RefreshStart(ply)
MsgN( ply:Nick() .. " has spawned!" )
TTTSBRanksRefresh()
end
hook.Add( "PlayerSpawn", "ulxttt_RefreshStart", RefreshStart )
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: Decicus on May 18, 2016, 07:36:58 AM
Updated to version 1.1.1 with a hotfix that GG142 provided (http://forums.ulyssesmod.net/index.php/topic,8607.msg47716.html#msg47716).

Sorry it took so long.

Further updates may or may not occur as I have don't have much interested in maintaining this. If you can find a better alternative, then please feel free to use that.
If anyone wishes to continue the work for some odd reason, the source is available on GitHub (https://github.com/Decicus/TTT-Scoreboard-Ranks-for-ULX), but I highly recommend rewriting this from scratch instead of continuing from my old work.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: C.Finley on June 26, 2016, 10:46:06 AM
Can you do a name color ulx command and so on plz <3
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: Bytewave on June 26, 2016, 10:49:39 AM
Can you do a name color ulx command and so on plz <3
Commands:
The commands will be listed in the following format: "command" <parameters> -- Command description/explanation
The console commands have a "ulx " prefix, such as: "ulx command".
The chat commands have a "!" prefix, such as: "!command".

The commands will be listed by permissions. This is just by default and can be edited via ULX/XGUI as any other commands.

  • Admins:
           
    • "addrank" <player> <rank> <red> <green> <blue> -- Adds or changes rank for a player, with custom colors using RGB[/i]
    • "addrankid" <steam_id> <rank> <red> <green> <blue> -- Adds or changes rank of a Steam ID, with custom colors using RGB[/i]
    • "changerank" <player> <rank> <red> <green> <blue> -- See "addrank" - Only works for existing custom ranks.
    • "changerankid" <steam_id> <rank> <red> <green> <blue> -- See "addrankid" - Only works for existing custom ranks.
    • "removerank" <player> -- Removes someone's custom rank if it exists.
    • "removerankid" <steam_id> -- Removes someone's custom rank (using their Steam ID) if it exists.
    • "rainbowrank" <player> <rank> -- Adds/changes rank of a player and sets the color to cycle ("rainbow").
    • "rainbowrankid" <steam_id> <rank> -- Adds/changes rank of a Steam ID and sets the color to cycle ("rainbow").
       
  • Superadmins:
    • "addgrouprank" <group name> <rank> <red> <green> <blue> -- Adds or changes rank for a group, with custom colors using RGB
    • "removegrouprank" <group name> -- Removes a custom group rank.
    • "rainbowgrouprank" <group name> <rank> -- Adds/changes rank of a group and sets the color to cycle ("rainbow").
    • "columnname" <column name/title> -- Changes the column name/title that is displayed at the top of the scoreboard.
    • "defaultrank" <rank> -- Changes the default rank for players and groups that have no custom rank. This rank is RGB: 255, 255, 255 (white).
    • "columnwidth" <width> -- Changes the column width in the scoreboard.
       
Unless you mean in chat, in which case that would be a separate addon.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: C.Finley on June 26, 2016, 10:51:02 AM
No he only does rank colors i mean add a name color one your rank is basically color = Color(....) while name = color( one for rank one for name like easy scoreboard cause i know you took the rgb setup from there so example EZS.Ranks["sadmin"] = { name = "Super Admin", color = Color( 255, 0, 255 ), namecolor = "rainbow", admin = true }
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: Bytewave on June 26, 2016, 10:52:22 AM
No he only does rank colors i mean add a name color one
Ooooh, wait, I misread that.
Decicius is online... *poke*?
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: Decicus on June 26, 2016, 11:00:35 AM
Can you do a name color ulx command and so on plz <3

Sadly, my interest in this addon isn't as what it used to be, so I will have to say no to that (at least in the foreseeable future). Sorry.

As I've mentioned before, the addon is open-source and listed on GitHub (https://github.com/Decicus/TTT-Scoreboard-Ranks-for-ULX) - If anyone wishes to modify it for one reason or another, the license allows them to.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: Bytewave on June 26, 2016, 11:03:08 AM
Sadly, my interest in this addon isn't as what it used to be, so I will have to say no to that (at least in the foreseeable future). Sorry.

As I've mentioned before, the addon is open-source and listed on GitHub (https://github.com/Decicus/TTT-Scoreboard-Ranks-for-ULX) - If anyone wishes to modify it for one reason or another, the license allows them to.
Would you still accept pull requests, or should the repo be forked and re-released?
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: Decicus on June 26, 2016, 11:03:39 AM
Would you still accept pull requests, or should the repo be forked and re-released?

Pull requests will be accepted, after I've been able to look over them.

EDIT: Rephrasing.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: C.Finley on June 26, 2016, 11:26:50 AM
 :'( :'( :'( :'( :'( :'( :'(
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: dimdu54 on July 22, 2016, 09:53:58 AM
Thx for this mate really needed this :D
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: ozzyos2009 on November 30, 2016, 08:32:25 PM
Firstly, I apologize for replying to this as it's 5 months since the last reply. I also apologize as I'm new and learning lua.

This is in regards to a colored name on the scoreboard. I had an old script that worked, I just had to put this in AddCSLuaFile("tg_ttt_scoreboard.lua")

Now I noticed under lua/autorun/client/cl_tttsbrank.lua you created  a new scoreboard. Would I simply change tg_ttt_scoreboard.lua to cl_ttsbranks.lua? Or is it more complex than that?
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: Decicus on December 02, 2016, 01:23:41 PM
Firstly, I apologize for replying to this as it's 5 months since the last reply. I also apologize as I'm new and learning lua.

This is in regards to a colored name on the scoreboard. I had an old script that worked, I just had to put this in AddCSLuaFile("tg_ttt_scoreboard.lua")

Now I noticed under lua/autorun/client/cl_tttsbrank.lua you created  a new scoreboard. Would I simply change tg_ttt_scoreboard.lua to cl_ttsbranks.lua? Or is it more complex than that?

Unless it's based off my cl_tttsbranks.lua file, then it won't work like that. You would have to modify the addon to support colored names, which I never got around to adding and as I mentioned; I sadly don't have any interest in working on this addon anymore. Sorry.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: wolwos40u on May 19, 2017, 03:21:19 PM
I deleted and reinstalled addon now every rank are disappeared in scoreboard and addon seems not installed. (commands are not working and there's nothing on ULX menu)
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: Decicus on May 21, 2017, 02:51:19 PM
I deleted and reinstalled addon now every rank are disappeared in scoreboard and addon seems not installed. (commands are not working and there's nothing on ULX menu)

That seems like the addon hasn't loaded at all, so maybe you didn't install it correctly?

You could try changing the name of the folder inside "addons" to all-lowercase (something like ttt_sb_ranks instead of TTT-Scoreboard-Ranks-for-ULX-1.1.1), as I believe that is an issue on some servers.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: ryanogamer on May 27, 2017, 05:25:50 PM
Thanks for this
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.1.1
Post by: wolwos40u on May 30, 2017, 01:49:18 PM
Unless it's based off my cl_tttsbranks.lua file, then it won't work like that. You would have to modify the addon to support colored names, which I never got around to adding and as I mentioned; I sadly don't have any interest in working on this addon anymore. Sorry.
Worked for me thank you so much.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: Decicus on January 13, 2019, 12:16:18 PM
Hiya, its been a while!

I just released a new version (1.2.0) that adds a new command (since someone requested me to do so): "ulx defaultcolor", which allows you to specify the color of the default rank.
No idea if anyone else wants this, but hey ¯\_(?)_/¯

Now onto other things: At some point I wanna develop a 2.0 version of this addon that should clean up some code and hopefully improve the performance of it (like not sending all the ranks for all the players TO all the players, on every minor change - lol).

I've created a GitHub issue (https://github.com/Decicus/TTT-Scoreboard-Ranks-for-ULX/issues/7) so I can keep track of changes and whatnot. Can't guarantee when I'll start, or if I'll start at all, but for now it seems like a nice little project to be working on again.

Anyways, I hope whoever still uses this addon at least finds it useful. As far as I know it still works to this day without any major issues, and at least I can be happy about that :D
If anyone is curious about something, feel free to reply here, PM me or email me. :)

Also, I'm sorry if this is considered a bit of a necro bump :^)
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: Hack4YouM8 on January 14, 2019, 12:59:18 PM

It does not work for me :/
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: Decicus on January 14, 2019, 01:08:34 PM
It does not work for me :/

What exactly doesn't work? The addon?
How did you install it?
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: Hack4YouM8 on January 15, 2019, 09:33:48 AM
What exactly doesn't work? The addon?
How did you install it?


I installed ULX, ULib and Scoreboard Ranks manually, so downloaded and dragged them into the addon folder.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: Decicus on January 15, 2019, 09:57:11 AM

I installed ULX, ULib and Scoreboard Ranks manually, so downloaded and dragged them into the addon folder.

Hmm... Does ULX work in general?
What is the scoreboard ranks folder named? I know there's a longstanding issue with Garry's Mod servers hosted on Linux and capital letters in addon foldernames.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: Hack4YouM8 on January 15, 2019, 10:44:15 AM
Hmm... Does ULX work in general?
What is the scoreboard ranks folder named? I know there's a longstanding issue with Garry's Mod servers hosted on Linux and capital letters in addon foldernames.

Folder name: TTT-Scoreboard-Ranks-for-ULX-1.1.1
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: Decicus on January 15, 2019, 10:45:13 AM
Folder name: TTT-Scoreboard-Ranks-for-ULX-1.1.1

Try changing it to something like: "ttt-scoreboard-ranks-for-ulx" - all lowercase
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: SuperGamerKai on September 22, 2019, 10:04:03 PM
Thank god this topic isn't locked. I hope I'm not breaking any rules by posting here, but I was wondering if there's a setting or something so the rank will show up in chat? I own a server that while it is public, we're basically trying to replicate a few settings of a server my friends and I used to frequent on that has since died (no idea why), and while I'm pretty sure the dead server used your addon as well, the ranks don't show up in chat. Is it because the ranks are different from the ulx groups?
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: MrPresident on September 22, 2019, 11:51:03 PM
Having ranks show in chat wouldn't be a part of this scoreboard. That would be something different.
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: SuperGamerKai on September 23, 2019, 10:33:04 AM
Having ranks show in chat wouldn't be a part of this scoreboard. That would be something different.

Oh, then I'm completely lost on how to make em show up in chat ^^
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: Yami on December 19, 2019, 05:55:30 AM
One thing I still don't get, I never had on my server and someone that sent a screenshot in this thread also didn't have but you show to have Decicus is the column with the name title/rank, which I can't seem to get working with your addon or even just searching through the TTT default files I can't find.

help x.x
Title: Re: [TTT] Scoreboard Ranks for ULX - Version 1.2.0
Post by: Decicus on December 20, 2019, 06:39:58 AM
One thing I still don't get, I never had on my server and someone that sent a screenshot in this thread also didn't have but you show to have Decicus is the column with the name title/rank, which I can't seem to get working with your addon or even just searching through the TTT default files I can't find.

help x.x

I'm not sure I understand what you mean...

You need the addon downloaded and installed correctly for ranks to work to begin with. It isn't included with TTT, but it NEEDS TTT to even work.

If you've placed the addon folder inside of "garrysmod/addons", then make sure the addon folder name is something all-lowercase such as "ttt_sb_ranks" and not "TTT-Scoreboard-Ranks-for-ULX"