Advanced tags for building plugins

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
JustAnyone
Rip-off engineer
Reactions:
Posts: 3142
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Platform

Re: Advanced tags for building plugins

#161

Post by JustAnyone »

I don't think so.

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

Platform

Plugin Creator

Re: Advanced tags for building plugins

#162

Post by CommanderABab »

Code: Select all

"type":"disaster"
:)??
...............:) .Image

User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 801
Joined: Wed Oct 24, 2018 13:41
Plugins: Show

Platform

Plugin Creator

Re: Advanced tags for building plugins

#163

Post by Imran M »

Hey... "building" is a type?
I just love the DOPE-amine you get after completing a plugin!

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

Platform

Plugin Creator

Re: Advanced tags for building plugins

#164

Post by CommanderABab »

No
...............:) .Image

User avatar
JustAnyone
Rip-off engineer
Reactions:
Posts: 3142
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

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: 103
Joined: Sat Apr 04, 2020 17:36
Location: Indonesien
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#166

Post by ian` »

building type is on the list :bt
:bc

User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 801
Joined: Wed Oct 24, 2018 13:41
Plugins: Show

Platform

Plugin Creator

Re: Advanced tags for building plugins

#167

Post by Imran M »

JustAnyone wrote:
Fri Jan 22, 2021 11: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
Rip-off engineer
Reactions:
Posts: 3142
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

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
Inhabitant of a Planet
Reactions:
Posts: 1361
Joined: Sun Dec 10, 2017 22:09
Location: Turkiye
Plugins: Show

Plugin Creator

Platform

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?
The Internet Addict

I can't define my self time to time... Just do not %100 trust me. Texting that honestly...

Know your friends well, enemies

User avatar
Lobby
Developer
Reactions:
Posts: 3648
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
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
Inhabitant of a Planet
Reactions:
Posts: 1361
Joined: Sun Dec 10, 2017 22:09
Location: Turkiye
Plugins: Show

Plugin Creator

Platform

Re: Advanced tags for building plugins

#171

Post by yusuf8a684 »

Lobby wrote:
Mon Mar 01, 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
The Internet Addict

I can't define my self time to time... Just do not %100 trust me. Texting that honestly...

Know your friends well, enemies

User avatar
Lobby
Developer
Reactions:
Posts: 3648
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
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
Inhabitant of a Planet
Reactions:
Posts: 1361
Joined: Sun Dec 10, 2017 22:09
Location: Turkiye
Plugins: Show

Plugin Creator

Platform

Re: Advanced tags for building plugins

#173

Post by yusuf8a684 »

thank you lobby.

Also how do I add performance indicator to plugin buildings?
The Internet Addict

I can't define my self time to time... Just do not %100 trust me. Texting that honestly...

Know your friends well, enemies

User avatar
Kulche
Pluche
Reactions:
Posts: 1089
Joined: Wed Jun 07, 2017 20:28
Plugins: Show
Version: Beta

Plugin Creator

Platform

Re: Advanced tags for building plugins

#174

Post by Kulche »

Pretty sure it's just "performance":bool.
I'm not lazy, I'm motivated to do nothing!
...blame lobby for that

User avatar
yusuf8a684
Inhabitant of a Planet
Reactions:
Posts: 1361
Joined: Sun Dec 10, 2017 22:09
Location: Turkiye
Plugins: Show

Plugin Creator

Platform

Re: Advanced tags for building plugins

#175

Post by yusuf8a684 »

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

Code: Select all    Reset

"performance": "bool"
JSON checker
Check
The Internet Addict

I can't define my self time to time... Just do not %100 trust me. Texting that honestly...

Know your friends well, enemies

User avatar
JustAnyone
Rip-off engineer
Reactions:
Posts: 3142
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Platform

Re: Advanced tags for building plugins

#176

Post by JustAnyone »

yusuf8a684 wrote:
Tue Mar 02, 2021 9:51
Pluc wrote:
Tue Mar 02, 2021 9: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

Jeremiah Stephens
Inhabitant of a Megacity
Reactions:
Posts: 186
Joined: Thu Jan 30, 2020 16:56
Plugins: Show

Platform

Plugin Creator

Re: Advanced tags for building plugins

#177

Post by Jeremiah Stephens »

Lobby wrote:
Thu Feb 23, 2017 0: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?
Check out my TheoTown YouTube videos: https://www.youtube.com/playlist?list=P ... wCvFdgyiTk

Code: Select all

c = 0
if TheoTown.addUndoButton != None:
     TheoTown.addUndoButton()
     c += 1
else:
     c -= 1
print(c)
http://discord.gg/hA5EVazhCC

Jeremiah Stephens
Inhabitant of a Megacity
Reactions:
Posts: 186
Joined: Thu Jan 30, 2020 16:56
Plugins: Show

Platform

Plugin Creator

Re: Advanced tags for building plugins

#178

Post by Jeremiah Stephens »

Jeremiah Stephens wrote:
Wed Mar 03, 2021 16:27
Lobby wrote:
Thu Feb 23, 2017 0: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
Check out my TheoTown YouTube videos: https://www.youtube.com/playlist?list=P ... wCvFdgyiTk

Code: Select all

c = 0
if TheoTown.addUndoButton != None:
     TheoTown.addUndoButton()
     c += 1
else:
     c -= 1
print(c)
http://discord.gg/hA5EVazhCC

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”