[Answered] [585] Plugin crash

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Between3Characters
Metropolitan
Reactions:
Posts: 123
Joined: 04 Oct 2018, 13:31
Plugins: Showcase Store
Version: Beta

Platform

[Answered] [585] Plugin crash

#1

Post 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.

User avatar
soumya-8974
TheoTown Veteran in Pension
Reactions:
Posts: 834
Joined: 30 Apr 2018, 06:53
Location: India
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [585] Plugin crash

#2

Post by soumya-8974 »

Use the easiest id of the category possible.
You can show your JSON if you want. :)

User avatar
Between3Characters
Metropolitan
Reactions:
Posts: 123
Joined: 04 Oct 2018, 13:31
Plugins: Showcase Store
Version: Beta

Platform

Re: [585] Plugin crash

#3

Post 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"
}
]

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

Plugin Creator

Platform

Re: [585] Plugin crash

#4

Post 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.

User avatar
Between3Characters
Metropolitan
Reactions:
Posts: 123
Joined: 04 Oct 2018, 13:31
Plugins: Showcase Store
Version: Beta

Platform

Re: [585] Plugin crash

#5

Post 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.

User avatar
rocky700
Settler
Reactions:
Posts: 1
Joined: 01 Feb 2019, 08:05
Plugins: Showcase Store

Re: [585] Plugin crash

#6

Post 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.

Post Reply Previous topicNext topic

Return to “Problems”