question

Tudor avatar image
Tudor asked

Economy V2: TransferInventoryItems

Trying to transfer items between two players by using different StackId's results in a

{
    "code": 400,
    "status": "BadRequest",
    "error": "InvalidParams",
    "errorCode": 1000,
    "errorMessage": "Request cannot specify different stacks for each inventory"
}

But what would be the reasoning for this? If I as player 1, split one of my items in two stacks and I want to transfer that new stack to another player, it should be possible.

Also, if you specify "default" for both stacks it will still give you this error.

In-Game Economy
2 comments
10 |1200

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

Rick Chen avatar image Rick Chen ♦ commented ·

Is this issue happening when transferring within one player?

0 Likes 0 ·
Tudor avatar image Tudor Rick Chen ♦ commented ·

Between two different players.

0 Likes 0 ·

1 Answer

·
kylemc@microsoft.com avatar image
kylemc@microsoft.com answered

I agree that this should be possible. This is currently a technical limitation in public preview. We hope to have it addressed for general availability.

4 comments
10 |1200

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

Tudor avatar image Tudor commented ·

As a follow up question, TransferInventoryItems, although it implies it would do multiple items, it actually does only one. I know there is ExecuteInventoryOperations, but that one doesn't allow it between two different players. Will TransferInventoryItems support multiple items in the future?

0 Likes 0 ·
kylemc@microsoft.com avatar image kylemc@microsoft.com Tudor commented ·

We've discussed adding a `ExecuteTransferOperations` API (or something like that) for that scenario. I suspect that once we address the limitation above it will be a feature we add.

0 Likes 0 ·
Matt Rochon avatar image Matt Rochon commented ·

This also affects transferring items between one player's collections. Separately, it would be helpful to be able to batch those, for example if i have a collection of 'new rewards' i want to transfer into a main inventory.

0 Likes 0 ·
kylemc@microsoft.com avatar image kylemc@microsoft.com Matt Rochon commented ·

Yep. Completely agree that this is primary scenario for batch transfer. No ETA on delivery yet, but it's something we're still tracking.

0 Likes 0 ·

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.

Error rendering WebPanel (widgets/consolidation-widget.ftl): org.hibernate.hql.internal.ast.QuerySyntaxException: AvailableConsolidation is not mapped [from AvailableConsolidation up where up.node = :node]