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

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 8432
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

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

#1

Post by CommanderABab » Tue Feb 04, 2020 22:52

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. :)
826!826Currently using beta 826. 826 What's new? :)
diagonal road tool!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
CommanderABab
AB
Reactions:
Posts: 8432
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

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

#2

Post by CommanderABab » Tue Feb 04, 2020 23:10

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.
826!826Currently using beta 826. 826 What's new? :)
diagonal road tool!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Ølsken
Former Bearbear65
Reactions:
Posts: 5200
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Samsung S10

Platform

Plugin Creator

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

#3

Post by Ølsken » Wed Feb 05, 2020 0:09

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.
ImageJust my opinion

Post Reply Previous topicNext topic

Return to “Problems”