v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Steam workshop tokens"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (→‎Steam Workshop tokens: Added overwriting disclaimer to description token)
 
(6 intermediate revisions by one other user not shown)
Line 2: Line 2:
 
== Steam Workshop tokens ==
 
== Steam Workshop tokens ==
  
These tokens are used to get the mod to work on Steam Workshop.
+
These tokens are required for the mod to function properly on Steam Workshop.
  
 
{| {{prettytable}}
 
{| {{prettytable}}
|- bgcolor="#999999"
+
|- bgcolor="#DCCF99"
 
! Token
 
! Token
! Arguments
+
! Type
! Usage
+
! Req?
 
! Description
 
! Description
! Ext Doc
+
! Example
 +
! External Doc
  
 
|-
 
|-
 
| {{text anchor|STEAM_TITLE}}
 
| {{text anchor|STEAM_TITLE}}
| string
+
| single string
| {{tc|red|Required}}
+
| {{tc|red|Req}}
| The title of the mod on Steam Workshop. Example: ''Imani's Tweaks''
+
| The title of the mod on Steam Workshop.
 +
| ''<nowiki>[STEAM_TITLE:Imani's Tweaks]</nowiki>''
 
| [https://partner.steamgames.com/doc/api/ISteamUGC#SetItemTitle SetItemTitle]
 
| [https://partner.steamgames.com/doc/api/ISteamUGC#SetItemTitle SetItemTitle]
  
 
|-
 
|-
 
| {{text anchor|STEAM_DESCRIPTION}}
 
| {{text anchor|STEAM_DESCRIPTION}}
| string
+
| single string
 
|
 
|
| The description of the mod on Steam Workshop. Maximum size is 8000 bytes (about 400 words). Example: ''This is my collection of small changes and additional content.''
+
| The description of the mod on Steam Workshop. Maximum size is 8000 bytes (about 400 words).
 +
Will overwrite the existing description of the mod on the workshop, can be omitted to avoid this behavior.
 +
| ''<nowiki>[STEAM_DESCRIPTION:This is my collection of small changes and additional content.]</nowiki>''
 
| [https://partner.steamgames.com/doc/api/ISteamUGC#SetItemDescription SetItemDescription]
 
| [https://partner.steamgames.com/doc/api/ISteamUGC#SetItemDescription SetItemDescription]
  
 
|-
 
|-
 
| {{text anchor|STEAM_TAG}}
 
| {{text anchor|STEAM_TAG}}
| string
+
| multi string
 
|
 
|
| Any number can be used. Each string must be under 255 chars.
+
| Any number can be used. Use a separate STEAM_TAG for each one. Each string must be under 255 chars.  
 +
| ''<nowiki>[STEAM_TAG:ui][STEAM_TAG:tweak]</nowiki>''
 
| [https://partner.steamgames.com/doc/api/ISteamUGC#SetItemTags SetItemTags]
 
| [https://partner.steamgames.com/doc/api/ISteamUGC#SetItemTags SetItemTags]
  
 
|-
 
|-
 
| {{text anchor|STEAM_KEY_VALUE_TAG}}
 
| {{text anchor|STEAM_KEY_VALUE_TAG}}
| string1,  
+
| multi string1, string2
string2
+
|
 +
| Any number can be used.
 
|
 
|
| Any number can be used.
 
 
| [https://partner.steamgames.com/doc/api/ISteamUGC#SetReturnKeyValueTags SetReturnKeyValueTags]
 
| [https://partner.steamgames.com/doc/api/ISteamUGC#SetReturnKeyValueTags SetReturnKeyValueTags]
  
 
|-
 
|-
 
| {{text anchor|STEAM_METADATA}}
 
| {{text anchor|STEAM_METADATA}}
| string
+
| multi string
 
|
 
|
 
| Sets arbitrary metadata for an item. This metadata can be returned from queries without having to download and install the actual content. Toady doesn't know what it does [http://www.bay12forums.com/smf/index.php?topic=169696.msg8431542#msg8431542].
 
| Sets arbitrary metadata for an item. This metadata can be returned from queries without having to download and install the actual content. Toady doesn't know what it does [http://www.bay12forums.com/smf/index.php?topic=169696.msg8431542#msg8431542].
 +
|
 
|[https://partner.steamgames.com/doc/api/ISteamUGC#SetItemMetadata SetItemMetadata]
 
|[https://partner.steamgames.com/doc/api/ISteamUGC#SetItemMetadata SetItemMetadata]
  
 
|-
 
|-
 
| {{text anchor|STEAM_CHANGELOG}}
 
| {{text anchor|STEAM_CHANGELOG}}
| string
+
| single string
 
|
 
|
| A brief description of the changes made. (Optional, set to NULL for no change note). The log message is only for the version you're uploading. This should be different each time you update a mod, and only include the changes in the new version. Steam Workshop congregates all version changelogs, so a full changelog can be seen there. Example: ''Made the mod compatible with yada yada''
+
| A brief description of the changes made. (Optional, set to NULL for no change note). The log message is only for the version you're uploading. This should be different each time you update a mod, and only include the changes in the new version. Steam Workshop congregates all version changelogs, so a full changelog can be seen there.  
 +
| Initial example: ''<nowiki>[STEAM_CHANGELOG:Initial release]</nowiki>''
 +
Update example: ''<nowiki>[STEAM_CHANGELOG:Update the mod compatible with...]</nowiki>''
 
|
 
|
  
Line 58: Line 66:
 
| {{text anchor|STEAM_FILE_ID}}
 
| {{text anchor|STEAM_FILE_ID}}
 
| uint64
 
| uint64
| {{tc|red|Required (subsequent times)}}
+
| {{tc|red|Req, autogen}}
 
| Connects the mod to an entry on the Steam Workshop.  
 
| Connects the mod to an entry on the Steam Workshop.  
  
Generated automatically the first time you upload a mod to Workshop, '''do not include it manually'''. If you upload a mod with an existing STEAM_FILE_ID token, it will update the Workshop entry connected to the ID. You can presumably only do this if you're the original uploader of said mod.  
+
Generated automatically the first time you upload a mod to Workshop, '''do not include it manually'''. If you upload a mod with an existing STEAM_FILE_ID token, it will update the Workshop entry connected to the ID. (Presumably only if you're the original uploader of said mod.)
 +
|
 
|
 
|
  

Latest revision as of 05:22, 12 March 2024