Advanced tags for building plugins

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by CommanderABab » 03 Apr 2020, 01:13

buildingB and upgradebuildingB would need to be in the same file.
buildingA could be in a separate file as long as it was loaded after buildingB
my avatar:
User avatar
Bevise
Inhabitant of a Conurbation
Reactions:
Posts: 495
Joined: 27 Feb 2020, 13:39
Location: Phu Quoc Island, Vietnam
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by Bevise » 03 Apr 2020, 01:43

CommanderABab wrote: 03 Apr 2020, 01:13 buildingB and upgradebuildingB would need to be in the same file.
buildingA could be in a separate file as long as it was loaded after buildingB
Why did my B building disappear after I upgrade it? Building A said that id was not found. Can you make an example file? I will download it and refer.
...OOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOOOOO OOOOOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOO

A_Vietnamese_plugin_creator
OOOOOOOOOOOOOOOOOOOOOOOOOOO
OOOOOOOOOO OOOOO OOOOOOOOOO
OOOOOOOOOOOOOOOOOOOOOOOOOOO
User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2208
Joined: 07 Jul 2016, 20:50
Location: 'Merica
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by KINGTUT10101 » 30 Dec 2020, 23:35

Are there any tags that remove this price indicator?
image.png
You do not have the required permissions to view the files attached to this post.
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

Post by JustAnyone » 30 Dec 2020, 23:35

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

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by CommanderABab » 31 Dec 2020, 08:22

Code: Select all

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

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by Imran M » 21 Jan 2021, 19:17

Hey... "building" is a type?
I just love the DOPE-amine you get after completing a plugin!
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by CommanderABab » 21 Jan 2021, 21:29

No
my avatar:
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

Post by JustAnyone » 22 Jan 2021, 09:39

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

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by ian` » 22 Jan 2021, 10:12

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

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by Imran M » 30 Jan 2021, 19:32

JustAnyone wrote: 22 Jan 2021, 09:39 Technically yes, practically, it isn't. Likely to break anything.
Well, it works for now...
I just love the DOPE-amine you get after completing a plugin!
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

Post by JustAnyone » 30 Jan 2021, 22:29

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.
yusuf8a684
Reactions:

Re: Advanced tags for building plugins

Post by yusuf8a684 » 27 Feb 2021, 18:06

I added winter frame to zone decorations but it didn't work. Is that what intended to be?
User avatar
Lobby
Inhabitant of a Supercluster
Reactions:
Posts: 3756
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Advanced tags for building plugins

Post by Lobby » 01 Mar 2021, 12:24

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

Re: Advanced tags for building plugins

Post by yusuf8a684 » 01 Mar 2021, 14:09

Lobby wrote: 01 Mar 2021, 12: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
Inhabitant of a Supercluster
Reactions:
Posts: 3756
Joined: 26 Oct 2008, 10:34
Plugins: Showcase Store

Re: Advanced tags for building plugins

Post by Lobby » 01 Mar 2021, 17:08

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

Re: Advanced tags for building plugins

Post by yusuf8a684 » 02 Mar 2021, 07:30

thank you lobby.

Also how do I add performance indicator to plugin buildings?
User avatar
Kulche
Inhabitant of a Continent
Reactions:
Posts: 1194
Joined: 07 Jun 2017, 18:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by Kulche » 02 Mar 2021, 07:43

Pretty sure it's just "performance":bool.
get yoked!!
yusuf8a684
Reactions:

Re: Advanced tags for building plugins

Post by yusuf8a684 » 02 Mar 2021, 07:51

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

Code: Select all    Reset

"performance": "bool"
JSON checker
Check
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3664
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: Advanced tags for building plugins

Post by JustAnyone » 02 Mar 2021, 08:07

yusuf8a684 wrote: 02 Mar 2021, 07:51
Pluc wrote: 02 Mar 2021, 07: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
1Code
Inhabitant of a Megacity
Reactions:
Posts: 283
Joined: 30 Jan 2020, 14:56
Location: https://bit.ly/3P5dhnT
Plugins: Showcase Store

Plugin Creator

Platform

Re: Advanced tags for building plugins

Post by 1Code » 03 Mar 2021, 14:27

Lobby wrote: 22 Feb 2017, 22: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?
Previous topicNext topic