[Asked][1.10.13a] Plugin crash (carnew.json:154)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Pinetoken
Inhabitant of a Megalopolis
Reactions:
Posts: 579
Joined: 10 Sep 2021, 10:11
Location: Viti Levu, Fiji
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

[Asked][1.10.13a] Plugin crash (carnew.json:154)

#1

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

User avatar
Lakan Haraya
Metropolitan
Reactions:
Posts: 131
Joined: 28 Mar 2019, 09:34
Location: Philippines
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Asked][1.10.13a] Plugin crash (carnew.json:154)

#2

Post 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",
  ...
 }
]
:plugin :bb

User avatar
Pinetoken
Inhabitant of a Megalopolis
Reactions:
Posts: 579
Joined: 10 Sep 2021, 10:11
Location: Viti Levu, Fiji
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [Asked][1.10.13a] Plugin crash (carnew.json:154)

#3

Post by Pinetoken »

Thanks
I finally got it to work

Post Reply Previous topicNext topic

Return to “Problems”