[Answered][1.8.41a] Plugin crash (definition.json:645)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Sergio2203
Townsman
Reactions:
Posts: 42
Joined: 10 Jul 2018, 13:56
Plugins: Showcase Store

[Answered][1.8.41a] Plugin crash (definition.json:645)

#1

Post by Sergio2203 »

Hi, I got the following error with a plugin (definition.json:645):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/IKEA store 1/definition.json:

io.blueflower.stapel2d.util.json.JSONException: Expected literal value at line 31, char 1. Excerpt: 
   "v2":true,
--ERROR->>> }

Full source: [
  {
   "id":"Ikean1",
   "frames":[{"bmp":"IKEAstoreN1.png"}],
   "type":"animation",
   "light":true, "light switching":true
 },
 {
   "id":"IKEA store 1",
   "type":"commercial",
   "width":4,
   "height":4,
   "car spawner":[{"cars":["$$camionikea00"],
   "animation":[{"id":"Ikean1", "x":0, "y":-43}],
   "frames":[{"bmp":"IKEAstore.png"}],
   "people":0,
   "level":1,
   "author":"xxx"
 },
 {
   "capacity":6,
   "flag normal":true,
   "flag user2":true,
   "frames":[{"bmp":"camion ikea.png",
   "count":4,"h":14,"w":17}],
   "id":"$$camionikea00",
   "influence passenger bus":12,
   "speed":1.1,
   "type":"car",
   "v2":true,
 }
  
]
Device: moto g(6) play (motorola)
OS version: 26

Thank you in advance.

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

Plugin Creator

Platform

Re: [Asked][1.8.41a] Plugin crash (definition.json:645)

#2

Post by CommanderABab »

Sergio2203 wrote:
10 May 2020, 07:36
Hi, I got the following error with a plugin (definition.json:645):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/IKEA store 1/definition.json:

io.blueflower.stapel2d.util.json.JSONException: Expected literal value at line 31, char 1. Excerpt: 
   "v2":true,
--ERROR->>> }

Full source: <..> Device: moto g(6) play (motorola)
OS version: 26

Thank you in advance.
}] was missing in car spawner statement:

Code: Select all

[
  {
   "id":"Ikean1",
   "frames":[{"bmp":"IKEAstoreN1.png"}],
   "type":"animation",
   "light":true, "light switching":true
 },
 {
   "id":"IKEA store 1",
   "type":"commercial",
   "width":4,
   "height":4,
   "car spawner":[{"cars":["$$camionikea00"]}],
   "animation":[{"id":"Ikean1", "x":0, "y":-43}],
   "frames":[{"bmp":"IKEAstore.png"}],
   "people":0,
   "level":1,
   "author":"xxx"
 },
 {
   "capacity":6,
   "flag normal":true,
   "flag user2":true,
   "frames":[{"bmp":"camion ikea.png","count":4,"h":14,"w":17}],
   "id":"$$camionikea00",
   "influence passenger bus":12,
   "speed":1.1,
   "type":"car",
   "v2":true,
 }
  
]

User avatar
Sergio2203
Townsman
Reactions:
Posts: 42
Joined: 10 Jul 2018, 13:56
Plugins: Showcase Store

Re: [Asked][1.8.41a] Plugin crash (definition.json:645)

#3

Post by Sergio2203 »

could you help me what should i put please

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

Plugin Creator

Platform

Re: [Asked][1.8.41a] Plugin crash (definition.json:645)

#4

Post by CommanderABab »

Code: Select all

[
  {
   "id":"Ikean1",
   "frames":[{"bmp":"IKEAstoreN1.png"}],
   "type":"animation",
   "light":true, "light switching":true
 },
 {
   "id":"IKEA store 1",
   "type":"commercial",
   "width":4,
   "height":4,
   "car spawner":[
     {
       "cars":["$$camionikea00"],  
       "flags": ["lkw"],
       "count":36,
       "radius":1300        
     }
   ],
   "animation":[{"id":"Ikean1", "x":0, "y":-43}],
   "frames":[{"bmp":"IKEAstore.png"}],
   "people":0,
   "level":1,
   "author":"xxx"
 },
 {
   "capacity":6,
   "flag normal":true,
   "flag user2":true,
   "frames":[{"bmp":"camion ikea.png","count":4,"h":14,"w":17}],
   "id":"$$camionikea00",
   "influence passenger bus":12,
   "speed":1.1,
   "type":"car",
   "v2":true,
 }
  
]
This would probably work as you intended.

Post Reply Previous topicNext topic

Return to “Problems”