Page 1 of 1

[Answered] [1.8.16a] Plugin crash (whjy.json:1762)

Posted: 04 Feb 2020, 22:52
by CommanderABab
Hi, I got the following error with a plugin (whjy.json:1762):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/Wuhan Come on Sign Formal Edition/whjy.json:

io.blueflower.stapel2d.util.json.JSONException: Unterminated object at line 40, char 71. Excerpt: 
        "frames":[{"bmp":"BQSY.png"}],
        "title":"Copyright[zh]版权[zh-rTW]版權[de]Copyright[ja]著作権[ko]저작권"--ERROR->>>",

Full source: [
    {
        "id":"$cat_whjy00",
        "type":"category",
        "category":"$cat_park00",
        "title":"Wuhan Come on",
        "frames":[{"bmp":"WHJY_Category.png"}],
        "ordinal":0,
        "once":true
    },
    {
        "id":"$cat_whjy01",
        "type":"park",
        "category":"$cat_whjy00",
        "author":"Mayor_of_Theotown323",
        "width":4,
        "height":4,
        "frames":[{"bmp":"WHJY.png"}],
        "title":"Wuhan Come on",
        "text":"Come on in Wuhan, let's survive together",
        "influence education low":1000,
        "influence education high":1000,
        "influence management":1000,
        "influence park":1000,
        "influence culture":1000,
        "price":0,
        "monthly price":0,
        "power":"0",
        "water":"0",
        "supports slope":true,
        "supports terrain":true,
        "once":true,
        "sound click":{"file":"WHJY_music.mp3"}
    },
    {
        "id":"cat_whjy02",
        "type":"decoration",
        "category":"$cat_whjy00",
        "frames":[{"bmp":"BQSY.png"}],
        "title":"Copyright[zh]版权[zh-rTW]版權[de]Copyright[ja]著作権[ko]저작권"",
        "text":"This is a decoration, you can decorate it anywhere.  The copyright belongs to LTITS Group and Wuhan Municipal Government.  The producer is one of your company's top leaders, but is not a citizen of Wuhan. Please do not copy.  The multiple downloads of this plug-in means that it can save a life, let us pay tribute to Chinese medical workers Model: LTITS_T2020 Version: Official version Producer: Theo Town Mayor 323 Language: English, Chinese, Traditional Chinese, German, Japanese, Korean",
        "width":1,
        "height":1,
        "author":"Mayor_of_Theotown323"
    }
]
Device: SM-T817V (samsung)
OS version: 24

Thank you in advance.

One of these languages isn't being recognized I think thus causing a parsing error.

"title":"Copyright[zh]版权[zh-rTW]版權[de]Copyright[ja]著作権[ko]저작권"--ERROR->>>",

I cut all but English out of the others so I could read the error.
Try to please keep strings 80 characters or less. :)

Re: [Asked][1.8.16a] Plugin crash (whjy.json:1762)

Posted: 04 Feb 2020, 23:10
by CommanderABab
It does work when foreign language strings are removed.
It does work when foreign language strings are removed.
Error with original file.  Unfortunately, it never completed as the strings were still being flashed.
Error with original file. Unfortunately, it never completed as the strings were still being flashed.

Re: [Asked][1.8.16a] Plugin crash (whjy.json:1762)

Posted: 05 Feb 2020, 00:09
by Bearbear76
Yep special characters cause a lot of errors.
I've worked with Korean and Japanese and they worked fine so I think that either Chinese or Taiwanese is the problem.