NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 27 28 29 30 31 … 93 Next »
1.x plugin development

 
  • 0 Vote(s) - 0 Average
1.x plugin development
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#21
2007-07-17, 05:26 AM
It really looks like menuButtons is null.

To help track it down, I'd log info about that variable being created and needsRendering() being called.
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#22
2007-07-17, 06:16 AM (This post was last modified: 2007-07-17, 07:03 AM by ubu.)
sub Wrote:It really looks like menuButtons is null.

To help track it down, I'd log info about that variable being created and needsRendering() being called.
Yes, well, if I had a 1.0.08 development environment, I'd definitely do that. Smile Sadly, since my "test" box is too puny to run 1.0.08 and my dev and production boxes seem to have gone on strike in solidarity......

Has anything changed in this respect? If menuButtons is null, then it would also have been null when run from gbpvr.exe in previous versions, yet this problem didn't appear. Does PVRX2 call needsRendering() before calling Activate(), whereas gbpvr.exe didn't?
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#23
2007-07-17, 11:45 AM
sub Wrote:Its recommended to have a keymappings file for anything but the basic keystrokes (up/down/left/right/ok etc), but lack of that shouldnt be the cause here. If you reproduce the problem and attach the logs I'll take a look.

Hi Sub, found the issue with GameZone not working, I was using the pluginhelper to disable the screen saver as it had caused problems for playing games and the screen saver cutting in. that was bombing gamezone out. removed the enable/disable screensaver feature, and it now seems to work.

Is PVRx2 supposed to support the disablescreensaver?

Cheers
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#24
2007-07-17, 04:55 PM
idkpmiller Wrote:Hi Sub, found the issue with GameZone not working, I was using the pluginhelper to disable the screen saver as it had caused problems for playing games and the screen saver cutting in. that was bombing gamezone out. removed the enable/disable screensaver feature, and it now seems to work.

Is PVRx2 supposed to support the disablescreensaver?
There is no built in screen saver yet, so these functions may return an a error if you call them. I now have the screen saver implemented for the next release (probably only a week or so away).
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#25
2007-07-18, 04:15 AM
sub Wrote:It really looks like menuButtons is null.

To help track it down, I'd log info about that variable being created and needsRendering() being called.
Getting a bit further. I got somebody to try a version with extra logging for me. Looks like Activate() doesn't get called before the first invocation of needsRendering(). Should be easy to fix. So now another problem:

I notice that, for some reason, PVRX2 seems to be looking for skin files in gbpvr\skins before it looks in gbpvr\skin\Blue. ie:
Quote: 2007-07-17 06:52:38.390 VERBOSE [1] Skin file not found: C:\Program Files\devnz\gbpvr\skin\UbuStream\skin.xml
2007-07-17 06:52:38.390 VERBOSE [1] ...about to check default skin
2007-07-17 06:52:38.390 VERBOSE [1] Initializing skin helper for: C:\Program Files\devnz\gbpvr\skin\blue\UbuStream\skin.xml
but then, when it looks for a composite image, this happens:
Quote:2007-07-17 06:52:38.811 VERBOSE [1] System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\devnz\gbpvr\skin\_CoreImages\ListIcon_Folder.png'.
I have the following in the skin file.
Quote: <CompositeImage name="FolderIcon" size="16,16">
<DrawImage filename="../_CoreImages/ListIcon_Folder.png" loc="0,0" size="16,16"/>
</CompositeImage>
With previous versions of GB-PVR this would cause it to look in gbpvr\skin\Blue\_CoreImages but now it seems to be looking for _CoreImages in gbpvr\skin.

In my plugin's getSkinSubdirectory() method, I return "UbuStream", which used to allow my skin files to be in gbpvr\skin\Blue\UbuStream (or in gbpvr\skin\any skin\UbuStream).

