Represents Steam SDK EUGCMatchingUGCType, matching UGC types for queries.
ItemsItemsMtxItemsReadyToUseCollectionsArtworkVideosScreenshotsAllGuidesWebGuidesIntegratedGuidesUsableInGameControllerBindings
Represents Steam SDK EUGCQuery, combination of sorting and filtering for queries across all UGC.
RankedByVoteRankedByPublicationDateAcceptedForGameRankedByAcceptanceDateRankedByTrendFavoritedByFriendsRankedByPublicationDateCreatedByFriendsRankedByPublicationDateRankedByNumTimesReportedCreatedByFollowedUsersRankedByPublicationDateNotYetRatedRankedByTotalVotesAscRankedByVotesUpRankedByTextSearch
Represents Steam SDK SteamUGCDetails_t(return by greenworks.ugcGetItems), details for a single published file/UGC
acceptForUseBoolean: Whether is flaged as accepted in Steam workshop.bannedBoolean: Whether is bannedtagsTruncatedBoolean: Whether the list of tags is too long to be returned in provided buffer.fileTypeInteger: Type of the fileresultInteger: Result of the operation.1: SuccessOthers: Fail
visibilityInteger: the visiblility of the file0: Public1: FriendsOnly2: Private
scoreDouble: Calculated scorefileString: Represents uint64, file handlefileNameString: Cloud file name of the primary filefileSizeInteger: Size of the primary filepreviewFileString: Represents uint64, handle of preview filepreviewFileSizeInteger: Size of preview filesteamIDOwnerString: Represents uint64, Steam ID of user who created the file.consumerAppIDInteger: ID of app that consumes the filecreatorAppIDInteger: ID of app that created the filepublishedFileIdString: Represents uint64, the file IDtitleString: Title of the filedescriptionString: Description of the fileURLString:tagsString: List of tags, separated by comma.timeAddedToUserListInteger: Time when user added this file to list.timeCreatedInteger: Time when the file was createdtimeUpdatedInteger: Time when the file is last updated.votesDownInteger: Number of votes downvotesUpInteger: Number of votes up
Represents Steam SDK EUserUGCList, different lists of published UGC for a user.
PublishedVotedOnVotedUpVotedDownWillVoteLaterFavoritedSubscribedUsedOrPlayerFollowed
Represents Steam SDK EUserUGCListSortOrder, sort order for user published UGC lists
CreationOrderDescCreationOrderAscTitleAscLastUpdatedDescSubscriptionDateDescVoteScoreDescForModeration
Represents Steam SDK EItemState, local state of a workshop item (combinable flags)
NoneSubscribedLegacyItemInstalledNeedsUpdateDownloadingDownloadPending
file_pathStringsuccess_calbackFunction(file_handle)file_handleString: Represents uint64, the file handle that can be shared with users and features.
error_callbackFunction(err)
greenworks.publishWorkshopFile([options, ] file_path, image_path, title, description, success_callback, [error_callback])
optionsObjectapp_idInteger: The App ID that will be using this workshop filetagsArray of String: The tags of the workshop file
file_pathStringimage_pathStringtitleStringdescriptionStringsuccess_callbackFunction(publish_file_handle)publish_file_handleString: Represents uint64, the published file handle
error_callbackFunction(err)
Publishes file_path workshop item on Steam. Before doing this, the files file_path and
image_path need to exist on Steam Cloud (using writeTextToFile or
saveFilesToCloud API) and need to be be shared (using Greenworks.fileShare).
An empty String of image_path means no image for the workshp item.
greenworks.updatePublishedWorkshopFile([options, ] published_file_handle, file_path, image_path, title, description, success_callback, [error_callback])
optionsObjecttagsArray of String: The tags of the workshop file. To delete all existing tags, passing an array with an empty string['']
published_file_handleString: Represents uint64, the published file handle.file_pathStringimage_pathStringtitleStringdescriptionStringsuccess_callbackFunction()error_callbackFunction(err)
An empty String of file_path/image_path/title/description means no update of that field.
greenworks.ugcPublish(file_path, title, description, image_path, success_callback, [error_callback], [progress_callback])
file_pathStringtitleStringdescriptionStringimage_pathStringsuccess_callbackFunction(published_file_handle)published_file_handleString: Represents uint64, the published file handle
error_callbackFunction(err)progress_callbackFunction(progress_msg)progress_msgString: current process during publish period:Completed on saving files to Steam Cloud,Completed on sharing files.
Publishes user generated content(ugc) to Steam workshop.
greenworks.ugcPublishUpdate(published_file_handle, file_path, title, description, image_path, success_callback, [error_callback], [progress_callback])
published_file_handleString: Represents uint64, the published file handlefile_pathStringtitleStringdescriptionStringimage_pathStringsuccess_callbackFunction()error_callbackFunction(err)progress_callbackFunction(progress_msg)progress_msgString: current process during publish-update period:Completed on saving files to Steam Cloud,Completed on sharing files.
Updates published ugc.
greenworks.ugcGetItems([options, ] ugc_matching_type, ugc_query_type, success_callback, [error_callback])
optionsObjectapp_idInteger: The consumer App IDpage_numInteger: The page number of the results to receive, this should start at 1 on the first call
ugc_matching_typegreenworks.UGCMatchingTypeugc_query_typegreenworks.UGCQueryTypesuccess_callbackFunction(items)itemsArray ofSteamUGCDetailsObject
error_callbackFunction(err)
greenworks.ugcGetUserItems([options, ] ugc_matching_type, ugc_list_sort_order, ugc_list, success_callback, [error_callback])
optionsObjectapp_idInteger: The consumer App IDpage_numInteger: The page number of the results to receive, this should start at 1 on the first call
ugc_matching_typegreenworks.UGCMatchingTypeugc_list_sort_ordergreenworks.UserUGCListSortOrderugc_listgreenworks.UserUGCListsuccess_callbackFunction(items)itemsArray ofSteamUGCDetailsObject
error_callbackFunction(err)
download_file_handleString: Represents uint64, the download file handledownload_dirString: The file path saving the download file on local machinesuccess_callbackFunction()error_callbackFunction(err)
optionsObjectapp_idInteger: The consumer App IDpage_numInteger: The page number of the results to receive, this should start at 1 on the first call
sync_dirString: The directory to download the sync workshop item.success_callbackFunction(items)itemsArray of ObjectSteamUGCDetailsisUpdatedBoolean: Whether the item is updated in this function call
error_callbackFunction(err)
Downloads/Synchronizes user's workitems(UserUGCList.Subscribed,
UserMatchingType.Items) to the local sync_dir (Only updated if the last
updated time of the item is different with Steam Cloud or the workitem isn't
existed in local).
published_file_handleString: Represent uint64, the file handle of unsubscribed published workshp item(SteamUGCDetails.publishedFileId).success_callbackFunction()error_callbackFunction(err)
published_file_idString: Represents uint64, the id of published file.
Shows the Steam overlay pointed to Steam's workshop page or to the specified workshop item.
published_file_idString: Represents uint64, the id of published file.
Fetches the greenworks.UGCItemState of the specified workshop item.
published_file_idString: Represent uint64, the id of published file.
Fetches a workshop item's install information if its state includes greenworks.UGCItemState.Installed.
Returns undefined if the information could not be fetched, otherwise an object containing the following properties:
sizeOnDiskString: Represents uint64, the size of the item on diskfolderString: Path to the item's directory on disk, if state isLegacyItemthis points to the file itselftimestampInteger: Returns the time when the item was last updated