Garry's Mod

Garry's Mod

Custom Roles for TTT
466 Comments
Malivil  [author] 17 Nov, 2024 @ 7:09pm 
@Jolly: The base game does not have one which is why we added one in CR4TTT. It's more likely you have another mod that does it as those are quite popular =)
Jamiroquai 17 Nov, 2024 @ 12:48am 
I've noticed that if I have "ttt_death_notifier_enabled" set to 1, the chat displays two separate notifications of who my killer was. I assume this is because it's displaying the notifications from both the base TTT gamemode and the addon at the same time. Is there any way to disable the one from the base game? I haven't been able to find a server convar for it anywhere.
Ifrit 27 Oct, 2024 @ 6:23pm 
WARNING! Carry on reading! Or you will die, even if you only looked at the word warning! Once there was a little girl called Clarissa, she was ten-years-old and she lived in a mental hospital, because she killed her mom and her dad. She got so bad she went to kill all the staff in the hospital so the More- government decided that best idea was to get rid of her so they set up a special room to kill her, as humane as possible but it went wrong the machine they were using went wrong. And she sat there in agony for hours until she died. Now every week on the day of her death she returns to the person that reads this letter, on a monday night at 12:00a.m. She creeps into your room and kills you slowly, by cutting you and watching you bleed to death. Now send this to ten other profiles on this one site, and she will haunt someone else who doesn't. This isn't fake. apparently, if u copy and paste this to ten comments in the next ten minutes u will have the best of your life
Malivil  [author] 22 Sep, 2024 @ 7:51pm 
@Reggie: If you join our discord (linked above) there is a script in the #faq channel called "Equipment Fix" which will fix that error.
Reggie 22 Sep, 2024 @ 7:27pm 
[Custom Roles for TTT] WARNING: Addon is using equipment code incompatible with CR4TTT. Using util.BitSet override fallback. Contact CR4TTT authors with this error please.
1. unknown - gamemodes/terrortown/gamemode/cl_search.lua:676
2. band - [C]:-1
3. BitSet - gamemodes/terrortown/gamemode/util.lua:396
4. v - gamemodes/terrortown/entities/entities/ttt_a_second_chance.lua:407
5. Call - lua/includes/modules/hook.lua:96
6. unknown - gamemodes/terrortown/gamemode/cl_search.lua:674
7. xpcall - [C]:-1
8. func - gamemodes/terrortown/gamemode/cl_search.lua:673
9. unknown - lua/includes/extensions/net.lua:38
Malivil  [author] 18 Sep, 2024 @ 4:42am 
They don't persist because they aren't marked FCVAR_ARCHIVE
Tim | Mineotopia 18 Sep, 2024 @ 2:19am 
just FYI, settings in the ULX menu DO persist, we had the same issue with TTT2. Things that interfere with persistence:
- having the same settings in the server.cfg file, each mapreload/restart loads them from that file again
- not shutting the server off properly, killing the process instead of using "quit" prevents them from being saved
- having them in the gamemode file so that they are added to the "start game" page in GMod also prevents them from being saved - this one took a while to figure out
Malivil  [author] 25 Aug, 2024 @ 4:37am 
You can toggle them on and off via the ULX menu, but those settings don't persist so you need to put them in the config. That's how vanilla TTT works as well.
Prof.Profanity 25 Aug, 2024 @ 12:42am 
i agree with ZeRelic, that and i ask for all roles enabled because me and my P2P servers prefer the chaos :steamhappy:
ZeRelic 24 Aug, 2024 @ 10:47pm 
It would be nice to be able to toggle the roles on and off through the menu...not just by setting the config.
Malivil  [author] 24 Aug, 2024 @ 4:53am 
There is not because there are around 50 roles and that would be chaos.
We feel it's better to choose the roles you want individually and enable them via "ttt_rolename_enabled 1" in your config file (listenserver.cfg or server.cfg)
Prof.Profanity 24 Aug, 2024 @ 4:11am 
Is there a command to enable all roles at once? There doesn't seem to be an easy way to activate them
SilkMoth 12 Aug, 2024 @ 8:16am 
thank you!
Malivil  [author] 12 Aug, 2024 @ 7:38am 
To disable that, set ttt_detectives_search_only 0
SilkMoth 12 Aug, 2024 @ 7:33am 
i have a problem where i cant turn off that only detectives can search bodies. i checked the list of ConVars and theres only a one for spectators.
the only other thing i can find is the flavor text and if searching should be shared but i cant turn off searching being disabled. all everyone can do is call a detective
CupcakeKO 8 Aug, 2024 @ 1:16pm 
Oh well, I appreciate the quick confirmation
Malivil  [author] 8 Aug, 2024 @ 1:08pm 
No, I don't know of any. We make some pretty extensive changes to the UI for our various roles and features and I don't believe anything has kept up to date with them.
CupcakeKO 8 Aug, 2024 @ 12:52pm 
Hi, do you know any HUD addons which are compatible with this right now? I can't seem to find up-to-date information anywhere else
Thanks
Malivil  [author] 12 Jul, 2024 @ 3:06pm 
Happy to help =)
TheLonelyInuit 12 Jul, 2024 @ 12:03pm 
That solved it, thanks man, really appreciated.
Malivil  [author] 12 Jul, 2024 @ 10:06am 
Make sure your server and client are fully up to date.
TheLonelyInuit 12 Jul, 2024 @ 9:33am 
Hi I've been having an error with custom roles that seems to brick my TTT server, the error is 'gamemodes/terrortown/gamemode/player.lua:1273: attempt to call upvalue 'PlayerIterator' (a nil value) ' and this just loops, preventing any other command occuring. I've tried re-installing the mod to no avail
Malivil  [author] 15 Jun, 2024 @ 8:41am 
Haha, no worries. You can use that mod, just disabling the round end slow mo should fix it.
Rawzen 15 Jun, 2024 @ 8:32am 
Sorry for the late reply, yes I did have that in my collection. I just tested it with that mod disabled and it worked perfectly fine. Thank you so much! That was sending me mad trying to figure out what could be causing it, I should of asked earlier haha
Malivil  [author] 15 Jun, 2024 @ 4:02am 
Smiler: Do you have wget's tweak addons with the round end slomo enabled? That is known to cause that problem.
Rawzen 14 Jun, 2024 @ 7:27pm 
Hi sorry to bother you guys but I've been having an issue where both the drunk and the clown don't trigger when one team loses and I was wondering if you'd know what could be causing this or if there is a convar I'm missing that isn't in the provided convars?

