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

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Ilya strigo
Settler
Reactions:
Posts: 3
Joined: 30 Nov 2019, 10:00
Plugins: Showcase Store

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

#1

Post 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.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

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

#2

Post by CommanderABab »

If it's your plugin, the id isn't unique. :) Change it. :)

User avatar
Ilya strigo
Settler
Reactions:
Posts: 3
Joined: 30 Nov 2019, 10:00
Plugins: Showcase Store

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

#3

Post 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
}
]

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

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

#4

Post by CommanderABab »

You have two ...957s used in the provided code.

Two identical sections of code.

User avatar
Wekabu city
Inhabitant of a Megalopolis
Reactions:
Posts: 586
Joined: 29 Aug 2017, 21:07
Location: Germany, Hessia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

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

#5

Post 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)

Post Reply Previous topicNext topic

Return to “Problems”