How to write a plugin

Learn here how to create and use plugins.

Moderator: KoalaGuy

User avatar
Matison55557
Inhabitant of a Universe
Reactions:
Posts: 4549
Joined: Mon Jul 04, 2016 18:49
Location: Poland
Plugins: Show
Version: Beta
Phone: Huawei P9 lite mini

Re: How to write a plugin

Post by Matison55557 » Tue Dec 12, 2017 10:54

The best way to make an id is to use your name and after it, the name of the plugin. This gives almost 100% chance that it will not be used anywhere else
454454: New residences!

   plugins
Suggest/request a plugin!

User avatar
Blyat009
Settler
Reactions:
Posts: 5
Joined: Tue Apr 03, 2018 2:29
Location: Nippon
Plugins: Show
Contact:

Re: How to write a plugin

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
Hello from Japan I am an amateur Japanese user. Please teach me :json

I am poor at English, so I will talk using translation. Do you like unnatural language?

https://plus.google.com/112257444632425179217
↑If it's okay to contact me ;)

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 5487
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: How to write a plugin

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. :)
466466Currently using beta 466. 466 What's new? :)
Plugin image prefetch!
:)

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

User avatar
Blyat009
Settler
Reactions:
Posts: 5
Joined: Tue Apr 03, 2018 2:29
Location: Nippon
Plugins: Show
Contact:

Re: How to write a plugin

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

Thank you very much, my tongue was torn
Hello from Japan I am an amateur Japanese user. Please teach me :json

I am poor at English, so I will talk using translation. Do you like unnatural language?

https://plus.google.com/112257444632425179217
↑If it's okay to contact me ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest