[514] Plugin crash (Purpleroad.json:957)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
MsmNoMoreSpam
Small-town resident
Reactions:
Posts: 31
Joined: 13 Sep 2018, 15:46
Plugins: Showcase Store
Version: Beta

Platform

[514] Plugin crash (Purpleroad.json:957)

#1

Post by MsmNoMoreSpam »

Hi, I got the following error with a plugin (Purpleroad.json:957):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/purpleroad/Purpleroad.json:

org.json.JSONException: Unterminated object at character 690 of 
[
  {
    "id":"$purpleroad00",
    "type":"road",
    "level":10,
    "speed":50.0,
    "title":"Purple road",
    "text":"enjoy:-D",

    "frames":[{"bmp":"road.png","w":32,"h":16,"count":16}],

    "bridge frames":[{"bmp":"bridge.png","w":32,"h":48,"count":12}],
    "bridge height":12,

    "tunnel frames":[
                 {"bmp":"tunnel_frames.png","x":0,"w":16,"h":19,"handle y":7},
                 {"bmp":"tunnel_frames.png","x":16,"w":16,"h":19,"handle x":-16,"handle y":7},
                 {"bmp":"tunnel_frames.png","x":32,"w":16,"h":19,"handle y":7},
                 {"bmp":"tunnel_frames.png","x":48,"w":16,"h":19,"handle x":-16,"handle y":7}
                    ]

    "traffic lights":[{"bmp":"tf.png","w":32,"h":32,"count":4}],
    "green phase":3000,
    "yellow phase":500,

    "price":500,
    "bridge price":2000,
    "monthly price":20,
    "allow bus":true
  }
]
Thank you in advance.

User avatar
MsmNoMoreSpam
Small-town resident
Reactions:
Posts: 31
Joined: 13 Sep 2018, 15:46
Plugins: Showcase Store
Version: Beta

Platform

Re: [514] Plugin crash (Purpleroad.json:957)

#2

Post by MsmNoMoreSpam »


User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: [514] Plugin crash (Purpleroad.json:957)

#3

Post by JustAnyone »

jsonlint.com

User avatar
MsmNoMoreSpam
Small-town resident
Reactions:
Posts: 31
Joined: 13 Sep 2018, 15:46
Plugins: Showcase Store
Version: Beta

Platform

Re: [514] Plugin crash (Purpleroad.json:957)

#4

Post by MsmNoMoreSpam »

JustAnyone wrote:
16 Sep 2018, 11:14
jsonlint.com
Screenshot?
Last edited by MsmNoMoreSpam on 16 Sep 2018, 11:20, edited 1 time in total.

User avatar
MsmNoMoreSpam
Small-town resident
Reactions:
Posts: 31
Joined: 13 Sep 2018, 15:46
Plugins: Showcase Store
Version: Beta

Platform

Re: [514] Plugin crash (Purpleroad.json:957)

#5

Post by MsmNoMoreSpam »

MsmNoMoreSpam wrote:
16 Sep 2018, 10:29
Hi, I got the following error with a plugin (Purpleroad.json:957):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/purpleroad/Purpleroad.json:

org.json.JSONException: Unterminated object at character 690 of 
[
  {
    "id":"$purpleroad00",
    "type":"road",
    "level":10,
    "speed":50.0,
    "title":"Purple road",
    "text":"enjoy:-D",

    "frames":[{"bmp":"road.png","w":32,"h":16,"count":16}],

    "bridge frames":[{"bmp":"bridge.png","w":32,"h":48,"count":12}],
    "bridge height":12,

    "tunnel frames":[
                 {"bmp":"tunnel_frames.png","x":0,"w":16,"h":19,"handle y":7},
                 {"bmp":"tunnel_frames.png","x":16,"w":16,"h":19,"handle x":-16,"handle y":7},
                 {"bmp":"tunnel_frames.png","x":32,"w":16,"h":19,"handle y":7},
                 {"bmp":"tunnel_frames.png","x":48,"w":16,"h":19,"handle x":-16,"handle y":7}
                    ]

    "traffic lights":[{"bmp":"tf.png","w":32,"h":32,"count":4}],
    "green phase":3000,
    "yellow phase":500,

    "price":500,
    "bridge price":2000,
    "monthly price":20,
    "allow bus":true
  }
]
Thank you in advance.
@CommanderABab[Posts][PM]

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 799
Joined: 28 May 2017, 00:07
Location: Freezing in Argentina
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [514] Plugin crash (Purpleroad.json:957)

#6

Post by FranchuFranchu »

You were missing a comma. Correct version:

Code: Select all

[{
	"id": "$purpleroad00",
	"type": "road",
	"level": 10,
	"speed": 50.0,
	"title": "Purple road",
	"text": "enjoy:-D",

	"frames": [{
		"bmp": "road.png",
		"w": 32,
		"h": 16,
		"count": 16
	}],

	"bridge frames": [{
		"bmp": "bridge.png",
		"w": 32,
		"h": 48,
		"count": 12
	}],
	"bridge height": 12,

	"tunnel frames": [{
			"bmp": "tunnel_frames.png",
			"x": 0,
			"w": 16,
			"h": 19,
			"handle y": 7
		},
		{
			"bmp": "tunnel_frames.png",
			"x": 16,
			"w": 16,
			"h": 19,
			"handle x": -16,
			"handle y": 7
		},
		{
			"bmp": "tunnel_frames.png",
			"x": 32,
			"w": 16,
			"h": 19,
			"handle y": 7
		},
		{
			"bmp": "tunnel_frames.png",
			"x": 48,
			"w": 16,
			"h": 19,
			"handle x": -16,
			"handle y": 7
		}
	],

	"traffic lights": [{
		"bmp": "tf.png",
		"w": 32,
		"h": 32,
		"count": 4
	}],
	"green phase": 3000,
	"yellow phase": 500,

	"price": 500,
	"bridge price": 2000,
	"monthly price": 20,
	"allow bus": true
}]

Post Reply Previous topicNext topic

Return to “Problems”