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
Jeff
Offline

Posting Freak

Posts: 1,933
Threads: 69
Joined: Oct 2004
#11
2007-07-12, 11:20 PM
In GBPVR all keys used to go to the plug-ins OnKeyDown() handler. In PVRX2 Menu does not make it. I've tried it in both my new weather plug-in and in the old video archive plug-in. I hope your "out of town" is for fun not work.

Jeff
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#12
2007-07-12, 11:35 PM
Jeff Wrote:I've tried it in both my new weather plug-in and in the old video archive plug-in. I hope your "out of town" is for fun not work.
Yeah, fun not work. A bit of a mid-winter christmas get together with the family - thought that PC and broadband connection I organised for my mother in law is proving useful for killing a bit of downtime. (need my internet fix every so often)
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#13
2007-07-14, 06:49 PM
Does the config app look for config forms of the new style plugins? The new version of International Cinema has a GetConfigFormInstance() method but the settings button on the config app stays disabled.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#14
2007-07-15, 01:55 AM (This post was last modified: 2007-07-15, 05:45 AM by idkpmiller.)
I used to be able to use sharp develop to convert examples from c# to vb and it worked flawlessly. I have seen that PVRx2 is far more critical of errors

to get the hello world example working I have had to change a few things, it didnt like the sub handlePopupCallback(ByVal popup As Object, ByVal command As String) without me addind Implements IUiPopupCallback.handlePopupCallback at the end.


Also warnings of double to string now stop the plugin from working here is an example from hello world.

this is the conversion:

item.AddProperty("@name", "some name " + i)
item.AddProperty("@filename", "item.png")
item.AddProperty("@someContextInfo", "item:" + i)

The first line has a warning of "implicit conversion from string to double"
The third line has a warning of "implicit conversion from string to double"

By changing the lines to the following:

item.AddProperty("@name", "some name " + CStr(i))
item.AddProperty("@filename", "item.png")
item.AddProperty("@someContextInfo", "item: " + CStr(i))

This removes the warnings and the plugin now works in VB, prior to this it would enter, then flash up the left hand buttons and then drop back to the main menu. the error report in the log file looks like this:


2007-07-15 13:19:17.921 VERBOSE [1] PopulateListWidget
2007-07-15 13:19:18.062 VERBOSE [1] ReturnToMainMenu()
2007-07-15 13:19:18.062 VERBOSE [1] GameZone is currently active
2007-07-15 13:19:18.062 VERBOSE [1] GameZone.Deactivate() called
2007-07-15 13:19:18.062 VERBOSE [1] UiList.GetRenderList()
2007-07-15 13:19:18.062 VERBOSE [1] loading /settings/Placements/Placement[@name="DetailsView"]
2007-07-15 13:19:18.078 VERBOSE [1] Creating new GBPVRUiElement (normal)
2007-07-15 13:19:18.078 VERBOSE [1] Creating new GBPVRUiElement (normal)
2007-07-15 13:19:18.078 VERBOSE [1] Creating new GBPVRUiElement (normal)
2007-07-15 13:19:18.078 VERBOSE [1] Creating new GBPVRUiElement (normal)
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = ScreenName alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = no items messge alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = button-Button 1 alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = button-Button 2 alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = button-Button 3 alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = button-Main Menu alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] ReturnToMainMenu()@2
2007-07-15 13:19:18.093 VERBOSE [1] System.InvalidCastException: Conversion from string "item:" to type 'Double' is not valid. ---> System.FormatException: Input string was not in a correct format.
at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
--- End of inner exception stack trace ---
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value)
at GameZone.GameZone.GameZoneTask.PopulateListWidget() in H:\GB-PVR\GBPVR1.x\GameZone v3.0\plugins\GameZone\Source\GameZone.vb:line 42
at GBPVRX2.BaseButtonListUiTask.initialise()
at GBPVRX2.BaseButtonListUiTask.Activate()
at GBPVRX2.MenuTask.xd2a3a83a17aec615.OnKeyDown(KeyEventArgs e)
at GBPVRX2.x0061b801bdf12d35.xdae9991ab918b397(Object xdf2e3583f942db7b, KeyEventArgs xc4f45905cb1fc7ba)
at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
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)
2007-07-15 13:19:18.093 VERBOSE [1] UiList.GetRenderList()

========================

Is PVRx2 set to fail on more errors than GBPVR?

I am also getting a confused with what should handle the key presses when I select an item from the left-hand list; is it OnKeyDown, handleCommand or something else?

