How to create zone

Plug-in related stuff can be discussed here.

Moderator: Plugin Moderators

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

How to create zone

#1

Post by THEMAX »

I would like to know how to do a plugin like koalaguy did... could you tell me how?
I wanted to create a plugin with some new industrial / commercial / residential zone

User avatar
JustAnyone
Developer
Reactions:
Posts: 3475
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: How to create zone

#2

Post by JustAnyone »

Documentation commun sun.

User avatar
Josh
Graphic designer
Reactions:
Posts: 2214
Joined: 11 Mar 2017, 19:20
Location: The Netherlands
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to create zone

#3

Post by Josh »

I hope this can help you further, it is the json part of the existing zones...

Code: Select all

[
  {
    "id": "$zoneresidential",
    "type": "zone",
    "rci":true,
    "old id":0,
    "frames":[{"x":320,"y":0,"w":32,"h":16}],
    "preview frames":[{"x":0,"y":553,"w":26,"h":26}],
    "price":100,
    "placeable":true
  }
]

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

Plugin Creator

Platform

Re: How to create zone

#4

Post by CommanderABab »

Code: Select all

[
{
    "id": "$zonesupercom",
    "title":"Your Super Commercial Zone",
    "text":"say like for skyscrapers!",
    "type": "zone",
    "rci":true,
    "separator":true,
    "base":"$zonecommercial",
    "frames":[{"bmp":"zones511.png","w":32,"h":16,"x":32,"count":1}],
    "preview frames":[{"bmp":"zones511.png","w":32,"h":16,"x":32,"target w":64,"target h":32,"count":1} ],
    "price":200,
    "superior to base":true,
    "placeable":true
    
  }
]
Recolored base zone colors
Recolored base zone colors
zones511.png (1.37 KiB) Viewed 1893 times
If you wanted to use the bottom row colors with my frames pic, you would set y also like this:

Code: Select all

    "frames":[{"bmp":"zones511.png","w":32,"h":16,"x":32,"y":16,"count":1}],
    "preview frames":[{"bmp":"zones511.png","w":32,"h":16,"x":32,"y":16,"target w":64,"target h":32,"count":1} ], 
If you want a plugin to only use $zonesupercom, place this code within it:

Code: Select all

"zone":"$zonesupercom",
Other attributes that are available are

Code: Select all

"persistent":true,
and

Code: Select all

"superior to all":true,
.

:json :teach
Attachments
Base zone colors
Base zone colors
zones510.png (1.39 KiB) Viewed 1893 times

User avatar
JustAnyone
Developer
Reactions:
Posts: 3475
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: How to create zone

#5

Post by JustAnyone »

@CommanderABab Superior to all means?

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

Plugin Creator

Platform

Re: How to create zone

#6

Post by CommanderABab »

Try it and see. I think you can't rezone it.

Post Reply Previous topicNext topic

Return to “Plug-In Discussion”