[GH-ISSUE #2006] ANSI option appears to have no effect #1578

Closed
opened 2026-02-27 02:57:55 +03:00 by kerem · 5 comments
Owner

Originally created by @jrmain on GitHub (Sep 10, 2018).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2006

Originally assigned to: @dgibbs64 on GitHub.

Describe the bug
I recently installed a couple of servers from scratch (UT99 and UT2K4) and configured the ANSI option to be OFF (ansi="off") in the instance configs. However, I'm still seeing ANSI coloured text and ANSI codes in email alerts.

To Reproduce
Steps to reproduce the behaviour:

  1. Add ansi="off" to a server instance configuration file.
  2. Run the details command (eg. ./ut2k4server details).
  3. ANSI coloured text is shown.

Expected behaviour
No ANSI coloured text.

Minimum Information
Game servers: UT99 and UT2K4
I'm unable to use postdetails for some reason. Details pasted below.

[ INFO ] Details ut2k4server: Check IP: 192.168.0.196
numfmt: invalid number: 'K'

Distro Details
==============================================================================================================================

Distro:    Ubuntu 14.04.5 LTS
Arch:      x86_64
Kernel:    3.13.0-157-generic
Hostname:  foghorn
tmux:      tmux 2.0
GLIBC:     2.19

Performance
Uptime:    16d, 1h, 22m
Avg Load:  0.43, 0.50, 0.57

Mem:       total  used   free      cached  available
Physical:  7.5GB   2.2GB  3.6GB
Swap:      7.7GB   349MB  7.4GB

Storage
==============================================================================================================================

Filesystem:      /dev/sda1
Total:           451G
Used:            118G
Available:       311G
LinuxGSM Total:  16G
Serverfiles:     5.7G

Unreal Tournament 2004 Server Details
==============================================================================================================================

Server name:      JDRGaming UT2004 Coop
Server IP:        192.168.0.196:7784
Server password:  (redacted)
Admin password:   (redacted)
Default Map:      AS-CONVOY
Status:           ONLINE

ut2k4server Script Details
==============================================================================================================================

Service name:           ut2k4server
ut2k4server version:    180908
User:                   ut2k4server
GLIBC required:         2.4
Discord alert:          on
Email alert:            off
Pushbullet alert:       off
IFTTT alert:            off
Mailgun (email) alert:  off
Pushover alert:         off
Telegram alert:         off
Location:               /home/ut2k4server
Config file:            /home/ut2k4server/serverfiles/System/ut2k4server.ini

Backups
==============================================================================================================================

No Backups created

Command-line Parameters
==============================================================================================================================

./ucc-bin server AS-CONVOY?game=UT2k4Assault.ASGameInfo -nohomedir ini=ut2k4server.ini log=/home/ut2k4server/log/server/ut2k4server-game.log

Ports
==============================================================================================================================

Change ports by editing the parameters in:
/home/ut2k4server/serverfiles/System/ut2k4server.ini

Useful port diagnostic command:
netstat -atunp | grep ucc-bin

DESCRIPTION      DIRECTION  PORT         PROTOCOL  INI VARIABLE
> Game           INBOUND    7784         udp       Port=7784
> Query          INBOUND    7785         udp
> GameSpy query  INBOUND    7794         udp       OldQueryPortNumber=7794
< Master server  OUTBOUND   28900/28902  tcp/udp
> WebAdmin       INBOUND    8075         tcp       ListenPort=8075

JDRGaming UT2004 Coop WebAdmin
==============================================================================================================================

WebAdmin enabled:   True
WebAdmin url:       http://192.168.0.196:8075
WebAdmin username:  (redacted)
WebAdmin password:  (redacted)

Status: ONLINE
Originally created by @jrmain on GitHub (Sep 10, 2018). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/2006 Originally assigned to: @dgibbs64 on GitHub. **Describe the bug** I recently installed a couple of servers from scratch (UT99 and UT2K4) and configured the ANSI option to be OFF (ansi="off") in the instance configs. However, I'm still seeing ANSI coloured text and ANSI codes in email alerts. **To Reproduce** Steps to reproduce the behaviour: 1. Add `ansi="off"` to a server instance configuration file. 2. Run the `details` command (eg. `./ut2k4server details`). 3. ANSI coloured text is shown. **Expected behaviour** No ANSI coloured text. **Minimum Information** Game servers: UT99 and UT2K4 I'm unable to use postdetails for some reason. Details pasted below. ``` [ INFO ] Details ut2k4server: Check IP: 192.168.0.196 numfmt: invalid number: 'K' Distro Details ============================================================================================================================== Distro: Ubuntu 14.04.5 LTS Arch: x86_64 Kernel: 3.13.0-157-generic Hostname: foghorn tmux: tmux 2.0 GLIBC: 2.19 Performance Uptime: 16d, 1h, 22m Avg Load: 0.43, 0.50, 0.57 Mem: total used free cached available Physical: 7.5GB 2.2GB 3.6GB Swap: 7.7GB 349MB 7.4GB Storage ============================================================================================================================== Filesystem: /dev/sda1 Total: 451G Used: 118G Available: 311G LinuxGSM Total: 16G Serverfiles: 5.7G Unreal Tournament 2004 Server Details ============================================================================================================================== Server name: JDRGaming UT2004 Coop Server IP: 192.168.0.196:7784 Server password: (redacted) Admin password: (redacted) Default Map: AS-CONVOY Status: ONLINE ut2k4server Script Details ============================================================================================================================== Service name: ut2k4server ut2k4server version: 180908 User: ut2k4server GLIBC required: 2.4 Discord alert: on Email alert: off Pushbullet alert: off IFTTT alert: off Mailgun (email) alert: off Pushover alert: off Telegram alert: off Location: /home/ut2k4server Config file: /home/ut2k4server/serverfiles/System/ut2k4server.ini Backups ============================================================================================================================== No Backups created Command-line Parameters ============================================================================================================================== ./ucc-bin server AS-CONVOY?game=UT2k4Assault.ASGameInfo -nohomedir ini=ut2k4server.ini log=/home/ut2k4server/log/server/ut2k4server-game.log Ports ============================================================================================================================== Change ports by editing the parameters in: /home/ut2k4server/serverfiles/System/ut2k4server.ini Useful port diagnostic command: netstat -atunp | grep ucc-bin DESCRIPTION DIRECTION PORT PROTOCOL INI VARIABLE > Game INBOUND 7784 udp Port=7784 > Query INBOUND 7785 udp > GameSpy query INBOUND 7794 udp OldQueryPortNumber=7794 < Master server OUTBOUND 28900/28902 tcp/udp > WebAdmin INBOUND 8075 tcp ListenPort=8075 JDRGaming UT2004 Coop WebAdmin ============================================================================================================================== WebAdmin enabled: True WebAdmin url: http://192.168.0.196:8075 WebAdmin username: (redacted) WebAdmin password: (redacted) Status: ONLINE ```
Author
Owner

@dgibbs64 commented on GitHub (Sep 10, 2018):

Issue is that core_messages load before the lgsm configs. It's a chicken and egg situation. So I will need to reload core_messages after the configs have loaded.

<!-- gh-comment-id:420042938 --> @dgibbs64 commented on GitHub (Sep 10, 2018): Issue is that core_messages load before the lgsm configs. It's a chicken and egg situation. So I will need to reload core_messages after the configs have loaded.
Author
Owner

@dgibbs64 commented on GitHub (Sep 10, 2018):

Fixed for next release d9e1af2c25

<!-- gh-comment-id:420056498 --> @dgibbs64 commented on GitHub (Sep 10, 2018): Fixed for next release d9e1af2c25ad765ff013e11690c1b100b7502f74
Author
Owner

@jrmain commented on GitHub (Oct 28, 2018):

Confirmed fixed with version 181027.

<!-- gh-comment-id:433715693 --> @jrmain commented on GitHub (Oct 28, 2018): Confirmed fixed with version 181027.
Author
Owner

@jrmain commented on GitHub (Oct 29, 2018):

The update-lgsm command still shows some ANSI text right at the beginning, and at the end. It's not visible normally, but I run update-lgsm in a cron job, and the cron email generated shows this (leading Esc character not shown):

[K[ .... ] Update LinuxGSM ut2k4server: Updating LinuxGSM

...

[K[  OK  ] Update LinuxGSM ut99server: Updating functions
<!-- gh-comment-id:433947867 --> @jrmain commented on GitHub (Oct 29, 2018): The `update-lgsm` command still shows some ANSI text right at the beginning, and at the end. It's not visible normally, but I run `update-lgsm` in a cron job, and the cron email generated shows this (leading Esc character not shown): ``` [K[ .... ] Update LinuxGSM ut2k4server: Updating LinuxGSM ``` ... ``` [K[ OK ] Update LinuxGSM ut99server: Updating functions ```
Author
Owner

@lock[bot] commented on GitHub (Oct 30, 2019):

This thread 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:547937942 --> @lock[bot] commented on GitHub (Oct 30, 2019): This thread 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#1578
No description provided.