x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Unable to get correct player count and ping using Steam session in packaged build

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:

alt text alt text

And inside RefreshList macro, we use Find Session Advanced to find available sessions:

alt text

And after all available sessions are searched, we update the player count and ping number at the very end:

alt text

In terms of updating ping number we are just getting ping number and player count from session result.

alt text

We really appreciate it if anyone could let us know the best way to obtain correct player count and ping number.

Product Version: UE 4.16
Tags:
4.png (31.0 kB)
5.png (99.3 kB)
1.png (211.7 kB)
2.png (147.6 kB)
3.png (158.9 kB)
more ▼

asked Apr 28 '18 at 11:09 PM in Blueprint Scripting

avatar image

CycloneInAmes
18 1 4 8

avatar image TSpartanT Aug 24 '18 at 02:07 AM

Having this same issue

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question