question

Jim Perry avatar image
Jim Perry asked

Get User Generated Content not created by current player

So I have user generated content in the form of levels that players can download. In the scene to let a player select a UGC level I need to filter out levels created by that player. It seems that the Creator ID displayed in the Catalog page isn't the CreatorId that you can use in the SearchItemsRequest method:

The Items in the returned data contains levels for the player:

If this is not the CreatorId you use in the Filter, what is it? Is there some doc that shows the fields you can use in requests and what field they correspond to in the game's dashboard?

ugcfilter1.png (68.2 KiB)
ugcfilter2.png (78.6 KiB)
10 |1200

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

Gosen Gao avatar image
Gosen Gao answered

If you want to filter the item by creatorId, then the Filter should look like this.

"Filter": "creatorId ne 'title_player_account!xxxxxxxxxxxxxxx'"

For more info, please refer to SearchItems.

10 |1200

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

Jim Perry avatar image
Jim Perry answered

Thanks for the reply @Gosen Gao but I get the following error with that:

/Catalog/SearchItems: Syntax error: character '!' is not valid at position 33 in 'CreatorId ne title_player_account!B08E567555AED233''. Correlation Id: T9jt9rYzREqOah2lAwptiA.0 MS-CV: T9jt9rYzREqOah2lAwptiA.0 UnityEngine.Debug:Log(Object) <>c:<GetCustomLevels>b__14_1(PlayFabError) (at Assets/Scripts/LevelSelect.cs:149) PlayFab.Internal.PlayFabUnityHttp:OnResponse(String, CallRequestContainer) (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:218) PlayFab.Internal.<Post>d__12:MoveNext() (at Assets/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:157) UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Changing the ! to . doesn't work either.

10 |1200

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

Jim Perry avatar image
Jim Perry answered

And it seems like it's working for some reason now. Thanks!

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.