How to write a plugin

Learn here how to create and use plugins.

Moderator: Plugin Moderators

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

#26

Post by JustAnyone »

Read above

User avatar
KentuckyFriedChicken
Townsman
Reactions:
Posts: 99
Joined: 31 Jan 2018, 17:55
Location: Austria, Vienna
Plugins: Showcase Store

Plugin Creator

Platform

Re: How to write a plugin

#27

Post by KentuckyFriedChicken »

Hi Lobby!
I think there are alot more Json codes.
like sounds when click or sounds.
May you post that in the forums or PM?

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

#28

Post by JustAnyone »


User avatar
Caliber
Metropolitan
Reactions:
Posts: 128
Joined: 24 Jan 2018, 03:48
Location: Somewhere in the Philippines
Plugins: Showcase Store
Version: Beta

Platform

Re: How to write a plugin

#29

Post by Caliber »

JustAnyone wrote:
12 May 2018, 12:02
Read above
Give me example of making .plugin files I don't get it😭

User avatar
Caliber
Metropolitan
Reactions:
Posts: 128
Joined: 24 Jan 2018, 03:48
Location: Somewhere in the Philippines
Plugins: Showcase Store
Version: Beta

Platform

Re: How to write a plugin

#30

Post by Caliber »

former member wrote:
14 Jun 2018, 10:18
Open experimental features using settings.
Then in the menu a new console option will appear.
Write to the console

Code: Select all

export:"x"
replacing x with the directory of the plugin you want to encrypt to plugin file. Then confirm the command and the plugin file will appear in the main TheoTown directory. I hope I helped
its not work, the directory is on my Phone Storage
Whats wrong in this code
maybe you can share your exact example. :cry:

Code: Select all

export:"storage/emulated/0/Boundary by Caliber v1.2.zip"

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

#31

Post by CommanderABab »

And you use the folder name, not the name of the json file.

User avatar
ChocolateGuerreiroBr
Villager
Reactions:
Posts: 22
Joined: 16 Jun 2018, 16:24
Location: Brasil
Plugins: Showcase Store
Version: Beta

Platform

Re: CommanderABab

#32

Post by ChocolateGuerreiroBr »

How do I put 36x16 on Pixly?

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

#33

Post by CommanderABab »

A 1x1 tile would be 32x16 pixels.
Screenshot_20180616-121759.jpg
Screenshot_20180616-121759.jpg (5.41 KiB) Viewed 29550 times
Screenshot_20180616-121826.jpg
Screenshot_20180616-121930.jpg
Screenshot_20180616-122035.jpg

User avatar
ChocolateGuerreiroBr
Villager
Reactions:
Posts: 22
Joined: 16 Jun 2018, 16:24
Location: Brasil
Plugins: Showcase Store
Version: Beta

Platform

Re: How to write a plugin

#34

Post by ChocolateGuerreiroBr »

Why?
Attachments
a rectangle
a rectangle
different from this format, why?
different from this format, why?

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

#35

Post by CommanderABab »

Screenshot_20180616-204504.jpg
The colored pixels of this road texture section are the normal base of a 1x1 tile, 32 pixel wide x 16 pixel high. Only 15 pixels of the height should be used as the base, because the center of the height is only one pixel high. The center of the width is 4 pixels, two pixels each side of the center line.

Why should the texture be 32x16 when only 32x15 are used? Because, 15 as an odd number doesn't scale up well. :)

User avatar
Chinasapling
Townsman
Reactions:
Posts: 48
Joined: 11 Nov 2018, 05:33
Plugins: Showcase Store

Platform

Re: How to write a plugin

#36

Post by Chinasapling »

How do I add naming to unnamed plug-ins?

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

#37

Post by CommanderABab »

Chinasapling wrote:
16 Nov 2018, 16:06
How do I add naming to unnamed plug-ins?

Code: Select all

"title":"name",

User avatar
Chinasapling
Townsman
Reactions:
Posts: 48
Joined: 11 Nov 2018, 05:33
Plugins: Showcase Store

Platform

Re: How to write a plugin

#38

Post by Chinasapling »

CommanderABab wrote:
16 Nov 2018, 19:30
Chinasapling wrote:
16 Nov 2018, 16:06
How do I add naming to unnamed plug-ins?

Code: Select all

"title":"name",
Don't use the comma , if adding as the last line.
why?
Attachments
Screenshot_2018-11-17-09-53-54-826_info.flowersoft.theotown.theotown.png

User avatar
Chinasapling
Townsman
Reactions:
Posts: 48
Joined: 11 Nov 2018, 05:33
Plugins: Showcase Store

Platform

Re: How to write a plugin

#39

Post by Chinasapling »

CommanderABab wrote:
17 Nov 2018, 04:17
Chinasapling wrote:
17 Nov 2018, 03:54
CommanderABab wrote:
16 Nov 2018, 19:30

Code: Select all

"title":"name",
Don't use the comma afterward , if adding as the last line.
why?
What's going on here?

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

#40

Post by CommanderABab »

Show
show quotes
Chinasapling wrote:
17 Nov 2018, 13:04
CommanderABab wrote:
17 Nov 2018, 04:17
Chinasapling wrote:
17 Nov 2018, 03:54

why?
What's going on here?
Show
you do use a comma here :)
Image
Screenshot_20181117-063130.jpg

User avatar
Chinasapling
Townsman
Reactions:
Posts: 48
Joined: 11 Nov 2018, 05:33
Plugins: Showcase Store

Platform

Re: How to write a plugin

#41

Post by Chinasapling »

CommanderABab wrote:
17 Nov 2018, 14:01
Show
show quotes
Chinasapling wrote:
17 Nov 2018, 13:04
CommanderABab wrote:
17 Nov 2018, 04:17
What's going on here?
Show
you do use a comma here :)
Image
Screenshot_20181117-063130.jpg
thankyou thankyou thankyou

User avatar
Chinasapling
Townsman
Reactions:
Posts: 48
Joined: 11 Nov 2018, 05:33
Plugins: Showcase Store

Platform

Re: How to write a plugin

#42

Post by Chinasapling »

I don't know why the Chinese entering game in JSON will show the question mark.

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

#43

Post by JustAnyone »

That's due to encoding.

User avatar
Chinasapling
Townsman
Reactions:
Posts: 48
Joined: 11 Nov 2018, 05:33
Plugins: Showcase Store

Platform

Re: How to write a plugin

#44

Post by Chinasapling »

JustAnyone wrote:
21 Nov 2018, 15:49
That's due to encoding.
Then what should I do?

User avatar
Chinasapling
Townsman
Reactions:
Posts: 48
Joined: 11 Nov 2018, 05:33
Plugins: Showcase Store

Platform

Re: How to write a plugin

#45

Post by Chinasapling »

CommanderABab wrote:
16 Jun 2018, 18:49
A 1x1 tile would be 32x16 pixels.

Screenshot_20180616-121759.jpg
Screenshot_20180616-121826.jpg
Screenshot_20180616-121930.jpg
Screenshot_20180616-122035.jpg
Can you send me the software for drawing pixel images on your mobile phone?very thankyou

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”