Page 1 of 1

[Asked][1.11.82i] Plugin crash (mountain.json:712)

Posted: 08 Oct 2024, 16:30
by progamin
Hi, I got the following error with a plugin (mountain.json:712):

Code: Select all

In mountain.zip:

info.flowersoft.theotown.util.json.JSONException: Unterminated object at line 20, char 64. Excerpt: 
"height": "24",
"frames":[{"bmp": "mountain.png"},{"bmp": "mountain-winter.png"--ERROR->>>]

Full source: [
{
"id":"$mountain.ao",
"type":"terrain",
"author":"Okcirimorem",
"title":"Large mountain",
"text":"Where more could habitants hike and climb?",
"price":"5000",
"monthly price":"500",
"draw ground":"true",
"needs road":"false",
"needs power":"false",
"needs water":"false",
"influence park":"500",
"influence happiness":"500",
"influence nature":"50000",
"influence environment":"1000",
"width": "24",
"height": "24",
"frames":[{"bmp": "mountain.png"},{"bmp": "mountain-winter.png"]
}
]
Device: iPad (Apple)
OS version: 18

Thank you in advance.

Re: [Asked][1.11.82i] Plugin crash (mountain.json:712)

Posted: 08 Oct 2024, 16:43
by dnswodn
Fixed :bf

Code: Select all    Reset

[ { "id":"$mountain.ao", "type":"terrain", "author":"Okcirimorem", "title":"Large mountain", "text":"Where more could habitants hike and climb?", "price":"5000", "monthly price":"500", "draw ground":"true", "needs road":"false", "needs power":"false", "needs water":"false", "influence park":"500", "influence happiness":"500", "influence nature":"50000", "influence environment":"1000", "width": "24", "height": "24", "frames":[{"bmp": "mountain.png"},{"bmp": "mountain-winter.png"}] // Expect a } here } ]
JSON checker
Check
By the way terrain type might be incorrect here.