Remove home directory example and update the achievement example

This commit is contained in:
Nemirtingas 2019-10-01 18:16:45 +02:00
parent c0fd74088d
commit 928575f037
5 changed files with 2098 additions and 2125 deletions

View File

@ -70,11 +70,6 @@ Create a folder named steam_settings right beside steam_api.dll if there isn't o
An example can be found in steam_settings.EXAMPLE that works with Killing Floor 2.
The items.json syntax is simple, you SHOULD validate your .json file before trying to run your game or you won't have any item in your inventory. Just look for "online json validator" on your web brower to valide your file.
You can use https://steamdb.info/ to list items and attributes they have and put them into your .json.
Then you have to add item/achievement to you inventory. To do so, go to %appdata%\Goldberg SteamEmu Saves\inventory\<appid> on windows or [$XDG_DATA_HOME|~/.local/share]/Goldberg SteamEmu Saves on linux.
In that folder, create a file items.json and/or achievements.json and fill it like in the example inventory.EXAMPLE.
items.json syntax is like so: { "item_id": <quantity>, "other_item_id": <quantity> }.
achievements.json syntax is like so: { "achievement_name": { "earned" : [true|false], "earned_time": <seconds since 1 january 1970> }, "second_name": { "earned" : [true|false], "earned_time": <seconds since 1 january 1970> } }
"earned_time" can be 0, meaning the achievement was earned before before trace the earn time. (See https://partner.steamgames.com/doc/api/ISteamUserStats#GetAchievementAndUnlockTime)
Keep in mind that some item are not valid to have in your inventory. For example, in PayDay2 all items below item_id 50000 will make your game crash.
Leaderboards:

View File

@ -1,18 +0,0 @@
{
"Achievement_0": {
"earned": true,
"earned_time": 1566718428
},
"Achievement_1": {
"earned": true,
"earned_time": 1566718431
},
"Achievement_10": {
"earned": true,
"earned_time": 1566718431
},
"Achievement_100": {
"earned": true,
"earned_time": 1566718432
}
}

View File

@ -1,4 +0,0 @@
{
"2001": 1,
"2002": 1
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff