We are developing an online multiplayer game and are facing some technical difficulties on some online aspects. The functionality we want to achieve is on the server list widget, when refresh button is clicked, it will update the player count as well as ping number of all servers on the widget. Instead, what we have right now is that player count is always 1 and ping is always 9999. All servers are completely functional and players are able to join to play the game (we have tested it on Steam using our own AppID) but the displayed information is always incorrect. However, when testing inside editor with multiple instances open, those numbers are updated correctly. The following is how we set things up to try to get it working:
When constructing the widget as well as pressing the refresh button, we are calling the RefreshList macro:
And inside RefreshList macro, we use Find Session Advanced to find available sessions:
And after all available sessions are searched, we update the player count and ping number at the very end:
In terms of updating ping number we are just getting ping number and player count from session result.
We really appreciate it if anyone could let us know the best way to obtain correct player count and ping number.