question

Victor Burgos avatar image
Victor Burgos asked

Economy v2 Catalog - Is it possible to COPY it from one title to another (same studio)

Hi all!

So, I'm starting my journey with Economy v2 (or rather, restarting after a short break). I have things working well. The thing is, my studio has multiple titles (for the same game, just different requirements: Development, QA, Live, etc.)

I was testing it on Dev, and currently, there are only a few items, so I have no issue manually copying it over just yet... but there's going to come a time when it's a going to be more than just a few, and I honestly don't have time for that, and/or want to make any human mistakes.

If the Catalog works on Dev, I want to copy that sucker to the other titles.

JSON download/upload looked interesting, but that was a thing in Economy v1...so how can we do it quickly in v2 using Game Manager?

On a side note to anyone else looking and may run into the same issue, hopefully, this saves you a little bit of time. I had originally been doing lookups with the ItemID on the Player's Inventory...but guess what, each time you create something, it's a new ID, including in the new titles... which led me to use the Friendly ID field for my lookups. HOWEVER...sadly... the Friendly ID is not so friendly, and doesn't transfer over to Inventory, why that's not a thing is beyond me. So, I have to not only cache my Player's Inventory, but also the whole Catalog (which in hindsight, I'd probably want to do anyway, too bad it's only max 50 at a time), and then in my logic do some conversions for the lookups, using the Friendly ID in my Data Table.

And why? So that when you create a new item in another title, you can use the same Friendly ID and use that for your lookup because you are going to have a different Item ID (and least if you do it manually via Game Manager).

apisIn-Game Economyunrealgame managerPlayer Inventory
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

·
Simon Cui avatar image
Simon Cui answered

Currently, Economy V2 doesn’t support a quick copy and paste of Catalog among different titles via Game Manager. As a workaround, you can use API to implement it. The workflow may be: Using Catalog - Search Items - REST API (PlayFab Economy) | Microsoft Learn to cache the items data of a Catalog, then calling Catalog - Create Draft Item - REST API (PlayFab Economy) | Microsoft Learn to create Catalog item one by one in another title according to your cached data

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.