Advanced tags for building plugins

Learn here how to create and use plugins.

Moderator: Plugin Moderators

cesareborgia94
Inhabitant of a Planet
Reactions:
Posts: 1307
Joined: Sun Nov 12, 2017 9:23
Location: The Kingdom of Babilandia
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#81

Post by cesareborgia94 »

@Lobby, sorry for bothering you, but can you explain more on recent plugin tags such as "rebuild" and "icon frames" attribute introduced recently? Just needed explainations on how to use them...
I rarely make plugins now, but I still make them in spare time.
Disclaimer Please no request, I'm busy with real life stuff, I hope you understand ;)
You can find me here only. Discord is sh**, sorry JA :(

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

Platform

Plugin Creator

Re: Advanced tags for building plugins

#82

Post by CommanderABab »

Code: Select all

"rebuild":true,
means the RCI building will rebuild instead of being replaced by another. Useful if your population drops suddenly, but you want the city to remain looking the same.

Code: Select all

"icon frames":[{"bmp":"file.png"}],
is probably 26x26 pixel icon to be used in the display box.
Image

User avatar
BetterBear
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2896
Joined: Tue Apr 18, 2017 9:03
Location: In a place you don't expect.
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

#83

Post by BetterBear »

CommanderABab wrote:
Mon Apr 09, 2018 20:31

Code: Select all

"rebuild":true,
means the RCI building will rebuild instead of being replaced by another. Useful if your population drops suddenly, but you want the city to remain looking the same.

Code: Select all

"icon frames":[{"bmp":"file.png"}],
is probably 26x26 pixel icon to be used in the display box.
Is there an option to set a building in rebuild mode in the game?
BEaRz ArE AmAZiNG. I Am FeElIng SlEepY..

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

Platform

Plugin Creator

Re: Advanced tags for building plugins

#84

Post by CommanderABab »

No, ...
Image

User avatar
Lobby
Developer
Reactions:
Posts: 3593
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

#85

Post by Lobby »

Exactly @CommanderABab :bc

Rebuild mode is on my default for all buildings. To prevent rebuilding manually you can make them untouchable.
=^._.^= ∫

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 2056
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Contact:

Platform

Plugin Creator

Re: Advanced tags for building plugins

#86

Post by KINGTUT10101 »

Would it be possible for me to make a road that can only be placed in water @Lobby ?

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

Platform

Plugin Creator

Re: Advanced tags for building plugins

#87

Post by CommanderABab »

Roads can't be placed on water only bridges.
Image

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 798
Joined: Sun May 28, 2017 0:07
Location: Freezing in Argentina
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#88

Post by FranchuFranchu »

You should update the first post to make it a list of all tags
@Lobby
Did you know you can't blink while smiling :) ?

User avatar
Lobby
Developer
Reactions:
Posts: 3593
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

#89

Post by Lobby »

It is a list :bq
=^._.^= ∫

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 798
Joined: Sun May 28, 2017 0:07
Location: Freezing in Argentina
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#90

Post by FranchuFranchu »

I mean, to add the new tags like "population", "droppable" and others.
Did you know you can't blink while smiling :) ?

PrathamK
Settler
Reactions:
Posts: 6
Joined: Tue Mar 06, 2018 14:29
Plugins: Show

Re: Advanced tags for building plugins

#91

Post by PrathamK »

The Influence key words List is Whole repeated from "influence pollution".

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 798
Joined: Sun May 28, 2017 0:07
Location: Freezing in Argentina
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#92

Post by FranchuFranchu »

Fixed :bc
Did you know you can't blink while smiling :) ?

PrathamK
Settler
Reactions:
Posts: 6
Joined: Tue Mar 06, 2018 14:29
Plugins: Show

Re: Advanced tags for building plugins

#93

Post by PrathamK »

:json How to add Monthly Income?
:bd Diamonds as price instead of Theos?
:bb Negative Values of monthly Price don't work.

User avatar
JustAnyone
enjenir
Reactions:
Posts: 2961
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Re: Advanced tags for building plugins

#94

Post by JustAnyone »

You cant add income because it could be used as a way to cheat.
Perfect way to comment stuff out :)
🦀Now available as administrator🦀
Image

:pickle:

cesareborgia94
Inhabitant of a Planet
Reactions:
Posts: 1307
Joined: Sun Nov 12, 2017 9:23
Location: The Kingdom of Babilandia
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: Advanced tags for building plugins

#95

Post by cesareborgia94 »

Then what if you want to add income to a building for instance? Maybe set game mechanics to only recognize plugins with monthly income to less than 100TT so that people would not cheat.
I rarely make plugins now, but I still make them in spare time.
Disclaimer Please no request, I'm busy with real life stuff, I hope you understand ;)
You can find me here only. Discord is sh**, sorry JA :(

User avatar
JustAnyone
enjenir
Reactions:
Posts: 2961
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Re: Advanced tags for building plugins

#96

Post by JustAnyone »

If you would want to have monthly income, you should contact Lobby.

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

#97

Post by sairam »

Please make a list of categories in theotown
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)

User avatar
Lobby
Developer
Reactions:
Posts: 3593
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

#98

Post by Lobby »

Here you go:

Code: Select all

$cat_terrain00
  $cat_asphalt00

$cat_transport00
  $cat_road00
  $cat_roaddeco00
  $cat_bus00
  $cat_train00
  $cat_airport00
    
$cat_zone00
  $cat_residential00
  $cat_commercial00
  $cat_industrial00
    
$cat_supply00
  $cat_energy00
  $cat_water00
  $cat_wastedisposal00

$cat_public00
  $cat_park00
  $cat_sport00
  $cat_public00
  $cat_management00
  $cat_award00
  $cat_religion00
  $cat_decoration00
  $category_christmas00
  $category_firework00

$cat_service00
  $cat_firebrigade00
  $cat_education00
  $cat_medic00
  $cat_police00
  $cat_military00

$cat_landmark00

$cat_disaster00
=^._.^= ∫

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

#99

Post by sairam »

How can i use

Code: Select all

"ordinal":
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)

User avatar
sairam
Inhabitant of a Conurbation
Reactions:
Posts: 537
Joined: Sun Dec 31, 2017 13:35
Location: India Pudukkottai
Plugins: Show
Version: Beta

Platform

Re: Advanced tags for building plugins

#100

Post by sairam »

Can i get the list of types of buildings and influence ? Because i'm new to the world of plugins.
Proud to be the player of theotown since 1.0.45 alpha.
Proud to be the first Tamil theotowner. Done 2 plugins.
:D ( ͡° ͜ʖ ͡°)

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”