Page 1 of 1

[Asked][1.10.45a] Plugin crash (modern hotel.json:175)

Posted: 16 Mar 2022, 13:36
by Naufhal
Hi, I got the following error with a plugin (modern hotel.json:175):

Code: Select all

In plugins/hotel/modern hotel.json:

java.lang.IllegalStateException: When loading "685086wq01oedo0": Please specify width and height attributes. They have to be equal and >=1
Device: SM-A307GN (samsung)
OS version: 30

Thank you in advance.

Re: [Asked][1.10.45a] Plugin crash (modern hotel.json:175)

Posted: 16 Mar 2022, 13:38
by Naufhal
My plugin Name is Modern Hotel

Re: [Asked][1.10.45a] Plugin crash (modern hotel.json:175)

Posted: 16 Mar 2022, 13:38
by Naufhal
@CommanderABab. I have my problem in my plugin. Im not spamming.

Re: [Asked][1.10.45a] Plugin crash (modern hotel.json:175)

Posted: 17 Mar 2022, 04:54
by Naufhal
CommanderABab wrote:
16 Mar 2022, 18:00
It says you need these statements and that # should be the same for each.

Code: Select all

"width":#,
"height":#,

Code: Select all

[{
    "id":"685086wq01oedo0",
    "type":"residential",
    "author":"Naufhal",
    "width":6,
    "height":6,
    "frames":[{"bmp":"modern hotel.png"}],
    "level":3,
    "needs road":true,
    "needs land":true,
    "needs water":false,
    "habitants":1250,
    "auto build":true,
    "destroyable":true,
    "removeable":true
}]
I Was Fixed. Width and height using 6x6. Thanks to fixing!