These are my initial findings from a VB perspective, I do appreciate that I am far in the minority by developing in VB and not c# but cant be bothered changing to c# as I am not likely to use it for anything other than GBPVR.

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,677
Threads: 767
Joined: Nov 2003
#15
2007-07-15, 10:52 PM
McBainUK Wrote:Does the config app look for config forms of the new style plugins? The new version of International Cinema has a GetConfigFormInstance() method but the settings button on the config app stays disabled.
Yes, it looks in subdirectories. If you bump this thread in a couple of days, I'll take a look when I'm back home.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,677
Threads: 767
Joined: Nov 2003
#16
2007-07-15, 10:56 PM
idkpmiller Wrote:I used to be able to use sharp develop to convert examples from c# to vb and it worked flawlessly. I have seen that PVRx2 is far more critical of errors

to get the hello world example working I have had to change a few things, it didnt like the sub handlePopupCallback(ByVal popup As Object, ByVal command As String) without me addind Implements IUiPopupCallback.handlePopupCallback at the end.


Also warnings of double to string now stop the plugin from working here is an example from hello world.

this is the conversion:

item.AddProperty("@name", "some name " + i)
item.AddProperty("@filename", "item.png")
item.AddProperty("@someContextInfo", "item:" + i)

The first line has a warning of "implicit conversion from string to double"
The third line has a warning of "implicit conversion from string to double"

By changing the lines to the following:

item.AddProperty("@name", "some name " + CStr(i))
item.AddProperty("@filename", "item.png")
item.AddProperty("@someContextInfo", "item: " + CStr(i))

This removes the warnings and the plugin now works in VB, prior to this it would enter, then flash up the left hand buttons and then drop back to the main menu. the error report in the log file looks like this:


2007-07-15 13:19:17.921 VERBOSE [1] PopulateListWidget
2007-07-15 13:19:18.062 VERBOSE [1] ReturnToMainMenu()
2007-07-15 13:19:18.062 VERBOSE [1] GameZone is currently active
2007-07-15 13:19:18.062 VERBOSE [1] GameZone.Deactivate() called
2007-07-15 13:19:18.062 VERBOSE [1] UiList.GetRenderList()
2007-07-15 13:19:18.062 VERBOSE [1] loading /settings/Placements/Placement[@name="DetailsView"]
2007-07-15 13:19:18.078 VERBOSE [1] Creating new GBPVRUiElement (normal)
2007-07-15 13:19:18.078 VERBOSE [1] Creating new GBPVRUiElement (normal)
2007-07-15 13:19:18.078 VERBOSE [1] Creating new GBPVRUiElement (normal)
2007-07-15 13:19:18.078 VERBOSE [1] Creating new GBPVRUiElement (normal)
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = ScreenName alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = no items messge alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = button-Button 1 alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = button-Button 2 alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = button-Button 3 alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] FadeThrough item = button-Main Menu alpha = 216 stage = 15
2007-07-15 13:19:18.078 VERBOSE [1] ReturnToMainMenu()@2
2007-07-15 13:19:18.093 VERBOSE [1] System.InvalidCastException: Conversion from string "item:" to type 'Double' is not valid. ---> System.FormatException: Input string was not in a correct format.
at Microsoft.VisualBasic.CompilerServices.Conversions.ParseDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
--- End of inner exception stack trace ---
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value, NumberFormatInfo NumberFormat)
at Microsoft.VisualBasic.CompilerServices.Conversions.ToDouble(String Value)
at GameZone.GameZone.GameZoneTask.PopulateListWidget() in H:\GB-PVR\GBPVR1.x\GameZone v3.0\plugins\GameZone\Source\GameZone.vb:line 42
at GBPVRX2.BaseButtonListUiTask.initialise()
at GBPVRX2.BaseButtonListUiTask.Activate()
at GBPVRX2.MenuTask.xd2a3a83a17aec615.OnKeyDown(KeyEventArgs e)
at GBPVRX2.x0061b801bdf12d35.xdae9991ab918b397(Object xdf2e3583f942db7b, KeyEventArgs xc4f45905cb1fc7ba)
at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
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)
2007-07-15 13:19:18.093 VERBOSE [1] UiList.GetRenderList()

========================

Is PVRx2 set to fail on more errors than GBPVR?

I am also getting a confused with what should handle the key presses when I select an item from the left-hand list; is it OnKeyDown, handleCommand or something else?

These are my initial findings from a VB perspective, I do appreciate that I am far in the minority by developing in VB and not c# but cant be bothered changing to c# as I am not likely to use it for anything other than GBPVR.

