• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClientV8 Updater issues JSON

dchampag

Intermediate OT User
Joined
Jul 15, 2008
Messages
772
Reaction score
102
Location
USA
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...

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.
 
i'm having same issue but instead at line 1 col 1. but same shit with json.lua 207 ;/ no idea how to solve it
I stopped work on this to work on other things at the moment, so unfortunately I haven’t created a solution for this yet. But I will let you know if that changes. Maybe someone will have one before I get back to it.
 
i have json error in my otclient too, all player log normal in my server, but i cant log, help me please?
This is not related to updater, if you start your own support thread following the rules and tips for posting in support you will likely receive better answers/help.

In your post please provide the version of OTClient you’re using. It does not look like you’re using OTCv8 but specify if you are, it makes a difference.

That warning is unrelated to your ability to connect, look into hosting your own API for status or remove the link for status to eliminate this warning.

It appears to be an issue with likely Loopback, I could be wrong. The server is redirecting you to use global ip address after using your local IP address to log in to character list.

When you use your global IP address in the connection configuration do you get the character list? Is your server configured to bind only global IP address? If so, set to false, this may fix your problem.
 
Last edited:
Back
Top