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

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

WITHERSCHAEDEL
Townsman
Reactions:
Posts: 75
Joined: Sat Feb 10, 2018 11:33
Location: Germany NRW
Plugins: Show
Version: Beta
Phone model: Samsung Galaxy S7
Contact:

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

Post by WITHERSCHAEDEL » Fri Aug 10, 2018 10:48

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...
Peace :D , Love :) and flamed Pancakes :lol: :fire

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 396
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta
Phone model: 7904216639

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

Post by sairam » Fri Aug 10, 2018 13:24

Please add a comma after the

Code: Select all

"width":1,
	"price":1000,
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D

WITHERSCHAEDEL
Townsman
Reactions:
Posts: 75
Joined: Sat Feb 10, 2018 11:33
Location: Germany NRW
Plugins: Show
Version: Beta
Phone model: Samsung Galaxy S7
Contact:

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

Post by WITHERSCHAEDEL » Fri Aug 10, 2018 21:04

:D Thank you.
But it dont work. :cry:
Peace :D , Love :) and flamed Pancakes :lol: :fire

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 396
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta
Phone model: 7904216639

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

Post by sairam » Sat Aug 11, 2018 4:01

Can you show me your json file.
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D

wetguy
Inhabitant of a Megalopolis
Reactions:
Posts: 578
Joined: Sat Nov 25, 2017 6:10
Location: United States of America
Plugins: Show
Version: Beta

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

Post by wetguy » Sat Aug 11, 2018 6:56

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

Online
User avatar
JustAnyone
Feature manager
Reactions:
Posts: 2306
Joined: Sun Jul 23, 2017 12:45
Location: Pickle Jar
Plugins: Show
Version: Beta
Phone model: Picklephone XP 5

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

Post by JustAnyone » Sat Aug 11, 2018 8:35

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
Bearbear65
Inhabitant of a Universe
Reactions:
Posts: 4495
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: ASUS ZenPad 10 z300c

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

Post by Bearbear65 » Mon Aug 13, 2018 2:17

For sytax errors such as

Code: Select all

Unterminated object at character x
I suggest you to use jsonlint.com as it is faster
ImageJust my opinion
Caladrius is officially my favourite bird

Post Reply Previous topicNext topic

Return to “Problems”

Who is online

Users browsing this forum: No registered users and 2 guests