NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 682 683 684 685 686 … 1231 Next »
Skinning Error

 
  • 0 Vote(s) - 0 Average
Skinning Error
mikaelgu
Offline

Member

Posts: 114
Threads: 25
Joined: Oct 2004
#1
2006-11-03, 09:06 AM
Why, oh why is GB-PVR trying to load background.jpg when I'm using "the new way" to draw a backround for the various screens?
Code:
<CompositeImage name="Background" size="720,480">
<DrawCompositeImage name="ScreenBackground" loc="0,0" size="720,480" parameters="@ScreenName=Recordings"/>
</CompositeImage>
is what's in my recordings screen and
Code:
<CompositeImage name="ScreenBackground" size="720,480">
<DrawRect loc="0,0" size="720,480" borderWidth="0" borderColor="White" fillColor="Black"/>
...
<DrawImage filename="..\_CoreImages\Background.png" loc="0,60" size="720,360"/>
<DrawImage filename="..\_CoreImages\logo.png" loc="0,470" size="101,55"/>
<DrawText text="@ScreenName" loc="5,5" size="320,30" textStyle="ScreenName" align="Left"/>
</CompositeImage>
is in BaseSkin. There is no reference to background.jpg anywhere in any of my screens. But still GB keeps calling it everytime I try to enter recordings...
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#2
2006-11-03, 12:05 PM
I can call background.png using your example with the recordings screen. Care to post your recordings skin.xml file and maybe your gbpvr.exe.log after duplicating the error?
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
mikaelgu
Offline

Member

Posts: 114
Threads: 25
Joined: Oct 2004
#3
2006-11-03, 12:17 PM
Yep, I get no errors from the code either, it works. Used it with .97 without problems. Thought I'd modernize it to more accurately match the code of sub's .98.13 Blue skin. I was working on Music Library but only got errors and attacked Recordings instead. Put my background definition in the BaseSkin (Main menu is still the way I had it in .97 and works great). Fired up GB and went into recordings. And what do I see; the blue background (I had copied over the entire _CoreImages folder). Renamed background.jpg and now it just tells me it isn't found...
Here's the log:
Code:
3.11.2006 11:03:06.562    ERROR    [1]    Error: msg=0x100 (WM_KEYDOWN) hwnd=0x4611a2 wparam=0xd lparam=0x1c0001 result=0x0  :  System.IO.FileNotFoundException: Could not find file 'C:\Program Files\devnz\gbpvr\skin\Green\_CoreImages\background.jpg'.
File name: 'C:\Program Files\devnz\gbpvr\skin\Green\_CoreImages\background.jpg'
   at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access)
   at GBPVR.Public.SkinHelper.getNamedImageNonCached(Image image, Boolean fillWithBackgroundColour, Color backgroundColour, String name, Hashtable parameters)
   at GBPVR.Public.SkinHelper.getNamedImageNonCached(Image image, Boolean fillWithBackgroundColour, Color backgroundColour, String name, Hashtable parameters)
   at GBPVR.Public.SkinHelper.getNamedImageNonCached(String name, Hashtable parameters)
   at GBPVR.Public.SkinHelper.getNamedImage(String name, Hashtable parameters)
   at GBPVR.x3222298a0181dd43.xe8986cd701ee31f4()
   at GBPVR.x3222298a0181dd43.Activate()
   at GBPVR.HorizontalMenuTask.OnKeyDown(KeyEventArgs e)
   at GBPVR.xbb1566157f5f8b1f.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 GBPVR.xbb1566157f5f8b1f.WndProc(Message& m)
And I swear, there's NO reference to background.jpg anywhere in any xml-file in my skin's folder(s).
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#4
2006-11-03, 12:39 PM
Quote:Renamed background.jpg and now it just tells me it isn't found...

????

Are you saying you just renamed the background.jpg image in the _CoreImages folder to background.png? That would create an invalid .png file if it wasn't converted in a graphics program (plus, it would be the blue background??).

