Hey everyone, I'm struggling with this auto updater for OTClientV8 and also would like some information on it.
My main issue is this JSON error.
JSON ERROR: /modules/corelib/json.lua:207: expected '}' or ',' at line 7 col 7 ({ "files": { "/data/things/860/ti)
The error window itself cuts off, it is not logged
This is my JSON output
{ "url": "http:\/\/downloads.champeon.net\/inot\/files", "files": { "\/data\/things\/860\/Tibia.dat": "51168f39", "\/data\/things\/860\/Tibia.spr": "5c561031", "\/init.lua": "437a4166" }, "keepFiles": false }
I have also altered the output to achieve
{ "url": "Index of /inot/files (http://downloads.champeon.net/inot/files)", "files": { "/data/things/860/Tibia.dat": "51168f39", "/data/things/860/Tibia.spr": "5c561031", "/init.lua": "437a4166" }, "keepFiles": false }
I've modified json.lua to generate a log, and used that log to continue altering things to attempt to get this to work. I have no idea what I'm missing...
Any ideas why this wouldn't just work? I am at a loss, this seems to be something that no one else is having an issue with using OTClient V8
And last, the information I was looking to get was, is there an issue with not using data.zip for the update process? I wanted to change the code in sources to use normal files for updating, and also update certain files in %appdata% for the client itself.
My main issue is this JSON error.
JSON ERROR: /modules/corelib/json.lua:207: expected '}' or ',' at line 7 col 7 ({ "files": { "/data/things/860/ti)
The error window itself cuts off, it is not logged
This is my JSON output
{ "url": "http:\/\/downloads.champeon.net\/inot\/files", "files": { "\/data\/things\/860\/Tibia.dat": "51168f39", "\/data\/things\/860\/Tibia.spr": "5c561031", "\/init.lua": "437a4166" }, "keepFiles": false }
I have also altered the output to achieve
{ "url": "Index of /inot/files (http://downloads.champeon.net/inot/files)", "files": { "/data/things/860/Tibia.dat": "51168f39", "/data/things/860/Tibia.spr": "5c561031", "/init.lua": "437a4166" }, "keepFiles": false }
I've modified json.lua to generate a log, and used that log to continue altering things to attempt to get this to work. I have no idea what I'm missing...
Code:
JSON to parse: {"url": "https://downloads.champeon.net/inot/files", "files": { "/data/things/860/Tibia.dat": "51168f39", "/data/things/860/Tibia.spr": "5c561031", "/init.lua": "437a4166" }, "keepFiles": false}
Parsing object at position: 2, character: "
Error: expected ':' after key at position 3, character: u
Error: /modules/corelib/json.lua:400: expected ':' after key
Parsing object at position: 7, character: "
Error: expected ':' after key at position 8, character: u
Any ideas why this wouldn't just work? I am at a loss, this seems to be something that no one else is having an issue with using OTClient V8
And last, the information I was looking to get was, is there an issue with not using data.zip for the update process? I wanted to change the code in sources to use normal files for updating, and also update certain files in %appdata% for the client itself.