Page 1 of 1

[Asked][1.12.15a] Plugin crash (code.json:380)

Posted: 23 Feb 2025, 15:57
by RayolGamer999
Hi, I got the following error with a plugin (code.json:380):

Code: Select all

In plugins/sample/casitas pequeñitas/code.json:

java.lang.IllegalStateException: When loading "CasitaMenosPequeñita": Value {"id":"CasitaMenosPequeñitaanim","type":"animation","light":true,"light switching":true,"frames":[{"bmp":"Casita Menos Pequeñita_night.png","handle y":8}]} at animation of type info.flowersoft.theotown.util.json.JSONObject cannot be converted to JSONArray
This was my code:
{
"id": "CasitaMenosPequeñita",
"title": "Casita Menos Pequeñita",
"author": "Rayolgamer999",
"meta": {
"pca": {
"version": "4.4.1"
}
},
"frames": [
{
"bmp": "Casita Menos Pequeñita.png"
}
],
"build time": 7,
"width": 1,
"height": 1,
"level": 1,
"people": 60,
"type": "residential",
"animation": {
"id": "CasitaMenosPequeñitaanim",
"type": "animation",
"light": true,
"light switching": true,
"frames": [
{
"bmp": "Casita Menos Pequeñita_night.png",
"handle y": 8
}
]
}
},
{
"id": "CasitaPequeñita",
"title": "Casita Pequeñita",
"author": "Rayolgamer999",
"meta": {
"pca": {
"version": "4.4.1"
}
},
"frames": [
{
"bmp": "Casita Pequeñita.png"
}
],
"build time": 5,
"width": 1,
"height": 1,
"level": 1,
"people": 30,
"type": "residential",
"animation": {
"id": "CasitaPequeñitaanim",
"type": "animation",
"light": true,
"light switching": true,
"frames": [
{
"bmp": "Casita Pequeñita_night.png",
"handle y": 8
}
]
}
}

Device: SM-T295 (samsung) :android
OS version: 30

Thank you in advance.

Re: [Asked][1.12.15a] Plugin crash (code.json:380)

Posted: 24 Feb 2025, 10:29
by CommanderABab
Nesting would be helpful.

First thing I notice is the beginning '[' and ending ']' are missing.