Page 1 of 2

Writing plugin.manifest files

Posted: 29 Jan 2020, 15:50
by Kamikazi
What is plugin.manifest

The new manifest file is a new addition in 815 where it is needed for plugins to work in the Online regions multiplayer that aren't from the Plugin Store. It's not obligatory to upload your plugins in the forums with the file but it is highly appreciated if you make or update your plugins with the manifest file.It also allows the plugin to be managed with plugin store.

The file itself

The file MUST be called plugin.manifest so it can be properly recognised by the game. It MUST also be in the folder where the plugin is.

How to code plugin.manifest files

It follows the same structure you use for json, so there isn't anything new to learn.
Here is an example:

Code: Select all

{
  "id":"Test_kami",  // Unique id for the plugin, you can put anything here, as always it doesn't repeat with other ones
  "version":69, // Plugin version code, you can put any number here
  "title":"Test",   // Title for the plugin, pretty self-explanatory
  "text":"Testy test.", //Description of the Plugin. Optional
  "author":"Kamikazi", //The maker of the plugin (Yourself, basically)
  "thumbnail":"Something.png", // Thumbnail image file, like in the plugin store. Optional
  "category":false,   // Specify whether to show a category for the plugin. Optional
  "url":"https://forum.theotown.com/",  //Specify where the plugin can be downloaded from. Optional (816+)
  "multiplayer":true  //Specify whether the plugin can be used in online mode. True by default (833+)
}
Thanks to JA for giving the manifest file with some handy comments

NOTE: This tutorial is subject to change, since this is quite brand new.

Re: Writing .manifest files

Posted: 29 Jan 2020, 15:58
by JustAnyone
Thank you. We'll edit your post as needed to adapt to new changes.

Re: Writing .manifest files

Posted: 29 Jan 2020, 16:56
by Yakka
Useful

Re: Writing .manifest files

Posted: 29 Jan 2020, 17:12
by KINGTUT10101
Will adding a manifest to a store plug-in cause problems?

Re: Writing .manifest files

Posted: 29 Jan 2020, 17:18
by JustAnyone
KINGTUT10101 wrote:
29 Jan 2020, 17:12
Will adding a manifest to a store plug-in cause problems?
It shouldn'tTM

Re: Writing .manifest files

Posted: 29 Jan 2020, 19:35
by yusuf8a684
Thanks, that's a nice tutorial and an awesome addition to game :bc:

Re: Writing plugin.manifest files

Posted: 07 Aug 2020, 12:07
by Goldfih
What app must use to write a plugin.manifest files??

Re: Writing plugin.manifest files

Posted: 07 Aug 2020, 17:31
by CommanderABab
The same text editor as jsons. :)

Re: Writing plugin.manifest files

Posted: 08 Aug 2020, 14:25
by Goldfih
:?:
CommanderABab wrote:
07 Aug 2020, 17:31
The same text editor as jsons. :)
Thanks, but why ny plugins alway error?? I already have json and manifest file

Re: Writing plugin.manifest files

Posted: 08 Aug 2020, 14:48
by CommanderABab
I don't know. I would have to see the code. :)

Re: Writing plugin.manifest files

Posted: 08 Sep 2020, 16:10
by drmdarsh09
I'm getting an error (this is my first plugin and I don't know what to do), can someone check the code and tell me what is wrong

Code: Select all    Reset

{ "id":"Happy_Building" "title":"Test" "text":"test." "author":"drmdarsh09" "thumbnail":"HAPPY PICTURE (the bottle).png" "category":residential }
JSON checker
Check

Re: Writing plugin.manifest files

Posted: 08 Sep 2020, 16:11
by drmdarsh09
I'm getting an error (this is my first plugin and I don't know what to do), can someone check the code and tell me what is wrong

Code: Select all    Reset

{ "id":"Happy_Building" "title":"Test" "text":"test." "author":"drmdarsh09" "thumbnail":"HAPPY PICTURE (the bottle).png" "category":residential }
JSON checker
Check

Re: Writing plugin.manifest files

Posted: 08 Sep 2020, 17:16
by CommanderABab
Try:

Code: Select all

{
  "id":"Happy_Building",
  "title":"Test",
  "text":"test.",
  "author":"drmdarsh09",
  "thumbnail":{"bmp":"HAPPY PICTURE (the bottle).png"},
  "category":"residential"
}

Re: Writing plugin.manifest files

Posted: 10 Sep 2020, 14:24
by drmdarsh09
CommanderABab wrote:
08 Sep 2020, 17:16
Try:

Code: Select all

{
  "id":"Happy_Building",
  "title":"Test",
  "text":"test.",
  "author":"drmdarsh09",
  "thumbnail":{"bmp":"HAPPY PICTURE (the bottle).png"},
  "category":"residential"
}
Thanks!

Re: Writing plugin.manifest files

Posted: 09 Jan 2021, 20:57
by KINGTUT10101
Can we define a minimum version in these manifest files?

Re: Writing plugin.manifest files

Posted: 01 Jul 2021, 21:34
by Sharizal zul
Why my plugin always get an error by using the manifest file that sent by pidroid. Have some text must to erase? In that manifest example code

Re: Writing plugin.manifest files

Posted: 01 Jul 2021, 22:11
by JustAnyone
plugin.manifest.json is not a valid manifest file

It must be plugin.manifest

Re: Writing plugin.manifest files

Posted: 13 Sep 2021, 10:13
by Yakka
Suggestions for manifest:
• Required Plugin
• Minimum Version
• Additional Thing

Re: Writing plugin.manifest files

Posted: 19 Nov 2021, 18:28
by Kiti_mat
Where to insert this .manifest file? it is necessary to create a file separately or in .json

Re: Writing plugin.manifest files

Posted: 30 Nov 2021, 17:28
by Lobby
It's a file that you place alongside the json file.