Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#4,820 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Estancado
Stack tecnológico
bash, linux, shell
Área
cli, devops

Línea de trabajo

Comienza con la ruta de configuración de la instancia /lgsm/config-lgsm/myserver/myserver.cfg y sigue cómo startparameters es gestionado por el comando start y mostrado por details. Reproduce la salida de línea de comandos indicada con y sin -authkey, y confirma después que los parámetros configurados se añaden mientras los argumentos predeterminados de srcds siguen presentes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

command: start distro: Ubuntu info: docs type: bug
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.
Lenguaje dominante
Shell
Estrellas
4.9k
Forks
870
Merge medio
17 h 33 min
PR fusionados (30 d)
104

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de GameServerManagers/LinuxGSM

Todos los issues de GameServerManagers/LinuxGSM

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.