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

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

Ilya strigo
Settler
Reactions:
Posts: 3
Joined: Sat Nov 30, 2019 10:00
Plugins: Show
Phone model: Huawei Y3

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

#1

Post by Ilya strigo » Wed Dec 04, 2019 1:15

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: 7923
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

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

#2

Post by CommanderABab » Wed Dec 04, 2019 1:21

If it's your plugin, the id isn't unique. :) Change it. :)
777!777Currently using alpha 777. 777 What's new? :)
online maps!!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

Ilya strigo
Settler
Reactions:
Posts: 3
Joined: Sat Nov 30, 2019 10:00
Plugins: Show
Phone model: Huawei Y3

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

#3

Post by Ilya strigo » Wed Dec 04, 2019 11:44

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: 7923
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

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

#4

Post by CommanderABab » Wed Dec 04, 2019 18:56

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

Two identical sections of code.
777!777Currently using alpha 777. 777 What's new? :)
online maps!!
:)

Telegram - t.me/
๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธCommander๐Ÿ†Ž๏ธ๐Ÿ†Ž๏ธ

User avatar
Wekabu city
Inhabitant of a Conurbation
Reactions:
Posts: 503
Joined: Tue Aug 29, 2017 21:07
Location: Overseas Communal Bunker
Plugins: Show
Version: Beta
Phone model: Wiko Sunset 2

Platform

Plugin Creator

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

#5

Post by Wekabu city » Thu Dec 05, 2019 17:56

If it still occours, thereason may be that you have the plugin installed twice (as a .zip or .plugin file and a regular folder)
Member of the Theotown community for over 3 2 years! (boy am I bad at maths)
==================================
Currently working on a megaproject, hopefully I can push it through.
I'm also partially inactive, so PM me

Post Reply Previous topicNext topic

Return to โ€œProblemsโ€