Page 1 of 1

Constructing options

Posted: 08 Aug 2017, 18:32
by MXD77
I think it would be cool when I'm making plugin I could choose how we can put something :bq
For example:
lengthwise (like roads),
syngly and
sectorally
What do you think :bq

Re: Constructing options

Posted: 08 Aug 2017, 18:59
by JustAnyone
MXD77 wrote:
08 Aug 2017, 18:32
I think it would be cool when I'm making plugin I could choose how we can put something :bq
For example:
lengthwise (like roads),
syngly and
sectorally
What do you think :bq
The thing that I don't really understand these words. The zoning for 1x1 tile is available right now.

Re: Constructing options

Posted: 08 Aug 2017, 19:30
by MXD77
JustAnyone wrote:
08 Aug 2017, 18:59
MXD77 wrote:
08 Aug 2017, 18:32
I think it would be cool when I'm making plugin I could choose how we can put something :bq
For example:
lengthwise (like roads),
syngly and
sectorally
What do you think :bq
The thing that I don't really understand these words. The zoning for 1x1 tile is available right now.
Ahh that word zoning
And what? it's available?

Re: Constructing options

Posted: 08 Aug 2017, 20:06
by CommanderABab
If you have any 1x1 plugin buildings that you want laid out that way, you can change their type to decoration temporarily and use Lobby's areal layout tool in them, make sure that set own buildings to untouchable is true, lay them out, and then change them back to what they were. :)

It would work best with one plugin at a time in a line.

Re: Constructing options

Posted: 08 Aug 2017, 20:19
by MXD77
CommanderABab wrote:
08 Aug 2017, 20:06
If you have any 1x1 plugin buildings that you want laid out that way, you can change their type to decoration temporarily and use Lobby's areal layout tool in them, make sure that set own buildings to untouchable is true, lay them out, and then change them back to what they were. :)

It would work best with one plugin at a time in a line.
Sounds complicated but maybe it isn't so it's time to try :)

Re: Constructing options

Posted: 08 Aug 2017, 20:33
by CommanderABab

Code: Select all

{
      "id": "$yourbuildingid",
      "type": "residential",
      "author": "CommanderABab",
      "width": 1,
      "height": 1,
      "draw ground":true,
      "frames": [
        {"bmp": "your1x1.png"}
       ],
      "habitants": 500,
      "level": 2 
   }
Say the above is a residential plugin of yours.

Re: Constructing options

Posted: 08 Aug 2017, 20:34
by CommanderABab
CommanderABab wrote:
08 Aug 2017, 20:33

Code: Select all

{
      "id": "$yourbuildingid",
      "type": "residential",
      "author": "CommanderABab",
      "width": 1,
      "height": 1,
      "draw ground":true,
      "frames": [
        {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},
          {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},
         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},
         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"}
       ],
      "habitants": 500,
      "level": 2
   }
Say the above is a residential plugin of yours.
You would make the frames statement like above here

Re: Constructing options

Posted: 08 Aug 2017, 20:39
by CommanderABab
CommanderABab wrote:
08 Aug 2017, 20:34
CommanderABab wrote:
08 Aug 2017, 20:33

Code: Select all

{
      "id": "$yourbuildingid",
      "type": "decoration",
      "author": "CommanderABab",
      "width": 1,
      "height": 1,
      "draw ground":true,
      "frames": [
        {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},
          {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},
         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},
         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"},         {"bmp": "your1x1.png"},{"bmp": "your1x1.png"}
       ],
      "habitants": 500,
      "level": 2,      
       "frame alignment area":true
   }
Say the above is a residential plugin of yours.
You would make the frames statement like above here
Now change the type to decoration as above and add this statement to the end

Code: Select all

"frame alignment area":true

Re: Constructing options

Posted: 08 Aug 2017, 20:42
by MXD77
Hey @CommanderABab
I sawed something about code named frame alignment area but when I want to build it game crash
Maybe it's still not what I'm looking for :roll:

Re: Constructing options

Posted: 08 Aug 2017, 20:43
by MXD77
Ahh great timing

Re: Constructing options

Posted: 08 Aug 2017, 20:45
by CommanderABab
It requires 16 frames, that might be why it crashed if you didn't have 16.

Re: Constructing options

Posted: 08 Aug 2017, 20:48
by MXD77
CommanderABab wrote:
08 Aug 2017, 20:45
It requires 16 frames, that might be why it crashed if you didn't have 16.
Yeah it's simple but, not for my :roll:

Re: Constructing options

Posted: 08 Aug 2017, 20:52
by MXD77
CommanderABab wrote:
08 Aug 2017, 20:45
It requires 16 frames, that might be why it crashed if you didn't have 16.
It still don't work and after crash frames in json was reduced by half
EDIT
I made 32 frames and it's work finally

Re: Constructing options

Posted: 09 Aug 2017, 16:30
by Lobby
That's strange, 16 frames should be sufficient. Note that using the same image for multiple frames won't take up extra texture space :)