[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: Thu Sep 13, 2018 15:46
Plugins: Show
Version: Beta

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

Post by MsmNoMoreSpam » Sun Sep 16, 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.

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

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

Post by MsmNoMoreSpam » Sun Sep 16, 2018 10:32


User avatar
JustAnyone
Feature manager
Reactions:
Posts: 2242
Joined: Sun Jul 23, 2017 12:45
Location: Phone repair service
Plugins: Show
Version: Beta
Phone model: Xiaomi Redmi 3s

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

Post by JustAnyone » Sun Sep 16, 2018 11:14

jsonlint.com

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

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

Post by MsmNoMoreSpam » Sun Sep 16, 2018 11:17

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

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

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

Post by MsmNoMoreSpam » Sun Sep 16, 2018 11:28

MsmNoMoreSpam wrote:
Sun Sep 16, 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 Megalopolis
Reactions:
Posts: 678
Joined: Sun May 28, 2017 0:07
Location: Patch of air
Plugins: Show
Version: Beta

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

Post by FranchuFranchu » Sun Sep 16, 2018 16:26

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
}]
\(\sqrt {-1}\)
...

Post Reply Previous topicNext topic

Return to “Problems”

Who is online

Users browsing this forum: No registered users and 1 guest