Advanced tags for building plugins

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 7269
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

Post by CommanderABab » Tue Apr 16, 2019 17:31

Can be done, but it's complicated and the code is long.
622u622Currently using alpha 626u. 622 What's new? :)
Can't tell!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
CommanderABab
AB
Reactions:
Posts: 7269
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

Post by CommanderABab » Tue Apr 16, 2019 17:32

Akira Maruni wrote:
Tue Apr 16, 2019 16:04
I have an inspiration to make a zone that a bit similar with "Primitive Zone" plugin, but I try to make it with modern building. The purpose is to make the game looks more real with various RCI building in a zone rather than to build the same type building in a zone.

So, rather than I create the new buildings, I choose to create a code spawn some buildings from the game itself. Is it legal if I use in-game building ? What code should I use ?
CommanderABab wrote:
Tue Apr 16, 2019 17:31
Can be done, but it's complicated and the code is long.
:)

First step: collect the ids and sizes of the in-game buildings you wish built in your zone. Remember it's not a good idea to mix polluting industries with residential buildings. :)
622u622Currently using alpha 626u. 622 What's new? :)
Can't tell!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Akira Maruni
Townsman
Reactions:
Posts: 70
Joined: Wed Sep 06, 2017 13:51
Location: Indonesia
Plugins: Show
Version: Beta
Phone model: Andromax B SE
Contact:

Platform

Re: Advanced tags for building plugins

Post by Akira Maruni » Wed Apr 17, 2019 4:40

How to spawn the building ? ;)
Indonesia
JKT48 and 48Family Fans
Harvester Harvest Moon
Pokemon Trainer
Senior High School 12th Grade - Math and Science Program - Student

User avatar
JustAnyone
Junior Developer
Reactions:
Posts: 2496
Joined: Sun Jul 23, 2017 12:45
Location: Pickle command administration
Plugins: Show
Version: Beta
Phone model: Picklephone S5

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by JustAnyone » Wed Apr 17, 2019 20:48

Lobby wrote:
Wed May 31, 2017 0:37
Since version 296 you may let buildings (e.g. decorations) automatically spawn in map creation. To do so, we added an object called "spawn" which contains probability p, main spawn height height and max deviation from it radius.

A small sample plugin that spawns grass in the ocean:

Code: Select all

[
  {
    "id":"$myspawntest00",
    "type":"decoration",
    "width":1,
    "height":1,
    "frames":[{"x":0,"y":0,"w":32,"h":16}],
    "needs water":false,
    "needs land":false,
    "draw ground":true,
    "spawn":
    {
      "p":0.01,
      "height":-600,
      "radius":600
    }
  }
]
To give you some intuition about what height means I measured some height values in this map:
Image

User avatar
CommanderABab
AB
Reactions:
Posts: 7269
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

Post by CommanderABab » Wed Apr 17, 2019 23:39

JustAnyone wrote:
Wed Apr 17, 2019 20:48
*quoting Lobby*
Thanķs, but that isn't what he is talking about! :)
622u622Currently using alpha 626u. 622 What's new? :)
Can't tell!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Imran M
Inhabitant of a Conurbation
Reactions:
Posts: 445
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Platform

Re: Advanced tags for building plugins

Post by Imran M » Thu Apr 18, 2019 13:38

CommanderABab wrote:
Wed Apr 17, 2019 23:39
JustAnyone wrote:
Wed Apr 17, 2019 20:48
*quoting Lobby*
Thanķs, but that isn't what he is talking about! :)
You used a different k

User avatar
CommanderABab
AB
Reactions:
Posts: 7269
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

Post by CommanderABab » Thu Apr 18, 2019 14:28

Ķoalaguy
622u622Currently using alpha 626u. 622 What's new? :)
Can't tell!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Imran M
Inhabitant of a Conurbation
Reactions:
Posts: 445
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

Platform

Re: Advanced tags for building plugins

Post by Imran M » Thu Apr 18, 2019 22:09

CommanderABab wrote:
Thu Apr 18, 2019 14:28
Ķoalaguy
Stahp it.

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 1 guest