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
Entire code:
[
{
"id":"$invstcentr0",
"type":"public",
"author":"papiJoldan",
"width":2,
"height":2,
"frames":[
{
"bmp":"fhotel.png"
}
],
"price":1000000,
"workers":20,
"influence noise":10,
"build time":600,
"requirement":{
"requirements":[
{
"type":"RANK",
"data":{
"lvl":30
}
}
]
},
"upgrades":[
{
"id":"$center.upgrade",
"title":"Radio Upgrade",
"text":"Help organization with buildings",
"frames":[
{
"bmp":"fhotel.png"
}
],
"price":500000,
"monthly price":200,
"power":-50,
"water":-50,
"build time":200,
"influence management":20
},
[
{
"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
}
]
],
"title":"Investigation Centre",
"text":"Investigation of buildings"
}
]