Garry's Mod
Custom Roles for TTT
466 件のコメント
Malivil  [作成者] 2024年11月17日 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 2024年11月17日 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 2024年10月27日 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  [作成者] 2024年9月22日 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 2024年9月22日 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  [作成者] 2024年9月18日 4時42分 
They don't persist because they aren't marked FCVAR_ARCHIVE
Tim | Mineotopia 2024年9月18日 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  [作成者] 2024年8月25日 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 2024年8月25日 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 2024年8月24日 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  [作成者] 2024年8月24日 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 2024年8月24日 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 2024年8月12日 8時16分 
thank you!
Malivil  [作成者] 2024年8月12日 7時38分 
To disable that, set ttt_detectives_search_only 0
SilkMoth 2024年8月12日 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 2024年8月8日 13時16分 
Oh well, I appreciate the quick confirmation
Malivil  [作成者] 2024年8月8日 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 2024年8月8日 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  [作成者] 2024年7月12日 15時06分 
Happy to help =)
TheLonelyInuit 2024年7月12日 12時03分 
That solved it, thanks man, really appreciated.
Malivil  [作成者] 2024年7月12日 10時06分 
Make sure your server and client are fully up to date.
TheLonelyInuit 2024年7月12日 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  [作成者] 2024年6月15日 8時41分 
Haha, no worries. You can use that mod, just disabling the round end slow mo should fix it.
Rawzen 2024年6月15日 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  [作成者] 2024年6月15日 4時02分 
Smiler: Do you have wget's tweak addons with the round end slomo enabled? That is known to cause that problem.
Rawzen 2024年6月14日 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 2024年6月13日 10時26分 
Thanks for the tip!
I'll check it out tomorrow
Malivil  [作成者] 2024年6月13日 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 2024年6月13日 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  [作成者] 2024年6月13日 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 2024年6月13日 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  [作成者] 2024年5月22日 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 2024年5月22日 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  [作成者] 2024年5月22日 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 2024年5月21日 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  [作成者] 2024年5月13日 4時32分 
Ha, OK well that's a new one. I haven't heard of that before.
Pickel Surprise 2024年5月12日 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  [作成者] 2024年5月12日 19時11分 
No worries. Glad you figured it out. Out of curiosity, what was it?
Pickel Surprise 2024年5月12日 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  [作成者] 2024年5月12日 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 2024年5月12日 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 2024年5月3日 18時04分 
Oh absolutely! I meant to join earlier but it slipped my mind lol
Malivil  [作成者] 2024年5月3日 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 2024年5月3日 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  [作成者] 2024年4月18日 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 2024年4月18日 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  [作成者] 2024年3月9日 10時43分 
Actually, same with A Second Chance and The Little Helper. They are all by the same person
Malivil  [作成者] 2024年3月9日 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 2024年3月9日 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 2024年3月9日 8時33分 
ok thank you :CoreKeeper_Gold_Bar: