[GH-ISSUE #3088] ut2k4server servername output issue #2177

Closed
opened 2026-02-27 03:01:21 +03:00 by kerem · 9 comments
Owner

Originally created by @Annihilator on GitHub (Oct 24, 2020).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3088

Intro

When displaying, and using the variable servername, the exact server name as specified in the ut2k4server configuration is expected. This is not how lgsm currently behaves. Aside from the visual annoyance, some script behavior is broken because of this.

Basic info

  • Distro: [Debian 10]
  • Game: [Unreal Tournament 2004]
  • Command: [test-alert] [details]
  • LinuxGSM version: [v20.5.1]

Further Information

3x \nShowTrue is appended to the end of the servername variable. So, if the configured servername of the game server is "AB CD EF", lgsm would interpret it as:
AB CD EF
ShowTrue
ShowTrue
ShowTrue

To Reproduce

Steps to reproduce the behaviour:

  1. Install a configure a ut2k4server instance
  2. Check ut2k4server details
  3. See the servername variable get junk appended to it

This also breaks Discord alerts because the alert-discord script is unable to parse such a malformed server name.

Expected behaviour

There should be no 3x ShowTrue appended to the real name of the game server in the servername variable.

Originally created by @Annihilator on GitHub (Oct 24, 2020). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3088 ## Intro When displaying, and using the variable servername, the exact server name as specified in the ut2k4server configuration is expected. This is not how lgsm currently behaves. Aside from the visual annoyance, some script behavior is broken because of this. ## Basic info * **Distro:** [Debian 10] * **Game:** [Unreal Tournament 2004] * **Command:** [test-alert] [details] * **LinuxGSM version:** [v20.5.1] ## Further Information 3x \nShowTrue is appended to the end of the servername variable. So, if the configured servername of the game server is "AB CD EF", lgsm would interpret it as: AB CD EF ShowTrue ShowTrue ShowTrue ## To Reproduce Steps to reproduce the behaviour: 1. Install a configure a ut2k4server instance 2. Check ut2k4server details 3. See the servername variable get junk appended to it This also breaks Discord alerts because the alert-discord script is unable to parse such a malformed server name. ## Expected behaviour There should be no 3x ShowTrue appended to the real name of the game server in the servername variable.
Author
Owner

@issue-label-bot[bot] commented on GitHub (Oct 24, 2020):

Issue-Label Bot is automatically applying the label type: bug to this issue, with a confidence of 0.92. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

<!-- gh-comment-id:716036043 --> @issue-label-bot[bot] commented on GitHub (Oct 24, 2020): Issue-Label Bot is automatically applying the label `type: bug` to this issue, with a confidence of 0.92. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback! Links: [app homepage](https://github.com/marketplace/issue-label-bot), [dashboard](https://mlbot.net/data/GameServerManagers/LinuxGSM) and [code](https://github.com/hamelsmu/MLapp) for this bot.
Author
Owner

@h3o66 commented on GitHub (Dec 11, 2020):

I cannot reproduce this with my test, can you maybe upload your config here ?

<!-- gh-comment-id:743434659 --> @h3o66 commented on GitHub (Dec 11, 2020): I cannot reproduce this with my test, can you maybe upload your config here ?
Author
Owner

@Annihilator commented on GitHub (Dec 12, 2020):

Sure, here's the config:

defaultmap="RecoveryMap"
gamemode="`grep -m 1 -o -P '(?<=GameClass=").*(?=",Prefix)' ${servercfgfullpath}`?mutator=`grep -m 1 -o -P '(?<=Mutators=").*(?=",Options)' ${servercfgfullpath}`"
fn_parms(){
parms="server ${defaultmap}?game=${gamemode} -nohomedir ini=${servercfg} log=${gamelog} | sed '/^WARNING - /d;s/\r$//'"
}
discordalert="on"
discordwebhook=*censored*
logdays="28"
querymode="4"
gamelog="/dev/null"
<!-- gh-comment-id:743814523 --> @Annihilator commented on GitHub (Dec 12, 2020): Sure, here's the config: ``` defaultmap="RecoveryMap" gamemode="`grep -m 1 -o -P '(?<=GameClass=").*(?=",Prefix)' ${servercfgfullpath}`?mutator=`grep -m 1 -o -P '(?<=Mutators=").*(?=",Options)' ${servercfgfullpath}`" fn_parms(){ parms="server ${defaultmap}?game=${gamemode} -nohomedir ini=${servercfg} log=${gamelog} | sed '/^WARNING - /d;s/\r$//'" } discordalert="on" discordwebhook=*censored* logdays="28" querymode="4" gamelog="/dev/null" ```
Author
Owner

@h3o66 commented on GitHub (Jan 10, 2021):

I would need as well the servercfg file if possible

<!-- gh-comment-id:757513854 --> @h3o66 commented on GitHub (Jan 10, 2021): I would need as well the `servercfg` file if possible
Author
Owner

@Annihilator commented on GitHub (Jan 11, 2021):

Here are the key differences between the server ini that is used vs. the one packaged with LinuxGSM:

[Engine.Engine]
DefaultGame=XGame.xVehicleCTFGame
DefaultServerGame=XGame.xVehicleCTFGame

[Core.System]
Suppress=Warning

[Engine.GameEngine]
ServerActors=AdminTakeoverWorkaround.AdminTakeoverWorkaround
ServerActors=LinxDedServFix.LinxDedServFixMut
ServerActors=LockRolloff.LockRolloffServerActor
ServerActors=ServerColor.ServerColorActor
ServerActors=ServerExt.ChatFilter
ServerActors=ServerExt.PlayerJoinLog
ServerPackages=SmartCTF1C
ServerPackages=UTCompv18b

[IpDrv.TcpNetDriver]
MaxClientRate=20000
MaxInternetClientRate=20000
NetServerMaxTickRate=35
LanServerMaxTickRate=35

[IpDrv.MasterServerUplink]
ServerBehindNAT=True
DoLANBroadcast=False
bIgnoreUTANBans=True

[IpDrv.HTTPDownload]
RedirectToURL=<rdr-url>
UseCompression=False

[Engine.DemoRecDriver]
MaxClientRate=20000
NetServerMaxTickRate=35
LanServerMaxTickRate=35
MaxInternetClientRate=20000

[Engine.GameReplicationInfo]
ServerName=ABC | Bla Bla Bla | DEF | https://<web-url>
ShortName=ABC-DEF
AdminEmail=https://<web-url>
MessageOfTheDay=ABC|DEF|GHI|JKL

[Engine.AccessControl]
AdminPassword=<pwd>
LoginDelaySeconds=0.000000
IPPolicies=ACCEPT;*

[Engine.GameInfo]
MaxSpectators=24
MaxPlayers=24
GameStatsClass=Engine.GameStats
AccessControlClass=TitanAdminSM1.TitanReservedSlotsIni
MaxIdleTime=300.000000
bAllowBehindView=True
bAdminCanPause=False
bWeaponShouldViewShake=False
bLowGore=False
bLargeGameVOIP=False
GameDifficulty=5.000000
MaplistHandlerType=
ServerSkillLevel=
bWeaponStay=False
bAllowWeaponThrowing=True
ResetTimeDelay=0

[xVoting.xVotingHandler]
GameConfig=(GameClass="XGame.xVehicleCTFGame",Prefix="VCTF",Acronym="VCTF",GameName="Vehicle CTF",Mutators="UTCompv18b.MutUTComp,ServerExt.mutTeamBalance,SmartCTF1C.SmartCTF,ServerBots2.ServerBots,MantarunAssist.mutMantarunAssist",Options=)

Note the usage of ServerColor.ServerColorActor for coloring the server name in the server browser.

<!-- gh-comment-id:757777878 --> @Annihilator commented on GitHub (Jan 11, 2021): Here are the key differences between the server ini that is used vs. the one packaged with LinuxGSM: ``` [Engine.Engine] DefaultGame=XGame.xVehicleCTFGame DefaultServerGame=XGame.xVehicleCTFGame [Core.System] Suppress=Warning [Engine.GameEngine] ServerActors=AdminTakeoverWorkaround.AdminTakeoverWorkaround ServerActors=LinxDedServFix.LinxDedServFixMut ServerActors=LockRolloff.LockRolloffServerActor ServerActors=ServerColor.ServerColorActor ServerActors=ServerExt.ChatFilter ServerActors=ServerExt.PlayerJoinLog ServerPackages=SmartCTF1C ServerPackages=UTCompv18b [IpDrv.TcpNetDriver] MaxClientRate=20000 MaxInternetClientRate=20000 NetServerMaxTickRate=35 LanServerMaxTickRate=35 [IpDrv.MasterServerUplink] ServerBehindNAT=True DoLANBroadcast=False bIgnoreUTANBans=True [IpDrv.HTTPDownload] RedirectToURL=<rdr-url> UseCompression=False [Engine.DemoRecDriver] MaxClientRate=20000 NetServerMaxTickRate=35 LanServerMaxTickRate=35 MaxInternetClientRate=20000 [Engine.GameReplicationInfo] ServerName=ABC | Bla Bla Bla | DEF | https://<web-url> ShortName=ABC-DEF AdminEmail=https://<web-url> MessageOfTheDay=ABC|DEF|GHI|JKL [Engine.AccessControl] AdminPassword=<pwd> LoginDelaySeconds=0.000000 IPPolicies=ACCEPT;* [Engine.GameInfo] MaxSpectators=24 MaxPlayers=24 GameStatsClass=Engine.GameStats AccessControlClass=TitanAdminSM1.TitanReservedSlotsIni MaxIdleTime=300.000000 bAllowBehindView=True bAdminCanPause=False bWeaponShouldViewShake=False bLowGore=False bLargeGameVOIP=False GameDifficulty=5.000000 MaplistHandlerType= ServerSkillLevel= bWeaponStay=False bAllowWeaponThrowing=True ResetTimeDelay=0 [xVoting.xVotingHandler] GameConfig=(GameClass="XGame.xVehicleCTFGame",Prefix="VCTF",Acronym="VCTF",GameName="Vehicle CTF",Mutators="UTCompv18b.MutUTComp,ServerExt.mutTeamBalance,SmartCTF1C.SmartCTF,ServerBots2.ServerBots,MantarunAssist.mutMantarunAssist",Options=) ``` Note the usage of ServerColor.ServerColorActor for coloring the server name in the server browser.
Author
Owner

@h3o66 commented on GitHub (Jan 17, 2021):

Maybe you can test the linked PR if that one fixes your issue with the parsing.

<!-- gh-comment-id:761832099 --> @h3o66 commented on GitHub (Jan 17, 2021): Maybe you can test the linked PR if that one fixes your issue with the parsing.
Author
Owner

@Annihilator commented on GitHub (Jan 17, 2021):

Test successful. Much appreciated!
Alerting works perfectly fine now as well.

<!-- gh-comment-id:761834614 --> @Annihilator commented on GitHub (Jan 17, 2021): Test successful. Much appreciated! Alerting works perfectly fine now as well.
Author
Owner

@h3o66 commented on GitHub (Jan 17, 2021):

Test successful. Much appreciated!
Alerting works perfectly fine now as well.

Thanks for testing.

<!-- gh-comment-id:761837124 --> @h3o66 commented on GitHub (Jan 17, 2021): > Test successful. Much appreciated! > Alerting works perfectly fine now as well. Thanks for testing.
Author
Owner

@github-actions[bot] commented on GitHub (Jan 29, 2022):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:1024756874 --> @github-actions[bot] commented on GitHub (Jan 29, 2022): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No labels
Atomic
Epic
cannot reproduce
command: backup
command: console
command: debug
command: details
command: fast-dl
command: install
command: mods
command: monitor
command: post-details
command: restart
command: send
command: start
command: stop
command: update
command: update-lgsm
command: validate
command: wipe
distro: AlmaLinux
distro: Arch Linux
distro: CentOS
distro: Debian
distro: Fedora
distro: RedHat
distro: Rocky Linux
distro: Ubuntu
distro: openSUSE
engine: goldsrc
engine: source
game: 7 Days to Die
game: ARMA 3
game: Ark: Survival Evolved
game: Assetto Corsa
game: Avorion
game: BATTALION: Legacy
game: Barotrauma
game: Battalion 1944
game: Battlefield 1942
game: Black Mesa: Deathmatch
game: Blade Symphony
game: Call of Duty 2
game: Call of Duty 4
game: Call of Duty: United Offensive
game: Counter-Strike 1.6
game: Counter-Strike 2
game: Counter-Strike: Global Offensive
game: Counter-Strike: Source
game: Day of Infamy
game: Dayz
game: Death Match Classic
game: Don't Starve Together
game: ET: Legacy
game: Eco
game: Factorio
game: Factorio
game: Garry's Mod
game: Half-Life
game: Hurtword
game: Insurgecy
game: Insurgecy
game: Insurgency: Sandstorm
game: Just Cause 3
game: Killing Floor
game: Killing Floor 2
game: Left 4 Dead 2
game: Minecraft
game: Minecraft Bedrock
game: Mordhau
game: Multi Theft Auto
game: Mumble
game: Natural Selection 2
game: No More Room in Hell
game: Pavlov VR
game: Post Scriptum
game: Project Zomboid
game: Quake 3
game: QuakeWorld
game: Red Orchestra: Ostfront 41-45
game: Return to Castle Wolfenstein
game: Rising World
game: Rust
game: San Andreas Multiplayer
game: Satisfactory
game: Soldat
game: Soldier of Fortune 2
game: Squad
game: Squad 44
game: Starbound
game: Stationeers
game: Sven Co-op
game: Team Fortress 2
game: Teamspeak 3
game: Teeworlds
game: Terraria
game: The Front
game: Unreal Tournament 2004
game: Unreal Tournament 3
game: Unreal Tournament 99
game: Unturned
game: Valheim
game: Wurm Unlimited
game: Zombie Master Reborn
game: label missing
good first issue
help wanted
info: alerts
info: dependency
info: docker
info: docs
info: email
info: query
info: steamcmd
info: systemd
info: tmux
info: website
info: website
needs more info
outcome: duplicate
outcome: issue resolved
outcome: issue resolved
outcome: issue unresolved
outcome: pr accepted
outcome: pr rejected
outcome: unconfirmed
outcome: wontfix
outcome: wrong forum
potential-duplicate
priority
pull-request
type: bug
type: feature
type: feature
type: feature request
type: game server request
type: refactor
waiting response
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/LinuxGSM#2177
No description provided.