How to write a plugin

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
CommanderABab
AB
Reactions:
Posts: 8236
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#21

Post by CommanderABab » Thu Nov 30, 2017 9:05

A 1x1 plugin is 32 pixels wide. Anything that has height > factor × width is probably dense where factor 2 or greater.
826!826Currently using beta 826. 826 What's new? :)
diagonal road tool!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Kylie Schreave
Plugin Helper
Reactions:
Posts: 842
Joined: Wed Nov 15, 2017 7:06
Location: Tottoro, Surea and Seravee
Plugins: Show
Version: Beta

Platform

Re: How to write a plugin

#22

Post by Kylie Schreave » Tue Dec 12, 2017 10:11

We can write anything on ID ? Like, for exemple, ID : 12345678 ?
" On m'a dit un jour de ne pas jouer avec le Feu car je pourrait me brûler.
Depuis, je joue avec les étoiles pour briller "

☆~ " Mieux vaut être seul que mal accompagné " ~☆

User avatar
Blyat009
Villager
Reactions:
Posts: 22
Joined: Tue Apr 03, 2018 2:29
Location: Great Nippon Empire
Plugins: Show
Phone model: ASH-077
Contact:

Platform

Re: How to write a plugin

#23

Post by Blyat009 » Tue Apr 10, 2018 8:40

In /storage/emulated 0/TheoTown/plugins/hentaikusodokata/hentaikusodokata json: org json. JSONException: Unterminated object at character 130 of "id" shittypervertworker, type park, "author" Blyat009, "width" 100, "height" 100, frames" bmp hentaikusodokata.png,

Why was this error caused? :calc
My name is "Yoshikawa Yukihide" ........ Estimated age is……
19 years old..Occupation is a soldier, class is "seaman 2nd class"..……….The workforce is the destroyer of the FederalRepublic of Titania "Chernoburg"...

User avatar
CommanderABab
AB
Reactions:
Posts: 8236
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#24

Post by CommanderABab » Tue Apr 10, 2018 10:40

Blyat009 wrote:
Tue Apr 10, 2018 8:40
In /storage/emulated 0/TheoTown/plugins/hentaikusodokata/hentaikusodokata json: org json. JSONException: Unterminated object at character 130 of "id" shittypervertworker, type park, "author" Blyat009, "width" 100, "height" 100, frames" bmp hentaikusodokata.png,

Why was this error caused? :calc

Code: Select all

"id":"spworker",
"type":"park", 
"author":"putyournamehere", 
"width":100, 
"height":100, 
"frames":[
  {"bmp" :"hentaikusodokata.png"}
 ],
Is the correct form.

Error caused by lack of correct .json. :)
826!826Currently using beta 826. 826 What's new? :)
diagonal road tool!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Blyat009
Villager
Reactions:
Posts: 22
Joined: Tue Apr 03, 2018 2:29
Location: Great Nippon Empire
Plugins: Show
Phone model: ASH-077
Contact:

Platform

Re: How to write a plugin

#25

Post by Blyat009 » Wed Apr 11, 2018 6:45

Thank you very much, my tongue was torn
My name is "Yoshikawa Yukihide" ........ Estimated age is……
19 years old..Occupation is a soldier, class is "seaman 2nd class"..……….The workforce is the destroyer of the FederalRepublic of Titania "Chernoburg"...

User avatar
Caliber
Metropolitan
Reactions:
Posts: 127
Joined: Wed Jan 24, 2018 3:48
Location: Somewhere in the Philippines
Plugins: Show
Version: Beta
Phone model: SamsungGalaxyJ5 2015

Platform

Re: How to write a plugin

#26

Post by Caliber » Sat May 12, 2018 1:23

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: 8236
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#27

Post by CommanderABab » Sat May 12, 2018 3:12

In the console, type

Code: Select all

export:"directory name of plugin"
It will be placed in the Theotown folder.
826!826Currently using beta 826. 826 What's new? :)
diagonal road tool!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Caliber
Metropolitan
Reactions:
Posts: 127
Joined: Wed Jan 24, 2018 3:48
Location: Somewhere in the Philippines
Plugins: Show
Version: Beta
Phone model: SamsungGalaxyJ5 2015

