[Bug]: The Front never receives the friendly damage setting
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ó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 86/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- bash
- Lĩnh vực
- cli
Hướng nghiên cứu
Đọc lgsm/config-default/config-lgsm/tfserver/_default.cfg cùng với định nghĩa startparameters trong tệp đó; issue chỉ ra sự không khớp về tên biến. Kiểm tra cách tải cấu hình mặc định và cấu hình phiên bản, sau đó xác minh các tham số khởi chạy đã khai triển bằng harness tái hiện được mô tả trong issue. Công việc hoàn tất khi thiết lập mặc định tạo ra -IsCanFriendDamage=true và giá trị phiên bản damageallies="false" tạo ra -IsCanFriendDamage=false.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Severity
severity: medium
Reproducibility
reproducible: always
Regression
regression: no
Affects latest release
latest-release: yes
User story
As a The Front server administrator, I want the friendly damage setting in the LinuxGSM config to reach the server, so that I can decide whether squadmates can damage each other.
Script name
tfserver
Game
The Front
Linux distro
Other
Command
command: start
Expected behavior
The server starts with -IsCanFriendDamage=true, the value the default config sets, and setting damageallies in the instance config changes it.
Actual behavior
Unless the instance config sets damageallies, the server starts with an empty value, -IsCanFriendDamage=. The damangeallies value from the default config is never used.
lgsm/config-default/config-lgsm/tfserver/_default.cfg defines the variable with a typo on line 22:
damangeallies="true"
but startparameters on line 36 reads a different name:
-IsCanFriendDamage=${damageallies}
damageallies is not set anywhere in LinuxGSM, so it expands to an empty string. The setting next to it, damageself="true" with -IsCanSelfDamage=${damageself}, is spelled the same in both places and works.
I could not find an official developer reference for IsCanFriendDamage, so I don't know how the game handles an empty value.
Further information
How it got here:
- 67472a82 (#4359, 2023-10-29) added The Front with
damangeallies="true"in_default.cfg. The start parameters already used-IsCanFriendDamage=${damageallies}, so the setting has never reached the server. - b133c444 (
fix(tf): update anticheat to UseEAC, 2025-03-08) is the last change to thestartparametersline. It did not touch this parameter. - The server request is #4335. The example start command in https://github.com/GameServerManagers/LinuxGSM/issues/4335#issuecomment-1762376303 includes
IsCanSelfDamage=0andIsCanFriendDamage=0. - v26.5.0 (2026-11-04) and
develop(c37014cf) still have the typo.
Neither damangeallies nor damageallies appears anywhere else in the repository, including the modules.
Workaround on current versions: set damageallies (correct spelling) in lgsm/config-lgsm/tfserver/tfserver.cfg. The start parameters use that name, so the value is passed. Copying the misspelled damangeallies from _default.cfg into common.cfg or the instance config has no effect.
When this is fixed, existing servers will be started with -IsCanFriendDamage=true unless their config sets damageallies="false".
Third-party hosting guides show IsCanFriendDamage=0 (off) as the value in the game's own server config. I could not confirm that in an official developer source.
This was found by code review of develop, not on a live server. I reproduced it with a Git Bash harness that copies the real config templates, sources them in the order linuxgsm.sh does (_default.cfg, common.cfg, secrets-common.cfg, tfserver.cfg, secrets-tfserver.cfg), and runs the real fn_reload_startparameters from linuxgsm.sh. The output is below.
Pre-checks
- I ran update and validate before reporting this issue.
Not applicable: found by code review of develop and reproduced with the harness above, not reported from a running server.
Relevant log output
# develop (c37014cf), expanded startparameters
defaults only -> IsCanSelfDamage=true | IsCanFriendDamage=
instance damageallies="false" -> IsCanSelfDamage=true | IsCanFriendDamage=false
instance damangeallies="false" (typo copied) -> IsCanSelfDamage=true | IsCanFriendDamage=
Steps to reproduce
- Install
tfserver. - Run
./tfserver details. - Under "Command-line Parameters", the start command contains
-IsCanFriendDamage=with no value, while-IsCanSelfDamage=trueis set. - Set
damangeallies="false"inlgsm/config-lgsm/tfserver/tfserver.cfgand run./tfserver detailsagain:-IsCanFriendDamage=is still empty.
🤖 Generated with Claude Code
- Ngôn ngữ chính
- Shell
- Star
- 4.9k
- Fork
- 870
- Merge trung bình
- 18 giờ 44 phút
- Pull request đã merge (30 ngày)
- 148
Chuẩn bị môi trường
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.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của GameServerManagers/LinuxGSM
-
command: start distro: Debian engine: null game: Teamspeak 3 reproducible: always severity: low type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
GameServerManagers/LinuxGSM#5193 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug(ins): server fails to start, srcds_run has CRLF line endings and needs bashCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởdistro: Ubuntu engine: source game: Insurgency status: fixed in develop
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
GameServerManagers/LinuxGSM#5153 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: cs2server ignores the GSLT entered during installCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởcommand: install command: start distro: Debian engine: source2 game: Counter-Strike 2 regression: yes reproducible: always severity: high type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
GameServerManagers/LinuxGSM#5106 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: A failed command exits with 0 when core_exit.sh is downloaded on exitCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởcommand: start distro: Debian engine: null game: Teamspeak 3 info: tmux reproducible: always severity: low status: fixed in develop type: bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
GameServerManagers/LinuxGSM#5191 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: install passes a leftover forcedl value instead of each server's force settingCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởcommand: install info: steamcmd reproducible: unable severity: low status: fixed in develop type: bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 25/100
GameServerManagers/LinuxGSM#5189 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của GameServerManagers/LinuxGSM
Issue tương tự
-
Isha NarulaĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
dataplat/DataSpeakers#178 ·
-
[BUG] mo clean deletes Cypress test runner binaries in ~/Library/Caches/CypressCó thể đã có người làm @viniciusdsandrade đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Min. CMake job: CMAKE_POLICY_VERSION_MINIMUM is not passed for CMake 3.16 (follow-up to #358)Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
enhancement security severity:low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Battle-Cattle/BCUK-Bot-4#959 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
mattabate/life-distributable#153 ·
Maintainer thường phản hồi trong vòng 1 ngày