I have created an Action with Event type: com.playfab.player_added_title, no conditions and one action: granting an item to the user. I would like to use it to grant a starter bundle to new users. But I have already created 3 new accounts and neither of them got the bundle. If you want to test my title, go ahead. My title id is C938 and there is only one PlayStream Action.
Answer by Brendan · Sep 15, 2016 at 04:19 PM
Update: This should be fixed for all titles now (the issue being that actions without conditions weren't firing). If you are still seeing the issue, please re-save your Actions in the Game Manager, to make sure the definition for your Actions are up-to-date.
Your Action is defined as adding ItemId BUNDLE_0 to the player, but that ItemId does not exist in your catalog currently. Did you delete the item, perhaps?
No, this item definitely exists in my catalog. It is one of my bundles with a display name "Starter bundle". I have even chosen this bundle from the list of all of my items while creating the Action.
Sorry, it is called "Starter Bundle" not "Starter bundle".
Hmm... That's odd - I'm not sure why I wasn't seeing those earlier. That said, thanks for calling this out - it helped us to find an issue.
The problem is that an Event Action without a Condition isn't being evaluated. We'll have the fix for that rolled out shortly (checking it in now, and then we'll be running the full battery of regression tests). I'll update here when the fix has been released to live.
Great :) Is there any condition that is always true for a new user for a temporary walkaround? I tried with comparing my virtual currency to 0 but that didn't work.
It would also be great to know now if the item I am going to grant will be visible in the response of the first login request so I can create my system with that assumption in mind.
Can you also let me know when I can delete the account you have created?
I have gotten this working for PlayFab events, but I am still having this issue for our custom event at the time of this post. TitleID is EC18. Feel free to use the account with "Kain" in the DisplayName for testing as I'm constantly deleting that account. Or you can make a new one, if you wish.
The custom event is 'QtnMissionStart'. It shows up in the Playstream, but there seems to be no evidence of associated actions getting triggered. I've tried adding an always true condition based on EventName. Since I am using this for the first time, there is a good chance this is user error.
Another point of data with this is that I am using client WriteCharacterEvent to trigger this.
For custom events, you need to have the fully qualified event name - I've updated your Rule for this, but the full event name in this case is "title.EC18.mission_start".
Thanks, Brendan... on a Sunday, too.
Sadly, I am still getting the same result. Is there any way to send Playstream events from the admin console the same way we can "Run Cloudscript"?
hi, my Action (grant VC) in rule did not call, but playstream call..
i use PlayFabClientAPI.WritePlayerEvent
pls help
,hi, i use PlayFabClientAPI.WritePlayerEvent on client,
to call costum event,
in rule, i add Action to grant VC on it..
the playstream show, but action not called..
pls help
What is the Title ID, the PlayFab ID of the user you're testing, and the name of the custom event?
@Brendan, ok
Title ID = D04D
Playfab ID = 78DF1BAA3A86BD50
and custom event name = player_skill0
display custom event name = Player skill0
Please see my post above, from Sept 17. You must specify the fully-qualified event name for the custom event. Right now, you have it defined in the action as "player_skill0". You're missing the "title.{TitleId}" part of the name.
Duplicated Event Problem 2 Answers
Item expiration and events 1 Answer
Is it possible to have PlayStream event when an inventory item expires? 1 Answer
How to revoke player inventory item from the console and automatically update the player data 1 Answer
Passing custom data in player_inventory_item_added event 1 Answer