Skip to content

Commit

Permalink
Merge pull request #24 from mynameiswhm/patch-2
Browse files Browse the repository at this point in the history
Fixed example of Rich Presence config file to be valid VDF
  • Loading branch information
Gramps authored Jul 29, 2024
2 parents fe76182 + 8fee1e6 commit 65b824b
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 65b824b

Please sign in to comment.