Skip to content

Commit

Permalink
Fixed example of Rich Presence config file to be valid VDF
Browse files Browse the repository at this point in the history
The current example in the docs isn't a valid VDF file and was rejected by Steamworks with not very informative error message: "Unknown/unsupported language 'language' in file."

I've fixed the example with valid localization VDF format
  • Loading branch information
mynameiswhm committed Jul 29, 2024
1 parent fe76182 commit 8fee1e6
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions docs/tutorials/rich_presence.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,15 @@ This short tutorial is all about rich presence for your game; specifically the g
## Setting It Up
==}

First you will need to set up your localization file in the Steamworks back-end. Obviously without this step the rich presence text does not really work as it has nothing to reference. You will need to set up your text file like this:
First you will need to set up your localization file in the Steamworks back-end. Obviously without this step the rich presence text does not really work as it has nothing to reference. You will need to set up your text file like this and save it as `.vdf` file:

```gdscript
"lang" {
"language" {
"english" {
"tokens" {
"#something1" "Rich presence string"
"#something2" "Another string"
"#something_with_input" "{something: %input%"
}
}
"Language" "english"
"Tokens" {
"#something1" "Rich presence string"
"#something2" "Another string"
"#something_with_input" "{#something%something_number%}: %score%"
}
}
```
Expand Down

0 comments on commit 8fee1e6

Please sign in to comment.