Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#4,820 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
bash, linux, shell
Lĩnh vực
cli, devops

Hướng nghiên cứu

Bắt đầu với đường dẫn cấu hình instance /lgsm/config-lgsm/myserver/myserver.cfg và theo dõi cách startparameters được xử lý bởi lệnh start và hiển thị bởi details. Tái hiện đầu ra dòng lệnh đã được báo cáo khi có và không có -authkey, sau đó xác nhận rằng các tham số đã cấu hình được nối thêm trong khi các đối số srcds mặc định vẫn được giữ nguyên.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
Shell
Star
4.9k
Fork
870
Merge trung bình
22 giờ 21 phút
Pull request đã merge (30 ngày)
93

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của GameServerManagers/LinuxGSM

Tất cả issue của GameServerManagers/LinuxGSM

Issue tương tự

Thêm issue về Shell/Bash

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.