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

#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. :)

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

#71

Post by Rad »

Screenshot_2021-05-18-09-18-51.png
How do I fix a floating plugin?

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

#72

Post by CommanderABab »


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

#73

Post by Rad »

Okay,I think I figured it out a couple hours ago.
Rexs apartment.png
Rexs apartment.png (916 Bytes) Viewed 14808 times
And resubmitted :img :bf :bc
Attachments
Rexs apartment.png
Rexs apartment.png (916 Bytes) Viewed 14808 times

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

#74

Post by Rad »

...did it by lowering the image on the canvas.

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

#75

Post by CommanderABab »

Great!

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

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

#76

Post by Rad »

Yes!!Please?!!

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

#77

Post by Rad »

Okay here it is
Rexs apartment.png
Rexs apartment.png (1.06 KiB) Viewed 14289 times
is it ready for approval?
CommanderABab :img

User avatar
yusuf8a684
Reactions:

Re: How to write a plugin

#78

Post by yusuf8a684 »

no

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

#79

Post by CommanderABab »

Rad wrote:
19 May 2021, 02:06
Okay here it isRexs apartment.png is it ready for approval?
CommanderABab :img
someideas.png
someideas.png (1.19 KiB) Viewed 14284 times
I didn't fix the buildings themselves, but I fixed the placement and shadows.

The red and blue diagram shows how shadows should go. :)

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

#80

Post by Rad »

Thanks

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”