ntaklive / BackupMod

A 7 days to die modlet which makes it possible to automatically backup and restore your game saves
11 stars 3 forks source link

JSON format incorrect #3

Closed SageJJ closed 2 years ago

SageJJ commented 2 years ago

Backup is not listening to the settings.json file for location and frequency of backups or archive, and when I start my server I get the attached error. I have disabled EAC in the server settings before opening this issue, but it still persists.

image

rautamiekka commented 2 years ago

It tells you exactly what's wrong. Use a JSON linter such as https://jsonlint.com/ to find exactly where the mentioned problem is, and read up how to escape a character in json.

Spoilers ``` \\ ```
SageJJ commented 2 years ago

Thank you for the quick response and the link. It turns out that the "commented out" section was causing the issue. Deleting those fixed the issue.

rautamiekka commented 2 years ago

Yeah, JSON explicitly doesn't support comments, some apps work around with something like:

{
    "#": "comment"
}