NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 88 89 90 91 92 93 Next »
Skin creation - task.png problems

 
  • 0 Vote(s) - 0 Average
Skin creation - task.png problems
tieke
Offline

Senior Member

Posts: 450
Threads: 72
Joined: Jul 2004
#1
2004-07-31, 09:27 AM
Hi all, have just found GBPVR, which is such a great application it has caused me to send off for a Hauppage-250 to go with my MVP.

While waiting for it to arrive, I'm just setting up a skin using "Flat-Blue" as a base in order to make the various screens easier to read on my 29" TV from across the room. I'm slowly getting there, except I have problems with getting the task images to show for three of the plugins I have installed (cartoons, picture and disk space) although it works fine with the weather plugin.

ie. I have set the Special Element TaskImage to visible in my main menu skin.xml, and have created 250x180 icons for all the menu options, which all work perfectly until you hit one of those three plugins, at which point the MVP just crashes, or, more informatively the internal GBPVR gives the following exception text:

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
  at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
  at bv.d()
  at bv.a(String A_0)
  at bv.a(Message& A_0)
  at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

etc

I have placed task.png images into the appropriate three directories - whereabouts do I have to go to let GBPVR know this?

thanks,

Simon

ps. I'm also looking for where I go to update the TaskDescriptions - basically I want to change the Search Guide description to "Search...for your favourite shows" rather than "...you favourite shows".
[SIZE="1"]Gigabyte GA-MA69GM-S2H motherboard, HD6450, Athlon X2 4800+, Ninja Mini cooler, 1Gig RAM, Antec Fusion Case, 2xHauppauge HVR-3000 DVB-S, win7, 1 MVP[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2004-07-31, 05:14 PM
The reason its crashing is because GB-PVR was expecting all plugins would return a task image when requested, but to cut corners (because they were never view with any current skin) these plugins aren't returning a picture. I've just made a change a few days ago to make sure this doesnt cause a crash. This'll be in the next release.

The reason GB-PVR was asking the plugin (even internal ones like Video Library etc) for the image instead of looking for a file it itself, was so that the plugins could generate dynamic image if required. This might be useful for update the user about the status of some etc.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#3
2004-07-31, 05:15 PM
BTW, fixed the typo. Thanks for pointing it out.
tieke
Offline

Senior Member

Posts: 450
Threads: 72
Joined: Jul 2004
#4
2004-07-31, 11:32 PM
Cool - I'll carry on playing around then, and just leave those plugins disabled for now. Thanks again for a great programme. (and I must say, as someone else who lives in Wellington, it was a nice change to have some default settings preconfigured correctly [Image: wink.gif] ).
[SIZE="1"]Gigabyte GA-MA69GM-S2H motherboard, HD6450, Athlon X2 4800+, Ninja Mini cooler, 1Gig RAM, Antec Fusion Case, 2xHauppauge HVR-3000 DVB-S, win7, 1 MVP[/SIZE]
tieke
Offline

Senior Member

Posts: 450
Threads: 72
Joined: Jul 2004
#5
2004-08-21, 04:55 AM
I may be missing something, but I have downloaded the latest version, which does fix the task-image crashing problems, but despite task.png images being in the relevant folders I still can't get the task-images displayed in the diskspace, pictures, comics or news-feeds plugins (had a small hiccup with the jukebox task image as well - displayed a few error messages the first time, but has since displayed the image correctly).

Is there something I should do to enable the task images to display for these plugins?
[SIZE="1"]Gigabyte GA-MA69GM-S2H motherboard, HD6450, Athlon X2 4800+, Ninja Mini cooler, 1Gig RAM, Antec Fusion Case, 2xHauppauge HVR-3000 DVB-S, win7, 1 MVP[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#6
2004-08-21, 05:30 AM
It currently working as I meant it to. GB-PVR asks the plugin if it has a task image. The plugin can return an image 'if it wants to' and GB-PVR will display it. What you're seeing these extra plugins are not returning a task image. Not all of the plugins were written by me, and many of them dont return a task image.

That said, I know this answer doesn't help what you are trying to do, so I've added one more piece of logic to GB-PVR: If the plugin doesn't return an image, check if there is a task.png in the plugins skin subdirectory and use it if present. This is not how I'd intended things to function, but probably wont hurt things as none of the current plugins dynamically generate their task image to date.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2004-08-21, 05:31 AM
This will be included in the next release.
tieke
Offline

Senior Member

Posts: 450
Threads: 72
Joined: Jul 2004
#8
2004-08-21, 06:00 AM
Cool. That should do it. Would it be helpful for me to send you the task images I am using for you to include them in your blue skin for testing purposes?
[SIZE="1"]Gigabyte GA-MA69GM-S2H motherboard, HD6450, Athlon X2 4800+, Ninja Mini cooler, 1Gig RAM, Antec Fusion Case, 2xHauppauge HVR-3000 DVB-S, win7, 1 MVP[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#9
2004-08-21, 06:07 AM
Yeah, send them over. I'd love to take a look.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Skin help (correct location?) SFX Group 4 3,830 2018-01-24, 07:42 AM
Last Post: pBS
  custom creation of a recurring error p37307 2 2,203 2017-12-19, 03:45 AM
Last Post: mvallevand
  Problems with Windows UWP App spitefulgod 4 3,765 2016-12-15, 08:35 PM
Last Post: spitefulgod
  skin question pBS 2 3,307 2016-06-18, 07:03 PM
Last Post: pBS
  Skin - view further into the future, scale the guide Vitenka 5 3,228 2014-11-26, 07:28 PM
Last Post: Vitenka
  Key press problems imilne 13 4,804 2013-01-02, 04:05 PM
Last Post: imilne
  Plugin problems with started from the command line mvallevand 11 4,931 2012-08-12, 07:56 PM
Last Post: sub
  Skin element Details in NowNext Jaggy 2 1,772 2011-09-19, 11:50 PM
Last Post: Jaggy
  Skin Help with Line Drawing Northpole 2 1,880 2011-07-19, 05:14 PM
Last Post: Northpole
  Anyone interested in developing a Skin Plugin? Hairy 13 4,925 2011-07-10, 04:13 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode