Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#4,820 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
48/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
bash, linux, shell
領域
cli, devops

調査の方向性

インスタンス設定パス /lgsm/config-lgsm/myserver/myserver.cfg から始め、startparameters が start コマンドでどのように処理され、details でどのように表示されるかを追跡します。-authkey がある場合とない場合の報告されたコマンドライン出力を再現し、設定されたパラメーターが追加される一方で、デフォルトの srcds 引数が引き続き存在することを確認します。

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
Shell
スター
4.9k
フォーク
870
平均マージ
22時間 21分
マージ済み PR(30日)
93

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

GameServerManagers/LinuxGSM のほかの issue

GameServerManagers/LinuxGSM の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。