Advanced tags for building plugins

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Lobby
Developer
Reactions:
Posts: 3217
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Re: Advanced tags for building plugins

Post by Lobby » Wed Jun 27, 2018 18:14

Welcome to the world of plugins!

Types are listed in the first post of this thread under type. For influences see here.
...Have a nice stay

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 772
Joined: Sun May 28, 2017 0:07
Location: Retrophrenology
Plugins: Show
Version: Beta

Re: Advanced tags for building plugins

Post by FranchuFranchu » Thu Jun 28, 2018 0:25

use

Code: Select all

"ordinal":0,
Currently Conlanging

......Affirmative=Positive=True=Yeah=Yes=OK=K=Potassium=K=0°K=-237°C

User avatar
Baby Racoon
Settler
Reactions:
Posts: 1
Joined: Tue Apr 24, 2018 15:29
Plugins: Show
Phone model: Babyracoon

Re: Advanced tags for building plugins

Post by Baby Racoon » Sat Dec 29, 2018 16:04

I am Sorry But... I don't understand what does "h","w","x"or"y" mean.
I know it's Height,Width,etc
But it is needed to count pixels in width or height?
Example:
34 pixels in Height
And 30 pixels in width so the values are
"h":34,
"w":30
Is this right??
Please help me :)
Also in handle x and y
Give me some illustration.. Please for the sake of my Future:/
*I DO NOT FORCE YOU TO THIS*
Thanks!
Geometry Dash Player ;)
Plugin Maker
FILIPINO! B)

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

Re: Advanced tags for building plugins

Post by CommanderABab » Sat Dec 29, 2018 17:08

Baby Racoon wrote:
Sat Dec 29, 2018 16:04
I am Sorry But... I don't understand what does "h","w","x"or"y" mean.
I know it's Height,Width,etc
But it is needed to count pixels in width or height?
No

Example:
34 pixels in Height
And 30 pixels in width so the values are
"h":34,
"w":30
Is this right?? Yes, but the "w" should be a multiple of 32 for most simple frame statements.

Please help me :)
Also in handle x and y x tracks to w, y tracks to h.
Using 4, a positive handle y would move where the image is drawn down 4 pixels, positive x would move it right 4 pixels.


Give me some illustration.. Please for the sake of my Future:/
*I DO NOT FORCE YOU TO THIS*
Thanks!
587587Currently using beta 587. 587 What's new? :)
bus routes are supposed to be fixed!!
:cry:

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

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 772
Joined: Sun May 28, 2017 0:07
Location: Retrophrenology
Plugins: Show
Version: Beta

Re: Advanced tags for building plugins

Post by FranchuFranchu » Sun Dec 30, 2018 17:57

If you want to use the part of the image inside the black square:

Code: Select all

"bmp":"example.png",
"w":130,
"h":86,
"x":114,
"y":164
Attachments
example.png
example.png (1.55 KiB) Viewed 296 times
Currently Conlanging

......Affirmative=Positive=True=Yeah=Yes=OK=K=Potassium=K=0°K=-237°C

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

Re: Advanced tags for building plugins

Post by CommanderABab » Tue Jan 01, 2019 0:50

587587Currently using beta 587. 587 What's new? :)
bus routes are supposed to be fixed!!
:cry:

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

User avatar
Madbro
Villager
Reactions:
Posts: 11
Joined: Wed Jan 23, 2019 10:33
Plugins: Show

Re: Advanced tags for building plugins

Post by Madbro » Sun Jan 27, 2019 3:56

Hello! I want to ask about how to get “monthly income” and “unlock requirements” feature into the plugin.
Madbro the Madman B)

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 863
Joined: Wed Jun 07, 2017 20:28
Location: In da house
Plugins: Show
Version: Beta

Re: Advanced tags for building plugins

Post by Kulche » Sun Jan 27, 2019 8:51

Check "Privileged Plugins" section to get some info about monthly income.
I'm not lazy, I'm on battery saving mode!

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

Re: Advanced tags for building plugins

Post by CommanderABab » Sun Jan 27, 2019 13:46

Kulche wrote:
Sun Jan 27, 2019 8:51
Check "Privileged Plugins" section to get some info about monthly income.
Which is a forum not available to everybody... :/
587587Currently using beta 587. 587 What's new? :)
bus routes are supposed to be fixed!!
:cry:

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

User avatar
Kulche
Inhabitant of a Country
Reactions:
Posts: 863
Joined: Wed Jun 07, 2017 20:28
Location: In da house
Plugins: Show
Version: Beta

Re: Advanced tags for building plugins

Post by Kulche » Sun Jan 27, 2019 15:12

Really? :bb
I'm not lazy, I'm on battery saving mode!

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

Re: Advanced tags for building plugins

Post by sairam » Sun Jan 27, 2019 16:47

Yes!
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: 3217
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Re: Advanced tags for building plugins

Post by Lobby » Sun Jan 27, 2019 18:36

For income you can just use :json

Code: Select all

"monthly price":-1
Right now you can't produce more income than that to prevent cheating. You may ask for it after you have a plugin that could make use of it.

Please elaborate what you mean by "unlock requirements” feature.
...Have a nice stay

User avatar
Madbro
Villager
Reactions:
Posts: 11
Joined: Wed Jan 23, 2019 10:33
Plugins: Show

Re: Advanced tags for building plugins

Post by Madbro » Mon Jan 28, 2019 10:50

Lobby wrote:
Sun Jan 27, 2019 18:36
For income you can just use :json

