Steamworks Workshop Implementation?

.h file:



AppId_t MyAppId;


.cpp file:

Constructor:



MyAppId = 1010101; //Your AppID


In function:



if (SteamAPI_Init())
{
       SteamAPICall_t CreatedItem = SteamUGC()->CreateItem(MyAppId, k_EWorkshopFileTypeCommunity);
}


Thanks thanks!

What is the difference between your code and what I originally wrote?



SteamUGC()->CreateItem(MyAppId, k_EWorkshopFileTypeCommunity);


Thanks again!

ZeJudge, can you manage to do that? Some tutorial about it?
Thanks

Sorry for the necro.

I’ve got my workshop items to successfully load in Standalone, but when my game is built, it returns garbage values (e.g. Workshop items: 283748923).

For the built game, the steam_appid.txt file’s in the correct location and the Steam overlay is present, so not sure what I’m doing wrong.

I’m in 4.27 using the default Steamworks v1.51.

Has anyone come across this error?