This is a small program written in Go which redirects
the output of the srcds_linux
executable to stdout.
It can be used to fix for the following issue
stdin and stdout no longer works for linux garry's mod srcds server
For more insights head over to the discussion at garraysmod-isse#2343.
- Download the latest release from GitHub
- Put the file
source_logger
into the same directory assrcds_linux
- Replace in your start script the call of
srcds_linux
orsrcds_run
withsource_logger
.
An example start script before:
#!/bin/bash
./srcds_run -maxplayers 16 +gamemode terrortown +map ttt_waterworld
A start script using SourceLogger
#!/bin/bash
./source_logger -maxplayers 16 +gamemode terrortown +map ttt_waterworld
All arguments to source_logger
will be forwarded to srcds_linux
, so you can just keep your old arguments.
There is a small drawbacks while using this software:
You can't use the auto update feature of the srcds_run
script,
because the srcds_linux
executable is called directly from the SourceLogger.
This program uses creack/pty to create a pseudo console and capture its output.