Page 1 of 1

[Resolved] [1.7.62a] Plugin crash (s.aec1.json:4592)

Posted: 04 Dec 2019, 01:15
by Ilya strigo
Hi, I got the following error with a plugin (s.aec1.json:4592):

Code: Select all

In /storage/emulated/0/TheoTown/plugins/superelectric/saec1.json:

java.lang.IllegalStateException: When loading "$sample.plugin.unique.id.els957": $sample.plugin.unique.id.els957 is already in use. Use another id or add "override":true to your plugin.
Device: CRO-U00 (HUAWEI)
OS version: 23

Thank you in advance.

Re: [1.7.62a] Plugin crash (s.aec1.json:4592)

Posted: 04 Dec 2019, 01:21
by CommanderABab
If it's your plugin, the id isn't unique. :) Change it. :)

Re: [1.7.62a] Plugin crash (s.aec1.json:4592)

Posted: 04 Dec 2019, 11:44
by Ilya strigo
only where here code "override": true?


[
{
"id":"$cat_enrgysupr_camp00",
"type":"category",
"title":"super electric",
"frames":[{"bmp":"SUPELESING.png"}],
"ordinal":20
},
{
"id":"$sample.plugin.unique.id.els50",
"type":"energy",
"category":"$cat_enrgysupr_camp00",
"author":"ilya",
"text":"big super electric AEC",
"title":"big AEC 1",
"width":8,
"height":8,
"price":100000000,
"monthly price":500000,
"power":500000,
"water":-6500,
"influence noise":2,
"explodes":true,
"explosion radius":2,
"nuclear":true,
"super conductive":true,
"influence radioactive":1,
"frames":[{"bmp":"THD_ELE_SPR2.png"}],
"level":3
},
{
"id":"$sample.plugin.unique.id.els457",
"type":"energy",
"category":"$cat_enrgysupr_camp00",
"author":"ilya",
"text":"little super electric AEC",
"title":"little AEC 1",
"width":6,
"height":6,
"price":1500000,
"monthly price":5500,
"power":150000,
"water":-3500,
"influence noise":1,
"explodes":true,
"explosion radius":1,
"nuclear":true,
"super conductive":true,
"influence radioactive":1,
"frames":[{"bmp":"THD_ELE3_SPR2.png"}],
"level":1
},
{
"id":"$sample.plugin.unique.id.els957",
"type":"energy",
"category":"$cat_enrgysupr_camp00",
"author":"ilya",
"text":"little super electric AEC",
"title":"little AEC 2",
"width":7,
"height":7,
"price":2000000,
"monthly price":6000,
"power":200000,
"water":-4000,
"influence noise":1,
"explodes":true,
"explosion radius":1,
"nuclear":true,
"super conductive":true,
"influence radioactive":1,
"frames":[{"bmp":"THD_ELE4_SPR2.png"}],
"level":1
},
{
"id":"$sample.plugin.unique.id.els8956",
"type":"energy",
"category":"$cat_enrgysupr_camp00",
"author":"ilya",
"text":"little super electric AEC",
"title":"little AEC 3",
"width":8,
"height":8,
"price":2500000,
"monthly price":6500,
"power":250000,
"water":-4500,
"influence noise":1,
"explodes":true,
"explosion radius":1,
"nuclear":true,
"super conductive":true,
"influence radioactive":1,
"frames":[{"bmp":"THD_ELE5_SPR2.png"}],
"level":1
},
{
"id":"$sample.plugin.unique.id.els957",
"type":"energy",
"category":"$cat_enrgysupr_camp00",
"author":"ilya",
"text":"little super electric AEC",
"title":"little AEC 2",
"width":7,
"height":7,
"price":2000000,
"monthly price":6000,
"power":300000,
"water":-4000,
"influence noise":1,
"explodes":true,
"explosion radius":1,
"nuclear":true,
"super conductive":true,
"influence radioactive":1,
"frames":[{"bmp":"THD_ELE4_SPR2.png"}],
"level":1
},
{
"id":"$sample.plugin.unique.id.els2534455$1$1",
"type":"energy",
"category":"$cat_enrgysupr_camp00",
"author":"ilya",
"text":"little brain stantion",
"title":"little brain stantion",
"width":6,
"height":6,
"water":-8,
"price":300,
"power":1,
"monthly price":70,
"frames":[{"bmp":"brainstantaec1.png"}],
"level":2
},
{
"id":"$sample.plugin.unique.id.els2534455$2$1",
"type":"water",
"category":"$cat_enrgysupr_camp00",
"author":"ilya",
"text":"little cooling tower",
"title":"little cooling tower",
"width":6,
"height":6,
"price":250,
"power":0,
"water waste":-3000,
"monthly price":30,
"requirement":{"requirements":[{"type":"BUILDING", "data":{"id":"$sample.plugin.unique.id.els2534455$1$1"}}]},
"water":2550,
"frames":[{"bmp":"NUGCOOLING1.png"}],
"level":2
},
{
"id":"$sample.plugin.unique.id.els2534455$3$1",
"type":"energy",
"category":"$cat_enrgysupr_camp00",
"author":"ilya",
"text":"little cooling tower",
"title":"little cooling tower",
"requirement":{"requirements":[{"type":"BUILDING", "data":{"id":"$sample.plugin.unique.id.els2534455$1$2"}}]},
"width":6,
"height":6,
"price":3000000,
"monthly price":7000,
"power":350000,
"water":-5000,
"influence noise":2,
"explodes":true,
"explosion radius":1,
"nuclear":true,
"super conductive":true,
"influence radioactive":2,
"frames":[{"bmp":"NUGreactor1.png"}],
"level":2
}
]

Re: [1.7.62a] Plugin crash (s.aec1.json:4592)

Posted: 04 Dec 2019, 18:56
by CommanderABab
You have two ...957s used in the provided code.

Two identical sections of code.

Re: [1.7.62a] Plugin crash (s.aec1.json:4592)

Posted: 05 Dec 2019, 17:56
by Wekabu city
If it still occours, thereason may be that you have the plugin installed twice (as a .zip or .plugin file and a regular folder)