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"

APartyBeaconXXXX usage - General Questions

I am trying to mimic / recreate the Party and Matchmaking system from Gears of War 3 (because it's still great tbh), and am trying to use the PartyBeaconHost and PartyBeaconClient objects to reserve space on a Server before actually connecting to it. At the moment, I'm using this to create a Persistent Party so players can match-make together and stay together through the menus etc.

Unfortunately, UParty (Another engine class entirely) relies on your Online Sub System of choice providing an implementation for OnlinePartyInterface (spoiler alert: literally NONE of them do this) - so unless you're using Epic's own OSS (whatever that is) then this class is pretty much useless.

I have been able to get the default player to create the Host Beacon (AOnlineBeaconHost) and Host Beacon Object (APartyBeaconHost - confusing naming convention btw) - but the Host Player doesn't make themselves a reservation on the Server, so there appear to be no players in the party according to the beacon (even though the player is in the Session using PartySessionName).

This is how I create the Beacon Host and Beacon Host Object (in a custom manager class that takes the place of UParty)

alt text

So, a few questions after this point:

  • How do I make a reservation for the Server? I'm not sure if I need to create a Client Beacon for the Server Player and use that - or can I just add a reservation manually by calling APartyBeaconHost::AddReservation()

  • Do remote clients know when reservations are being made on the host they are connected to?

  • When a host decides "let's create or host a new game session" - what do they do? I notice that UPartyBeaconState is a UObject rather than an Actor, which leads me to believe you're meant to save it off somewhere, then create a new AOnlineBeaconHost and APartyBeaconHost on the other side and restore it from that state. Clients are in the 'PartyGameSession' together, but how do they know to re-make their reservations on the other side. Actually, what DO clients do on the other side?

  • Finally - Let's say a Listen Server is hosting a Game Session - how do I set this up so that the session can be found by strangers, and they can make a reservation for the Game (with their own Party members) - but without joining the persistent party? Do I have to create an entirely different set of beacons for that?

Product Version: UE 4.17
beecuns.jpg (78.0 kB)
more ▼

asked Oct 06 '17 at 03:34 PM in C++ Programming

avatar image

815 60 97 140

avatar image TheJamsh Oct 06 '17 at 03:35 PM

A minor update - this is how I'm currently making the "Reservation" for the Server Player once their party is first created. No idea if this is the right method or if I should use a Client Beacon...

alt text

hiya.jpg (114.4 kB)
avatar image TheJamsh Oct 06 '17 at 03:49 PM

Okay so the above doesn't work, because it looks as though the Party Leader doesn't have a Valid 'AuthTicket' (or rather, the string is empty).

In APartyBeaconHost there's a non-virtual function called 'RegisterAuthTicket', but this doesn't appear to be called anywhere - I guess I'm supposed to do this myself, but it so, where?

avatar image TheJamsh Oct 06 '17 at 03:37 PM

Oh and one other question - let's say a Persistent Party Leader (which has a few members) decides they want to join somebody else's Persistent Party - how do I then connect ALL players in their party to the other party? Does the host retain their own Beacon Host, or are members told to disconnect entirely from the original party and try to connect to the new one?

The latter seems like the smarter approach, otherwise you could end up with a spider-web of beacons - but I'm honestly not sure.

avatar image TheJamsh Oct 09 '17 at 04:40 PM

Tagging @[EPIC] Crzyhomer / @joshmarkiewicz

avatar image TheJamsh Oct 09 '17 at 04:42 PM

A few days later, now realising I need to have data attached to each player (such as their Rank, Name etc.) - so now Lobby Beacons look like they suit this better :/

(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