mirror of
https://gitlab.com/Mr_Goldberg/goldberg_emulator.git
synced 2024-11-23 20:38:07 +01:00
Remove home directory example and update the achievement example
This commit is contained in:
parent
c0fd74088d
commit
928575f037
5 changed files with 2098 additions and 2125 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
}
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"2001": 1,
|
||||
"2002": 1
|
||||
}
|
File diff suppressed because it is too large
Load diff
2098
files_example/steam_settings.EXAMPLE/achievements_EXAMPLE.json
Normal file
2098
files_example/steam_settings.EXAMPLE/achievements_EXAMPLE.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue