• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Steam Workshop trouble (UGC - steam_ugc_set_item_content)

TERNOX

Member
Hi! I have a problem with function steam_ugc_set_item_content.
I made in my game level editor, and I want to bind it to the workshop.

I did everything by example on docs.yoyogames.com:
Code:
var app_id = steam_get_app_id(); 
var updateHandle = steam_ugc_start_item_update(app_id, global.Publish_ID); 
steam_ugc_set_item_title(updateHandle, "My workshop item(3)!"); 
steam_ugc_set_item_description( updateHandle, "testing workshop..."); 
steam_ugc_set_item_visibility(updateHandle, ugc_visibility_public); 
var tagArray; 
tagArray[0] = "Test"; 
tagArray[1] = "New"; 
steam_ugc_set_item_tags(updateHandle, tagArray); 
steam_ugc_set_item_preview(updateHandle, "promo.jpg"); 
steam_ugc_set_item_content(updateHandle, "WorkshopContent1"); 
requestId = steam_ugc_submit_item_update(updateHandle, "Version 1.2");
Item created, the picture is loaded, the description is filled in, but the file is not loaded.
I tried to include a link to the folder with the file, and a link to the file - but it is useless.

Please explain to me how it works.
 
Top