u/Baguetteuwu

▲ 1 r/NixOS

Cannot get Team Fortress 2 Dedicated Server Running (Source Dedicated Server)

I was wondering if anyone had experience with running any source dedicated servers (tf2, hl2mp, gmod, etc) on NixOS, I recently transitioned from Debian not too long ago.

After successfully downloading the Team Fortress 2 server using the steamcmd package, I symlinked the steamclient.so files from the ~/.steam/steam/linux64 & ~/.steam/steam/linux32 folders to ~/.steam/steam/sdk64 ~/.steam/steam/sdk32 respectively as the server looks for those files on start.

Running the server binary directly doesn't work, so I tried using steam-run to start with the following command
steam-run ./srcds_run_64 -game tf -console +map ctf_2fort +maxplayers 24

The server initially started, but then segfaulted with the error

server_srv.so loaded for "Team Fortress"
Could not load: replay_srv.so
FATAL ERROR: Could not load: replay_srv.so
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
/home/srcds/tf2-1/srcds_run_64: line 335: 63304 Segmentation fault (core dumped) $HL_CMD

I have also tried using nix-ld which resulted in the same error.

If it helps with troubleshooting, I am running the server under the system user srcds, and am testing these commands through sudo -u srcds bash

I am at a loss at what to do, I would rather not containerize my server as I would like to run my applications from as close to its original source as much as possible, any pointers would be greatly appreciated.

reddit.com
u/Baguetteuwu — 21 hours ago

Acquired from FCC ID search. FCC IDs A3LETOI610L and A3LETOI610R for left and right controllers respectively.

u/Baguetteuwu — 25 days ago