Question - Code Adding a file to Steam Workshop

Discussion in 'GameMaker Studio 2 Community Tech Support' started by CKlidify, Jun 30, 2017.

  1. CKlidify

    CKlidify Member

    Joined:
    Nov 22, 2016
    Posts:
    9
    I'm trying to make it so I can upload files to steam workshop and I'm using this code to test it:

    new_map = steam_ugc_create_item(steam_get_app_id(), ugc_filetype_community);
    var title = get_string("Title","");
    steam_ugc_set_item_title(new_map, title);
    var desc = get_string("Description","");
    steam_ugc_set_item_description(new_map, desc);
    steam_ugc_set_item_visibility(new_map, ugc_visibility_public);
    var tags;
    tags[0] = "map";
    steam_ugc_set_item_tags(new_map,tags);
    screen_save("map.png")
    steam_ugc_set_item_preview(new_map, "map.png");
    file_copy(global.file,title + "/map.ssm");
    steam_ugc_set_item_content(new_map, title);
    requestID = steam_ugc_submit_item_update(new_map, "Version 1")

    After doing this and going to my game's steam workshop, there's nothing there :/
    The copied file exists in the proper spot and so does the screenshot. Am I doing something wrong?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice