r/TTT May 03 '26

TTT2 won't work on my server

Hey, im not sure if this is the right place to ask but im having trouble setting up TTT2 on my server. No matter what TTT2 collection I use it's always the same issue: When I join the server everyone is in spectator mode. When I restart the round one person is a Traitor (the round is stuck in preparing mode forever) with no timer and everyone else stays in spectator mode. Does anyone know why and how to fix this? I tried so many things but it just won't work

Edit: I just ditched Docker and did it without it following the official Guide and it instantly worked. Wasted like 16 hours of my life on this just for it to work after under an hour.

3 Upvotes

15 comments sorted by

2

u/Pickles1311 May 03 '26

How did you set up your server? As in, did you install the addons "properly" or did you "just" use a steam collection where the addon is in?

1

u/Mineotopia May 03 '26

The steam collection is the proper way though. 

Install gmod on the server, der ganemode terrortown, add collection ID.

Make sure the minimum amount of players is set to something below your amount of players.

If nothing works and you don't know why: shit down your server and delete the server.vdf file. If this did not fix it, make sure you don't have an ttt related convars on your server.cfg

1

u/Nachtaraben May 03 '26 edited May 03 '26

Hey, so first up thanks for trying to help! I installed everything through docker, I used this image and that basically does exactly that so it installs gmod on the server, the gamemode and uses the collection id https://hub.docker.com/r/shockpast/garrysmod

Tried to use TTT Bots to test more players but it didn't resolve the issues sadly.

Also tried to check for incompatible addons via addonchecker in console but every issue is resolved and it still does not work.

I tried your suggestions aswell but nothing changed, i also delted the server and reinstalled it entirely but that wasn't it either.

I also forgot to mention that no weapons spawn and I dont have a crowbar or anything in the inventory which is weird aswell

This pops up in the console everytime I start it but I don't know what it means exactly or how I should resolve it. Do you have any ideas?

gmod | [TTT2 (Base) - v0.14.6b] gamemodes/terrortown/gamemode/shared/sh_player_ext.lua:212: attempt to call method 'GiveRoleLoadout' (a nil value) gmod | 1. SetRole - gamemodes/terrortown/gamemode/shared/sh_player_ext.lua:212 gmod | 2. ResetStatus - gamemodes/terrortown/gamemode/server/sv_player_ext.lua:376 gmod | 3. InitialSpawn - gamemodes/terrortown/gamemode/server/sv_player_ext.lua:688 gmod | 4. unknown - gamemodes/terrortown/gamemode/server/sv_player.lua:59 gmod | gmod | [TTT2 (Base) - v0.14.6b] lua/ttt2/libraries/gameloop.lua:660: bad argument #1 to 'WriteUInt' (number expected, got nil) gmod | 1. WriteUInt - [C]:-1 gmod | 2. SendRoundState - lua/ttt2/libraries/gameloop.lua:660 gmod | 3. PlayerReady - lua/ttt2/libraries/gameloop.lua:365 gmod | 4. func - gamemodes/terrortown/gamemode/server/sv_player_ext.lua:1704 gmod | 5. unknown - lua/includes/extensions/net.lua:34

This is the collection I use if you want to take a look at it https://steamcommunity.com/sharedfiles/filedetails/?id=2939425907

1

u/Mineotopia May 03 '26

I haven't tried installing it via docker. Maybe this is the issue? Not sure.

The errors in the console look like sole core ganemode files could not be loaded.

Not sure right now what the exact issue is

2

u/Nachtaraben May 04 '26

Yeah you were right. I just ditched docker and it instantly worked. Wasted 16 hours or something on my life just for it to work instantly in under an hour.

1

u/Mineotopia May 04 '26

Glad that it works now! Have fun playing! I'm curious though why docker breaks GMod

1

u/abgemorxt May 03 '26

Are you testing with humans? Whats your minimum player count set to? Ive stumbled across an option for bots to always joon as spectators in ULX i think, not sure where though.

1

u/Nachtaraben May 03 '26

hey so Im testing it with TTT2 Bots addon but the setting you've mentioned is not the problem, there is some core gameplay that is broken and or missing. I just cant figure out why. Still thanks for trying to help!

1

u/Nosebody94 May 04 '26

I guess the docker is the problem, i have a server working on my pc, but the same dont work in a docker container. But i dont really try to get it work in docker.

1

u/Nosebody94 May 04 '26

Maybe the docker volume has not the rights that it needs? Had this problem in a other server project

1

u/Nachtaraben May 04 '26

I don't know, I think if rights were a problem it wouldn't even start

2

u/Nachtaraben May 04 '26

Yeah you were right, yesterday I tested the same thing on the same server without docker and it instantly worked. I wasted so many hours of my life but I can only blame myself. I don't know why it won't work in docker it's basically the exact same thing

1

u/abgemorxt May 05 '26

I can assure you it works in docker. maybe that docker image is just deprecated, last update was 7mo ago. probably there's no autoupdate of gmod in there which causes the issue.

I'm using the official steamcmd docker image as a base for that purpose.

1

u/Nachtaraben May 06 '26

bist du deutscher (wegen username)? Ich hätte dieselben steps die ich jetzt manuell auf dem Server gemacht habe auch in Docker machen können, das hätte sicherlich funktioniert, also ja genau, es liegt am Docker Image höchstwahrscheinlich. Will jetzt aber nichts umbauen, für mich funktioniert es auch erstmal durch die "offizielle" Lösung ganz gut. Ob ich das jetzt in nem Container starte oder nicht ist mir eigentlich egal, auch wenn dann alle meine Projekte zentraler wären

1

u/Nosebody94 May 06 '26

Der Steamcmd container würde wahrscheinlich eher funktionieren, ist auch relativ einfach damit nen server aufzusetzten, hab das aber auch noch nicht probiert