[452] Plugin crash (Galleon.json:1065)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Tobsie7UK
Villager
Reactions:
Posts: 9
Joined: 18 Mar 2018, 11:31
Plugins: Showcase Store
Contact:

[452] Plugin crash (Galleon.json:1065)

#1

Post by Tobsie7UK »

:bb :bb Hi, I got the following error with a plugin (Galleon.json:1065):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/navalshipPackage_by_PTXcarl/navalshipPackage_by_PTXcarl/galleon/Galleon.json:

org.json.JSONException: Unterminated object at character 462 of [
   {
      "author": "AdmiralCarl",
      "build time": 25,
      "draw ground": true,
      "frames": [
         {
            "bmp": "galleon.png"
         }
      ],
      "height": 5,
      "id": "Galleon.pentacity",
      "needs water": true,
      "needs land": false,
      "needs road": false,
      "influence education high": 50,
      "provide aspect education high": 100,
      "power": 0,
      "price": 977000,
      "monthly price": 5000
      "requirement": {
         "requirements": [
            {
               "data": {
                  "id": "$rnk_village_small"
               },
               "type": "RANK"
            }
         ]
      },
      "text": "Friga, a Galleon Vessel used in 1500-1700 A.D., Recomissioned and built in the shipyards of Republic of Pentacity. Allowing young mariners and cadets to train basic and advance seamanship, watch keeping and navigation. Can also be used as a museum or active vessel in service.",
      "title": "Galleon Friga",
      "type": "military",
      "water": 0,
      "width": 5
   }
]
Device: F3111 (Sony)
Android: 23 (6.0)

Thank you in advance. :bb

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

Plugin Creator

Platform

Re: [452] Plugin crash (Galleon.json:1065)

#2

Post by CommanderABab »

Code: Select all

[
   {
      "author": "AdmiralCarl",
      "build time": 25,
      "draw ground": true,
      "frames": [
         {
            "bmp": "galleon.png"
         }
      ],
      "height": 5,
      "id": "Galleon.pentacity",
      "needs water": true,
      "needs land": false,
      "needs road": false,
      "influence education high": 50,
      "provide aspect education high": 100,
      "power": 0,
      "price": 977000,
      "monthly price": 5000, //<<missing comma inserted
      "requirement": {
         "requirements": [
            {
               "data": {
                  "id": "$rnk_village_small"
               },
               "type": "RANK"
            }
         ]
      },
      "text": "Friga, a Galleon Vessel used in 1500-1700 A.D., Recomissioned and built in the shipyards of Republic of Pentacity. Allowing young mariners and cadets to train basic and advance seamanship, watch keeping and navigation. Can also be used as a museum or active vessel in service.",
      "title": "Galleon Friga",
      "type": "military",
      "water": 0,
      "width": 5
   }
]

See code, there was a missing comma.

Post Reply Previous topicNext topic

Return to “Problems”