I'm unclear why this is working differently with PVRX2 . Have I missed a key post/thread somewhere? What is the correct approach to have skins work with both 1.0.08 and with earlier GB-PVR versions? (I'm just trying to get my current code working with both before I attempt to re-write it for the new plugin architecture and skin2 skins).
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#26
2007-07-18, 04:25 AM
ubu Wrote:Getting a bit further. I got somebody to try a version with extra logging for me. Looks like Activate() doesn't get called before the first invocation of needsRendering(). Should be easy to fix. So now another problem:

I notice that, for some reason, PVRX2 seems to be looking for skin files in gbpvr\skins before it looks in gbpvr\skin\Blue. ie:
but then, when it looks for a composite image, this happens:
I have the following in the skin file.
With previous versions of GB-PVR this would cause it to look in gbpvr\skin\Blue\_CoreImages but now it seems to be looking for _CoreImages in gbpvr\skin.

In my plugin's getSkinSubdirectory() method, I return "UbuStream", which used to allow my skin files to be in gbpvr\skin\Blue\UbuStream (or in gbpvr\skin\any skin\UbuStream).
How did you create your skin helper object? Are you using one of the supplied base classes that does it automatically, or creating it yourself? If you're creating it yourself, this is the way I do it for 1.x plugins:

skinHelper = new SkinHelper2(getSkinSubdirectory() + "\\skin.xml");

Note, the use of "SkinHelper2" rather than "SkinHelper", and the constructor takes the relative path (skin subdirectory and file name) as the argument. for example "TV Guide\\skin.xml".

Quote:I'm unclear why this is working differently with PVRX2 . Have I missed a key post/thread somewhere?
I'm not sure why this is happening, but I'm guessing its something to do with how your creating the SkinHelper object?

