Page 1 of 1
[Asked][1.12.13a] Plugin crash (ultronixomegafactorymx1.json:200)
Posted: 12 Feb 2025, 21:27
by Lucas Munerati
Hello im Lucas munerati,Remember me so, I got the following error with a plugin (ultronixomegafactorymx1.json:200):
Code: Select all
In plugins/new_folder/ultronixomegafactorymx1.json:
java.lang.IllegalStateException: When loading "UltronixOmegaFactorioA01": Please specify width and height attributes. They have to be equal and >=1
Device: SM-A155M (samsung)
OS version: 34
Extra info: I already had the height and width,on 4 Because i was making an 4x4 building,Also i was trying to make an Op industrial building,That looked like an Ecologic and More clean version of the Simcity 2013 Ômega co. C.O.T,also My idea for my building,was that its not only a powerful industrial building,With 86000 workers,But it Makes like 10.000 to 20.000 of supply,Just so i can make easy supplies After placing 1 of my Plugin,especially for the Moon base mission,Alright,You guys get it right? Ok.
Re: [Asked][1.12.13a] Plugin crash (ultronixomegafactorymx1.json:200)
Posted: 13 Feb 2025, 12:26
by dnswodn
Could you show the JSON code?
Re: [Asked][1.12.13a] Plugin crash (ultronixomegafactorymx1.json:200)
Posted: 13 Feb 2025, 13:17
by Lucas Munerati
Re: [Asked][1.12.13a] Plugin crash (ultronixomegafactorymx1.json:200)
Posted: 13 Feb 2025, 13:18
by Lucas Munerati
I get the strange name,but its still an industrial
Re: [Asked][1.12.13a] Plugin crash (ultronixomegafactorymx1.json:200)
Posted: 13 Feb 2025, 13:25
by dnswodn
Thank you
Re: [Asked][1.12.13a] Plugin crash (ultronixomegafactorymx1.json:200)
Posted: 13 Feb 2025, 13:33
by dnswodn
The problem is that there are two superfluous spaces.
Code:
Select all Reset
[
{
"frames": [
{
"bmp": "UltronixTTPSF.png"
}
],
"id": "UltronixOmegaFactorioA01",
"type": "industrial",
"width ": 4, // Should be "width": 4,
"height ": 4, // Same, Should be "height": 4,
"workers": 86000,
"level": 3,
"build time": 0,
"author": "Lucas m",
"title": "UltronixOmegaFactoryZX1",
"active": "true"
}
]
Re: [Asked][1.12.13a] Plugin crash (ultronixomegafactorymx1.json:200)
Posted: 13 Feb 2025, 16:12
by Lucas Munerati
dnswodn wrote: ↑13 Feb 2025, 13:33
The problem is that there are two superfluous spaces.
Code:
Select all Reset
[
{
"frames": [
{
"bmp": "UltronixTTPSF.png"
}
],
"id": "UltronixOmegaFactorioA01",
"type": "industrial",
"width ": 4, // Should be "width": 4,
"height ": 4, // Same, Should be "height": 4,
"workers": 86000,
"level": 3,
"build time": 0,
"author": "Lucas m",
"title": "UltronixOmegaFactoryZX1",
"active": "true"
}
]
I tried removing the
Two superfluous spaces? And mess a bit with the json,But it didnt work, for me!
Re: [Asked][1.12.13a] Plugin crash (ultronixomegafactorymx1.json:200)
Posted: 13 Feb 2025, 16:35
by dnswodn
Is there an another error? If there is, Please also provide the error information. Sorry I may not notice all mistakes.
Re: [Asked][1.12.13a] Plugin crash (ultronixomegafactorymx1.json:200)
Posted: 13 Feb 2025, 17:19
by Lucas Munerati
Hi, I got the following error with a plugin (megaotopicacrazybuilding-4.json:424):
Code: Select all
In plugins/new_folder/megaotopicacrazybuilding-4.json:
info.flowersoft.theotown.util.json.JSONException: Value {"frames":[{"bmp":"UltronixTTPSF.png"}],"id":"UltronixOmegaFactorioA01","type":"industrial","width ":4,"height ":4,"workers":86000,"level":3,"build time":0,"author":"Lucas m","title":"UltronixOmegaFactoryZX1","active":"true"} of type info.flowersoft.theotown.util.json.JSONObject cannot be converted to JSONArray
Device: SM-A155M (samsung)
OS version: 34
Thank you in advance.
Re: [Asked][1.12.13a] Plugin crash (ultronixomegafactorymx1.json:200)
Posted: 13 Feb 2025, 17:21
by Lucas Munerati
I know its a different file,But im also a bit crazy,but there is the error,But in the code all i did was open an online json text editor,and remove certain parts,ok.
Re: [Asked][1.12.13a] Plugin crash (ultronixomegafactorymx1.json:200)
Posted: 14 Feb 2025, 13:19
by dnswodn
Er why did you remove the outermost brackets? Just correct the code using the method I provided above.