Advanced tags for building plugins

Learn here how to create and use plugins.

Moderator: Plugin Moderators

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

Platform

Re: Advanced tags for building plugins

#161

Post by JustAnyone »

I don't think so.
User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#162

Post by CommanderABab »

Code: Select all

"type":"disaster"
:)??
User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 844
Joined: 24 Oct 2018, 13:41
Plugins: Showcase Store

Plugin Creator

Platform

Re: Advanced tags for building plugins

#163

Post by Imran M »

Hey... "building" is a type?
User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#164

Post by CommanderABab »

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

Platform

Re: Advanced tags for building plugins

#165

Post by JustAnyone »

Technically yes, practically, it isn't. Likely to break anything.
User avatar
ian`
Supporter
Reactions:
Posts: 117
Joined: 04 Apr 2020, 17:36
Location: Indonesien
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#166

Post by ian` »

building type is on the list :bt
User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 844
Joined: 24 Oct 2018, 13:41
Plugins: Showcase Store

Plugin Creator

Platform

Re: Advanced tags for building plugins

#167

Post by Imran M »

JustAnyone wrote: 22 Jan 2021, 11:39 Technically yes, practically, it isn't. Likely to break anything.
Well, it works for now...
User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

#168

Post by JustAnyone »

The last thing you'd want to do is use an experimental feature in a plugin which may not be editable by others to fix potential bugs in the future.
User avatar
yusuf8a684
Reactions:

Re: Advanced tags for building plugins

#169

Post by yusuf8a684 »

I added winter frame to zone decorations but it didn't work. Is that what intended to be?
User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#170

Post by Lobby »

It should work since they are basically just buildings. Please share your code so we can check it :)
User avatar
yusuf8a684
Reactions:

Re: Advanced tags for building plugins

#171

Post by yusuf8a684 »

Lobby wrote: 01 Mar 2021, 14:24 It should work since they are basically just buildings. Please share your code so we can check it :)
here it is

Code: Select all    Reset

[{ "id": "$decousaurban", "type": "decoration", "frames": [ { "count": 10, "bmp": "urbanresdeco.png", "h": 60, "w": 32 } ], "width": 1, "height": 1, "hidden": true, "build time": 0, "title": "USA Urban Zone credits:mdk_813", "text": ".", "meta": { "tags": { "decorator": { "zones": [ "$usa_urban_zone" ] } } }, "winter frames": [ { "count": 10, "bmp": "urbanresdeco_winter.png", "h": 53, "w": 32 } ] } ]
JSON checker
Check
User avatar
Lobby
Developer
Reactions:
Posts: 3705
Joined: 26 Oct 2008, 12:34
Plugins: Showcase Store
Version: Beta

Platform

Re: Advanced tags for building plugins

#172

Post by Lobby »

Try it with "frames winter" instead of "winter frames" :jb:
User avatar
yusuf8a684
Reactions:

Re: Advanced tags for building plugins

#173

Post by yusuf8a684 »

thank you lobby.

Also how do I add performance indicator to plugin buildings?
User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#174

Post by Kulche »

Pretty sure it's just "performance":bool.
User avatar
yusuf8a684
Reactions:

Re: Advanced tags for building plugins

#175

Post by yusuf8a684 »

Kulche wrote: 02 Mar 2021, 09:43 Pretty sure it's just "performance":bool.
like that?

Code: Select all    Reset

"performance": "bool"
JSON checker
Check
User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

#176

Post by JustAnyone »

yusuf8a684 wrote: 02 Mar 2021, 09:51
Pluc wrote: 02 Mar 2021, 09:43 Pretty sure it's just "performance":bool.
like that?

Code: Select all    Reset

"performance": "bool"
JSON checker
Check
He was referring to the type of parameter (bool in this point means boolean which is true/false) so you'd set it like

Code: Select all    Reset

"performance": true
JSON checker
Check
User avatar
1Code
Inhabitant of a Megacity
Reactions:
Posts: 302
Joined: 30 Jan 2020, 16:56
Location: https://bit.ly/3P5dhnT
Plugins: Showcase Store

Plugin Creator

