[fixed] [510] Plugin crash (coal1.json:1177)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: 31 Dec 2017, 13:35
Location: India Pudukkottai
Plugins: Showcase Store
Version: Beta

Platform

[fixed] [510] Plugin crash (coal1.json:1177)

#1

Post by sairam »

Hi, I got the following error with a plugin (coal1.json:1177):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/coal plugin/coal1.json:

org.json.JSONException: Expected literal value at character 631 of 
[
  {
    "draw ground":true,
    "frames":[
      {
        "bmp":"coal4.png"
      }
    ],
     "fun":[
      {
      "condition":{
          "id":"update",
          "type":"upgrade"
        },
        "actions":[
          {
            "type":"remove"
            },{
            "type":"build",
            "id":"$bigpark00",
            "x":0,
            "y":0
          },{
          "type":"build",
          "id":"$zoneindustrial_lvl2"
          },{
          "type":"remove",
          "id":"$bigpark00"
          },
          {
            "id":"$coalmine00",
            "type":"build"
          }
        ],
      }
    ],
    "height":1,
    "hidden":false,
    "id":"$coalore00",
    "text ":"An unmined coal ore, maybe you can turn it into a coal mine?",
    "title":"Coal Ore",
    "type":"decoration",
    "upgrades":[
      {
       "frames":[
       
       ],
        "id":"update",
        "price":0,
        "text":"Upgrades to coal mine",
        "title":"Mine coal"
      }
    ],
    "width":1
  },
  {
"id": "$coalmine00",
	"type": "industrial",
	"width": 4,
	"height": 4,
	"frames": [{"steal":"$coalmine00"}],
	"level": 2,
	"override":true
	}
]
Device: Redmi 5 (Xiaomi)
Android: 25 (7.1.2)

Thank you in advance.
Last edited by sairam on 22 Aug 2018, 17:28, edited 1 time in total.

User avatar
soumya-8974
TheoTown Veteran in Pension
Reactions:
Posts: 834
Joined: 30 Apr 2018, 06:53
Location: India
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [510] Plugin crash (coal1.json:1177)

#2

Post by soumya-8974 »

Hi! Here is the problem:

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: 31 Dec 2017, 13:35
Location: India Pudukkottai
Plugins: Showcase Store
Version: Beta

Platform

Re: [510] Plugin crash (coal1.json:1177)

#3

Post by sairam »

Thank you

Post Reply Previous topicNext topic

Return to “Problems”