Add Non-Steam Game: Difference between revisions
GamerDude27 (talk | contribs) m (Removed duplicate entries and correct casing) |
(→File format: Adding new property) |
||
| (7 intermediate revisions by 4 users not shown) | |||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:Adding Non-Steam Games}} | {{DISPLAYTITLE:Adding Non-Steam Games}} | ||
{{stub}} | {{stub}} | ||
{{For|reading or writing with a script|[[Steam Library Shortcuts]]}} | |||
{{For|more info about characters|[[Binary VDF]]}} | |||
Non-Steam Games are saved in the file: <code><<Steam Installation>>\userdata\<<User ID>>\config\shortcuts.vdf</code>. | |||
Null (<code>NUL</code>) characters are used to denote the end of a key. | |||
A key surrounded by two Null (<code>NUL</code>) characters denote the beginning of a set. (e.g. <code>NUL</code>Set Name<code>NUL</code>) | |||
Start of Header (<code>SOH</code>) characters are used to denote that next key is actually a value to assign to this key. (e.g. <code>SOH</code>Key<code>NUL</code>Value<code>NUL</code>) | |||
Start of Text (<code>STX</code>) characters are used to denote that the next several keys are values to assign to this key. (Always four special characters - Could be one <code>SOH</code> and three <code>NUL</code>, or four <code>NUL</code> in a row) | |||
Backspace (<code>BS</code>) characters are used to denote the end of a set. (e.g. <code>NUL</code>Set Name<code>NUL</code>Definition<code>BS</code>) | |||
Typical format is as follows ( | Typical format is as follows (New lines and indentation added for clarity; characters within two vertical separators, e.g. |NUL|, represent special characters): | ||
{{note|There should not be '''any''' new lines in your actual shortcuts.vdf file.}} | {{note|There should not be '''any''' new lines or indentation in your actual shortcuts.vdf file.}} | ||
{{note|Indentation is only a best guess attempt at determining the format of the .vdf file.}} | |||
==File format== | |||
{{Note|Quotes are optional, steam will find the application either way.}} | |||
<pre> | <pre> | ||
|NUL|shortcuts|NUL| | |||
|NUL|0|NUL| | |||
|STX|appid|NUL||NUL||NUL||NUL||NUL| | |||
|SOH|AppName|NUL|APP NAME WITHOUT QUOTES|NUL| | |||
StartDir | |SOH|Exe|NUL|PATH TO EXE|NUL| | ||
icon | |SOH|StartDir|NUL|DIRECTORY TO START IN|NUL| | ||
ShortcutPath | |SOH|icon|NUL|PATH TO ICON|NUL| | ||
LaunchOptions | |SOH|ShortcutPath|NUL||NUL| | ||
IsHidden | |SOH|LaunchOptions|NUL||NUL| | ||
AllowDesktopConfig | | |STX|IsHidden|NUL||NUL||NUL||NUL||NUL| | ||
| | |STX|AllowDesktopConfig|NUL||SOH||NUL||NUL||NUL| (Disabled version: |STX|AllowDesktopConfig|NUL||NUL||NUL||NUL||NUL|) | ||
AllowOverlay | | |STX|AllowOverlay|NUL||SOH||NUL||NUL||NUL| | ||
| | |STX|OpenVR|NUL||NUL||NUL||NUL||NUL| (Enabled version: |STX|OpenVR|NUL||SOH||NUL||NUL||NUL|) | ||
|STX|Devkit|NUL||NUL||NUL||NUL||NUL| | |||
Devkit | |SOH|DevkitGameID|NUL||NUL| | ||
DevkitGameID | |SOH|DevkitOverrideAppID|NUL||NUL| | ||
LastPlayTime | |STX|LastPlayTime|NUL||NUL||NUL||NUL||NUL| | ||
|SOH|FlatpakAppID|NUL||NUL| | |||
|SOH|sortas|NUL||NUL| | |||
|NUL|tags|NUL| | |||
|BS| | |||
|BS| | |||
|NUL|1|NUL| | |||
... | |||
|BS| | |||
|BS| | |||
|BS| | |||
|BS| | |||
</pre> | </pre> | ||
Latest revision as of 01:47, 14 October 2025
Non-Steam Games are saved in the file: <<Steam Installation>>\userdata\<<User ID>>\config\shortcuts.vdf.
Null (NUL) characters are used to denote the end of a key.
A key surrounded by two Null (NUL) characters denote the beginning of a set. (e.g. NULSet NameNUL)
Start of Header (SOH) characters are used to denote that next key is actually a value to assign to this key. (e.g. SOHKeyNULValueNUL)
Start of Text (STX) characters are used to denote that the next several keys are values to assign to this key. (Always four special characters - Could be one SOH and three NUL, or four NUL in a row)
Backspace (BS) characters are used to denote the end of a set. (e.g. NULSet NameNULDefinitionBS)
Typical format is as follows (New lines and indentation added for clarity; characters within two vertical separators, e.g. |NUL|, represent special characters):
File format
|NUL|shortcuts|NUL|
|NUL|0|NUL|
|STX|appid|NUL||NUL||NUL||NUL||NUL|
|SOH|AppName|NUL|APP NAME WITHOUT QUOTES|NUL|
|SOH|Exe|NUL|PATH TO EXE|NUL|
|SOH|StartDir|NUL|DIRECTORY TO START IN|NUL|
|SOH|icon|NUL|PATH TO ICON|NUL|
|SOH|ShortcutPath|NUL||NUL|
|SOH|LaunchOptions|NUL||NUL|
|STX|IsHidden|NUL||NUL||NUL||NUL||NUL|
|STX|AllowDesktopConfig|NUL||SOH||NUL||NUL||NUL| (Disabled version: |STX|AllowDesktopConfig|NUL||NUL||NUL||NUL||NUL|)
|STX|AllowOverlay|NUL||SOH||NUL||NUL||NUL|
|STX|OpenVR|NUL||NUL||NUL||NUL||NUL| (Enabled version: |STX|OpenVR|NUL||SOH||NUL||NUL||NUL|)
|STX|Devkit|NUL||NUL||NUL||NUL||NUL|
|SOH|DevkitGameID|NUL||NUL|
|SOH|DevkitOverrideAppID|NUL||NUL|
|STX|LastPlayTime|NUL||NUL||NUL||NUL||NUL|
|SOH|FlatpakAppID|NUL||NUL|
|SOH|sortas|NUL||NUL|
|NUL|tags|NUL|
|BS|
|BS|
|NUL|1|NUL|
...
|BS|
|BS|
|BS|
|BS|