How to write a plugin

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#51

Post by CommanderABab »

That should work.
It might be that the images are the same or similar, so you don't notice the second one.

User avatar
JohnSallow
Townsman
Reactions:
Posts: 64
Joined: 29 Jan 2020, 18:45
Location: Buenos Aires, Argentina
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#52

Post by JohnSallow »

CommanderABab wrote:
06 Feb 2020, 22:42
That should work.
It might be that the images are the same or similar, so you don't notice the second one.
Ok, I'll verify that. Thanks

User avatar
Triceymicy
Settler
Reactions:
Posts: 1
Joined: 29 Apr 2020, 17:41
Plugins: Showcase Store

Re: How to write a plugin

#53

Post by Triceymicy »

Explain How To Start, Like A Button.

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#54

Post by TheFennekin »

Triceymicy wrote:
25 Jun 2020, 20:20
Explain How To Start, Like A Button.
What "like a button" do you mean? You can see different topics about how to make different kind of plugins.

User avatar
Lorange7.
Settler
Reactions:
Posts: 2
Joined: 06 Nov 2020, 08:55

Re: How to write a plugin

#55

Post by Lorange7. »

is it possible to create a moving object?
if it is how can you do it?

User avatar
Lorange7.
Settler
Reactions:
Posts: 2
Joined: 06 Nov 2020, 08:55

Re: How to write a plugin

#56

Post by Lorange7. »

is it possible to create a moving object?
if it is how can you do it?

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#57

Post by CommanderABab »

Yes, what kind of moving object?

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#58

Post by TheFennekin »

Animations do the trick

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#59

Post by CommanderABab »

Yes, but there can also be helicopters, planes, vehicles, (pedestrians), and somehow pumpkins. :)

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#60

Post by TheFennekin »

Wait how do I spawn pumpkins in the version 941? The other halloween stuff were removed I think...

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#61

Post by CommanderABab »

I don't know. I never saw them in person.

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2728
Joined: 24 Aug 2017, 11:17
Location: Wandering around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#62

Post by TheFennekin »

They were added back in 2019 or 2018 I think for the halloween feature...

Also a question, is it possible to do a custom influence via json?

User avatar
TENSAI
Settler
Reactions:
Posts: 2
Joined: 12 Nov 2020, 17:00

Re: How to write a plugin

#63

Post by TENSAI »

Can I use Python to write a json file?

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#64

Post by CommanderABab »

No, json or json and lua.

User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 188
Joined: 05 Dec 2020, 22:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#65

Post by Rad »

This was very helpful in learning how to code.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#66

Post by CommanderABab »

Rad wrote:
14 May 2021, 17:30
This was very helpful in learning how to code.
I'm glad you are learning how to make plugins. :)

In your submitted plugin-store plugin;

These lines should be removed from the code:

Code: Select all

[
    "category": "false",
        "zone": "false",
]
They are not used in that way.

As for the image;
Should have transparent background, not white.
Should have transparent background, not white.
Image should be 64 pixels wide for a 2x2 building.
Image should be 64 pixels wide for a 2x2 building.
So, the base should be of this shape for a 2x2 plugin.

Image

User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 188
Joined: 05 Dec 2020, 22:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#67

Post by Rad »

Thanks been using pixly for drawings still haven't figured it out

User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 188
Joined: 05 Dec 2020, 22:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#68

Post by Rad »

What drawing app do you use?

User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 188
Joined: 05 Dec 2020, 22:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#69

Post by Rad »

I have made a new plug-in and submitted using the requirements you said CommanderABab.
Last edited by Rad on 18 May 2021, 18:08, edited 1 time in total.

User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#70

Post by CommanderABab »

Rad wrote:
15 May 2021, 22:54
What drawing app do you use?
I usually use Novix.

It's really simple and rarely updated. :)

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”