Unable to upload plugin(solved)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
anakpelajarindo
Settler
Reactions:
Posts: 4
Joined: 31 Dec 2020, 06:28

Unable to upload plugin(solved)

#1

Post by anakpelajarindo »

the error message said: error while reading plugin: 4: syntax eror in "glacier/code.json". I trying to check the code but nothing wrong

code.json:

Code: Select all    Reset

[ { "id":"$cleansnowterrain01", "type":"ground", "author": "Lobby & anakpelajarindo", "frames":[ { "bmp":"cleanSnow.png","w":32,"count":1 } ], "border frames":[ { "bmp":"border_frames.png","w":32,"handle y":8,"count":16 } ], "edge frames":[ { "bmp":"edge_frames.png","w":16,"count":12 } ], "edge border frames":[ { "bmp":"edge_border_frames.png","w":16,"count":32 } ], "texture":[ { "bmp":"cleanSnowTexture.png","w":32,"count":1 } ], "title":"Clean Snow", "text":"A clean and smooth snow. Quickly melt when contact with water, even the coldest one" }, { "id": "$ggw_hec0f73fUckd11", "type": "decoration", "author": "anakpelajarindo", "width": 1, "height": 1, "frames": [ { "bmp": "ChristmasTree!.png" }, ], "title": "Christmas Tree!", "text": "Merry Christmas and Happy New Year", "build time": 0, "burnable": false, "destroyable": false, "needs road": false, "draw ground":true }, { "id": "$ggw_hec0f73fUckd01", "type": "decoration", "author": "anakpelajarindo", "width": 3, "height": 3, "frames": [ { "bmp": "glacierCorner.png" }, ], "title": "Glacier Corner", "text": "A glacier corner", "build time": 0, "burnable": false, "destroyable": false, "needs road": false }, { "id": "$ggw_hec0f73fUckd02", "type": "decoration", "author": "anakpelajarindo", "width": 3, "height": 3, "frames": [ { "bmp": "glacierend1.png" }, { "bmp": "glacierend2.png" }, ], "title": "Glacier End", "text": "A glacier end", "build time": 0, "burnable": false, "destroyable": false, "needs road": false }, { "id": "$ggw_hec0f73fUckd00", "type": "decoration", "author": "anakpelajarindo", "width": 3, "height": 3, "frames": [ { "bmp": "glacier1.png" }, { "bmp": "glacier2.png" } ], "title": "Glacier", "text": "A perfect deco for winter", "build time": 0, "burnable": false, "destroyable": false, "needs road": false } ]
JSON checker
Check
I hope someone reply
Last edited by anakpelajarindo on 30 Nov 2021, 02:33, edited 1 time in total.

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

Plugin Creator

Platform

Re: Unable to upload plugin

#2

Post by CommanderABab »

Code: Select all

[
    {
        "id":"$cleansnowterrain01",
        "type":"ground",
        "author": "Lobby & anakpelajarindo",
        "frames":[
            {
                "bmp":"cleanSnow.png","w":32,"count":1
            }
        ],
        "border frames":[
            {
                "bmp":"border_frames.png","w":32,"handle y":8,"count":16
            }
        ],
        "edge frames":[
            {
                "bmp":"edge_frames.png","w":16,"count":12
            }
        ],
        "edge border frames":[
            {
                "bmp":"edge_border_frames.png","w":16,"count":32
            }
        ],
        "texture":[
            {
                "bmp":"cleanSnowTexture.png","w":32,"count":1
            }
        ],
        "title":"Clean Snow",
        "text":"A clean and smooth snow. Quickly melt when contact with water, even the coldest one"
    },

    {
        "id": "$ggw_hec0f73fUckd11",
        "type": "decoration",
        "author": "anakpelajarindo",
        "width": 1,
        "height": 1,
        "frames": [
            {
                "bmp": "ChristmasTree!.png"
            },
        ],
        "title": "Christmas Tree!",
        "text": "Merry Christmas and Happy New Year",
        "build time": 0,
        "burnable": false,
        "destroyable": false,
        "needs road": false,
        "draw ground":true
    },

    {
        "id": "$ggw_hec0f73fUckd01",
        "type": "decoration",
        "author": "anakpelajarindo",
        "width": 3,
        "height": 3,
        "frames": [
            {
                "bmp": "glacierCorner.png"
            },
        ],
        "title": "Glacier Corner",
        "text": "A glacier corner",
        "build time": 0,
        "burnable": false,
        "destroyable": false,
        "needs road": false
    },

    {
        "id": "$ggw_hec0f73fUckd02",
        "type": "decoration",
        "author": "anakpelajarindo",
        "width": 3,
        "height": 3,
        "frames": [
            {
                "bmp": "glacierend1.png"
            },
            {
                "bmp": "glacierend2.png"
            },
        ],
        "title": "Glacier End",
        "text": "A glacier end",
        "build time": 0,
        "burnable": false,
        "destroyable": false,
        "needs road": false
    },

    {
        "id": "$ggw_hec0f73fUckd00",
        "type": "decoration",
        "author": "anakpelajarindo",
        "width": 3,
        "height": 3,
        "frames": [
            {
                "bmp": "glacier1.png"
            },
            {
                "bmp": "glacier2.png"
            }
        ],
        "title": "Glacier",
        "text": "A perfect deco for winter",
        "build time": 0,
        "burnable": false,
        "destroyable": false,
        "needs road": false
    }
]
Try removing the "texture":... line. Is it supposed to be something else?

User avatar
anakpelajarindo
Settler
Reactions:
Posts: 4
Joined: 31 Dec 2020, 06:28

Re: Unable to upload plugin

#3

Post by anakpelajarindo »

yeah i tried to remove line 26 but still not working, but when i delete a comma in line 44, 64, 86 its seems woking (thanks for your reply!)

Post Reply Previous topicNext topic

Return to “Problems”