[Asked][1.10.63a] Plugin crash (center .json:426)

Plugin specific problems will be solved here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
Papijoldan
Settler
Posts: 4
Joined: 26 Jul 2022, 18:03

[Asked][1.10.63a] Plugin crash (center .json:426)

#1

Post by Papijoldan »

Hi, I got the following error with a plugin (center .json:426):

Code: Select all

In plugins/sample/center .json:

java.lang.IllegalStateException: When loading "$invstcentr0": Value [{"id":"$center.upgrade2","title":"Office upgrade","text":"Improve trades and unlock gun industry ","frames":[{"bmp":"fhotel.png"}],"price":250000,"monthly price":100,"power":-20,"water":-10,"build time":300,"influence management":10}] at 1 of type io.blueflower.stapel2d.util.json.JSONArray cannot be converted to JSONObject


Thank you in advance.

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

Plugin Creator

Platform

Re: [Asked][1.10.63a] Plugin crash (center .json:426)

#2

Post by CommanderABab »

The included code is a valid json:

Code: Select all

[{
	"id": "$center.upgrade2",
	"title": "Office upgrade",
	"text": "Improve trades and unlock gun industry ",
	"frames": [{
		"bmp": "fhotel.png"
	}],
	"price": 250000,
	"monthly price": 100,
	"power": -20,
	"water": -10,
	"build time": 300,
	"influence management": 10
}]

Code: Select all    Reset

[{ "id": "$center.upgrade2", "title": "Office upgrade", "text": "Improve trades and unlock gun industry ", "frames": [{ "bmp": "fhotel.png" }], "price": 250000, "monthly price": 100, "power": -20, "water": -10, "build time": 300, "influence management": 10 }]
JSON checker
Check

Post Reply Previous topicNext topic

Return to “Problems”