Cheers
I dont think this is PVRX2 failing, but rather your C# to VB.Net conversion getting it wrong. The stack trace shows some conversion error occurring in your implementation of the PopulateListWidget() method. Unfortunately I'm no expert in VB.Net, so cant tell you the exact format for what these lines should look like.

Quote:at GameZone.GameZone.GameZoneTask.PopulateListWidget() in H:\GB-PVR\GBPVR1.x\GameZone v3.0\plugins\GameZone\Source\GameZone.vb:line 42
So what exactlly is one line 42?

If you want to attach your VB converted sample, I'll see if I can find the cause for you.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#17
2007-07-16, 05:51 AM
sub Wrote:Yes, it looks in subdirectories. If you bump this thread in a couple of days, I'll take a look when I'm back home.
Don't worry it was my fault - was doing the age old trick of trying to use the pluginhelper in the config form. Rolleyes
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#18
2007-07-16, 11:00 AM (This post was last modified: 2007-07-16, 11:15 AM by idkpmiller.)
sub Wrote:I dont think this is PVRX2 failing, but rather your C# to VB.Net conversion getting it wrong. The stack trace shows some conversion error occurring in your implementation of the PopulateListWidget() method. Unfortunately I'm no expert in VB.Net, so cant tell you the exact format for what these lines should look like.

So what exactlly is one line 42?

If you want to attach your VB converted sample, I'll see if I can find the cause for you.

Line 42 was the first string to double line. so thats fine now I worked that out by converting the integer to a string (CStr), still not sure how to get the information from a selected list item. I used to pass all my key presses onto gbpvrUiElements_OnKeyDown, I think once I have that I can start the conversion process. imcidentally the first thing that doesnt work when you try GameZone in PVRx2 is that selecting a game in the list drops you out back to the main menu, I was wondering if the keymappings file needs moving as well as the plugin dll?
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,677
Threads: 767
Joined: Nov 2003
#19
2007-07-16, 10:24 PM
idkpmiller Wrote:imcidentally the first thing that doesnt work when you try GameZone in PVRx2 is that selecting a game in the list drops you out back to the main menu, I was wondering if the keymappings file needs moving as well as the plugin dll?
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.
ubu
Offline

Posting Freak

Posts: 792
Threads: 54
Joined: Jan 2006
#20
2007-07-17, 05:22 AM
Is there something different about PVRX2's invocation of the needsRendering() method? My plugin produces the following (repeated about a zillion times) in the PVRX2.exe.log:

Code:
2007-07-16 12:44:20.218    ERROR    [1]    Unexpected error: System.NullReferenceException: Object reference not set to an instance of an object.
   at UbuStreamPlugin.UbuStreamPluginTask.needsRendering()
   at GBPVRX2.MenuTask.x0be92cb4e3ac1817.needsRendering()
   at GBPVRX2.MenuTask.xd2a3a83a17aec615.needsRendering()
   at GBPVRX2.x0061b801bdf12d35.xdb012c437aec4a40(Boolean xd23bf32f3b17e3be)
   at GBPVRX2.xb979ad394703258e.xfb409e85bd292293(String[] xf18a926310372520)
I don't have very much going on in the offending method:

Code:
public bool needsRendering()
        {
            if (menuButtons.Result != null) return true;
            // Add UbuStreamPluginTask.needsRendering implementation, if needed
            if (renderRequested == true)
            {
                renderRequested = false;
                return true;
            }
            return false;
        }
menuButtons is initialized in the Activate() method. renderRequested is a class variable that's initialized to false. What could go wrong?

I'm experiencing "hardware hell" at the moment so don't have a 1.0.08 environment set up. But two people have reported getting the same message in their logs (followed by the white screen of death with the dreaded red X). I'm a bit tired (from repeatedly hitting my NIC card with a hammer and shouting at it) so I may be missing something obvious here, but I'd sure appreciate any ideas.
[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 2,801 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,341 2020-11-14, 08:01 PM
Last Post: sub
  Test/Development environment for npvr.db3 scJohn 10 4,282 2020-09-04, 09:14 PM
Last Post: scJohn
  VIdeo playback from plugin mvallevand 5 3,448 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,892 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,766 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,071 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,945 2013-03-12, 06:48 AM
Last Post: psycik
  Integrated Development Environment (IDE) for plugins osx-addict 5 2,750 2012-10-18, 08:35 PM
Last Post: osx-addict
  Plugin problems with started from the command line mvallevand 11 4,972 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