MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Community Skins and Plugins » Plugins


Plugins Plugins developed and maintained by users. Want to create your own plugin? Start a thread in here.

Reply
 
Thread Tools Display Modes
Old 2007-01-31, 05:28   #11 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

This is fixed now. Thanks for the feedback.

Just a note to all Plugin SVN users:

When moving/rename files. Don't delete and recreate, use the SVN Move and Rename features. This way the history of the file is kept.

Renaming a .cs file can be a bit tricky because in needs to be done in the VS project as well. However, if you rename in VS then it will do a normal file rename and cause problems with SVN. So two possible solutions are

1. Delete the file from the VS project
2. rename with SVN rename
3. Add file with new name back to the VS project

Or the one I tend to use

1. Rename file with SVN rename
2. Edit .csproj file and rename by hand (these files are just XML files)
James is offline   Reply With Quote
Old 2007-01-31, 19:06   #12 (permalink)
Portal Developer
 
Join Date: May 2005
Location: Switzerland
Posts: 1,348
Thanks: 4
Thanked 55 Times in 34 Posts


Default

Another quick note to all SVN users. Please don't check in bin or obj directories, these should be generated locally by each user. Otherwise we can end up with a lot of copies of core.dll etc
James is offline   Reply With Quote
Old 2007-02-08, 07:44   #13 (permalink)
Portal Member
 
MSMP's Avatar
 
Join Date: Nov 2006
Location: Okotoks, Alberta (foothills of the Rocky Mountains)
Age: 44
Posts: 87
Thanks: 0
Thanked 1 Time in 1 Post

Country:

My System

Question what is the right way to set up plug-in development and deployment

Hi ,

I have a question about the proper way of deploying external plug-ins.
(The system has been installed with all the needed tools and sdk’s and can compile the latest svn fine)

In the last couple of days I’ve tried to start a new plug-in development (just something simple to find out how it all works)
Now I’ve come to completion of phase 1, I would like to deploy it on my entertainment machine and test in real life.

How it started: (wrong I guess)

I added a new plug-in folder in the SVN-updated folder. And went from there. But it seems that compiling like this is embedding the code in the main application rather than creating an external plug-in that can be used on other machines as an add-on or plug-in.
So I isolated the code into a separate project and added all the references to the SVN directory. Compilation went ok.
However the version on my entertainment machine is the so-called Stable 0.2.2.0 version, and copying the plug-in dll in the plug-in/windows folder returns at setup/configuration with the message that the plug-in can’t be loaded because it was made for a different version.

What is the proper way to go from here?

Thanks in advance.
__________________
Regards,
Media_Junkie.
MSMP is offline   Reply With Quote
Old 2007-02-08, 07:50   #14 (permalink)
Portal Member
 
CHli's Avatar
 
Join Date: Jul 2005
Location: Switzerland
Age: 27
Posts: 1,011
Thanks: 9
Thanked 3 Times in 3 Posts

My System

Default

If you want to compile your plugin with MP version 0.2.2.0 you have to checkout this version from the SVN Repository. Else you'll have to update your 0.2.2.0 to current SVN binaries.
CHli is offline   Reply With Quote
Old 2007-02-08, 09:24   #15 (permalink)
Portal Member
 
moiristo's Avatar
 
Join Date: Nov 2006
Location: Enschede
Posts: 283
Thanks: 6
Thanked 14 Times in 10 Posts

Country:

My System

Send a message via ICQ to moiristo Send a message via MSN to moiristo
Default

You can also use the dll's from your entertainment machine as reference (Core.dll, Utils.dll,...) The only dll I always miss is Dialogs.dll, but if I use that one from the SVN, there is no problem.
__________________
Greetz, moiristo

moiristo is offline   Reply With Quote
Old 2007-02-08, 18:10   #16 (permalink)
Portal Member
 
MSMP's Avatar
 
Join Date: Nov 2006
Location: Okotoks, Alberta (foothills of the Rocky Mountains)
Age: 44
Posts: 87
Thanks: 0
Thanked 1 Time in 1 Post

Country:

My System

Default

