✔Categories error

Plugin specific problems will be solved here.

Moderator: Plugin Moderators

User avatar
Temgamer
Villager
Reactions:
Posts: 12
Joined: 16 May 2017, 20:26
Location: Saint-Petersburg, Russia
Plugins: Showcase Store

✔Categories error

#1

Post by Temgamer »

When I try to add buildings to a category, I get an error as in the picture. What I do wrong?
There is a code of building:

Code: Select all

[
{"id":"$radioact_storage",
"type":"$temg_nuclear00",
"author":"Temgamer",

Code: Select all

[
  {
    "id":"$temg_nuclear00",
    "type":"category",
    "title":"Nuclear",
    "frames":[{"bmp":"nuclear.png"}]
  }
]
Attachments
An error.
An error.

User avatar
mdk_813
Inhabitant of a Country
Reactions:
Posts: 857
Joined: 16 Dec 2016, 02:38
Location: Germany
Plugins: Showcase Store

Platform

Re: Categories error

#2

Post by mdk_813 »

In the first box, you set "type" to "$temg_nuclear00". But that is not a type. "decoration", "park", "commercial" etc. are types.

So, for the plugin you would have to do something like this for example:

Code: Select all

[
{"id":"$radioact_storage",
"type":"decoration",
"category":"$temg_nuclear00",
"author":"Temgamer",
By the way, you also have to define an image in "frames" as well as a "width" and "height" etc. for your building.

User avatar
THEMAX
Inhabitant of a Universe
Reactions:
Posts: 4314
Joined: 14 Sep 2017, 17:30
Location: Astrellia, UHAE
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Categories error

#3

Post by THEMAX »

I have the same problems with my oil, tourism, telecom, gas and government category

Post Reply Previous topicNext topic

Return to “Problems”