Garry's Mod
Custom Roles for TTT
466 commenti
Malivil  [autore] 17 nov 2024, ore 19:09 
@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, ore 0:48 
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 ott 2024, ore 18:23 
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  [autore] 22 set 2024, ore 19:51 
@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 set 2024, ore 19:27 
[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  [autore] 18 set 2024, ore 4:42 
They don't persist because they aren't marked FCVAR_ARCHIVE
Tim | Mineotopia 18 set 2024, ore 2:19 
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  [autore] 25 ago 2024, ore 4:37 
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 ago 2024, ore 0:42 
i agree with ZeRelic, that and i ask for all roles enabled because me and my P2P servers prefer the chaos :steamhappy:
ZeRelic 24 ago 2024, ore 22:47 
It would be nice to be able to toggle the roles on and off through the menu...not just by setting the config.
Malivil  [autore] 24 ago 2024, ore 4:53 
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 ago 2024, ore 4:11 
Is there a command to enable all roles at once? There doesn't seem to be an easy way to activate them
SilkMoth 12 ago 2024, ore 8:16 
thank you!
Malivil  [autore] 12 ago 2024, ore 7:38 
To disable that, set ttt_detectives_search_only 0
SilkMoth 12 ago 2024, ore 7:33 
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 ago 2024, ore 13:16 
Oh well, I appreciate the quick confirmation
Malivil  [autore] 8 ago 2024, ore 13:08 
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 ago 2024, ore 12:52 
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  [autore] 12 lug 2024, ore 15:06 
Happy to help =)
TheLonelyInuit 12 lug 2024, ore 12:03 
That solved it, thanks man, really appreciated.
Malivil  [autore] 12 lug 2024, ore 10:06 
Make sure your server and client are fully up to date.
TheLonelyInuit 12 lug 2024, ore 9:33 
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  [autore] 15 giu 2024, ore 8:41 
Haha, no worries. You can use that mod, just disabling the round end slow mo should fix it.
Rawzen 15 giu 2024, ore 8:32 
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  [autore] 15 giu 2024, ore 4:02 
Smiler: Do you have wget's tweak addons with the round end slomo enabled? That is known to cause that problem.
Rawzen 14 giu 2024, ore 19:27 
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 giu 2024, ore 10:26 
Thanks for the tip!
I'll check it out tomorrow
Malivil  [autore] 13 giu 2024, ore 9:32 
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 giu 2024, ore 9:00 
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  [autore] 13 giu 2024, ore 7:40 
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 giu 2024, ore 7:15 
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  [autore] 22 mag 2024, ore 12:33 
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 mag 2024, ore 11:44 
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  [autore] 22 mag 2024, ore 4:27 
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 mag 2024, ore 20:11 
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  [autore] 13 mag 2024, ore 4:32 
Ha, OK well that's a new one. I haven't heard of that before.
Pickel Surprise 12 mag 2024, ore 20:39 
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  [autore] 12 mag 2024, ore 19:11 
No worries. Glad you figured it out. Out of curiosity, what was it?
Pickel Surprise 12 mag 2024, ore 18:58 
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  [autore] 12 mag 2024, ore 17:46 
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 mag 2024, ore 17:31 
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 mag 2024, ore 18:04 
Oh absolutely! I meant to join earlier but it slipped my mind lol
Malivil  [autore] 3 mag 2024, ore 17:49 
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 mag 2024, ore 17:27 
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  [autore] 18 apr 2024, ore 17:38 
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, ore 17:22 
[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  [autore] 9 mar 2024, ore 10:43 
Actually, same with A Second Chance and The Little Helper. They are all by the same person
Malivil  [autore] 9 mar 2024, ore 10:41 
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, ore 10:30 
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, ore 8:33 
ok thank you :CoreKeeper_Gold_Bar: