Forum Discussion

Populate.World's avatar
5 months ago

IWP not working as presumed

Hi all,

 I am trying to set up a durable IWP for my game LZR[X] with a test object at 0 meta credits, but I cannot get it to work.

In the editor it tells me "Purchasing unavailable. Purchasing is only currently available in Meta Horizon Worlds VR" and when published "There was an error with purchasing 'object'. Please try again later". Surely this isn't the case as how can consumable-based games work?

Essentially what I want to happen is that players can purchase equipment before starting a game. At the moment I have 8 lasers that can be 'grabbed', but it is a bit of a clunky system and eventually I want to scale it so players can arm themselves,  grab power-ups and different bits of equipment is available.

I am on the MHCP. You can see the issue if you head over to the right-most leaderboard here. It's intentionally not obvious atm https://horizon.meta.com/world/1943738609728861

 

1 Reply

  • This morning I added in the Inventory Asset Template (https://developers.meta.com/horizon-worlds/learn/documentation/code-blocks-and-gizmos/inventory-asset-template) and have tested in VR. I was able to make the purchase of the laser, but when I choose 'Use' it just hangs. Going back into mobile I can see the Inventory icon and the laser in the inventory. I hit 'Use' and it say's 'Item Used' however nothing happens. I am expecting it to spawn in front of me, so maybe missing a step? Also, however, I still get the same mobile 'error' when attempting to buy an item using the IWP Gizmo.

    I have followed this tutorial (aside from the script elements) https://developers.meta.com/horizon-worlds/learn/documentation/mhcp-program/monetization/meta-horizon-worlds-inworld-purchase-guide

    Any tips welcome as I am working on this today.