[508] Plugin crash (Pier v1.11 by TweetyGee.json:1553)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
WITHERSCHAEDEL
Townsman
Reactions:
Posts: 90
Joined: 10 Feb 2018, 11:33
Location: Germany
Plugins: Showcase Store
Version: Beta
Contact:

Platform

[508] Plugin crash (Pier v1.11 by TweetyGee.json:1553)

#1

Post by WITHERSCHAEDEL »

Hi, I got the following error with a plugin (Pier v1.11 by TweetyGee.json:1553):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/Pier v1.11 by TweetyGee/Pier v1.11 by TweetyGee/Pier v1.11 by TweetyGee.json:

org.json.JSONException: Unterminated object at character 873 of [
 {
	"id":"$cat_tweetygee_pier00",
	"type":"category",
	"title":"Pier",
	"frames":
	[{"bmp":"cat_tweetygee_pier_icon00.png"}],
	"ordinal":10
 },
 {
	"author":"TweetyGee",
	"border frames":
	[{"bmp":"gro_tweetygee_pier05.png","count":16,"h":20,"handle y":8,"w":32}],
	"category":"$cat_tweetygee_pier00",
	"count":4,
	"edge border frames":
	[{"count":32,"h":32,"w":16,"x":0,"y":144}],
	"edge frames":
	[{"bmp":"gro_tweetygee_edge00.png","count":2,"h":48,"w":16}],
	"frames":
	[{"bmp":"gro_tweetygee_pier01.png"},{"bmp":"gro_tweetygee_pier02.png"},{"bmp":"gro_tweetygee_pier03.png"},{"bmp":"gro_tweetygee_pier04.png"}],
	"height":1,
	"id":"$gro_tweetygee_pier00",
	"preview frame":
	[{"bmp":"gro_tweetygee_pier_preview00.png"}],
	"text":"Just a wooden pier which you are able to use as the normal land.",
	"title":"Pier",
	"type":"ground",
	"width":1,
	"price":1000
        "auto build":false,
 },
 {
	"id":"$roa_tweetygee_pier00",
	"type":"road",
	"author":"TweetyGee, Lobby and Theo (Pixelpositions of the lines ontop of the road)",
	"flag pkw":true,
	"flag bus":true,
	"flag normal":false,
	"level":1,
	"width":1,
	"height":1,
	"speed":1.5,
	"title":"Pier road",
	"text":"A simple road which just fits the textures of the pier!",
	"category":"$cat_tweetygee_pier00",
	"frames":
	[{"bmp":"roa_tweetygee_pier00.png","count":16,"h":20,"handle y":8,"w":32}],
	"preview frames":
	[{"bmp":"roa_tweetygee_preview00.png","height":16,"width":32}],
	"draw ground":true,
	"price":300,
	"monthly price":3
	}
 ]
Device: SM-G930F (samsung)
Android: 26 (8.0.0)

Thank you in advance.



Please Fix it or say ehat i have to fix exactly. i cant enter Theotown and want to play with this great plugin :)
Thank you for you help with the :json.
And the othe versions generate thats terain in the world and i dont want this...

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: [508] Plugin crash (Pier v1.11 by TweetyGee.json:1553)

#2

Post by sairam »

Please add a comma after the

Code: Select all

"width":1,
	"price":1000,

User avatar
WITHERSCHAEDEL
Townsman
Reactions:
Posts: 90
Joined: 10 Feb 2018, 11:33
Location: Germany
Plugins: Showcase Store
Version: Beta
Contact:

Platform

Re: [508] Plugin crash (Pier v1.11 by TweetyGee.json:1553)

#3

Post by WITHERSCHAEDEL »

:D Thank you.
But it dont work. :cry:

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: [508] Plugin crash (Pier v1.11 by TweetyGee.json:1553)

#4

Post by sairam »

Can you show me your json file.

User avatar
wetguy
Inhabitant of a Megalopolis
Reactions:
Posts: 738
Joined: 25 Nov 2017, 06:10
Location: United States of America
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [508] Plugin crash (Pier v1.11 by TweetyGee.json:1553)

#5

Post by wetguy »

Wait, this is MY version of it. I must have made a mistake.

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

Platform

Re: [508] Plugin crash (Pier v1.11 by TweetyGee.json:1553)

#6

Post by JustAnyone »

Here, I fixed it for you.

Code: Select all

[{
		"id": "$cat_tweetygee_pier00",
		"type": "category",
		"title": "Pier",
		"frames": [{
			"bmp": "cat_tweetygee_pier_icon00.png"
		}],
		"ordinal": 10
	},
	{
		"author": "TweetyGee",
		"border frames": [{
			"bmp": "gro_tweetygee_pier05.png",
			"count": 16,
			"h": 20,
			"handle y": 8,
			"w": 32
		}],
		"category": "$cat_tweetygee_pier00",
		"count": 4,
		"edge border frames": [{
			"count": 32,
			"h": 32,
			"w": 16,
			"x": 0,
			"y": 144
		}],
		"edge frames": [{
			"bmp": "gro_tweetygee_edge00.png",
			"count": 2,
			"h": 48,
			"w": 16
		}],
		"frames": [{
			"bmp": "gro_tweetygee_pier01.png"
		}, {
			"bmp": "gro_tweetygee_pier02.png"
		}, {
			"bmp": "gro_tweetygee_pier03.png"
		}, {
			"bmp": "gro_tweetygee_pier04.png"
		}],
		"height": 1,
		"id": "$gro_tweetygee_pier00",
		"preview frame": [{
			"bmp": "gro_tweetygee_pier_preview00.png"
		}],
		"text": "Just a wooden pier which you are able to use as the normal land.",
		"title": "Pier",
		"type": "ground",
		"width": 1,
		"price": 1000,
		"auto build": false
	},
	{
		"id": "$roa_tweetygee_pier00",
		"type": "road",
		"author": "TweetyGee, Lobby and Theo (Pixelpositions of the lines ontop of the road)",
		"flag pkw": true,
		"flag bus": true,
		"flag normal": false,
		"level": 1,
		"width": 1,
		"height": 1,
		"speed": 1.5,
		"title": "Pier road",
		"text": "A simple road which just fits the textures of the pier!",
		"category": "$cat_tweetygee_pier00",
		"frames": [{
			"bmp": "roa_tweetygee_pier00.png",
			"count": 16,
			"h": 20,
			"handle y": 8,
			"w": 32
		}],
		"preview frames": [{
			"bmp": "roa_tweetygee_preview00.png",
			"height": 16,
			"width": 32
		}],
		"draw ground": true,
		"price": 300,
		"monthly price": 3
	}
]

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: [508] Plugin crash (Pier v1.11 by TweetyGee.json:1553)

#7

Post by Bearbear76 »

For sytax errors such as

Code: Select all

Unterminated object at character x
I suggest you to use jsonlint.com as it is faster

Post Reply Previous topicNext topic

Return to “Problems”