[Resolved] [1.7.86a] Plugin crash (freeway.json:882)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
AntarcticTreay
Villager
Reactions:
Posts: 16
Joined: 07 Nov 2019, 08:06
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

[Resolved] [1.7.86a] Plugin crash (freeway.json:882)

#1

Post by AntarcticTreay »

Hi, I got the following error with a plugin (freeway.json:882):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/freeway.json:

io.blueflower.stapel2d.util.json.JSONException: Unterminated array at line 1, char 3. Excerpt: 
[--ERROR->>>{

Full source: [{
	"id": "$testroad00",
	"type": "road",
	"level": 1,
	"speed": 5,
	"frames": [{
		"bmp": "Freeway.png",
		"w": 32,
		"h": 16,
		"count": 16
	}],
	"bridge frames": [{
		"bmp": "puente.png",
		"w": 32,
		"h": 48,
		"count": 12
	}],
	"bridge height": 12,
	"traffic lights": [{
		"bmp": "semaforos",
		"w": 32,
		"h": 32,
		"count": 4
	}],
	"green phase": 3000,
	"yellow phase": 500,
	"price": 100,
	"bridge price": 200,
	"monthly price": 1
}]
Device: moto e5 (motorola)
OS version: 26

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

Plugin Creator

Platform

Re: [1.7.86a] Plugin crash (freeway.json:882)

#2

Post by Bearbear76 »

AntarcticTreay wrote: 06 Jan 2020, 10:39 Hi, I got the following error with a plugin (freeway.json:882):

Code: Select all

"frames":[{"bmp":"example.png"}], <-- missing the '}],' end after "count"
it says "unterminated array" check what an array here and try to debug on your own next time! ;)
Post Reply Previous topicNext topic

Return to “Problems”