How to write a plugin

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab » 10 Nov 2020, 02:47

I don't know. I never saw them in person.
my avatar:
User avatar
TheFennekin
Inhabitant of a Galaxy Cluster
Reactions:
Posts: 2714
Joined: 24 Aug 2017, 09:17
Location: honsing around
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by TheFennekin » 10 Nov 2020, 02:57

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?
Image
TENSAI
Settler
Reactions:
Posts: 2
Joined: 12 Nov 2020, 15:00

Re: How to write a plugin

Post by TENSAI » 11 Apr 2021, 09:44

Can I use Python to write a json file?
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab » 11 Apr 2021, 19:19

No, json or json and lua.
my avatar:
User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 184
Joined: 05 Dec 2020, 20:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by Rad » 14 May 2021, 15:30

This was very helpful in learning how to code.
Ubba Java
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab » 14 May 2021, 16:50

Rad wrote: 14 May 2021, 15: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;
Screenshot_20210514-110537_Novix.jpg
Screenshot_20210514-110526_Novix.jpg
So, the base should be of this shape for a 2x2 plugin.

Image
You do not have the required permissions to view the files attached to this post.
my avatar:
User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 184
Joined: 05 Dec 2020, 20:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by Rad » 14 May 2021, 17:25

Thanks been using pixly for drawings still haven't figured it out
Ubba Java
User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 184
Joined: 05 Dec 2020, 20:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by Rad » 15 May 2021, 20:54

What drawing app do you use?
Ubba Java
User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 184
Joined: 05 Dec 2020, 20:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by Rad » 15 May 2021, 23:41

I have made a new plug-in and submitted using the requirements you said CommanderABab.
Last edited by Rad on 18 May 2021, 16:08, edited 1 time in total.
Ubba Java
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab » 16 May 2021, 01:00

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

It's really simple and rarely updated. :)
my avatar:
User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 184
Joined: 05 Dec 2020, 20:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by Rad » 18 May 2021, 14:20

Screenshot_2021-05-18-09-18-51.png
How do I fix a floating plugin?
You do not have the required permissions to view the files attached to this post.
Ubba Java
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab » 18 May 2021, 16:18

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

Plugin Creator

Platform

Re: How to write a plugin

Post by Rad » 18 May 2021, 19:35

Okay,I think I figured it out a couple hours ago.
Rexs apartment.png
And resubmitted :img :bf :bc
You do not have the required permissions to view the files attached to this post.
Ubba Java
User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 184
Joined: 05 Dec 2020, 20:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by Rad » 18 May 2021, 19:37

...did it by lowering the image on the canvas.
Ubba Java
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab » 18 May 2021, 20:35

Great!

Now, may I suggest less color saturation, a darker green for the grass, shading on the buildings, and shadows? :)
my avatar:
User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 184
Joined: 05 Dec 2020, 20:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by Rad » 18 May 2021, 22:33

Yes!!Please?!!
Ubba Java
User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 184
Joined: 05 Dec 2020, 20:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by Rad » 19 May 2021, 00:06

Okay here it is
Rexs apartment.png
is it ready for approval?
CommanderABab :img
You do not have the required permissions to view the files attached to this post.
Ubba Java
yusuf8a684
Reactions:

Re: How to write a plugin

Post by yusuf8a684 » 19 May 2021, 01:04

no
User avatar
CommanderABab
AB
Reactions:
Posts: 11263
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab » 19 May 2021, 03:03

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

The red and blue diagram shows how shadows should go. :)
You do not have the required permissions to view the files attached to this post.
my avatar:
User avatar
Rad
Inhabitant of a Megacity
Reactions:
Posts: 184
Joined: 05 Dec 2020, 20:47
Location: A Galaxy far far away
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by Rad » 19 May 2021, 03:20

Thanks
Ubba Java
Previous topicNext topic