Repository navigation
Conversation
The GSLT entered during install is stored as gslt in the LinuxGSM
config, but the cs2server start parameters never passed it on. The
server logged into an anonymous game server account and only accepted
LAN connections.
Add +sv_setsteamaccount ${gslt} after +exec ${selfname}.cfg. The game
server config template sets sv_setsteamaccount "", which clears a token
given before it, so the token has to come after the exec. When gslt is
empty the command only prints its usage, so a token set in the game
server config keeps working.
Fixes GameServerManagers#5106
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Thanks for this, and for the detailed write-up in the issue. I tested the change on a test server and it does what it says: the token reaches the server, an empty gslt still starts fine, and a token set only in the game server config still works. It has also highlighted a bigger issue I need to sort out. LinuxGSM handles the GSLT inconsistently across servers: most pass it as a start parameter, a few keep it in the game server config, a couple do both, and some ask for a token at install and then never use it. I’d like to move tokens into the game server config wherever the game supports it, with a migration path so existing servers that use gslt= keep working. Adding a start parameter to cs2 would move it in the opposite direction, so I’m going to hold off merging this while I work out the wider approach. Thanks again for digging into the history on this one, its highlighted the larger issue. |
|
Thanks for testing it. Before you settle on the direction, I'd argue for the opposite move: keep the GSLT as a start parameter everywhere. That is how the official docs describe it, and it needs no migration.
My suggestion: keep GSLT handling on develop
|
Description
The GSLT entered during install is stored as
gsltin the cs2server LinuxGSM config, but the cs2serverstartparametersnever passed it on. The server logged into an anonymous game server account and only accepted LAN connections (No Steam account token was specified ... Connections will be restricted to LAN only).This adds
+sv_setsteamaccount ${gslt}after+exec ${selfname}.cfg. The order matters: the CS2 game server config template setssv_setsteamaccount "", which clears a token given before it. Whengsltis empty, the command only prints its usage line, so servers that set the token in the game server config keep working.Fixes #5106
Affected servers: cs2
Type of change
Testing
cs2serverinstall, setstartparametersin the instance config to each order, ran./cs2server startand checked the console log withgrep -E "logon token|anonymous game server|already logged into steam|Usage: sv_setsteamaccount" log/console/cs2server-console.log.gslt,+exec ${selfname}.cfg +sv_setsteamaccount ${gslt}(this PR):Logging into Steam gameserver account with logon token 'XXXXXXXX...'.gslt,+sv_setsteamaccount ${gslt} +exec ${selfname}.cfg: anonymous login, because the game server config linesv_setsteamaccount ""cleared the token.gslt="", token only in the game server config, order of this PR:Usage: sv_setsteamaccount <login_token>, thenLogging into Steam gameserver account with logon token 'XXXXXXXX...'.gslt: anonymous login, LAN only.cs2serverinstall, CS2 build current on 2026-10-26.Risk and rollback
Breaking changes
Documentation
Checklist
PR will not be merged until all steps are complete.
🤖 Generated with Claude Code