Page 1 of 1

Releasing Plugins for ManiaLive

Posted: 15 Feb 2011, 17:45
by aseco
How to Release ManiaLive Plugins

Okay, you have written a plugin and want to be able to tell everyone who's using it that there's a new version?
With the new ManiaLive version you don't have to implement your own logic/code to achieve that!
There are two things that you need to do:

1. Create an entry for your plugin(s) on the "manialive" ManiaLink.
You need to enter an address where the new version of your plugin can be found.
Further more you can give additional information as description or if you have posted something on a forum, just enter the link.
To finish your process click on the category that suits your plugin, which can be either Feature, Administration, Entertainment or Package if your .zip contains more than one plugin.
If you click on the category and you succeeded it will show a yellow number. Remember the number or write it on a piece of paper, this is your Repository Id.

2. In you plugin class there is a method called onInit.
This method is used to configure all of your plugin's properties that are important for the ManiaLive loading process.
You have access to two more methods now:

Code: Select all

function onInit()
{
  $this->setRepositoryId(23); // set your repository id here!
  $this->setRepositoryVersion(57); // set a version number here.
}
If you do not use setRepositoryVersion, then it will use the plugin's normal version that you can set with setVersion().

How to Release Updates

1. Go to the manialive ManiaLink again.
Find the entry that you have created for you plugin(s).
You will realize, that if you are logged in with the same account that has created the repository entry, you will be able to edit or delete it.

2. Click on edit to change the download location, forum post address and of course the version number.
As soon as the version number of the repository entry is bigger than the one that is installed on the users computer, ManiaLive will start alerting.

Re: Releasing Plugins for ManiaLive

Posted: 25 Feb 2011, 12:07
by aseco
Getting Started

If you want to get started with developing on ManiaLive, then you can do your first steps with the TMKarma plugin: http://forum.maniaplanet.com/viewtopic.php?f=47&t=703
Due to a whole bunch of comments and it's simplicity, the code should be beginner friendly and perfect for extension.

It will explain the basics of ManiaLive plugins like: window creation, event processing and exception handling.
Hope it helps and don't hesitate to leave comments and/or suggestions :-)

Re: Releasing Plugins for ManiaLive

Posted: 27 Dec 2012, 05:10
by TatharNuar
The "manialive" Manialink doesn't work. Give it a try.

Re: Releasing Plugins for ManiaLive

Posted: 27 Dec 2012, 11:25
by The_Big_Boo
Indeed, because it doesn't exist in ManiaPlanet, only in TMF ;) Don't know if we'll do it in ManiaPlanet or not...

Re: Releasing Plugins for ManiaLive

Posted: 28 Dec 2012, 11:50
by TatharNuar
The_Big_Boo wrote:Indeed, because it doesn't exist in ManiaPlanet, only in TMF ;) Don't know if we'll do it in ManiaPlanet or not...
It's worth a shot. Otherwise I'll have to manage my own plugin repository and maintain it. I'd rather just spend that time making plugins.