Page 1 of 1

[Resolved][1.8.27a] Plugin crash (definition.json:362)

Posted: 20 Apr 2020, 05:09
by Sergio2203
Hi, I got the following error with a plugin (definition.json:362):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/City01/definition.json:

io.blueflower.stapel2d.util.json.JSONException: Unterminated array at line 21, char 1. Excerpt: 
 }
--ERROR->>>]

Full source: [
  {
   "id":"CN1",
   "frames":[{"bmp":"city01N1.png"}],
   "type":"animation",
   "light":true, "light switching":true
 },
[
 {
   "id":"City01",
   "type":"commercial",
   "width":6,
   "height":6,
   "once":true,
   "animation":[{"id":"CN1", "x":0, "y":-394}],
   "frames":[{"bmp":"city01.png"}],
   "people":800,
   "level":1,
   "author":"Sergio2203"
 }
]
Device: moto g(6) play (motorola)
OS version: 26

Thank you in advance.

Re: [Asked][1.8.27a] Plugin crash (definition.json:362)

Posted: 20 Apr 2020, 05:16
by CommanderABab
Sergio2203 wrote:
20 Apr 2020, 05:09
Hi, I got the following error with a plugin (definition.json:362):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/City01/definition.json:

io.blueflower.stapel2d.util.json.JSONException: Unterminated array at line 21, char 1. Excerpt: 
 }
--ERROR->>>]

Full source: [
  {
   "id":"CN1",
   "frames":[{"bmp":"city01N1.png"}],
   "type":"animation",
   "light":true, "light switching":true
 },
[  <<<<<<<<<<<<<<_<<< the error.
 {
   "id":"City01",
   "type":"commercial",
   "width":6,
   "height":6,
   "once":true,
   "animation":[{"id":"CN1", "x":0, "y":-394}],
   "frames":[{"bmp":"city01.png"}],
   "people":800,
   "level":1,
   "author":"Sergio2203"
 }
]
Device: moto g(6) play (motorola)
OS version: 26

Thank you in advance.
Try:

Code: Select all

[
  {
   "id":"CN1",
   "frames":[{"bmp":"city01N1.png"}],
   "type":"animation",
   "light":true, "light switching":true
 },

 {
   "id":"City01",
   "type":"commercial",
   "width":6,
   "height":6,
   "once":true,
   "animation":[{"id":"CN1", "x":0, "y":-394}],
   "frames":[{"bmp":"city01.png"}],
   "people":800,
   "level":1,
   "author":"Sergio2203"
 }
]

Re: [Asked][1.8.27a] Plugin crash (definition.json:362)

Posted: 20 Apr 2020, 08:41
by Sergio2203
thanks friend, you could load my plugin