How to write a plugin

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
たどころこうじ
Settler
Reactions:
Posts: 5
Joined: 25 Aug 2021, 17:22

Re: How to write a plugin

#81

Post by たどころこうじ »

The process went well until I got the JSON file, but I can't figure out how to copy it to the Theotown / plugins folder, so I can't build my own plugins in town at all... By the way, I have an iPhone and an Android.

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

#82

Post by TheFennekin »

Naufhal wrote:
21 Mar 2022, 11:45
Lobby. How to see the width and height in building while creating plugin?
Each tile is about 32px wide in a canvas. 1×1= 32, 2×2 = 64, 3×3 = 96, 4×4 = 128 etc...

User avatar
The26
Inhabitant of a Megacity
Reactions:
Posts: 181
Joined: 23 May 2018, 22:18
Location: Lithuania
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#83

Post by The26 »

Naufhal wrote:
21 Mar 2022, 11:45
Lobby. How to see the width and height in building while creating plugin?
Width and height are the templates you make your building on! If you choose a 2x2 template, the width and height will be equal to 2. 4x4 template - w and h are 4.

User avatar
The26
Inhabitant of a Megacity
Reactions:
Posts: 181
Joined: 23 May 2018, 22:18
Location: Lithuania
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#84

Post by The26 »

Naufhal wrote:
13 Apr 2022, 11:05
The26 wrote:
21 Mar 2022, 22:27
Naufhal wrote:
21 Mar 2022, 11:45
Lobby. How to see the width and height in building while creating plugin?
Width and height are the templates you make your building on! If you choose a 2x2 template, the width and height will be equal to 2. 4x4 template - w and h are 4.
No angry the26.
>:(

User avatar
SunAJ01
Settler
Reactions:
Posts: 2
Joined: 12 Jan 2022, 20:07

Plugin Creator

Platform

Re: How to write a plugin

#85

Post by SunAJ01 »

Hi, I just created my first plugin. Though, it looks nice and functions more like ordinary commercial building but I want it to function like banks to deposit money, take loans and make monthly gains as well but I can't figure it out.
Any help?
TheoTown-PluginFrames-AkwaSavings.png
TheoTown-PluginFrames-AkwaSavings.png (28.02 KiB) Viewed 12958 times
Tekiao_22-04-28_20.42.48.png
:android

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

#86

Post by TheFennekin »

1. You probably can using Lua
2. I suggest improving your building first. Wrong and missing shadows, add shading and textures etc.

User avatar
SunAJ01
Settler
Reactions:
Posts: 2
Joined: 12 Jan 2022, 20:07

Plugin Creator

Platform

Re: How to write a plugin

#87

Post by SunAJ01 »

TheFennekin wrote:
29 Apr 2022, 02:47
1. You probably can using Lua
2. I suggest improving your building first. Wrong and missing shadows, add shading and textures etc.
Thanks.
Any guide on how to add to missing shadows?

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

#88

Post by TheFennekin »


User avatar
DisconnectedSkin12
Settler
Reactions:
Posts: 2
Joined: 15 Jan 2022, 16:01

Re: How to write a plugin

#89

Post by DisconnectedSkin12 »

When I tried to download my first plugin from the plugin store on my phone, I got a loading error message saying:

java.lang.IllegalStateException: When loading "Small_Synagogue_DiSk12.h": No value for x

Does anyone know what this means and what I should do to resolve this?
Attachments
image.png

User avatar
Mako1137
Inhabitant of a Megacity
Reactions:
Posts: 164
Joined: 05 Dec 2021, 22:31
Location: Sacramento, CA
Plugins: Showcase Store
Contact:

Platform

Re: How to write a plugin

#90

Post by Mako1137 »

What does PPA/PPAPH on the debug mean?

User avatar
Mako1137
Inhabitant of a Megacity
Reactions:
Posts: 164
Joined: 05 Dec 2021, 22:31
Location: Sacramento, CA
Plugins: Showcase Store
Contact:

Platform

Re: How to write a plugin

#91

Post by Mako1137 »


User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

#92

Post by Kulche »

Please stop pinging the admins for unimportant reasons.

User avatar
JustAnyone
Developer
Reactions:
Posts: 3474
Joined: 23 Jul 2017, 12:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: How to write a plugin

#93

Post by JustAnyone »

Clearly, it means pen pineapple apple pen H

User avatar
JackIscool
Settler
Reactions:
Posts: 1
Joined: 30 Apr 2023, 11:33

Re: How to write a plugin

#94

Post by JackIscool »

Yeah I did it wooo

User avatar
Adiwira
Settler
Reactions:
Posts: 2
Joined: 14 Oct 2021, 16:36

Re: How to write a plugin

#95

Post by Adiwira »

I want to make a plugin, but it seems difficult

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: How to write a plugin

#96

Post by Bearbear76 »

Adiwira wrote:
16 Jun 2023, 05:30
I want to make a plugin, but it seems difficult
Making plugins is quite easy for simple buildings.
You can use websites like https://pca.theotown.com/ to write the code for you. All you have to do now is create
the texture which can be slightly tricky at first but also quite fun if I say so. :)

User avatar
Caistrophytum
Settler
Reactions:
Posts: 4
Joined: 23 Jul 2023, 08:13

Re: How to write a plugin

#97

Post by Caistrophytum »

What do I write when I want to put night animations / rotations of the building for day and night?

User avatar
Frodo01
Settler
Reactions:
Posts: 5
Joined: 13 Sep 2020, 21:25

Re: How to write a plugin

#98

Post by Frodo01 »

Hello everyone, I have been struggling with one problem for a long time, is there a way to remove road decorations if there is a certain car at its coordinates?

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

#99

Post by CommanderABab »

Frodo01 wrote:
28 Sep 2023, 11:38
Hello everyone, I have been struggling with one problem for a long time, is there a way to remove road decorations if there is a certain car at its coordinates?
#acertaincar

User avatar
Frodo01
Settler
Reactions:
Posts: 5
Joined: 13 Sep 2020, 21:25

Re: How to write a plugin

#100

Post by Frodo01 »

CommanderABab wrote:
28 Sep 2023, 18:04
Frodo01 wrote:
28 Sep 2023, 11:38
Hello everyone, I have been struggling with one problem for a long time, is there a way to remove road decorations if there is a certain car at its coordinates?
#acertaincar
Sorry, but I didn’t understand your answer, I clicked on the hashtag, but only one match appeared and is this your comment or do you mean something else?
Last edited by Frodo01 on 29 Sep 2023, 10:19, edited 1 time in total.

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”