Open gjkf opened 4 years ago
Upon loading or saving a game, TTS sends the following message to Atom:
{
"messageID": 1,
"scriptStates": [ ... ],
"savePath": "C:\\users\\steamuser\\Documents//My Games//Tabletop Simulator//Saves\\TS_Save_1.json"
}
or
{
"messageID": 6,
"savePath": "C:\\users\\steamuser\\Documents//My Games//Tabletop Simulator//Saves\\TS_Save_1.json"
}
The path is not valid as mentioned at the bottom of the OP.
If I'm not mistaken parseSavePath
extract information for Generate GUID code. (Anything else?). If that stopped working for the petitioner, it wouldn't be the end of the world. But the petitioner has stated on Discord that this error prevents them from even seeing the files in Atom.
It seems to me this could be avoided by catching exceptions from parseSavePath
and displaying a friendly warning rather than making the whole plugin unusable.
[Enter steps to reproduce:]
Atom: 1.52.0 x64 Electron: 6.1.12 OS: Ubuntu 18.04.5 Thrown From: tabletopsimulator-lua package 12.4.3
Stack Trace
Uncaught Error: ENOENT: no such file or directory, open 'C:\users\steamuser\My Documents/My Games/Tabletop Simulator/Saves\TS_Save_1.json'
Commands
Non-Core Packages
Extra info: I run TTS on Proton 5.0-9 on Steam installed via flatpak. After some searching and some luck, it appears that the save is located in
/home/cossu/.var/app/com.valvesoftware.Steam/data/Steam/steamapps/compatdata/286160/pfx/dosdevices/c:/users/steamuser/My Documents/My Games/Tabletop Simulator/Saves