[Asked][1.10.29a] Plugin crash (large.nuclear.factory.json:1167)

When a post is too long...
And of little value...
It's coming here

Moderator: JR Moderators

Forum rules
The new rule of Jailhouse rock is
1:Please Behave!
2:Do not fight
3:Do not making fun of someone else
4:Do not showing a picture that make offended someone else
User avatar
Naufhal
Inhabitant of a Supercluster
Reactions:
Posts: 3742
Joined: 07 Oct 2021, 06:04
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

[Asked][1.10.29a] Plugin crash (large.nuclear.factory.json:1167)

#1

Post by Naufhal »

Hi, I got the following error with a plugin (large.nuclear.factory.json:1167):

Code: Select all

In plugins/large nuclear plant/large.nuclear.factory.json:

io.blueflower.stapel2d.util.json.JSONException: Unterminated array at line 24, char 15. Excerpt: 

  "needs road"--ERROR->>>: "true",

Full source: [
 {
  "id": "large.nuclear2",

  "type": "energy",

  "title": " Large Nuclear Plant Factory",

  "text": "LNPF(Large Nuclear Plant Factory Producted Many Energy And Monthly Price, it will bankrupt your city",

  "author": "Lobby & Naufhal",

  "width": 8,

  "height": 8,

  "frames": { "bmp": "large.nuclear.2.png" },
  "smoke":[
   {"id":"$smoke06","x":70, "y":-34},
   {"iď":"$smoke06","x":80, "y":-39},
   {"id":"$watervapor00","x":50, "y":-61},
   {"id":"$watervapor00","x":90, "y":-81},

  "needs road": "true",

  "needs land": "true",

  "needs water": "false",

  "build time": 98,

  "price": 5500000,

  "monthly price": 15000,

  "power": 95000000,

  "water": -550000,

  "influence noise": 85,

  "influence radioactive": 150,

  "requirement": { "requirements": [{ "type": "RANK", "data": { "lvl": 19 } }] },

  "explodes": "true",

  "explosion radius": 150,

  "nuclear": "true",

  "super conductive": "true",

  "performance": "true"
 }
]
Device: SM-A307GN (samsung)
OS version: 30

Thank you in advance.
User avatar
Naufhal
Inhabitant of a Supercluster
Reactions:
Posts: 3742
Joined: 07 Oct 2021, 06:04
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

Re: [Asked][1.10.29a] Plugin crash (large.nuclear.factory.json:1167)

#2

Post by Naufhal »

CommanderABab wrote: 28 Jan 2022, 22:59 You didn't terminate the array of smokes, try:

Code: Select all

 [
 {
  "id": "large.nuclear2",

  "type": "energy",

  "title": " Large Nuclear Plant Factory",

  "text": "LNPF(Large Nuclear Plant Factory Producted Many Energy And Monthly Price, it will bankrupt your city",

  "author": "Lobby & Naufhal",

  "width": 8,

  "height": 8,

  "frames": { "bmp": "large.nuclear.2.png" },
  "smoke":[
   {"id":"$smoke06","x":70, "y":-34},
   {"iď":"$smoke06","x":80, "y":-39},
   {"id":"$watervapor00","x":50, "y":-61},
   {"id":"$watervapor00","x":90, "y":-81}
   ],

  "needs road": "true",

  "needs land": "true",

  "needs water": "false",

  "build time": 98,

  "price": 5500000,

  "monthly price": 15000,

  "power": 95000000,

  "water": -550000,

  "influence noise": 85,

  "influence radioactive": 150,

  "requirement": { "requirements": [{ "type": "RANK", "data": { "lvl": 19 } }] },

  "explodes": "true",

  "explosion radius": 150,

  "nuclear": "true",

  "super conductive": "true",

  "performance": "true"
 }
] 
Note: true and false don't require quotes in json.
Opps. Sorry my new json fe use true and false no quotes. But no error. It work thank you for my topic
Post Reply Previous topicNext topic

Return to “Jailhouse Rock”