could you copy background.png from your skin root directory to _CoreImages and see if it gives you the same problem.
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
mikaelgu
Offline

Member

Posts: 114
Threads: 25
Joined: Oct 2004
#5
2006-11-03, 01:28 PM
Nonononono
I've got my own png. I renamed the background.jpg to blue.jpg, so that there's no background.jpg to reference to.
Thing is; it doesn't matter what I call for in my code (which works, I don't get any errors from it) GB always seems to call for background.jpg to be drawn.
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#6
2006-11-03, 01:41 PM
Can you send me your skin so I can take a look?

This should be working, but there is something that is getting lost in this process.
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#7
2006-11-03, 01:58 PM (This post was last modified: 2006-11-03, 02:02 PM by Fatman_do.)
I copied the Blue skin and renamed it Green.
I edited the baseskin.xml file to call for background.png instead of background.jpg.

I placed a background.png in the _CoreImages folder (there is no background.jpg file now).

I set the active skin to Green.

Entered the Recordings plugin and get
[ATTACHMENT NOT FOUND]

It picks up the new background.

I delete the recordings folder from green to force it to use the xml's from blue.
I get the same results in the above picture.
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
Ted the Penguin
Offline

Posting Freak

Posts: 1,590
Threads: 64
Joined: Aug 2006
#8
2006-11-03, 02:16 PM
yeah, so I will say that gbpvr will correctly draw an image if the extension is wrong.

because i was lazy once, I just renamed a png background I had to background.jpg to see if it looked better (fewer compression artifacts) and it was drawn correctly.
Fatman_do
Offline

Posting Freak

Posts: 3,482
Threads: 95
Joined: Nov 2005
#9
2006-11-03, 03:14 PM
Did not know that. Thanks for the info Ted
Fatman_do
[SIZE="1"]
HTPC: AMD XP+2500, 512MB DDR (400) ~ Capture Device: Hauppage PVR-150
Storage: 30GB OS & Recording, 160GB Post Processing & Archive
Video Output: HD 32" TV via eVGA Geforce 6200le 256MB AGP DVI-HDMI cable out
Audio Output: Turtle Beach Riviera S/PDIF Optic Output (Digital pass thru only) to Home Theater Receiver[/SIZE]

[SIZE="2"]
Moderator | Tutorials | Community Skin | CommunitySkin-SVN[/SIZE]
Ted the Penguin
Offline

Posting Freak

Posts: 1,590
Threads: 64
Joined: Aug 2006
#10
2006-11-03, 04:24 PM
welcome, although as you said, its not proper practice to do such things. my guess is that you could remove the file's extension completely and it would still be drawn correctly, as it probably just looks at the file you pointed it at and assumes it is an image of some sort, then looks at the metadata or some other part of the file itself to determine what type of image
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  VMR9 Error message cristovao 7 5,900 2012-01-31, 07:35 AM
Last Post: SLR_65
  "Failed to submit the Tune Request to the Network Provider" Error? jksmurf 4 2,506 2010-12-17, 02:09 PM
Last Post: jksmurf
  Sudden Error Message when accessing gbpvr web interface classpro 0 1,565 2010-11-11, 11:59 PM
Last Post: classpro
  Can't cure the Error: 1904 problem rkircher 1 1,892 2010-11-10, 07:22 AM
Last Post: stustunz
  Unexpected error removing recording from conversion queue pvrproblems 1 1,605 2010-09-03, 03:51 AM
Last Post: sub
  Registry Error while installing PuffY 4 3,227 2010-08-16, 08:20 AM
Last Post: martint123
  EPG update error aibo 38 10,750 2010-07-23, 02:35 AM
Last Post: User
  Error 88760868 bezza 5 3,075 2010-07-18, 04:55 PM
Last Post: sub
  Windows 7 x64 installation problem - error 1603 in Event log psycik 0 1,861 2010-07-17, 04:31 AM
Last Post: psycik
  error: failure playing back file yonu 4 2,105 2010-07-12, 12:52 AM
Last Post: yonu

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

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

Linear Mode
Threaded Mode