How to write a plugin

Learn here how to create and use plugins.

Moderator: Plugin Moderators

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

Platform

Plugin Creator

Re: How to write a plugin

#61

Post by CommanderABab »

Yes, what kind of moving object?
...............:) .Image

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2454
Joined: Thu Aug 24, 2017 11:17
Location: A coffin
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#62

Post by TheFennekin »

Animations do the trick
Sorry but I'm on a break :(

Inactive

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

Platform

Plugin Creator

Re: How to write a plugin

#63

Post by CommanderABab »

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

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2454
Joined: Thu Aug 24, 2017 11:17
Location: A coffin
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#64

Post by TheFennekin »

Wait how do I spawn pumpkins in the version 941? The other halloween stuff were removed I think...
Sorry but I'm on a break :(

Inactive

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

Platform

Plugin Creator

Re: How to write a plugin

#65

Post by CommanderABab »

I don't know. I never saw them in person.
...............:) .Image

User avatar
TheFennekin
Neighborhood fox
Reactions:
Posts: 2454
Joined: Thu Aug 24, 2017 11:17
Location: A coffin
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#66

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?
Sorry but I'm on a break :(

Inactive

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

Re: How to write a plugin

#67

Post by TENSAI »

Can I use Python to write a json file?

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

Platform

Plugin Creator

Re: How to write a plugin

#68

Post by CommanderABab »

No, json or json and lua.
...............:) .Image

User avatar
Rad
Villager
Reactions:
Posts: 14
Joined: Sat Dec 05, 2020 22:47

Plugin Creator

Platform

Re: How to write a plugin

#69

Post by Rad »

This was very helpful in learning how to code.
Plugins are awsome json is AWSOME,

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

Platform

Plugin Creator

Re: How to write a plugin

#70

Post by CommanderABab »

Rad wrote:
Fri May 14, 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
...............:) .Image

User avatar
Rad
Villager
Reactions:
Posts: 14
Joined: Sat Dec 05, 2020 22:47

Plugin Creator

Platform

Re: How to write a plugin

#71

Post by Rad »

Thanks been using pixly for drawings still haven't figured it out
Plugins are awsome json is AWSOME,

User avatar
Rad
Villager
Reactions:
Posts: 14
Joined: Sat Dec 05, 2020 22:47

Plugin Creator

Platform

Re: How to write a plugin

#72

Post by Rad »

What drawing app do you use?
Plugins are awsome json is AWSOME,

User avatar
Rad
Villager
Reactions:
Posts: 14
Joined: Sat Dec 05, 2020 22:47

Plugin Creator

Platform

Re: How to write a plugin

#73

Post by Rad »

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

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

Platform

Plugin Creator

Re: How to write a plugin

#74

Post by CommanderABab »

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

It's really simple and rarely updated. :)
...............:) .Image

User avatar
Rad
Villager
Reactions:
Posts: 14
Joined: Sat Dec 05, 2020 22:47

Plugin Creator

Platform

Re: How to write a plugin

#75

Post by Rad »

Screenshot_2021-05-18-09-18-51.png
How do I fix a floating plugin?
Plugins are awsome json is AWSOME,

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

Platform

Plugin Creator

Re: How to write a plugin

#76

Post by CommanderABab »

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

User avatar
Rad
Villager
Reactions:
Posts: 14
Joined: Sat Dec 05, 2020 22:47

Plugin Creator

Platform

Re: How to write a plugin

#77

Post by Rad »

Okay,I think I figured it out a couple hours ago.
Rexs apartment.png
Rexs apartment.png (916 Bytes) Viewed 347 times
And resubmitted :img :bf :bc
Attachments
Rexs apartment.png
Rexs apartment.png (916 Bytes) Viewed 347 times
Plugins are awsome json is AWSOME,

User avatar
Rad
Villager
Reactions:
Posts: 14
Joined: Sat Dec 05, 2020 22:47

Plugin Creator

Platform

Re: How to write a plugin

#78

Post by Rad »

...did it by lowering the image on the canvas.
Plugins are awsome json is AWSOME,

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

Platform

Plugin Creator

Re: How to write a plugin

#79

Post by CommanderABab »

Great!

Now, may I suggest less color saturation, a darker green for the grass, shading on the buildings, and shadows? :)
...............:) .Image

User avatar
Rad
Villager
Reactions:
Posts: 14
Joined: Sat Dec 05, 2020 22:47

Plugin Creator

Platform

Re: How to write a plugin

#80

Post by Rad »

Yes!!Please?!!
Plugins are awsome json is AWSOME,

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”