[GH-ISSUE #3542] [Barotrauma] Console logs at least in Barotrauma look... weird the time is printed multiple times and nothing can read it properly #2383

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

Originally created by @JoneKone on GitHub (Aug 26, 2021).
Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3542

User Story

bt-consolelog.txt is formated weirdly and maybe bugging out.

Basic info

  • Distro: [Debian 9.2]
  • Game: [Barotaruma]
  • Command: vim btserver-console.log
  • LinuxGSM version: [v21.2.5]

Further Information

copypaste from a log file.

Barotrauma Dedicated Server 0.14.6.0 (ReleaseLinux, branch master, revision 694f7ad)
Loading game settings
Loading MD5 hash cache
Initializing SteamManager
Initializing GameAnalytics
Initializing GameScreen
Lua!
Mods/traitormod/Lua/Autorun/traitorloader.lua
[?1h=Loaded languages: English, German, French, Russian, Polish, Brazilian Portuguese, Castilian Spanish, Latinamerican Spanish, Simplified Chinese, Traditional Chinese, Japanese, Turkish, Korean                                                 
                                                                                 Loaded languages: English, German, French, Russian, Polish, Brazilian Portuguese, Castilian Spanish, Latinamerican Spanish, Simplified Chinese, Traditional Chinese, Japanese, Turkish, Korean                                                 
Selected sub: [EMS] The Whale Shark                                            
Selected shuttle: Hemulen                                                      
                                                                                 [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK.
CAppInfoCacheReadFromDiskThread took 1 milliseconds to initialize
CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread)
RecordSteamInterfaceCreation (PID 17677): SteamGameServer013 / 
RecordSteamInterfaceCreation (PID 17677): SteamUtils009 / 
Setting breakpad minidump AppID = 602960
RecordSteamInterfaceCreation (PID 17677): SteamGameServer013 / 
RecordSteamInterfaceCreation (PID 17677): SteamUtils009 / 
RecordSteamInterfaceCreation (PID 17677): SteamNetworking006 / 
RecordSteamInterfaceCreation (PID 17677): SteamGameServerStats001 / 
RecordSteamInterfaceCreation (PID 17677): STEAMINVENTORY_INTERFACE_V003 / 
RecordSteamInterfaceCreation (PID 17677): STEAMUGC_INTERFACE_VERSION014 / 
RecordSteamInterfaceCreation (PID 17677): STEAMAPPS_INTERFACE_VERSION008 / 
[S_API FAIL] Tried to access Steam interface SteamNetworkingUtils003 before SteamAPI_Init succeeded.
RecordSteamInterfaceCreation (PID 17677): SteamNetworkingUtils003 / 
RecordSteamInterfaceCreation (PID 17677): SteamNetworkingSockets008 / 
Warning: failed to set thread priority: set failed for 8: -1: setpriority() failed
Warning: failed to set thread priority: set failed for priority 8
Warning: support for elevated priorities is most likely unavailable, suppressing future warnings
[8/21/2021 11:20:26 AM]
  Starting the server...                               
[8/21/2021 11:20:26 AM]
  Using Lidgren networking. Manual port forwarding may be required. If players cannot connect to the server, you may want to use the in-game hosting menu (which uses SteamP2P networking and does not require port forwarding).                                                                       
[8/21/2021 11:20:26 AM]
  Server started                                       
                                                                                 [8/21/2021 4:04:21 PM]
  Hutmacher has joined the server.                      
[8/21/2021 4:04:21 PM]
  Saving client permissions                             
                                                                                 [8/21/2021 4:05:10 PM]
  Aldi Talk has joined the server.                      
[8/21/2021 4:05:10 PM]
  Saving client permissions                             
                                                                                 [8/21/2021 4:06:22 PM]
  Hutmacher is ready to start the game.                 
                                                                                 [8/21/2021 4:07:10 PM]
  Larry Lobster has joined the server.                  
[8/21/2021 4:07:10 PM]
  Saving client permissions                             
                                                                                 [8/21/2021 4:07:12 PM]

To Reproduce

create server do events check log.

Expected behaviour

game's own logs seem to work fine, altough don't log everything.

Originally created by @JoneKone on GitHub (Aug 26, 2021). Original GitHub issue: https://github.com/GameServerManagers/LinuxGSM/issues/3542 ## User Story bt-consolelog.txt is formated weirdly and maybe bugging out. ## Basic info * **Distro:** [Debian 9.2] * **Game:** [Barotaruma] * **Command:** vim btserver-console.log * **LinuxGSM version:** [v21.2.5] ## Further Information copypaste from a log file. ``` Barotrauma Dedicated Server 0.14.6.0 (ReleaseLinux, branch master, revision 694f7ad) Loading game settings Loading MD5 hash cache Initializing SteamManager Initializing GameAnalytics Initializing GameScreen Lua! Mods/traitormod/Lua/Autorun/traitorloader.lua [?1h=Loaded languages: English, German, French, Russian, Polish, Brazilian Portuguese, Castilian Spanish, Latinamerican Spanish, Simplified Chinese, Traditional Chinese, Japanese, Turkish, Korean  Loaded languages: English, German, French, Russian, Polish, Brazilian Portuguese, Castilian Spanish, Latinamerican Spanish, Simplified Chinese, Traditional Chinese, Japanese, Turkish, Korean Selected sub: [EMS] The Whale Shark Selected shuttle: Hemulen  [S_API] SteamAPI_Init(): Loaded local 'steamclient.so' OK. CAppInfoCacheReadFromDiskThread took 1 milliseconds to initialize CApplicationManagerPopulateThread took 0 milliseconds to initialize (will have waited on CAppInfoCacheReadFromDiskThread) RecordSteamInterfaceCreation (PID 17677): SteamGameServer013 / RecordSteamInterfaceCreation (PID 17677): SteamUtils009 / Setting breakpad minidump AppID = 602960 RecordSteamInterfaceCreation (PID 17677): SteamGameServer013 / RecordSteamInterfaceCreation (PID 17677): SteamUtils009 / RecordSteamInterfaceCreation (PID 17677): SteamNetworking006 / RecordSteamInterfaceCreation (PID 17677): SteamGameServerStats001 / RecordSteamInterfaceCreation (PID 17677): STEAMINVENTORY_INTERFACE_V003 / RecordSteamInterfaceCreation (PID 17677): STEAMUGC_INTERFACE_VERSION014 / RecordSteamInterfaceCreation (PID 17677): STEAMAPPS_INTERFACE_VERSION008 / [S_API FAIL] Tried to access Steam interface SteamNetworkingUtils003 before SteamAPI_Init succeeded. RecordSteamInterfaceCreation (PID 17677): SteamNetworkingUtils003 / RecordSteamInterfaceCreation (PID 17677): SteamNetworkingSockets008 / Warning: failed to set thread priority: set failed for 8: -1: setpriority() failed Warning: failed to set thread priority: set failed for priority 8 Warning: support for elevated priorities is most likely unavailable, suppressing future warnings [8/21/2021 11:20:26 AM] Starting the server... [8/21/2021 11:20:26 AM] Using Lidgren networking. Manual port forwarding may be required. If players cannot connect to the server, you may want to use the in-game hosting menu (which uses SteamP2P networking and does not require port forwarding). [8/21/2021 11:20:26 AM] Server started  [8/21/2021 4:04:21 PM] Hutmacher has joined the server. [8/21/2021 4:04:21 PM] Saving client permissions  [8/21/2021 4:05:10 PM] Aldi Talk has joined the server. [8/21/2021 4:05:10 PM] Saving client permissions  [8/21/2021 4:06:22 PM] Hutmacher is ready to start the game.  [8/21/2021 4:07:10 PM] Larry Lobster has joined the server. [8/21/2021 4:07:10 PM] Saving client permissions  [8/21/2021 4:07:12 PM] ``` ## To Reproduce create server do events check log. ## Expected behaviour game's own logs seem to work fine, altough don't log everything.
Author
Owner

@Claiyc commented on GitHub (Aug 26, 2021):

Seems like that gameserver uses something like ANSI colors in its console. The lgsm console log prints everything the console outputs (including the ANSI colors, which is that weird encoding you are seeing there).
To fix this, one could add a function to remove all ANSI encoding from the output (I think that could be done with some regex), but that takes some effort and isn‘t that necessary is it?

<!-- gh-comment-id:905966266 --> @Claiyc commented on GitHub (Aug 26, 2021): Seems like that gameserver uses something like ANSI colors in its console. The lgsm console log prints everything the console outputs (including the ANSI colors, which is that weird encoding you are seeing there). To fix this, one could add a function to remove all ANSI encoding from the output (I think that could be done with some regex), but that takes some effort and isn‘t that necessary is it?
Author
Owner

@JoneKone commented on GitHub (Aug 26, 2021):

considering that barotrauma's own logs are ... not up to bar .. and obviously this is some kind of windows thing on linux. The question in my mind is that why does it present the clock in that manner? It looks like it's doubled or something.

Screenshot from 2021-08-26 08-07-53

screenshot from tmux

<!-- gh-comment-id:906099660 --> @JoneKone commented on GitHub (Aug 26, 2021): considering that barotrauma's own logs are ... not up to bar .. and obviously this is some kind of windows thing on linux. The question in my mind is that why does it present the clock in that manner? It looks like it's doubled or something. ![Screenshot from 2021-08-26 08-07-53](https://user-images.githubusercontent.com/1114115/130904257-ca14057f-1e83-4d7a-994e-71bb3a0dfe46.png) screenshot from tmux
Author
Owner

@Claiyc commented on GitHub (Aug 26, 2021):

Well, that does not really have something to with lgsm as with the gameserver itself.

This may be closed or moved to a discussion.

<!-- gh-comment-id:906269996 --> @Claiyc commented on GitHub (Aug 26, 2021): Well, that does not really have something to with lgsm as with the gameserver itself. This may be closed or moved to a discussion.
Author
Owner

@JoneKone commented on GitHub (Aug 26, 2021):

well i tried. Also, it is 100% your generated log so 100% it has to do with lgsm

<!-- gh-comment-id:906344055 --> @JoneKone commented on GitHub (Aug 26, 2021): well i tried. Also, it is 100% your generated log so 100% it has to do with lgsm
Author
Owner

@github-actions[bot] commented on GitHub (Aug 27, 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:1229050099 --> @github-actions[bot] commented on GitHub (Aug 27, 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#2383
No description provided.