[Asked][1.10.04a] Plugin crash (code.json:181)

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
UrielMendzXD
Settler
Reactions:
Posts: 1
Joined: 03 Sep 2021, 23:55

[Asked][1.10.04a] Plugin crash (code.json:181)

#1

Post by UrielMendzXD »

Hi, I got the following error with a plugin (code.json:181):

Code: Select all

In plugins/plugin/code.json:

java.lang.IllegalStateException: When loading "$cat_terrain00": $cat_terrain00 is already in use. Use another id or add "override":true to your plugin.
Device: moto e5 (motorola)
OS version: 26

Thank you in advance.. UrielMendzXD

Code: Select all

[{
	"id": "$cat_terrain00",
	"type": "energy",
	"author": "Plugin creator website 3.0 & UrielMendzXD",
	"width": 1,
	"height": 1,
	"frames": [{
			"bmp": "Cable01.png"
		},
		{
			"bmp": "Cable02.png"
		},
		{
			"bmp": "Cable08.png"
		},
		{
			"bmp": "Cable05.png"
		},
		{
			"bmp": "Cable06.png"
		},
		{
			"bmp": "Cable07.png"
		},
		{
			"bmp": "Cable04.png"
		},
		{
			"bmp": "Cable09.png"
		},
		{
			"bmp": "Cable10.png"
		},
		{
			"bmp": "Cable03.png"
		}
	],
	"title": "Cable subterráneo",
	"category": "$cat_residential00",
	"zone": "$cat_zone00",
	"price": 1,
	"monthly price": 1,
	"bulldoze price": 1,
	"build time": 0,
	"power": 10000,
	"water": 10000,
	"separator": false,
	"rotation aware": false,
	"final": false,
	"hidden": false,
	"override": false,
	"hide id": false,
	"draw ground": false,
	"burnable": true,
	"destroyable": true,
	"needs road": true,
	"pickable": true
}]
Hola, recibí el siguiente error con un complemento (code.json: 181):
[código] En plugins / plugin / code.json:

java.lang.IllegalStateException: Al cargar "$ cat_terrain00": $ cat_terrain00 ya está en uso.
Use otro ID o agregue "override": verdadero a su complemento. [/ Code]

Dispositivo: moto e5 (motorola)
Versión del SO: 26

Gracias de Antemano.. UrielMendzXD

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

Plugin Creator

Platform

Re: [Asked][1.10.04a] Plugin crash (code.json:181)

#2

Post by CommanderABab »

You need to choose a unique id for your plugin. :)

That id is one used by the game itself.

Post Reply Previous topicNext topic

Return to “Problems”