When a player client joins an Arma 3 server, it is possible for BattlEye to indicate a negative ping value (-1). The cause of this is unknown to me, but it is something that can happen regardless of what RCON client is used. See screenshot example:
Application: battleWarden EX
The current regex expression does not handle this edgecase, causing that specific client to not get added to the result player list.
Changes
The fix to the above scenario is a small adjustment to the regex by adding an additional -? to the ping group, resulting in the following new expression:
(\d+) *(\d*\.\d*\.\d*\.\d*):(\d*) *(-?\d+) *(\S{32})\((\S+)\) (.+?)(?=(?: \(Lobby\)$)|(?:$))( \(Lobby\))?
Situation
When a player client joins an Arma 3 server, it is possible for BattlEye to indicate a negative ping value (-1). The cause of this is unknown to me, but it is something that can happen regardless of what RCON client is used. See screenshot example:
Application: battleWarden EX
The current regex expression does not handle this edgecase, causing that specific client to not get added to the result player list.
Changes
The fix to the above scenario is a small adjustment to the regex by adding an additional
-?
to the ping group, resulting in the following new expression:(\d+) *(\d*\.\d*\.\d*\.\d*):(\d*) *(-?\d+) *(\S{32})\((\S+)\) (.+?)(?=(?: \(Lobby\)$)|(?:$))( \(Lobby\))?
Examples
Old regex:
Updated regex:
IP has been redacted from the images