#(Solved) D2RLAN 1.5.0 JSON Parse Error

17 messages · Page 1 of 1 (latest)

haughty dove
#

Solved, had multiple trailing commas in the JSON.

It's happening again, but not because I used the retail version of desecratedzones.json this time. 😆

App Version: 1.5.0
D2RHUD Version: 1.2.0
Issue: JSON parse error popup upon trying to enter a game (or open the automap) with a TZ eligible character
Details: After choosing a difficulty to enter a game I get this popup repeatedly and have to spam close it to get through the load screen and into the game, ditto when I open the automap for the first time.

I don't see any obvious issues like typos or missing brackets/commas or anything in my desecratedzones.json, I used the updated files that you linked here:
#1405478194131501158 message

It worked fine until I changed the existing zones (which was an edit that previously worked when the 2.4 TZs were first added), then I get this popup.

#

i checked line 196, didn't see anything off

#

ah wait nope, i see the issue lol

#

line 335, forgot to change id 15 to 13

#

nope, still happens even after fixing that
restarting didn't help, reinstalling d2rhud didn't help

haughty dove
#

also not a bug but feedback: one of my friends suggested that it might be nice if the stat list had an option to be hidden since it clutters the UI a bit, which i can agree with

and perhaps you just want to have a sort of baseline/global effect for all TZs in which case it probably doesn't need to be notated ingame and can just be part of a mod info or something, would also be nice to be able to hide it in that case

elder cloak
#

Do you use Visual Studio Code DM?

#

If not, I strongly recommend it for editing JSON files. In this case, the issue is that you have a lot of "trailing commas" in the file.
Anything indicated in yellow on the minipane, is a potential issue for reading the file

haughty dove
#

but if i must then okay

elder cloak
#

not visual studio man...visual studio CODE

haughty dove
#

ik, it’s still not as quick/convenient

elder cloak
#

I dont think I understand you, sorry. You double-click the file and it opens...how can it be faster/easier? lol

#

Use NP++ if you want, I just recommend VSC for reasons like this. Heck can install a plugin for VSC that removes trailing commas for you and such like that even

haughty dove
#

its been a minute since i used vsc so i might be misremembering, but it seemed to be a hassle to use (to the inexperienced like me) from what i remember, but i’ll give it another go

elder cloak
#

Ya you're confusing it with Visual Studio im pretty sure. Which is used to develop your own programs and such...sure, can get "complicated".
This is literally just a text editor like notepad or something....but better

elder cloak