[Asked][1.9.24a] Plugin crash (watertower.json:125)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

MarioBitMap
Villager
Reactions:
Posts: 16
Joined: Fri Jul 31, 2020 22:54
Location: Spain
Plugins: Show
Version: Beta

Plugin Creator

Platform

[Asked][1.9.24a] Plugin crash (watertower.json:125)

#1

Post by MarioBitMap »

Hi, I got the following error with a plugin (watertower.json:125):

Code: Select all

In plugins/water/watertower.json:

java.lang.IllegalStateException: When loading "$WaterTowerPlazadeCastilla": No value for x
Device: Redmi Note 8T (Xiaomi)
OS version: 28

My code:

Code: Select all

[
  { 
 "id":"$WaterTowerPlazadeCastilla",
    "type":"water",
    "width":2,
    "height":2,
    "frames":[{"bpm":"isabel_a.png"}],
    "price":18000,
    "monthly price":550,
    "water":38000,
    "power":0,
    "needs land":true,
    "upgrades":[
      {
        "id":"$WaterTowerPlazadeCastilla_Publicity",
        "frames":[{"bpm":"isabel_b.png"}, {"bpm":"isabel_d.png"}],
        "price":4000,
        "monthly price":50,
        "influence culture":3,
        "requirement":{
          "requirements":[
            {"type":"RANK",
            "data":{"id":"$rnk_city_big"}}
          ]
       }
       },
     {
        "id":"$WaterTowerPlazadeCastilla_Remodel",
        "frames":[{"bmp":"isabel_e.png"}],
        "price":6000,
        "monthly price":100,
        "influence culture":15,
        "build time":20,
    "requirement":{
      "requirements":[
        {
          "type":"RANK",
          "data":{
            "id":"$rnk_metropolis_small"
            }
        }
        ]
        }
    }
]
}
]

Thank you in advance.

Code: Select all    Reset

[ { "id":"MarioBitMap", "category":"Plugin_Creator", "skills":[{"skill":"Pixel_Artist"},{"skill":"Learning_C++_&_TTJson/Lua"}] } ]
JSON checker
Check

User avatar
ian`
Townsman
Reactions:
Posts: 82
Joined: Sat Apr 04, 2020 17:36
Location: Indonesien
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: [Asked][1.9.24a] Plugin crash (watertower.json:125)

#2

Post by ian` »

"bmp", not bpm.
:fire

The_Real_Michael_1
Inhabitant of a Conurbation
Reactions:
Posts: 441
Joined: Mon Mar 23, 2020 15:16
Location: Romania
Plugins: Show
Contact:

Plugin Creator

Platform

[Answered][1.9.24a] Plugin crash (watertower.json:125)

#3

Post by The_Real_Michael_1 »

You mispelled the word "bmp".
Hey, I am The_Real_Michael_1 and.....
nothing to say here, I guess......
ummmmmmmmmm...
:pickle:

Post Reply Previous topicNext topic

Return to “Problems”