Thanks guys,
I'm gonna try that by adding a new SVN Folder and download against 0.2.2.0 and use this as ref. That should work right?
__________________
Regards,
Media_Junkie.
MSMP is offline   Reply With Quote
Old 2007-02-28, 21:15   #17 (permalink)
Portal Member
 
overture's Avatar
 
Join Date: Jan 2006
Location: Bangor
Age: 29
Posts: 79
Thanks: 0
Thanked 0 Times in 0 Posts

Country:

My System

Send a message via MSN to overture Send a message via Skype™ to overture
Default

Hi,

Just to let you all know - I have uploaded the WWMP (WorldWideMediaProject) and IPTV Plugins.

The IPTV Plugin is the plugin which will contain its own plugin architecture (see the thread 'My IPTV Plugin' for more details).

Phil
__________________
[lofiaudio]
[lofiforums]
overture is offline   Reply With Quote
Old 2007-03-09, 02:49   #18 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,248
Thanks: 30
Thanked 142 Times in 88 Posts

Country:

My System

Default

Hey overture,

Could you just check where you uploaded your IPTVPlugin files to? It looks like you've placed them in the root of the svn, instead of in a folder named after your project.

Thanks,
and-81 is offline   Reply With Quote
Old 2007-03-27, 00:03   #19 (permalink)
Portal Member
 
Join Date: Jul 2006
Location: UK
Posts: 260
Thanks: 0
Thanked 4 Times in 3 Posts

My System

Default

Quote:
Originally Posted by MSMP View Post
Thanks guys,
I'm gonna try that by adding a new SVN Folder and download against 0.2.2.0 and use this as ref. That should work right?
You don't need to do that. Here's what I do (Set paths to your own)
-----------
Set Project|MesFilms Properties|Build|OutputPath :-
(Debug) = D:\devel\vs2005\mediaportal\xbmc\bin\Debug\Plugins \Windows
(Release) = D:\Program Files\MediaPortal\Plugins\Windows

Set Project|MesFilms Properties|Debug|Start External Program :-
(Debug) = D:\devel\vs2005\mediaportal\xbmc\bin\Debug\MediaPo rtal.exe
(Release) = D:\Program Files\MediaPortal\MediaPortal.exe

Set Project|MesFilms Properties|Build|Reference Paths =
D:\Program Files\MediaPortal\
D:\Program Files\MediaPortal\plugins\windows\
D:\devel\vs2005\mediaportal\xbmc\bin\Debug\
D:\devel\vs2005\mediaportal\xbmc\bin\Debug\plugins \windows\

Select ALL references in solution explorer (core...utils) and Set Properties|Copy Local = False

I also Untick Debug|Exceptions|Managed Debugging Assistants|LoaderLock|Thrown ( so no errors when press f5 to debug)
------------------
Now when I do a release build I compile against v0.2.2, with above settings. When I do a debug build against svn, I simply have to move the lower 2 references to the top position. You don't need to download any svn code to compile the plugs just ensure the references point to the relevant 0.2.2 or svn install when you compile.

Last edited by HappyTalk; 2007-03-27 at 14:14.
HappyTalk is offline   Reply With Quote
Old 2007-04-10, 13:17   #20 (permalink)
Portal Member
 
Join Date: Feb 2007
Location: Itzehoe
Age: 39
Posts: 177
Thanks: 1
Thanked 23 Times in 19 Posts

Country:

My System

Send a message via ICQ to kroko Send a message via MSN to kroko
Default

Also now I uploaded

My Simon Say V0.3.1
My Hexxagon V0.1
My Connect 4 V0.1

My DBox
-> maybe a little bit out of date, I still do some basic works on it, so please be patient

Greetz
kroko



@HappyTalk: THAT makes my life so much easier..... I was wondering how can I do it... and it was so easy as well...
kroko is offline   Reply With Quote
Reply

Bookmarks

Tags
development, plugin

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
myGadgets plugin (in Development) magnuje2 Plugins 4 2006-12-28 22:58
Gathering topical infos about plugins (To: authors & use tomtom21000 Plugins 2 2006-02-04 23:20
HTTP remote plugin under development .... hagur Plugins 3 2005-08-13 12:58
Online Content Plugin in development samuel337 Plugins 5 2005-02-28 12:01


All times are GMT +1. The time now is 03:34.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress