How to write a plugin

Find tutorials, documentation, and resources for creating and using TheoTown plugins.
Previous topicNext topic
User avatar
Caliber
Metropolitan
Reactions:
Posts: 129
Joined: 24 Jan 2018, 01:48
Location: Somewhere in the Philippines
Plugins: Showcase Store
Version: Beta

Platform

Re: How to write a plugin

Post by Caliber »

How to save my Plugins to .plugin files?
Creator of the Aouie
Im Filipino
My First Plugin Boundary
My Second Plugin Decarbonator Tower
User avatar
CommanderABab
AB
Reactions:
Posts: 11270
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab »

In the console, type

Code: Select all

export:"directory name of plugin"
It will be placed in the Theotown folder.
 ! Message from: TheoTown
The presented way of packaging plugins is deprecated. We are using .ttplugin files now which can be generated here.
User avatar
Caliber
Metropolitan
Reactions:
Posts: 129
Joined: 24 Jan 2018, 01:48
Location: Somewhere in the Philippines
Plugins: Showcase Store
Version: Beta

Platform

Re: How to write a plugin

Post by Caliber »

I mean for making plugin must be .plugin not .json
Creator of the Aouie
Im Filipino
My First Plugin Boundary
My Second Plugin Decarbonator Tower
User avatar
Bearbear76
Inhabitant of a Multiverse
Reactions:
Posts: 5701
Joined: 10 Feb 2017, 12:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: How to write a plugin

Post by Bearbear76 »

Caliber wrote: 12 May 2018, 06:32 I mean for making plugin must be .plugin not .json
.plugin is an encrypted version of .zip
.json cannot be changed
Just my opinion
retired
User avatar
Caliber
Metropolitan
Reactions:
Posts: 129
Joined: 24 Jan 2018, 01:48
Location: Somewhere in the Philippines
Plugins: Showcase Store
Version: Beta

Platform

Re: How to write a plugin

Post by Caliber »

So how to make encrypted version of .zip a.k.a. .plugin?
Creator of the Aouie
Im Filipino
My First Plugin Boundary
My Second Plugin Decarbonator Tower
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: How to write a plugin

Post by JustAnyone »

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

Plugin Creator

Platform

Re: How to write a plugin

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?
Contacts:
Hidden Content
This board requires you to be registered and logged-in to view hidden content.
..."Fest Arena/Stadium downloadable on this Forum soon!"
Credit - Contents of this plugin may only be reused if you give credit to the author.
User avatar
JustAnyone
Honorary Contributor
Reactions:
Posts: 3666
Joined: 23 Jul 2017, 10:45
Location: Easter Island
Plugins: Showcase Store

Platform

Re: How to write a plugin

Post by JustAnyone »

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

Platform

Re: How to write a plugin

Post by Caliber »

JustAnyone wrote: 12 May 2018, 10:02Read above
Give me example of making .plugin files I don't get it😭
Creator of the Aouie
Im Filipino
My First Plugin Boundary
My Second Plugin Decarbonator Tower
User avatar
Caliber
Metropolitan
Reactions:
Posts: 129
Joined: 24 Jan 2018, 01:48
Location: Somewhere in the Philippines
Plugins: Showcase Store
Version: Beta

Platform

Re: How to write a plugin

Post by Caliber »

former member wrote: 14 Jun 2018, 08: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"
Creator of the Aouie
Im Filipino
My First Plugin Boundary
My Second Plugin Decarbonator Tower
User avatar
CommanderABab
AB
Reactions:
Posts: 11270
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab »

And you use the folder name, not the name of the json file.
my avatar:
User avatar
ChocolateGuerreiroBr
Villager
Reactions:
Posts: 22
Joined: 16 Jun 2018, 14:24
Location: Brasil
Plugins: Showcase Store
Version: Beta

Platform

Re: CommanderABab

Post by ChocolateGuerreiroBr »

How do I put 36x16 on Pixly?
Sou do Brasil (I'm from Brazil) :fire :space
Otaku :fire
...Interessado em linguagens de programação (Interested in programming languages)
...Estudante (I am a student)
User avatar
CommanderABab
AB
Reactions:
Posts: 11270
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab »

A 1x1 tile would be 32x16 pixels.
Screenshot_20180616-121759.jpg
Screenshot_20180616-121826.jpg
Screenshot_20180616-121930.jpg
Screenshot_20180616-122035.jpg
You do not have the required permissions to view the files attached to this post.
my avatar:
User avatar
ChocolateGuerreiroBr
Villager
Reactions:
Posts: 22
Joined: 16 Jun 2018, 14:24
Location: Brasil
Plugins: Showcase Store
Version: Beta

Platform

Re: How to write a plugin

Post by ChocolateGuerreiroBr »

Why?
You do not have the required permissions to view the files attached to this post.
Sou do Brasil (I'm from Brazil) :fire :space
Otaku :fire
...Interessado em linguagens de programação (Interested in programming languages)
...Estudante (I am a student)
User avatar
CommanderABab
AB
Reactions:
Posts: 11270
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

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. :)
You do not have the required permissions to view the files attached to this post.
my avatar:
Chinasapling
Townsman
Reactions:
Posts: 48
Joined: 11 Nov 2018, 03:33
Plugins: Showcase Store

Platform

Re: How to write a plugin

Post by Chinasapling »

How do I add naming to unnamed plug-ins?
User avatar
CommanderABab
AB
Reactions:
Posts: 11270
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab »

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

Code: Select all

"title":"name",
my avatar:
Chinasapling
Townsman
Reactions:
Posts: 48
Joined: 11 Nov 2018, 03:33
Plugins: Showcase Store

Platform

Re: How to write a plugin

Post by Chinasapling »

CommanderABab wrote: 16 Nov 2018, 17:30
Chinasapling wrote: 16 Nov 2018, 14: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?
You do not have the required permissions to view the files attached to this post.
Chinasapling
Townsman
Reactions:
Posts: 48
Joined: 11 Nov 2018, 03:33
Plugins: Showcase Store

Platform

Re: How to write a plugin

Post by Chinasapling »

CommanderABab wrote: 17 Nov 2018, 02:17
Chinasapling wrote: 17 Nov 2018, 01:54
CommanderABab wrote: 16 Nov 2018, 17: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: 11270
Joined: 07 Jun 2016, 19:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: How to write a plugin

Post by CommanderABab »

Show
show quotes
Chinasapling wrote: 17 Nov 2018, 11:04
CommanderABab wrote: 17 Nov 2018, 02:17
Chinasapling wrote: 17 Nov 2018, 01:54
why?
What's going on here?
Show
you do use a comma here :)
Image
Screenshot_20181117-063130.jpg
You do not have the required permissions to view the files attached to this post.
my avatar:
Previous topicNext topic