Code: Select all

"monthly price":-1
Right now you can't produce more income than that to prevent cheating. You may ask for it after you have a plugin that could make use of it.

Please elaborate what you mean by "unlock requirements” feature.
There’s buildings that requires level, population or a specific building to unlock, here I want to ask how to do this in plugin :teach
Madbro the Madman B)

User avatar
Lobby
Developer
Reactions:
Posts: 3217
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

Re: Advanced tags for building plugins

Post by Lobby » Mon Jan 28, 2019 13:06

See here and here.

There's a simplified syntax that looks like:

Code: Select all

"requirements":[
  {
    "type":"RANK",                 // Requires a specific city rank
    "lvl":2
  },
  {
    "type":"BUILDING",             // Requires a specific building
    "id":"$theidofarequiredbuilding"
  },
  {
    "type":"HABITANT_COUNT",       // Requires a population of at least 1000
    "count":1000
  }
]
...Have a nice stay

User avatar
THEMAX
Inhabitant of a Supercluster
Reactions:
Posts: 3810
Joined: Thu Sep 14, 2017 17:30
Location: Astrellia, UHAE
Plugins: Show
Version: Beta

Re: Advanced tags for building plugins

Post by THEMAX » Tue Feb 05, 2019 1:22

How can I make a building need to be placed on both water and land as the small pump building ? It’s for my nuclear plugin package for the pump .
Emperor of Atlantean federated empire
Image
Founder state of Internationxal council
Leader of AEOY and steel pact

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

Re: Advanced tags for building plugins

Post by CommanderABab » Tue Feb 05, 2019 1:29

From the small pump code:

Code: Select all

...,
    "needs water":true,
    "needs land":true,
    ...
587587Currently using beta 587. 587 What's new? :)
bus routes are supposed to be fixed!!
:cry:

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

User avatar
THEMAX
Inhabitant of a Supercluster
Reactions:
Posts: 3810
Joined: Thu Sep 14, 2017 17:30
Location: Astrellia, UHAE
Plugins: Show
Version: Beta

Re: Advanced tags for building plugins

Post by THEMAX » Sun Feb 10, 2019 11:49

Can the random frame be used for a vehicle and if it can , how can I make it work ?
I would be interested for that so vehicles color variations spawn randomly .
Emperor of Atlantean federated empire
Image
Founder state of Internationxal council
Leader of AEOY and steel pact

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

Re: Advanced tags for building plugins

Post by JustAnyone » Sun Feb 10, 2019 11:53

You could try spawning random cars with lua.

User avatar
Brody Craft
Inhabitant of a Infinity
Reactions:
Posts: 7421
Joined: Tue Jan 24, 2017 11:15
Location: SE Asia
Plugins: Show
Version: Beta
Phone model: Samsung Galaxy Tab 3

Re: Advanced tags for building plugins

Post by Brody Craft » Sun Feb 10, 2019 12:30

TheoTown feels like coding on roblox now.
When you get to be called a Board Index because you are too good.>:3

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

Re: Advanced tags for building plugins

Post by Imran M » Sun Feb 10, 2019 14:22

Brody Craft wrote:
Sun Feb 10, 2019 12:30
TheoTown feels like coding on roblox now.
Yep, especially the lua. I dipped a toe into lua because of a cousin. We didn't even get past print since it took too long!
I HATE doing roofs, and I can't find any good window colours. :bb
I can also help, most of the time. As long as it's fun, or something easy, like making Json files.

My avatar is very original.

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

Re: Advanced tags for building plugins

Post by JustAnyone » Sun Feb 10, 2019 18:51

Lua is easy like 5th grade math.

User avatar
Brody Craft
Inhabitant of a Infinity
Reactions:
Posts: 7421
Joined: Tue Jan 24, 2017 11:15
Location: SE Asia
Plugins: Show
Version: Beta
Phone model: Samsung Galaxy Tab 3

Re: Advanced tags for building plugins

Post by Brody Craft » Mon Feb 11, 2019 0:32

JustAnyone wrote:
Sun Feb 10, 2019 18:51
Lua is easy like 5th grade math.
Well, you already mastered lua, sooo....
When you get to be called a Board Index because you are too good.>:3

User avatar
FranchuFranchu
Inhabitant of a Country
Reactions:
Posts: 772
Joined: Sun May 28, 2017 0:07
Location: Retrophrenology
Plugins: Show
Version: Beta

Re: Advanced tags for building plugins

Post by FranchuFranchu » Fri Feb 15, 2019 21:44

Lua is 5th grade math compared to C, Assembly and other low level languages
Currently Conlanging

......Affirmative=Positive=True=Yeah=Yes=OK=K=Potassium=K=0°K=-237°C

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

Re: Advanced tags for building plugins

Post by Imran M » Fri Feb 15, 2019 23:56

FranchuFranchu wrote:
Fri Feb 15, 2019 21:44
Lua is 5th grade math compared to C, Assembly and other low level languages
I think it's because I haven't had enough time to experiment with lua, since I was busy with school and term tests. I'd like to dedicate more time to lua over the holiday right now. BUT, Fortnite is giving season 8 battle pass as a reward to people who complete 13 challenges, and I really want to have a skin for once...

(That was a long post that has little relevance what so ever)
I HATE doing roofs, and I can't find any good window colours. :bb
I can also help, most of the time. As long as it's fun, or something easy, like making Json files.

My avatar is very original.

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 0 guests