Page 1 of 1

[Answered][1.8.06p] Plugin crash military category

Posted: Sun Apr 05, 2020 18:49
by Yoyo
Hi, I got the following error with a plugin (C:\Users\Lenovo\TheoTown\.runtime\plugins\plg_images-removebg-preview.zip\plugin code (1).json:0):

Code: Select all

In C:\Users\Lenovo\TheoTown\.runtime\plugins\plg_images-removebg-preview.zip\plugin code (1).json:

java.lang.IllegalStateException: When loading "$pcw_lgWUaSYyAt00": No category military could be found
Device: ()
OS version: 0

Thank you in advance.
[{
"id": "$pcw_lgWUaSYyAt00",
"type": "military",
"author": "Plugin creator website 0.5 & yoyo",
"width": 5,
"height": 5,
"frames": [
{
"bmp": "images-removebg-preview.png"
}
],
"title": "ship",
"text": "Aircraft carrier on duty\r\n",
"privileged": "100",
"category": "military",
"zone": "#0:$zonemilitary",
"price": 2000,
"monthly price": 10,
"build time": 12,
"draw ground": true,
"final": true,
"needs road": false,
"rotation aware": true
}]

Re: [Asked][1.8.06p] Plugin crash (C:\Users\Lenovo\TheoTown\.runtime\plugins\plg_images-removebg-preview.zip\plugin code

Posted: Sun Apr 05, 2020 18:50
by Yoyo
please help

Re: [Asked][1.8.06p] Plugin crash (C:\Users\Lenovo\TheoTown\.runtime\plugins\plg_images-removebg-preview.zip\plugin code

Posted: Mon Apr 06, 2020 17:27
by Jeremiah Stephens
Did you mean $cat_military00?

Posted: Mon Apr 06, 2020 19:23
by CommanderABab
If you want it to be in the main military menu, then there is no need for the "category:" statement anyway. "privileged": "100", will do nothing for you and is ignored. If you need it for some reason, then you should get in touch with Lobby.