How to write a plugin

Learn here how to create and use plugins.

Moderator: Plugin Moderators

Chinasapling
Townsman
Reactions:
Posts: 49
Joined: Sun Nov 11, 2018 5:33
Plugins: Show

Platform

Re: How to write a plugin

#41

Post by Chinasapling »

How do I add naming to unnamed plug-ins?

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

Platform

Plugin Creator

Re: How to write a plugin

#42

Post by CommanderABab »

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

Code: Select all

"title":"name",
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

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

Chinasapling
Townsman
Reactions:
Posts: 49
Joined: Sun Nov 11, 2018 5:33
Plugins: Show

Platform

Re: How to write a plugin

#43

Post by Chinasapling »

CommanderABab wrote:
Fri Nov 16, 2018 19:30
Chinasapling wrote:
Fri Nov 16, 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

Chinasapling
Townsman
Reactions:
Posts: 49
Joined: Sun Nov 11, 2018 5:33
Plugins: Show

Platform

Re: How to write a plugin

#44

Post by Chinasapling »

CommanderABab wrote:
Sat Nov 17, 2018 4:17
Chinasapling wrote:
Sat Nov 17, 2018 3:54
CommanderABab wrote:
Fri Nov 16, 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: 8549
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#45

Post by CommanderABab »

Show
show quotes
Chinasapling wrote:
Sat Nov 17, 2018 13:04
CommanderABab wrote:
Sat Nov 17, 2018 4:17
Chinasapling wrote:
Sat Nov 17, 2018 3:54

why?
What's going on here?
Show
you do use a comma here :)
Image
Screenshot_20181117-063130.jpg
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

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

Chinasapling
Townsman
Reactions:
Posts: 49
Joined: Sun Nov 11, 2018 5:33
Plugins: Show

Platform

Re: How to write a plugin

#46

Post by Chinasapling »

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

Chinasapling
Townsman
Reactions:
Posts: 49
Joined: Sun Nov 11, 2018 5:33
Plugins: Show

Platform

Re: How to write a plugin

#47

Post by Chinasapling »

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

User avatar
JustAnyone
enjenir
Reactions:
Posts: 2881
Joined: Sun Jul 23, 2017 12:45
Location: Easter Island
Plugins: Show

Re: How to write a plugin

#48

Post by JustAnyone »

That's due to encoding.
Perfect way to comment stuff out :)
🦀Now available as administrator🦀
Image

:pickle:

Chinasapling
Townsman
Reactions:
Posts: 49
Joined: Sun Nov 11, 2018 5:33
Plugins: Show

Platform

Re: How to write a plugin

#49

Post by Chinasapling »

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

Chinasapling
Townsman
Reactions:
Posts: 49
Joined: Sun Nov 11, 2018 5:33
Plugins: Show

Platform

Re: How to write a plugin

#50

Post by Chinasapling »

CommanderABab wrote:
Sat Jun 16, 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

User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5297
Joined: Fri Feb 10, 2017 14:53
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#51

Post by Bearbear76 »

Chinasapling wrote:
Mon Nov 26, 2018 15:13
CommanderABab wrote:
Sat Jun 16, 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
I would recommend pixly
ImageJust my opinion

Chinasapling
Townsman
Reactions:
Posts: 49
Joined: Sun Nov 11, 2018 5:33
Plugins: Show

Platform

Re: How to write a plugin

#52

Post by Chinasapling »

Bearbear65 wrote:
Thu Dec 06, 2018 23:56
Chinasapling wrote:
Mon Nov 26, 2018 15:13
CommanderABab wrote:
Sat Jun 16, 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
I would recommend pixly
Thank you very much

NagorniKarabikh
Settler
Reactions:
Posts: 6
Joined: Sat Dec 29, 2018 20:30
Plugins: Show

Re: How to write a plugin

#53

Post by NagorniKarabikh »

