[Asked][1.10.05a] Plugin crash (code.json:1668)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
TobyArch
Small-town resident
Reactions:
Posts: 33
Joined: 29 Sep 2021, 11:50
Location: Samutprakan/Thailand
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

[Asked][1.10.05a] Plugin crash (code.json:1668)

#1

Post by TobyArch »

Hi, I got the following error with a plugin (code.json:1668):

Code: Select all

In plugins/fusion plant/code.json:

io.blueflower.stapel2d.util.json.JSONException: Unterminated object at line 11, char 9. Excerpt: 
                "bmp": "Fusion Plant.png"
        --ERROR->>>],

Full source: [
    {
        "id": "$10Fusionplant00",
        "type": "energy",
        "author": "Plugin creator website 3.0 & TobyArch",
        "width": 5,
        "height": 5,
        "frames": [
            {
                "bmp": "Fusion Plant.png"
        ],
        "animation":[
          {"id": "1x1l", "x": 61, "y": -81, "color": {"r": 256, "g": 25, "b": 0}},
          {"id": "1x1l", "x": 60, "y": -81, "color": {"r": 256, "g": 25, "b": 0}},
          {"id": "1x1l", "x": 59, "y": -81, "color": {"r": 256, "g": 25, "b": 0}},
          {"id": "1x1l", "x": 59, "y": -80, "color": {"r": 256, "g": 25, "b": 0}},
          {"id": "1x1l", "x": 59, "y": -79, "color": {"r": 256, "g": 25, "b": 0}},
          {"id": "1x1l", "x": 60, "y": -80, "color": {"r": 256, "g": 25, "b": 0}},
          {"id": "1x1l", "x": 60, "y": -79, "color": {"r": 256, "g": 25, "b": 0}},
          {"id": "1x1l", "x": 61, "y": -80, "color": {"r": 256, "g": 25, "b": 0}},
          {"id": "1x1l", "x": 61, "y": -79, "color": {"r": 256, "g": 25, "b": 0}}
          ],
        "title": "Fusion Plant",
        "text": "This Fusion power plant generate power by using heat from nuclear fusion reactions. Top textures inspired from simcity buildit fusion power plant.",
        "price": 1500000,
        "monthly price": 1200,
        "build time": 60,
        "power": 5000000,
        "ordinal": 10,
        "draw ground": true,
        "needs road": true,
        "pickable": true
    }
]
Device: SM-A325F (samsung)
OS version: 30

Thank you in advance.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Asked][1.10.05a] Plugin crash (code.json:1668)

#2

Post by CommanderABab »

Should be:

Code: Select all

"frames": [
            {
                "bmp": "Fusion Plant.png"
             }
        ],

Post Reply Previous topicNext topic

Return to “Problems”