Quote:What is the correct approach to have skins work with both 1.0.08 and with earlier GB-PVR versions? (I'm just trying to get my current code working with both before I attempt to re-write it for the new plugin architecture and skin2 skins).
To be honest, I'm not bothering with any backward compatibility in the new screens I'm creating. Too much hassle. All my screens and plugins are 1.x only, so I dont have to worry about any compatibility with older versions of GB-PVR. (would mean having both SkinHelper and SkinHelper2 objects, and two different sets of rendering logic, and would rule out the use of the new base classes etc)

Like me, you may find its best to just leave the current version of your plugin as-is for users of older versions of GB-PVR, then create an UbuStream2 or something similar for 1.x.
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#27
2007-07-18, 04:58 AM
sub Wrote:How did you create your skin helper object? Are you using one of the supplied base classes that does it automatically, or creating it yourself? If you're creating it yourself, this is the way I do it for 1.x plugins:

skinHelper = newSkinHelper2(getSkinSubdirectory() + "\\skin.xml");

Note, the use of "SkinHelper2" rather than "SkinHelper", and the constructor takes the relative path (skin subdirectory and file name) as the argument. for example "TV Guide\\skin.xml".
You're right. I'm using
Code:
skinHelper = new SkinHelper(MyPlugInSkinSubDirectoryName, "skin.xml", "2.2");
where MyPlugInSkinSubDirectoryName is a constant that I also use as the return value for getSkinSubdirectory(). Since I'm not using SkinHelper2 and don't have "\\" before the skin file name, I'm surprised it's getting as far as is doing with PVRX2. :confused:

Quote:To be honest, I'm not bothering with any backward compatibility in the new screens I'm creating. Too much hassle. All my screens and plugins are 1.x only, so I dont have to worry about any compatibility with older versions of GB-PVR. (would mean having both SkinHelper and SkinHelper2 objects, and two different sets of rendering logic, and would rule out the use of the new base classes etc)
I suppose something like:
Code:
try
{
   skinHelper = new SkinHelper2(MyPlugInSkinSubDirectoryName, "skin.xml", "2.2");
}
catch
{
   skinHelper = new SkinHelper(MyPlugInSkinSubDirectoryName, "skin.xml", "2.2");
}
might work.

Quote:Like me, you may find its best to just leave the current version of your plugin as-is for users of older versions of GB-PVR, then create an UbuStream2 or something similar for 1.x.
Sounds like sound advice. Haven't quite given up yet but I'm getting very close to bailing and starting work on UbuStream2 instead.
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#28
2007-07-21, 10:36 AM
So I finally seem to have got UbuStream running in "compatible" mode with PVRX2. Smile (Turns out most of my problems were caused by using UNIX-style "/" path delimiters instead of "\" in my skin file. It seems that while gbpvr.exe is kind enough to interpret them, pvrx2.exe is not so forgiving).

There does seem to be a problem with the intended backward compatibility of mouse handling. The old-style OnClick() method seems to work fine with PVRX2 whereas the OnDoubleClick() method does not. In the DVDRipper sample plugin it states:

Quote: "The method or operation is not implemented. Not required with IUiTask plugins, but left for compatibility."
for both methods, which suggests they should both function OK in "compatibility" mode. But when my OnDoubleClick() is called, I get:

Quote:2007-07-21 03:20:03.156 VERBOSE [1] System.InvalidCastException: Unable to cast object of type 'UbuStreamPlugin.UbuStreamPluginTask' to type 'GBPVRX2.IUiTask'.
at GBPVRX2.MenuTask.x0be92cb4e3ac1817.OnUiDoubleClick(PointF location)
at GBPVRX2.x0061b801bdf12d35.xc3b72bade4bef6d8(Object xdf2e3583f942db7b, MouseEventArgs xc4f45905cb1fc7ba)
at System.Windows.Forms.Control.OnMouseDoubleClick(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at GBPVRX2.x0061b801bdf12d35.WndProc(Message& m)
I also notice that using the right mouse button will always exit the plugin immediately. Not sure if this is intentional. None of this is really a show-stopper, IMHO. (Surely GB-PVR users navigate with a remote control and only developers need to use a mouse.)

Another minor niggle is that the DisableScreenSaver() and EnableScreenSaver() methods of the pluginHelper no longer seem to be supported.
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#29
2007-07-21, 04:38 PM
ubu Wrote:There does seem to be a problem with the intended backward compatibility of mouse handling. The old-style OnClick() method seems to work fine with PVRX2 whereas the OnDoubleClick() method does not. In the DVDRipper sample plugin it states:

for both methods, which suggests they should both function OK in "compatibility" mode. But when my OnDoubleClick() is called, I get:
Ok, this is fixed for the next release.

Quote:I also notice that using the right mouse button will always exit the plugin immediately. Not sure if this is intentional. None of this is really a show-stopper, IMHO. (Surely GB-PVR users navigate with a remote control and only developers need to use a mouse.)
The right mouse button sends the escape key. This was the case with GBPVR.exe in the past also.

Quote:Another minor niggle is that the DisableScreenSaver() and EnableScreenSaver() methods of the pluginHelper no longer seem to be supported.
These methods work in the next release.
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#30
2007-07-21, 08:20 PM
Excellent! Thanks sub.
[SIZE=1]GBPVR v1.3.11 [/SIZE][SIZE=1]HVR-1250, [/SIZE][SIZE=1]ES7300[/SIZE][SIZE=1], 4GB, GeForce 9300, LianLi, Vista.[/SIZE]
[SIZE=1]GBPVR v1.0.08 [/SIZE][SIZE=1]PVR-150, [/SIZE][SIZE=1]P4 2.26GHz, [/SIZE][SIZE=1]1GB,[/SIZE][SIZE=1] GeForce 6200, [/SIZE]Coupden, XP[SIZE=1]
[/SIZE]

Author: UbuStream plugin, UbuRadio plugin, EPGExtra utility.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (9): « Previous 1 2 3 4 5 … 9 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,089 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,566 2020-11-14, 08:01 PM
Last Post: sub
  Test/Development environment for npvr.db3 scJohn 10 4,596 2020-09-04, 09:14 PM
Last Post: scJohn
  VIdeo playback from plugin mvallevand 5 3,647 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 3,012 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,881 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,332 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,029 2013-03-12, 06:48 AM
Last Post: psycik
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,867 2012-10-18, 08:35 PM
Last Post: osx-addict
  Plugin problems with started from the command line mvallevand 11 5,255 2012-08-12, 07:56 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode