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

Plugin specific problems will be solved here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
RayolGamer999
Settler
Posts: 1
Joined: 19 Feb 2024, 23:55

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

#1

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

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

Plugin Creator

Platform

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

#2

Post by CommanderABab »

Nesting would be helpful.

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

Post Reply Previous topicNext topic

Return to “Problems”