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

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

Sparkle8538
Small-town resident
Reactions:
Posts: 25
Joined: Fri Jul 26, 2019 11:35
Plugins: Show

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

#1

Post by Sparkle8538 » Thu Aug 22, 2019 12:00

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: 7913
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

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

#2

Post by CommanderABab » Thu Aug 22, 2019 19:03

Missing quote after requirements. Check tutorial and documentation for updated usage also.
777!777Currently using alpha 777. 777 What's new? :)
online maps!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

Post Reply Previous topicNext topic

Return to “Problems”

Who is online

Users browsing this forum: No registered users and 2 guests