Does anyone know how to get the Active Users to update the player amount in the Instance dashboard for a Killing Floor 2 server?
Depends whether the server’s logging of player joins and leaves is adequate for AMP to track player movements.
You will need to post AMP logs (from the actual AMP_Logs, not the console) showing those events. This will enable an assessment whether the template can be updated accordingly
I figured it out.
For those of you that want your active users count on the dashboard to function when hosting a Killing Floor 2 (KF2) server instance, edit your GenericModule.kvp for the KF2 instance and use the following:
Console.AppReadyRegex=^[\d*.\d*] DevOnline: Server data: Ver: (.*)$*
Console.UserJoinRegex=^[\d*.\d*] DevNet: Join succeeded: (?.+?) playerid=(?0x[0-9A-Fa-f]+)$
Console.UserLeaveRegex=^[\d*.\d*] DevNet: CleanUp: clean up connection: RemoteAddr: .+?, PlayerId: (?0x[0-9A-Fa-f]+)$
Why don’t you post the logs so that this can be added to the template? Or better yet create a PR?
Telling people to edit the kvp, which will be reset on instance update, is such a roundabout way to respond to my request xD
Even more so given what you have posted won’t actually enable AMP to track users, given you haven’t used any capture group
The logs have too many IP’s and usernames I’d have to bleep out. I’ll do a pull request when I have a moment. Finding time to even do this with 2 babies is a nightmare when I just want to play.
I’m not sure what you mean by not using any capture group? It captures users joining and leaving the server and updates the active users amount with my changes.
I’d only need one example of a player joining and player leaving
Sure, this will match when a player joins, but you won’t see any usernames or identifying details in the panel, and likely when a player leaves, all of them will be treated as leaving, since the regex doesn’t specifically match to only one of them, but to all of them
I did see usernames in the panel.
The log shows a player join and disconnect like this:
[41864.76] DevNet: Join succeeded: ThiccBootyJane playerid=0x01100001420D93BF
[41903.58] DevNet: CleanUp: clean up connection: RemoteAddr: 73.41.110.7:59552, PlayerId: 0x01100001420D93BF
The update I used seemed to function properly.
I’ve added the correct regex to the template