SourceTV fixes and documentation updates

This commit is contained in:
John Edwards 2023-10-26 21:59:25 +01:00
parent 693f7340ce
commit 3ce0d671d6
3 changed files with 41 additions and 33 deletions

View file

@ -14,10 +14,15 @@ ln -sfT ${STEAMCMDDIR}/linux64/steamclient.so ~/.steam/sdk64/steamclient.so
# Install server.cfg
cp /etc/server.cfg "${STEAMAPPDIR}"/game/csgo/cfg/server.cfg
sed -i -e "s/{{SERVER_HOSTNAME}}/${CS2_SERVERNAME}/g" "${STEAMAPPDIR}"/game/csgo/cfg/server.cfg \
-e "s/{{SERVER_PW}}/${CS2_PW}/g" "${STEAMAPPDIR}"/game/csgo/cfg/server.cfg \
-e "s/{{SERVER_RCON_PW}}/${CS2_RCONPW}/g" "${STEAMAPPDIR}"/game/csgo/cfg/server.cfg \
-e "s/{{SERVER_LAN}}/${CS2_LAN}/g" "${STEAMAPPDIR}"/game/csgo/cfg/server.cfg
sed -i -e "s/{{SERVER_HOSTNAME}}/${CS2_SERVERNAME}/g" \
-e "s/{{SERVER_PW}}/${CS2_PW}/g" \
-e "s/{{SERVER_RCON_PW}}/${CS2_RCONPW}/g" \
-e "s/{{SERVER_LAN}}/${CS2_LAN}/g" \
-e "s/{{TV_ENABLE}}/${TV_ENABLE}/g" \
-e "s/{{TV_PORT}}/${TV_PORT}/g" \
-e "s/{{TV_AUTORECORD}}/${TV_AUTORECORD}/g" \
-e "s/{{TV_RELAY_PW}}/${TV_RELAY_PW}/g" \
"${STEAMAPPDIR}"/game/csgo/cfg/server.cfg
# Rewrite Config Files

View file

@ -1,38 +1,36 @@
// Server Defaults
hostname "{{SERVER_HOSTNAME}}"
sv_lan {{SERVER_LAN}}
hostname "{{SERVER_HOSTNAME}}" // Set server hostname
sv_lan {{SERVER_LAN}} // If a server is a LAN server there is no heartbeat, no Steam authentication, and no non-class C addresses
// Passwords
rcon_password "{{SERVER_RCON_PW}}"
sv_password "{{SERVER_PW}}"
rcon_password "{{SERVER_RCON_PW}}" // Set rcon password
sv_password "{{SERVER_PW}}" // Set server password
// GOTV
sv_hibernate_postgame_delay 180
sv_hibernate_postgame_delay 180 // Delay server hibernation after all clients disconnect
sv_hibernate_postgame_delay 180
tv_allow_camera_man 1 // Auto director allows spectators to become camera man
tv_allow_static_shots 1 // Auto director uses fixed level cameras for shots
tv_autorecord {{TV_AUTORECORD}} // Automatically records all games as GOTV demos: 0=off, 1=on.
tv_chatgroupsize 0 // Set the default chat group size
tv_chattimelimit 8 // Limits spectators to chat only every n seconds
tv_debug 0 // GOTV debug info.
tv_delay 30 // GOTV broadcast delay in seconds
tv_delaymapchange 1 // Delays map change until broadcast is complete
tv_deltacache 2 // Enable delta entity bit stream cache
tv_dispatchmode 1 // Dispatch clients to relay proxies: 0=never, 1=if appropriate, 2=always
tv_enable {{TV_ENABLE}} // Activates GOTV on server: 0=off, 1=on.
tv_maxclients 10 // Maximum client number on GOTV server.
tv_maxrate 20000 // Max GOTV spectator bandwidth rate allowed, 0 == unlimited
tv_name "{{SERVER_HOSTNAME}}" // GOTV host name
tv_overridemaster 0 // Overrides the GOTV master root address.
tv_port {{TV_PORT}} // Host SourceTV port
tv_relaypassword {{TV_PW}} // GOTV password for relay proxies
tv_relayvoice 1 // Relay voice data: 0=off, 1=on
tv_snapshotrate 24 // Snapshots broadcasted per second
tv_timeout 60 // GOTV connection timeout in seconds.
tv_title "{{SERVER_HOSTNAME}}" // Set title for GOTV spectator UI
tv_transmitall 1 // Transmit all entities (not only director view)
tv_allow_camera_man 1 // Auto director allows spectators to become camera man
tv_allow_static_shots 1 // Auto director uses fixed level cameras for shots
tv_autorecord {{TV_AUTORECORD}} // Automatically records all games as GOTV demos: 0=off, 1=on.
tv_chatgroupsize 0 // Set the default chat group size
tv_chattimelimit 8 // Limits spectators to chat only every n seconds
tv_debug 0 // GOTV debug info.
tv_delay 30 // GOTV broadcast delay in seconds
tv_delaymapchange 1 // Delays map change until broadcast is complete
tv_deltacache 2 // Enable delta entity bit stream cache
tv_dispatchmode 1 // Dispatch clients to relay proxies: 0=never, 1=if appropriate, 2=always
tv_enable {{TV_ENABLE}} // Activates GOTV on server: 0=off, 1=on.
tv_maxclients 10 // Maximum client number on GOTV server.
tv_maxrate 20000 // Max GOTV spectator bandwidth rate allowed, 0 == unlimited
tv_name "{{SERVER_HOSTNAME}}" // GOTV host name
tv_overridemaster 0 // Overrides the GOTV master root address.
tv_port {{TV_PORT}} // Host SourceTV port
tv_relaypassword "{{TV_RELAY_PW}}" // GOTV password for relay proxies
tv_relayvoice 1 // Relay voice data: 0=off, 1=on
tv_snapshotrate 24 // Snapshots broadcasted per second
tv_timeout 60 // GOTV connection timeout in seconds.
tv_title "{{SERVER_HOSTNAME}}" // Set title for GOTV spectator UI
tv_transmitall 1 // Transmit all entities (not only director view)

View file

@ -28,6 +28,11 @@ services:
- CS2_BOT_DIFFICULTY # (0 - easy, 1 - normal, 2 - hard, 3 - expert)
- CS2_BOT_QUOTA # (Number of bots)
- CS2_BOT_QUOTA_MODE # (fill, competitive)
# TV
- TV_AUTORECORD=0 # Automatically records all games as GOTV demos: 0=off, 1=on.
- TV_ENABLE=1 # Activates GOTV on server: 0=off, 1=on.
- TV_PORT=27020 # Host SourceTV port
- TV_RELAY_PW=changeme # GOTV password for relay proxies
volumes:
- cs2:/home/steam/cs2-dedicated/ # (Change /mnt/cs2 according to your volume location)
ports: