Page 1 of 1

[Answered] [585] Plugin crash

Posted: 17 Jan 2019, 13:27
by Between3Characters
Hi, I got the following error with a plugin (Tree forest.json:531):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/Parkbt3c/Tree forest.json:

java.lang.IllegalStateException: When loading "parktrees:pt1": No category $cat_BT3C_parks00 could be found
Why did this happen? I have the category, the same name, and... Why did this happens every time i put a plugin with 2 frames in a category?

Device: Redmi 4A (Xiaomi)
Android: 25 (7.1.2)

Thank you in advance.

Re: [585] Plugin crash

Posted: 17 Jan 2019, 16:53
by Sbb1413
Use the easiest id of the category possible.
You can show your JSON if you want. :)

Re: [585] Plugin crash

Posted: 18 Jan 2019, 00:57
by Between3Characters
"use the easiest id" hmmm... I do copy-pasting the id.
Tree forest.json
Or....


Category:
(How do i insert that code panel?)

[
{
"id":"$cat_BT3C_parks00",
"type":"category",
"title":"Parks By BT3C",
"frames":[{"bmp":"icon.png"}]
}
]





The plugin (tree forest)

//json created by theotown plugin creator application for android
[
{
"id":"parktrees:pt1",
"type":"decoration",
"width":1,
"height":1,
"frames":[{"bmp":"Trees1"},{"bmp":" Trees2"}],
"title":"Tree forests",
"text":"Decoration, for your parks to make it more forest-y.",
"influence nature": 25,
"influence health": 10,
"influence park": 10,
"price":13,
"monthly price":2,
"power":"0",
"water":"-5",
"author":"BT3C",
"draw ground":true,
"rotation aware":false,
"category":"$cat_BT3C_parks00"
}
]

Re: [585] Plugin crash

Posted: 18 Jan 2019, 03:36
by CommanderABab
What is the name of your category definition json file?

For example:
Tree forest.json would load before cat_BT3C_parks00.json. Thus the category hasn't been defined yet and therefore not found.

Re: [585] Plugin crash

Posted: 18 Jan 2019, 11:13
by Between3Characters
The category name are the same, copy-pasted, and the same folder. It only works on
A plugin with over than 1 frame in a category.

Re: [585] Plugin crash

Posted: 01 Feb 2019, 08:08
by rocky700
The plugin is really crashing and it is also not getting installed on the Windows OS as well. I have tried to install the plugins on my system to the system is not compatible with that and it is causing an error to the system also.