Example all traitors die and the drunk and clown get the innocent victory screen without either joining the traitor team for the drunk or triggering "kill them all" for the clown

I double checked that I don't have any addons that conflict as listed in your description
Sloonum 13 Jun, 2024 @ 10:26am 
Thanks for the tip!
I'll check it out tomorrow
Malivil  [author] 13 Jun, 2024 @ 9:32am 
I'd have to take a deeper look but you might be able to fix both of those problems using the PlayerCanPickupWeapon hook
Sloonum 13 Jun, 2024 @ 9:00am 
Wow quick response!
Thanks for checking and the reply.
Is there anything standing out to you regarding the death matching spectators (referred to in the UI as "ghostdm") not being able to have any weapons?
From what I could gather while I was playing around with it:
- Regular living TTT players can be given the "ghost" weapons that the Spectator Deathmatch adds (via the console "give" command) and they appear to work as a ghost weapon should (they shoot and reload etc but don't leave bullet decals in surfaces and don't move props or detonate explosives)
- GhostDM players apparently cannot be given any weapons (I've tried both regular TTT and the 'ghost' weapons by the 'give' command but it seemingly does nothing)

Otherwise both add-ons appear to work fine together (other than the duplicate convar for cross hair)
Malivil  [author] 13 Jun, 2024 @ 7:40am 
From a quick look through their code it looks like they override GAMEMODE:PlayerBindPress which would break some of our keybinding logic (potentially sprinting) and ScoreGroup which would break our modified scoreboard organization and role configurations regarding who can see when a player is MIA.

There might be other issues but those are ones I just found reading through real quick.
Sloonum 13 Jun, 2024 @ 7:15am 
Love this add-on, top notch stuff.
It would be extra smashing if it worked with the Spectator Deathmatch add-on but I see it in the list of incompatibles; is that an issue with this add-on or with the Spectator Deathmatch add-on?
It seems so close to working as the only issue I can see at the moment is that the Spectator Deathmatch Ghosts cannot have weapons equipped - otherwise there doesn't seem to be a problem with these two add-ons working together (haven't done a great deal of testing though).
I've been trying to pick apart the code to see if I can implement a fix myself but so far nothing is jumping out at me - any suggestions or clarifications (especially from the author) would be greatly appreciated!
Malivil  [author] 22 May, 2024 @ 12:33pm 
For a listen server (you open GMod and click "Start Game"), the config file is garrysmod/cfg/listenserver.cfg

