question

Jørgen Havsberg Seland avatar image
Jørgen Havsberg Seland asked

Need temporary player attributes together with match result: Cloud Script does not fire on Matchmaking 2.0 Beta matchmaking_match_found event

This was originally a side question for this post, but is interesting on its own, therefore I am making a new post:

While waiting for a reply, I went ahead and attempted Solution 4 for bundling player attributes, using CloudScript (which was mentioned in private correspondence), build around a CloudScript function that

  1. obtains the original tickets from the matchmaikng_match_found event,
  2. obtains the connection information from Members[Creator].Attributes of each original ticket, then
  3. creates a Group containing the matched players, and finally
  4. adds the connection information to the group using SetObjects on this group.
  5. The players will have to poll ListMembership until they discover that they are members of such a group, then
  6. each member can obtain connection information from the group using GetObjects.

This, however, fails *before the first step*, since the rule never triggers.

Maybe this is because com.playfab.events.multiplayer.matchmaking.matchmaking_match_found is not a player event (it does not appear on the individual players' PlayStream tab, and its entity lineage has only null entries except for TitleId and NamespaceId)? This at least seems to be a current limitation it PlayStream-triggered CloudScript, according to this post.

The rule in the screenshot below yields no player_triggered_action_executed_cloudscript events (as opposed to an almost identical rule using an event triggered by WritePlayerEvent).

Please advice if this approach is at all possible given the current event trigger limitations.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
JayZuo avatar image
JayZuo answered

Yeah, for now, Rules will only run against players. And as Brendan said, they are broadening the Rules to provide for ways to run then based upon Entity level events in a future update. By then, you would be able to create a rule against "matchmaking_match_found". Please keep an eye on the Blog for latest news.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.