[510] Plugin crash (policeold.json:0)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Telamon
Townsman
Reactions:
Posts: 58
Joined: 09 Aug 2018, 23:28
Plugins: Showcase Store

Platform

[510] Plugin crash (policeold.json:0)

#1

Post by Telamon »

Hi, I got the following error with a plugin (policeold.json:0):

Code: Select all

In /data/data/info.flowersoft.theotown.theotown/files/plugins/policeold.zip/policeold/policeold.json:

org.json.JSONException: End of input at character 0 of 
Device: Lenovo TAB 2 A8-50F (Lenovo)
Android: 22 (5.1)

Thank you in advance.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [510] Plugin crash (policeold.json:0)

#2

Post by CommanderABab »

Looks like the file is empty!

User avatar
Telamon
Townsman
Reactions:
Posts: 58
Joined: 09 Aug 2018, 23:28
Plugins: Showcase Store

Platform

Re: [510] Plugin crash (policeold.json:0)

#3

Post by Telamon »

it is not empty, and have the json and the image
Last edited by Telamon on 19 Aug 2018, 00:58, edited 1 time in total.

User avatar
Telamon
Townsman
Reactions:
Posts: 58
Joined: 09 Aug 2018, 23:28
Plugins: Showcase Store

Platform

Re: [510] Plugin crash (policeold.json:0)

#4

Post by Telamon »

and another thing I found the error was the final part of the json

User avatar
Telamon
Townsman
Reactions:
Posts: 58
Joined: 09 Aug 2018, 23:28
Plugins: Showcase Store

Platform

Re: [510] Plugin crash (policeold.json:0)

#5

Post by Telamon »

The json:
[{"id":"$policeold","type":"police","width":2,"height":2,"frames":[{"bmp":"policeold.png"}],"price":14000,"monthly price":30,"influence police":100,"requirement":{"requirements":[{"type":"RANK","data":{"lvl":5}}]}}]

Post Reply Previous topicNext topic

Return to “Problems”