Skip to content

Commit

Permalink
Merge pull request #13 from Kavex/master
Browse files Browse the repository at this point in the history
Added a steamid.io link to the part of the readme that covers the UserDataID setting.
  • Loading branch information
Kapiainen authored Nov 29, 2016
2 parents 4a396c7 + ca3ea4e commit aa3fe23
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 21 deletions.
44 changes: 25 additions & 19 deletions Lauhdutin/Lauhdutin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -286,20 +286,26 @@ end
tGame[S_VDF_KEY_LAST_PLAYED] = tLocalConfigApps[sAppID][S_VDF_KEY_LAST_PLAYED]
local tAppManifest = ParseVDFFile(tSteamLibraryPaths[i] .. 'SteamApps\\appmanifest_' .. sAppID .. '.acf')
if tAppManifest ~= nil then
tGame[S_VDF_KEY_NAME] = tAppManifest[S_VDF_KEY_APP_STATE][S_VDF_KEY_NAME]
if tGame[S_VDF_KEY_NAME] == nil then
tGame[S_VDF_KEY_NAME] = tAppManifest[S_VDF_KEY_APP_STATE][S_VDF_KEY_USER_CONFIG][S_VDF_KEY_NAME]
end
local tGameSharedConfig = RecursiveTableSearch(tSharedConfigApps, sAppID)
if tGameSharedConfig ~= nil then
tGame[S_VDF_KEY_TAGS] = RecursiveTableSearch(tGameSharedConfig, S_VDF_KEY_TAGS)
tGame[S_VDF_KEY_HIDDEN] = tGameSharedConfig[S_VDF_KEY_HIDDEN]
end
tGameSharedConfig = nil
if tGame[S_VDF_KEY_HIDDEN] == nil or tGame[S_VDF_KEY_HIDDEN] == '0' then
table.insert(tGames, tGame)
if BannerExists(tGame[S_VDF_KEY_APPID]) == nil then
table.insert(T_LOGO_QUEUE, tGame[S_VDF_KEY_APPID])
if tAppManifest[S_VDF_KEY_APP_STATE] ~= nil then
tGame[S_VDF_KEY_NAME] = tAppManifest[S_VDF_KEY_APP_STATE][S_VDF_KEY_NAME]
if tGame[S_VDF_KEY_NAME] == nil then
if tAppManifest[S_VDF_KEY_APP_STATE][S_VDF_KEY_USER_CONFIG] ~= nil then
tGame[S_VDF_KEY_NAME] = tAppManifest[S_VDF_KEY_APP_STATE][S_VDF_KEY_USER_CONFIG][S_VDF_KEY_NAME]
end
end
if tGame[S_VDF_KEY_NAME] ~= nil then
local tGameSharedConfig = RecursiveTableSearch(tSharedConfigApps, sAppID)
if tGameSharedConfig ~= nil then
tGame[S_VDF_KEY_TAGS] = RecursiveTableSearch(tGameSharedConfig, S_VDF_KEY_TAGS)
tGame[S_VDF_KEY_HIDDEN] = tGameSharedConfig[S_VDF_KEY_HIDDEN]
end
tGameSharedConfig = nil
if tGame[S_VDF_KEY_HIDDEN] == nil or tGame[S_VDF_KEY_HIDDEN] == '0' then
table.insert(tGames, tGame)
if BannerExists(tGame[S_VDF_KEY_APPID]) == nil then
table.insert(T_LOGO_QUEUE, tGame[S_VDF_KEY_APPID])
end
end
end
end
end
Expand Down Expand Up @@ -782,8 +788,8 @@ end
local sValue = ''
local i = anStart
while i <= #atTable do
sKey = string.match(atTable[i], '^%s*"([^"]+)"%s*$')
if sKey ~= nil then
sKey = string.match(atTable[i], '^%s*"([^"]+)"%s*$') -- Check for a key prior to a table
if sKey ~= nil then -- Beginning of a table
sKey = sKey:lower()
i = i + 1
if string.match(atTable[i], '^%s*{%s*$') then
Expand All @@ -797,14 +803,14 @@ end
print('Error! Failure to parse table at line ' .. tostring(i) .. '(' .. atTable[i] .. ')')
return nil, nil
end
else
sKey = string.match(atTable[i], '^%s*"(.-)"%s*".-"%s*$')
else -- Not the beginning of a table
sKey = string.match(atTable[i], '^%s*"(.-)"%s*".-"%s*$') -- Check for key and string value pair
if sKey ~= nil then
sKey = sKey:lower()
sValue = string.match(atTable[i], '^%s*".-"%s*"(.-)"%s*$')
tResult[sKey] = sValue
else
if string.match(atTable[i], '^%s*}%s*$') then
if string.match(atTable[i], '^%s*}%s*$') then -- Check if end of an open table
return tResult, i
elseif string.match(atTable[i], '^%s*//.*$') then
-- Comment - Better support is still needed for comments
Expand Down
6 changes: 4 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,10 @@ SteamPath="C:\Program Files\Steam"
```

##UserDataID
The UserDataID corresponding to your Steam account. This can be found by looking in the **userdata** folder found in the folder where you have Steam installed. There should be at least one folder in the **userdata** folder and the name of that folder is your UserDataID. If you have multiple folders in the **userdata** folder, then open up the **localconfig.vdf** file found in **\Steam\userdata\UserDataID\config\**. There should be a line containing **"PersonaName"** followed by the display name of the associated account. Look for the **localconfig.vdf** file that contains your account's display name.

The UserDataID corresponding to your Steam account. This can be found by looking in the **userdata** folder found in the folder where you have Steam installed. There should be at least one folder in the **userdata** folder and the name of that folder is your UserDataID. If you have multiple folders in the **userdata** folder, then open up the **localconfig.vdf** file found in **\Steam\userdata\UserDataID\config\**. There should be a line containing **"PersonaName"** followed by the display name of the associated account. Look for the **localconfig.vdf** file that contains your account's display name. You can also go to [steamid.io](https://steamid.io/lookup/) and do a profile search. Find steamID3 among the listing and copy the last set of numbers after the colon.
```
steamID3 [U:1:123456789]
```
```
UserDataID=123456789
```
Expand Down

0 comments on commit aa3fe23

Please sign in to comment.