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 »
Newbies needs help writing plugin!

 
  • 0 Vote(s) - 0 Average
Newbies needs help writing plugin!
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#11
2008-11-27, 05:27 AM
I have added the DVDripper VB src to the wiki which includes the fix requested by a user.

Here is my vb.net version of the Wiz skeleton plugin which should help you working with the new style UI which DVDripper does not use.

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

[Image: 1299379.png]
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#12
2008-11-28, 04:37 PM
JavaWiz Wrote:At that point, you can interrogate (or change) variables, single step, reset the execution point,...

Well, I haven't had a chance to try these steps, but have chatted with idkpmiller who codes with ms vb.net and he can't get this technique to work. I'll try and maybe we can figure something out.

I'm not sure if I'll have the patience for coding 'blindly' and reading logs. That's sort of the state of skin editing, and I gave up on that until I could see a GUI ...

I think once I do get it up and running, it might be time for a wiki page (The absolute beginnners guide, from nothing to startup, one for really, really new .net programmers)
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
Sheik Yerbouti
Offline

Posting Freak

Posts: 922
Threads: 77
Joined: Jul 2006
#13
2008-11-28, 06:25 PM
If you're having trouble with the $(GBPVR) parameter (I did), you can just enter the full path of you're install directory there. I found out you also need to enter the debug path in the csproj file. I've added/changed the following line:
Code:
<OutputPath>c:\program files\devnz\gbpvr\plugins\xxxxxxxx\</OutputPath>
where xxxxxxxx is the name of my plugin.
And I've created a user file with:
Code:
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <StartAction>Program</StartAction>
    <StartProgram>C:\program files\devnz\gbpvr\pvrx2.exe</StartProgram>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug Config|AnyCPU' ">
    <StartAction>Program</StartAction>
    <StartProgram>C:\program files\devnz\gbpvr\config.exe</StartProgram>
  </PropertyGroup>
</Project>

Hope this helps!
Chris
[SIZE="1"]i5 750 4GB RAM, Windows 10 Home, HDHomeRun HDHR3-4DC, Digital Devices Cine CT, OSCam on a Raspberry Pi with a Smargo Smartreader+, Raspberry Pi 2 OpenElec Kodi client, Gigabyte Brix 2807 OpenElec Kodi client[/SIZE]
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#14
2008-11-28, 06:35 PM
zehd Wrote:I'm not sure if I'll have the patience for coding 'blindly' and reading logs. That's sort of the state of skin editing, and I gave up on that until I could see a GUI ...
There's no doubt that IDE debugging is a major benefit, but depending on the nature of the plugin, you may want to be generating some logging information anyway. If you make the plugin public, it's always useful for solving problems that end-users come across.

In particular I'd recommend you use try/catch blocks around all sections of code that could throw an exception and at least make use of the native GB-PVR Logger. Something like...
Code:
private void MyMethod()
{
    try
    {
        // Method code
    }
    catch (Exception e)
    {
        Logger.Verbose("MyMethod() threw exception: " + e.Message + e.StackTrace
    }
}
...or whatever the equivalent is in VB.NET.

If you include the .pdb file in your plugin distribution, this will log the line number and code filename where the exception was thrown. I agree that wading through large logfiles is a bind, but if you log an exception in that way it stands out big time and the line number will take you straight to the problematic code.

If you're going to do that, make sure you take a copy of your source code whenever you make a new version available. If you don't, and you then modify your code, the line numbers reported for logged exceptions may not match your current code files.

Not that I've ever forgotten to keep a copy of course. :o

CHeers,
Brian
zehd
Offline

Posting Freak

Posts: 5,119
Threads: 249
Joined: Feb 2006
#15
2008-11-28, 06:42 PM
Because of all the C# heads here, I'm wondering if I should at least become versed in starting a project in C and then converting, and becoming versed in the errors that mostly happen

And then when I recognize that there are the same damn conversion errors, and they're all in the damn xml files, I'll write a VB6 program that will rewrite the xml, so the VB Project will start...

And then of course I'll write a wiki page. Of course...
Frank Z
[COLOR="Gray"]
I used to ask 'why?' Now I just reinstall...
[SIZE="1"]______________________________________________
Author: ZTools: ZProcess, MVPServerChecker; UltraXMLTV Enhancer, Renamer, Manager; [/SIZE]
[/COLOR]
idkpmiller
Offline

Posting Freak

Posts: 817
Threads: 141
Joined: May 2006
#16
2008-11-28, 11:20 PM
well trying with and without $GBPVR I get the same error.

Any suggestions?
Let the Games begin...Round 2!
GameZone v2.9.6 - PVRx2 1.4.7 compatible!

[Image: 1299379.png]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#17
2008-11-29, 07:45 AM
Have you created the user file like in post #13?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#18
2008-11-29, 05:39 PM
idkpmiller Wrote:well trying with and without $GBPVR I get the same error.

Any suggestions?
Make sure in project Properties dialog, when you have the desired Configuration and Platform set, on 'Build' page, click 'Advanced..." button, insure 'Debug Info' is set to full.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,803 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,342 2020-11-14, 08:01 PM
Last Post: sub
  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,073 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
  Plugin problems with started from the command line mvallevand 11 4,972 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,236 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,425 2012-01-15, 08:33 PM
Last Post: imilne

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

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

Linear Mode
Threaded Mode