Platform

Re: Advanced tags for building plugins

#177

Post by 1Code »

Lobby wrote: 23 Feb 2017, 00:20 ...
Show
influence *
Sets the influence of the building
Possible keys are:
Show
"influence pollution"
"influence noise"
"influence health"
"influence police"
"influence fire department"
"influence park"
"influence sport"
"influence education low"
"influence education high"
"influence culture"
"influence management"
"influence religion"
"influence passenger bus"
"influence passenger train"
"influence residential"
"influence commercial"
"influence industrial"
"influence level0"
"influence level1"
"influence level2"
"influence radioactive"
"influence nature"
"influence waste disposal"
"influence body disposal"
"influence pollution"
"influence noise"
"influence health"
"influence police"
"influence fire department"
"influence park"
"influence sport"
"influence education low"
"influence education high"
"influence culture"
"influence management"
"influence religion"
"influence passenger bus"
"influence passenger train"
"influence residential"
"influence commercial"
"influence industrial"
"influence level0"
"influence level1"
"influence level2"
"influence radioactive"
"influence nature"
"influence waste disposal"
"influence body disposal"
Example

Code: Select all

"influence noise":82,
...
Why are they duplicate?
User avatar
1Code
Inhabitant of a Megacity
Reactions:
Posts: 302
Joined: 30 Jan 2020, 16:56
Location: https://bit.ly/3P5dhnT
Plugins: Showcase Store

Plugin Creator

Platform

Re: Advanced tags for building plugins

#178

Post by 1Code »

Jeremiah Stephens wrote: 03 Mar 2021, 16:27
Lobby wrote: 23 Feb 2017, 00:20 ...
Show
influence *
Sets the influence of the building
Possible keys are:
Show
"influence pollution"
"influence noise"
"influence health"
"influence police"
"influence fire department"
"influence park"
"influence sport"
"influence education low"
"influence education high"
"influence culture"
"influence management"
"influence religion"
"influence passenger bus"
"influence passenger train"
"influence residential"
"influence commercial"
"influence industrial"
"influence level0"
"influence level1"
"influence level2"
"influence radioactive"
"influence nature"
"influence waste disposal"
"influence body disposal"
"influence pollution"
"influence noise"
"influence health"
"influence police"
"influence fire department"
"influence park"
"influence sport"
"influence education low"
"influence education high"
"influence culture"
"influence management"
"influence religion"
"influence passenger bus"
"influence passenger train"
"influence residential"
"influence commercial"
"influence industrial"
"influence level0"
"influence level1"
"influence level2"
"influence radioactive"
"influence nature"
"influence waste disposal"
"influence body disposal"
Example

Code: Select all

"influence noise":82,
...
Why are they duplicate?
Proof
Proof
User avatar
Lalulali
Settler
Reactions:
Posts: 5
Joined: 28 Dec 2020, 09:07

Platform

Re: Advanced tags for building plugins

#179

Post by Lalulali »

so i try to make my plugin doesnt need road to be build but rather than build automatically, it always stay as a zone.
yes my building doesnt show road requirement pop up but still they don build until i build road near it. anyone of you guys could help me ?

this is how i define my json

Code: Select all    Reset

{ "id": "$HumanComZone", "title":"Human Commercial", "text":"Human Zone For Commercial Building", "type": "zone", "rci":true, "base":"$zonecommercial", "frames":[{"bmp": "Commercial.png"}], "preview frames":[{"bmp": "Preview Commercial.png"}], "price":150, "placeable":true }, { "id": "$ComLow1", "type": "commercial", "author": "lalulali", "width": 1, "height": 1, "zone": "$HumanComZone", "frames": [{"bmp": "Stall 1.png"}], "level": 1, "people": 4, "title": "Human Market Stall", "text": "Human Market Stall Type 1 For Poor People", "needs road":false, "price": 7, "bulldoze price": 10, "build time": 2 }
JSON checker
Check
since i put it into zone so i include zone definition
User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Advanced tags for building plugins

#180

Post by Bearbear76 »

Just a guess. Add this to the zone json.

Code: Select all

"needs road":false
Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”