[Answered] [1.7.50a] Plugin crash (s.json:1984)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Sparkle8538
Small-town resident
Reactions:
Posts: 25
Joined: 26 Jul 2019, 11:35
Plugins: Showcase Store

[Answered] [1.7.50a] Plugin crash (s.json:1984)

#1

Post by Sparkle8538 »

Hi, I got the following error with a plugin (s.json:1984):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/$townhall02/s.json:

io.blueflower.stapel2d.util.json.JSONException: Expected literal value at character 1007 of [
  {
    "id":"$townhall02",
    "type":"public",
    "width":8,
    "height":8,
    "influence management":200,
    "title":"Big city hall",
    "text":"A big cityhall for a big city. it's a thank you for 1,000,000 downloads",
    
    "price":2000000,
    "monthly price":8000,
    "frames":[
      {
        "bmp":"$townhall02.png"
      }
    ],
    "build time":576,
    "power":-200,
    "water":-200,
    "override":true,
    "draw ground":true,
    "upgrades":[
      {
         "id":"$townhall0200",
        "type":"public",
        "width":8,
        "height":8,
        "influence management":400,
        "title":"Huge city hall",
        "text":"A huge cityhall for a huge city. it's a thank you for 250,000 pluginstore downloads",
        
        "price":4000000,
        "monthly price":2000,
        "frames":[
          {
            "bmp":"$townhall0200.png"
          }
        ],
        "build time":1034,
        "power":-400,
        "water":-400,
        "draw ground":true,
      },
      {
        "id":"$townhall0201",
        "type":"public",
        "width":8,
        "height":8,
        "influence management":800,
        "title":"Giant city hall",
        "text":"A giant cityhall for a huge city. it's a thank you for 120,000 posts on theotown.com",
        
        "price":4000000,
        "monthly price":2000,
        "frames":[
          {
            "bmp":"$townhall0201.png"
          }
        ],
        "requirements:[
          {
            "requirements":[
              {
                "type":"population_rich",
                "data":100
              }
            ]
          }
        ],
        "build time":2354,
        "power":-1000,
        "water":-1000,
        "draw ground":true
      }
    ]
  }
]
Device: TEL-1013GIQA (TEL-1013GIQA)
OS version: 23

Thank you in advance.

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

Plugin Creator

Platform

Re: [1.7.50a] Plugin crash (s.json:1984)

#2

Post by CommanderABab »

Missing quote after requirements. Check tutorial and documentation for updated usage also.

Post Reply Previous topicNext topic

Return to “Problems”