NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
1 2 3 4 5 … 93 Next »
Plugins and NPVR. Where do we start?

 
  • 0 Vote(s) - 0 Average
Plugins and NPVR. Where do we start?
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#61
2014-12-23, 07:24 PM
I'm looking for the sample plugin zip files but can't seem to locate them, where can I get them from? Thanks!
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,772
Threads: 769
Joined: Nov 2003
#62
2014-12-23, 07:38 PM
Here is the most relevant sample.
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#63
2014-12-23, 09:35 PM
sub Wrote:Here is the most relevant sample.

Thanks, now comes the fun part, seeing if I can translate it to VB from C#. If I get it working, I'll post it for those who use VB.
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#64
2014-12-23, 10:14 PM
Ok, the C# project is complaining it can't find the NUtility project. The using clauses for NUtility are erred as would be expected, so I tried adding a reference the the DLL in the NPVR directory for both NUtility and NShared, didn't fix it. Any ideas why?

One more question, when you start a project for a new plugin, what type of project to you select? I would think Class Library but I'm not sure. I ask because translating the code is the simple part, there's a utility out on the web that does it for me but it doesn't convert project files.

Appreciate any help you could give.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,772
Threads: 769
Joined: Nov 2003
#65
2014-12-23, 10:55 PM
Quote:Ok, the C# project is complaining it can't find the NUtility project. The using clauses for NUtility are erred as would be expected, so I tried adding a reference the the DLL in the NPVR directory for both NUtility and NShared
Yes, you'd need to do that. The locations of NUtility.dll and NShared.dll are different on my development machine, so you need to point them to these DLLs on your machine.

Quote:didn't fix it. Any ideas why?
No, not really. What exactly does it say?

Quote:One more question, when you start a project for a new plugin, what type of project to you select? I would think Class Library but I'm not sure.
Yes, the plugins are a Class Library.
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#66
2014-12-24, 06:11 AM
sub Wrote:Yes, you'd need to do that. The locations of NUtility.dll and NShared.dll are different on my development machine, so you need to point them to these DLLs on your machine.

No, not really. What exactly does it say?

When I select NUtlity from the programs directory as shown in the first screen shot and click ok, the red underline error indicators don't clear. I go back in to add reference again and the box is unchecked. But if I check NShared it stays checked.
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#67
2014-12-24, 06:34 AM
Ok, I created a empty class project and added the translated files and a reference to NUtility that stayed checked and I've got it down to a total of 6 errors. I'm not done diggin into the erros but am hoping someone out there has seen the errors and knows how to resolve them so I don't have to reinvent the wheel
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,772
Threads: 769
Joined: Nov 2003
#68
2014-12-24, 05:02 PM
I think whatever C# -> VB.NET translator you passed the code through, hasn't got it quite right.

You'll probably need to post the code it generated for me to have chance at helping you with those remaining errors. I'm guessing there is only a few small issues.
cbgifford
Offline

Member

Posts: 189
Threads: 20
Joined: Aug 2014
#69
2014-12-24, 05:17 PM
Appreciate the help on it
Chris


Server - Intel Core I3-3210 @ 3.40GHz - 8 GB RAM - Windows 10.0 Pro - Total Storage - 5.4 TB
Two Silicondust HD Prime CC capture, 6 tuners total
Client - Intel Core I3-3210 @3.2GHz - 4GB Ram - Windows 7.0 Pro
Client - Intel Core I3-3210 @2.9GHz - 4GB Ram - Windows 10.0 Pro
NAS - Intel Core I3-3220T @ 2.8GHz - 4GB RAM - Windows 10.0 Pro (Total Storage - 25 TB)


sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,772
Threads: 769
Joined: Nov 2003
#70
2014-12-24, 06:29 PM
I'm not going to have much time today, but I'll try give pointers on a couple of these.

On the first error, about event Load, I think you need to delete the "Me.Load += New System.EventHandler(Me.SettingsForm_Load)" line entirely, and instead make sure the method declaration includes:

Quote:Private Sub SettingsForm_Load(sender As Object, e As EventArgs) Handles MyBase.Load
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (9): « Previous 1 … 5 6 7 8 9 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  API channel.stream.start mvallevand 2 1,430 2023-05-07, 09:40 PM
Last Post: mvallevand
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,430 2021-03-11, 03:59 PM
Last Post: mvallevand
  Test/Development environment for npvr.db3 scJohn 10 4,487 2020-09-04, 09:14 PM
Last Post: scJohn
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,520 2018-10-23, 07:24 AM
Last Post: almightyj
  ios app to control npvr ui idea jnbooker15 4 3,676 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,516 2015-09-21, 06:39 PM
Last Post: jnbooker15
  I want to start developing plugins...but how? OrenShapir 6 4,139 2014-11-18, 10:38 PM
Last Post: mvallevand
  Couple of questions about hacking npvr.db3 drmargarit 6 4,322 2014-09-08, 02:22 AM
Last Post: sub
  Absolute newbie trying to realize an idea - where to start? Oopsjoppe 13 5,742 2013-11-11, 05:33 PM
Last Post: Oopsjoppe
  high res (256x256+) npvr icon? reven 15 5,969 2013-09-01, 05:13 AM
Last Post: psycik

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

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

Linear Mode
Threaded Mode