Steamworks Inventory Items

Hello!

could anyone please help me with getting items to drop to my steam inventory?

i had to compile in a custom node wich i use to trigger an itemdrop from steam but when i try to trigger it, there is no drop from steam when i run it from there. i’ve uploaded steam_appid.txt also with the correct ID. engine.ini is also set with this ID.

the code for the custom node is:


#include "SteamInventoryBlueprintLibrary.h"
#include "Steam/steam_api.h"

bool USteamInventoryBlueprintLibrary::TriggerSteamItemDrop(int32 ItemDefID)
{
    if (SteamInventory() != nullptr)
    {
        SteamInventoryResult_t ResultHandle;
        bool bSuccess = SteamInventory()->TriggerItemDrop(&ResultHandle, ItemDefID);

        if (bSuccess)
        {
            // Handle the result if necessary (e.g., storing the result, logging, etc.)
            return true;  // Return true if the drop was triggered successfully
        }
    }

    return false;  // Return false if there was an issue
}

this gives me a custom node wich i can put in a number in the ID portion of the node, in there i put 1, because the ItemDefID i want dropped from steamworks is 1.

the json code for the item is:

{
“appid”: “3191340”,
“itemdefid”: “1”,
“Timestamp”: “2024-08-28T14:22:26Z”,
“modified”: “20240828T142226Z”,
“date_created”: “20240825T151021Z”,
“type”: “playtimegenerator”,
“display_type”: “”,
“name”: “Soul Coin”,
“quantity”: 1,
“description”: “When you hold the coin, you can almost feel a memory. Long forgotten by someone…”,
“background_color”: “3C352E”,
“icon_url”: “IDKFA: Image”,
“icon_url_large”: “IDKFA: Image”,
“name_color”: “7D6D00”,
“tradable”: true,
“marketable”: true,
“commodity”: false,
“auto_stack”: true,
“item_slot”: “”
}

i’ve never played around with steamworks before and honestly, im still a newbie to UE so i’m at a bit of a loss here now :frowning: