LinuxGSM icon indicating copy to clipboard operation
LinuxGSM copied to clipboard

[Bug]: LGSM instance config file "startparamerers" value overrides defaults and does not append.

Open phillipc421 opened this issue 4 months ago • 0 comments

User story

As a Garry's mod server owner, I want the "startparameters" option in the instance config for my gmae server to append values to the default srcds.exe command line arguments, not override them.

Game

Garry's Mod

Linux distro

Ubuntu 24.04

Command

command: start

Further information

Per the documentation: https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters,

I would expect any values added to the "startparameters" field in the instance config file (/lgsm/config-lgsm/myserver/myserver.cfg) to be APPENDED to the srcds.exe command line arguments, not override them. The latter seems to be happening.

Before adding my own "startparameters" value (these are the results of running the details command):

./srcds_run -game garrysmod -strictportbind -ip 0.0.0.0 -port 27015 -tickrate 66 +host_workshop_collection FAKEWORKSHOPCOLLENTION +clientport 27005 +tv_port 27020 +gamemode terrortown +map gm_construct +sv_setsteamaccount FAKESTEAMACCOUNT +servercfgfile gmodserver.cfg -maxplayers 16 -disableluarefresh

After adding a value of "-authkey AUTHKEY" to "startparameters":

./srcds_run -authkey AUTHKEY

As you can see, all defaults are gone. The expected result is like so:

./srcds_run -game garrysmod -strictportbind -ip 0.0.0.0 -port 27015 -tickrate 66 +host_workshop_collection FAKEWORKSHOPCOLLENTION +clientport 27005 +tv_port 27020 +gamemode terrortown +map gm_construct +sv_setsteamaccount FAKESTEAMACCOUNT +servercfgfile gmodserver.cfg -maxplayers 16 -disableluarefresh -authkey AUTHKEY

Am I missing something or am I correct in thinking this a bug?

Relevant log output


Steps to reproduce

  1. Edit your LGSM instance config (yourserver.cfg)
  2. Add a "startparameters" value, e.g. startparameters="-authkey FAKEAUTHKEY"
  3. Restart the server
  4. Run the details command (./yoursever details)
  5. See that the "Command-line Parameters" section is now only displaying your change without the defaults.

phillipc421 avatar Sep 04 '25 00:09 phillipc421