You copy the "_enabled" convar for each role you want to enable from the list of convars (https://github.com/Custom-Roles-for-TTT/TTT-Custom-Roles/blob/release/CONVARS.md#Server-Configurations) and change the "0" to a "1" for each one.
DerKety 22 May, 2024 @ 11:44am 
how do i add the roles when i installed the Mod over Steam Workshop i cant find the ConVar file?
please help i cant take it anymore my friends are rating Greek letters
Malivil  [author] 22 May, 2024 @ 4:27am 
We've heard a couple people have that issue but we haven't figured out why it's happening.
In one case splitting the config file up into multiple and chaining them using "exec config2.cfg" etc. helped, in another case that is what caused the problem. If you join our discord server we might be able to dive into it deeper to try and figure it out.
InDoGahlot 21 May, 2024 @ 8:11pm 
Has anyone had the issue that this causes people joining the server to get stuck on retrieving server info? It started happening accouple weeks ago during a weekly game, and it causes nobody to be able to connect at all with the only addon enabled being custom roles.
Malivil  [author] 13 May, 2024 @ 4:32am 
Ha, OK well that's a new one. I haven't heard of that before.
Pickel Surprise 12 May, 2024 @ 8:39pm 
It was something literally just called "Hide names and death notices" or something along those lines. Maybe it was part of some mod pack I subscribed to, cuz I don't think I would have picked that up intentionally lol.
Malivil  [author] 12 May, 2024 @ 7:11pm 
No worries. Glad you figured it out. Out of curiosity, what was it?
Pickel Surprise 12 May, 2024 @ 6:58pm 
I'm stupid, it was caused by another addon that I hadn't even realized I subscribed to. Thanks for the quick response though!
Malivil  [author] 12 May, 2024 @ 5:46pm 
The only way for a player's name to be hidden there in CR4TTT is if they are disguised.
I would guess it's some other addon that's doing it. If you join our Discord I'd be happy to help try and find it =)
Pickel Surprise 12 May, 2024 @ 5:31pm 
Hey, trying this out again after not playing much for a few years. Is there a setting in the mode that causes player names to not be displayed when you aim at each other? Or is that being caused by an error with my addons or something?
Pseudotriangle 3 May, 2024 @ 6:04pm 
Oh absolutely! I meant to join earlier but it slipped my mind lol
Malivil  [author] 3 May, 2024 @ 5:49pm 
We mostly just use the normal PlayerLoadout hook. If you join our Discord server we can help figure out what's going on and get it working though =)
Pseudotriangle 3 May, 2024 @ 5:27pm 
Strange question: Do you guys use any custom hooks for altering the default TTT loadouts? I'm trying to fix this old magneto stick mod and it's tripping up on the replacement script.
Malivil  [author] 18 Apr, 2024 @ 5:38pm 
Yup, that's a warning from our addon telling you about an incompatibility with another addon (in this case, TTT Bots 2.0).
BlackLaser 18 Apr, 2024 @ 5:22pm 
[Custom Roles for TTT] WARNING: Addon 'TTT Bots 2.0' is incompatible with Custom Roles for TTT!

1. fn - gamemodes/terrortown/gamemode/incompatible_addons.lua:125
2. unknown - lua/ulib/shared/hook.lua:109
[Custom Roles for TTT] Reason: Breaks body searching and role-specific features

1. fn - gamemodes/terrortown/gamemode/incompatible_addons.lua:126
2. unknown - lua/ulib/shared/hook.lua:109
Malivil  [author] 9 Mar, 2024 @ 10:43am 
Actually, same with A Second Chance and The Little Helper. They are all by the same person
Malivil  [author] 9 Mar, 2024 @ 10:41am 
Blue Bull definitely does cause the same error. You will either need to remove it or I can give you a script to fix it.

If you join our discord server (linked above) we can talk about this more easily
Galsaurus 9 Mar, 2024 @ 10:30am 
i change the mod to the stig works fine

problem is that also the mods:

a second chance
blue bull
the litlle helper
slowmotion

also creates this error
Galsaurus 9 Mar, 2024 @ 8:33am 
ok thank you :CoreKeeper_Gold_Bar: