My ShowTimes V1.1.0 Release April 28/07 (1 Viewer)

Status
Not open for further replies.

zebons

Portal Pro
January 2, 2006
1,484
114
2) I've looked at a few of the plugins I have on my system and they are not setup for a name change. You can select where they are located (in the My Plugins or listed in home). Where have you found a plugin that can be renamed?
Hi falkyre,
an example for a plugin name change. In my plugin MyFilms, you can define a plugin name in setup. That value is stored in my MYFilms.xml file (you also can put it in mediaportal.xml file) and in the main plugin code, you have to change the GetHome function as this :
public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
{
string wPluginName = StrPluginName;
using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml"))
{
wPluginName = xmlreader.GetValueAsString("MyFilms", "PluginName", "My Films");
}

strButtonText = wPluginName;
 

falkyre

Portal Pro
March 20, 2006
133
0
55
Winnipeg, Canada
Home Country
Canada Canada
Looks easy enough to add. I will add that in along with the bug fix. I seem to be having a problem replicating the error on my system. Right now, my development snapshot doesn't work properly. There is no text at all on the home screen. I will update to today's SVN and hopefully this helps.

Sean

Hi richardg,

I will be focusing on that bug come first week of April, sorry I am just tied up with family stuff at the moment.

Sean

Hi falkyre,
Can you post your code on the sourceforge space for mp-plugins, so we can help you for developing that plugin...
http://mp-plugins.svn.sourceforge.net/viewvc/mp-plugins/trunk/plugins/
You can also put the skins here, so it'll be easier to help you improving your hard and great work.
What do you think about ?

2) I've looked at a few of the plugins I have on my system and they are not setup for a name change. You can select where they are located (in the My Plugins or listed in home). Where have you found a plugin that can be renamed?
Hi falkyre,
an example for a plugin name change. In my plugin MyFilms, you can define a plugin name in setup. That value is stored in my MYFilms.xml file (you also can put it in mediaportal.xml file) and in the main plugin code, you have to change the GetHome function as this :
public bool GetHome(out string strButtonText, out string strButtonImage, out string strButtonImageFocus, out string strPictureImage)
{
string wPluginName = StrPluginName;
using (MediaPortal.Profile.Settings xmlreader = new MediaPortal.Profile.Settings("MyFilms.xml"))
{
wPluginName = xmlreader.GetValueAsString("MyFilms", "PluginName", "My Films");
}

strButtonText = wPluginName;
 

falkyre

Portal Pro
March 20, 2006
133
0
55
Winnipeg, Canada
Home Country
Canada Canada
Crashing bug squashed!

RichardG, Jean-Marc and everyone else that have been having problems with MP crashing when in the ShowTimes plugin, I believe I have the bug squashed. I am now working on the ability to name the plugin as you want (Thanks for the suggestion zebons) and the ability for translation to other languages. I'm hoping to have something by the weekend.

Jean-Marc, RichardG or anyone else that is having the crash problem, PM me please so you can test it out and see if your issue is fixed.

Thanks,

Sean
 

RICHARDG

Portal Pro
August 21, 2006
333
3
65
Canada
If you can point me to the newest version I will test it right away. ITs one of my favourite plugins. Love to go to movies. This is a great help.

Let me know
 

falkyre

Portal Pro
March 20, 2006
133
0
55
Winnipeg, Canada
Home Country
Canada Canada
Crashing Bug Test

Guys,

try out the attached zip file with the two new plugins, both a process and a windows plugin.

Try it out and let me know if it fixes the crash. Basically I've forced the focus to always be away from the buttons on the left. That seemed to have been causing the problem.

Sean
 

Jean-Marc

Portal Pro
February 28, 2007
382
32
Home Country
France France
I replaced the .dll by the new ones of your zip file, and I can confirm you that the bug is solved!!
:D

The only thing, when you have the theaters listed on the right, is that it is not possible to go back to the left side of the screen. You must choose one theater, click on it (you have then the dates displayed) but at this stage it is yet impossible to exit to the left. You must click on a date, then choose a movie, click on it to have all the info displayed and ONLY at this moment you can go back to the left to make another choice (see next movie, see all movies, etc...)
In another words, if you click on "see theaters" you can't exit from this choice before having followed all the steps till the end!

Another curious thing (THAT ALSO HAPPENED WITH THE PREVIOUS .DLL)
When I am in the last step discribed above and want to go to the left side of the screen using the left arrow key, I always must click 3 TIMES on it!! (strange, no?)

Anyway, thanks!!

JMarc
 

falkyre

Portal Pro
March 20, 2006
133
0
55
Winnipeg, Canada
Home Country
Canada Canada
Hi Jean-Marc,

The flow that you describe below is by design and would be really hard to change.

I think what's happening with the left arrow at the last step is that MP is "stepping" through some "hidden" controls until you can get to one that is visible. I'll take a look at see what's up when I get a chance.

Sean

I replaced the .dll by the new ones of your zip file, and I can confirm you that the bug is solved!!
:D

The only thing, when you have the theaters listed on the right, is that it is not possible to go back to the left side of the screen. You must choose one theater, click on it (you have then the dates displayed) but at this stage it is yet impossible to exit to the left. You must click on a date, then choose a movie, click on it to have all the info displayed and ONLY at this moment you can go back to the left to make another choice (see next movie, see all movies, etc...)
In another words, if you click on "see theaters" you can't exit from this choice before having followed all the steps till the end!

Another curious thing (THAT ALSO HAPPENED WITH THE PREVIOUS .DLL)
When I am in the last step discribed above and want to go to the left side of the screen using the left arrow key, I always must click 3 TIMES on it!! (strange, no?)

Anyway, thanks!!

JMarc
 

Jean-Marc

Portal Pro
February 28, 2007
382
32
Home Country
France France
Hi Sean,

The flow by design is not a problem at all, and be sure that I am not asking for any change!!

As you know, due to the fact that MTSA is not working properly for the location I have chosen, and also due to the risk of crash, I never really used "show theaters" and before today, I had not seen all these steps!
After you fixed the bug, I played a lot to see if the crash would happen again or not, I discovered the flow and reported it because I was affraid it was a new bug! I am really happy to know that it is not!

The "3 times" is a little bit annoying.

JMarc
 

falkyre

Portal Pro
March 20, 2006
133
0
55
Winnipeg, Canada
Home Country
Canada Canada
Hey,

never worry about finding bugs, just worry that it sometimes takes along time for me to get to them.

I'll look into the 3 times issue.

FYI, I've submitted the plugin code to the plugin SVN so if other developers want to start adding (zebons?) or modifying, go to it.

Sean

Hi Sean,

The flow by design is not a problem at all, and be sure that I am not asking for any change!!

As you know, due to the fact that MTSA is not working properly for the location I have chosen, and also due to the risk of crash, I never really used "show theaters" and before today, I had not seen all these steps!
After you fixed the bug, I played a lot to see if the crash would happen again or not, I discovered the flow and reported it because I was affraid it was a new bug! I am really happy to know that it is not!

The "3 times" is a little bit annoying.

JMarc
 
Status
Not open for further replies.

Users who are viewing this thread

Top Bottom