[Bug]: SoF2 query returns team ID as player name instead of the actual player name

已关闭
#4,962 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
68/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
shell
领域
cli

调研方向

Locate the LinuxGSM query parser for Soldier of Fortune II: Double Helix Gold and inspect how the player fields are read from the server response. Reproduce the query with a server containing players, then verify that the PLAYER column shows nicknames while frags and ping remain correct.

由索引模型根据 Issue 内容生成。

描述

command: console distro: Debian info: website regression: yes reproducible: always severity: medium type: bug
Severity

severity: medium

Reproducibility

reproducible: always

Regression

regression: yes

Affects latest release

latest-release: yes

User story

Hi, I found what looks like a parsing issue with the LinuxGSM query implementation for Soldier of Fortune II: Double Helix / SoF2Plus. When querying a SoF2 server, the player list is displayed incorrectly. The value shown in the PLAYER column is actually the player’s team ID, instead of the player’s real nickname. In SoF2 the team values are: * 1 = Blue Team * 2 = Red Team * 3 = Spectator So the query currently returns player names such as: 1 1 1 2 2 3 while the frags and ping values appear to be parsed correctly. The actual player name is present in the server query response, but it looks like the parser is reading the wrong field/column and using the team value as the player’s name.

Script name

ismygameserveronline website

Game

sof2mp gold

Linux distro

Debian 13

Command

command: console

Expected behavior

Expected behavior:
The PLAYER column should contain the actual player nickname, while the team value should either be ignored or parsed separately.

Actual behavior

Current behavior:
The PLAYER column contains the SoF2 team ID (1, 2, or 3).

Further information

Instead of:
PLAYER FRAGS PING
1 79 176
1 58 179
2 42 175
3 0 163
it should return something like:

PLAYER FRAGS PING
PlayerName1 79 176
PlayerName2 58 179
PlayerName3 42 175
SpectatorName 0 163

Game: Soldier of Fortune II: Double Helix
Server: Only GOLD edition affected the Silver is okay
Version: Gold
Protocol: 2004

Pre-checks
  • I ran update and validate before reporting this issue.
Relevant log output

Steps to reproduce
  1. Query a running SoF2 / SoF2Plus server containing real players.
  2. Open the player list returned by the query.
  3. Check the PLAYER field.
  4. Player names are shown as 1, 2 or 3 instead of their actual nicknames.
Image
主要语言
Shell
星标
4.9k
派生
870
平均合并
22 小时 45 分钟
30 天内合并 PR
128

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

GameServerManagers/LinuxGSM 的其他 Issue

查看 GameServerManagers/LinuxGSM 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。