Page 1 of 1

✔Categories error

Posted: 27 Nov 2017, 19:25
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"}]
  }
]

Re: Categories error

Posted: 27 Nov 2017, 19:41
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.

Re: Categories error

Posted: 28 Nov 2017, 10:22
by THEMAX
I have the same problems with my oil, tourism, telecom, gas and government category