Platform

Re: How to write a plugin

#28

Post by Caliber » Sat May 12, 2018 8:32

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
Ølsken
Former Bearbear65
Reactions:
Posts: 5058
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta
Phone model: Samsung S10

Platform

Plugin Creator

Re: How to write a plugin

#29

Post by Ølsken » Sat May 12, 2018 10:13

Caliber wrote:
Sat May 12, 2018 8:32
I mean for making plugin must be .plugin not .json
.plugin is an encrypted version of .zip
.json cannot be changed
ImageJust my opinion

User avatar
Caliber
Metropolitan
Reactions:
Posts: 127
Joined: Wed Jan 24, 2018 3:48
Location: Somewhere in the Philippines
Plugins: Show
Version: Beta
Phone model: SamsungGalaxyJ5 2015

Platform

Re: How to write a plugin

#30

Post by Caliber » Sat May 12, 2018 10:48

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
Community manager
Reactions:
Posts: 2751
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show
Phone model: Nokia 3310

Plugin Creator

Platform

Re: How to write a plugin

#31

Post by JustAnyone » Sat May 12, 2018 12:02

Read above

User avatar
KentuckyFriedChicken
Townsman
Reactions:
Posts: 98
Joined: Wed Jan 31, 2018 17:55
Location: Austria, Vienna
Plugins: Show
Phone model: Samsung Galaxy A40

Platform

Plugin Creator

Re: How to write a plugin

#32

Post by KentuckyFriedChicken » Wed Jun 13, 2018 14:24

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?
St. Kentucky Hospital ⚕
Coming Soon

User avatar
JustAnyone
Community manager
Reactions:
Posts: 2751
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show
Phone model: Nokia 3310

Plugin Creator

Platform

Re: How to write a plugin

#33

Post by JustAnyone » Wed Jun 13, 2018 15:08


User avatar
Caliber
Metropolitan
Reactions:
Posts: 127
Joined: Wed Jan 24, 2018 3:48
Location: Somewhere in the Philippines
Plugins: Show
Version: Beta
Phone model: SamsungGalaxyJ5 2015

Platform

Re: How to write a plugin

#34

Post by Caliber » Thu Jun 14, 2018 5:10

JustAnyone wrote:
Sat May 12, 2018 12:02
Read 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: 127
Joined: Wed Jan 24, 2018 3:48
Location: Somewhere in the Philippines
Plugins: Show
Version: Beta
Phone model: SamsungGalaxyJ5 2015

Platform

Re: How to write a plugin

#35

Post by Caliber » Fri Jun 15, 2018 5:13

former member wrote:
Thu Jun 14, 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"
Creator of the Aouie
Im Filipino
My First Plugin Boundary
My Second Plugin Decarbonator Tower

User avatar
CommanderABab
AB
Reactions:
Posts: 8236
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#36

Post by CommanderABab » Fri Jun 15, 2018 17:32

And you use the folder name, not the name of the json file.
826!826Currently using beta 826. 826 What's new? :)
diagonal road tool!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

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

Platform

Re: CommanderABab

#37

Post by ChocolateGuerreiroBr » Sat Jun 16, 2018 18:36

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: 8236
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#38

Post by CommanderABab » Sat Jun 16, 2018 18:49

A 1x1 tile would be 32x16 pixels.
Screenshot_20180616-121759.jpg
Screenshot_20180616-121759.jpg (5.41 KiB) Viewed 1887 times
Screenshot_20180616-121826.jpg
Screenshot_20180616-121930.jpg
Screenshot_20180616-122035.jpg
826!826Currently using beta 826. 826 What's new? :)
diagonal road tool!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

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

Platform

Re: How to write a plugin

#39

Post by ChocolateGuerreiroBr » Sat Jun 16, 2018 22:35

Why?
Attachments
a rectangle
a rectangle
different from this format, why?
different from this format, why?
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: 8236
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#40

Post by CommanderABab » Sun Jun 17, 2018 3:21

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. :)
826!826Currently using beta 826. 826 What's new? :)
diagonal road tool!!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”

Who is online

Users browsing this forum: No registered users and 2 guests