Page 1 of 1
[Asked][1.10.13a] Plugin crash (carnew.json:154)
Posted: 02 Nov 2021, 05:56
by Pinetoken
Hi, I got the following error with a plugin (carnew.json:154):
Code: Select all
In plugins/zzzzzzzzzlkcars/carnew.json:
java.lang.IllegalStateException: When loading "white cars": No category aa_vehicle_category-borbor could be found
Device: SM-P585Y (samsung)
OS version: 27
Thank you in advance.
Re: [Asked][1.10.13a] Plugin crash (carnew.json:154)
Posted: 02 Nov 2021, 11:03
by Lakan Haraya
Your file, carnew.json can't find the category aa_vehicle_category-borbor
You must check that
(1) The category is really there
(2) The category file must be on top of any other file on the same folder (arranged alphabetically, but you can also use numbers)
---YOUR_PROJECT_PLUGIN folder
|
| -- 00category.json
| -- carnew.json
| other files here
(3) The category object must be written first before any objects that rely on that category
Code: Select all
[
{
"id":"$custom_category"
"type":"category",
...
},
{
"type":"building",
"category":"$custom_category",
...
}
]

Re: [Asked][1.10.13a] Plugin crash (carnew.json:154)
Posted: 02 Nov 2021, 12:26
by Pinetoken
Thanks
I finally got it to work