Gives error
Unterminated object at character 182 of [
{
"id":"$sample.plugin.unique.id.res00",
"type":"residential",
"author":"NagorniKarabikh",
"width":1,
"height":1,
"frames":[{"png":"Romanian.png}],
"smoke":[{"id":"$smoke07","x":15,"y":-17}],
"level":1
}
]
:bc correcting the same as same whom is me?
:bc джорреджтинг тье саме ас саме вхом ис ме?

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

Platform

Plugin Creator

Re: How to write a plugin

#54

Post by CommanderABab »

NagorniKarabikh wrote:
Thu Jan 17, 2019 17:05
Gives error
Unterminated object at character 182 of [
{
"id":"$sample.plugin.unique.id.res00",
"type":"residential",
"author":"NagorniKarabikh",
"width":1,
"height":1,
"frames":[{"png":"Romanian.png}],
"smoke":[{"id":"$smoke07","x":15,"y":-17}],
"level":1
}
]
You have:

Code: Select all

[
  {
    "id":"$sample.plugin.unique.id.res00",
    "type":"residential",
    "author":"NagorniKarabikh",
    "width":1,
    "height":1,
    "frames":[{"png":"Romanian.png}],
    "smoke":[{"id":"$smoke07","x":15,"y":-17}],
    "level":1
  }
]
Try:

Code: Select all

[
  {
    "id":"$sample.plugin.unique.id.res00",// use a different id
    "type":"residential",
    "author":"NagorniKarabikh",
    "width":1,
    "height":1,
    "frames":[{"bmp":"Romanian.png"}],
    "smoke":[{"id":"$smoke07","x":15,"y":-17}],
    "level":1
  }
]
Missing " after Romanian.png caused the error.
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

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

User avatar
JohnSallow
Small-town resident
Reactions:
Posts: 37
Joined: Wed Jan 29, 2020 18:45
Location: Buenos Aires, Argentina
Plugins: Show
Version: Beta

Platform

Re: How to write a plugin

#55

Post by JohnSallow »

This question might be dumb, but how can I do to have two or more buildings in the same plugin?

I tried doing this...

Code: Select all

[
{
"id":"$nijocali.residentials.plugin_01_residential",
"type":"residential",
"author":"johnsallow",
"width":2,
"height":2,
"frames":[{"bmp":"nijocali_01.png"}],
"level":2
},
{
"id":"$nijocali.residentials.plugin_02_residential",
"type":"residential",
"author":"johnsallow",
"width":2,
"height":2,
"frames":[{"bmp":"nijocali_02.png"}],
"level":2
}
]
... but the second building doesn't appear in the plugin.

Yes, I'm very confused with it :calc
Am I the only one who likes putting pineapple on pizza?

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

Platform

Plugin Creator

Re: How to write a plugin

#56

Post by CommanderABab »

That should work.
It might be that the images are the same or similar, so you don't notice the second one.
888!888Currently using zeta 888. 888 What's that? :)
quantum road tool!!
:)

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

User avatar
JohnSallow
Small-town resident
Reactions:
Posts: 37
Joined: Wed Jan 29, 2020 18:45
Location: Buenos Aires, Argentina
Plugins: Show
Version: Beta

Platform

Re: How to write a plugin

#57

Post by JohnSallow »

CommanderABab wrote:
Thu Feb 06, 2020 22:42
That should work.
It might be that the images are the same or similar, so you don't notice the second one.
Ok, I'll verify that. Thanks
Am I the only one who likes putting pineapple on pizza?

Triceymicy
Settler
Reactions:
Posts: 1
Joined: Wed Apr 29, 2020 17:41
Plugins: Show

Re: How to write a plugin

#58

Post by Triceymicy »

Explain How To Start, Like A Button.

User avatar
TheFennekin
Inhabitant of a Solar System
Reactions:
Posts: 1946
Joined: Thu Aug 24, 2017 11:17
Location: house
Plugins: Show
Version: Beta

Platform

Plugin Creator

Re: How to write a plugin

#59

Post by TheFennekin »

Triceymicy wrote:
Thu Jun 25, 2020 20:20
Explain How To Start, Like A Button.
What "like a button" do you mean? You can see different topics about how to make different kind of plugins.
I'm fine

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”