PDA

View Full Version : NetRemote - TvGuide XMLTV problem.



vitello
March 30th, 2008, 12:13 AM
This is a great plugin, but I am having problems reading the time and listing information on my PPC (Dell Axim x51v). I am using NetRemote 2 build 2.0.0.111. The time listing font size is too large for the text box and is impossible to read. Is there a way to either change the font or the text boxes? This primarily a problem on my PPC. The PC client version of NetRemote seems to be using a much smaller font size and shows much more text than the PPC version.

Thanks for any help.

Peter

curtiswren
March 30th, 2008, 01:22 PM
Is there anyway you could post a screenshot? I'm using this on a Dell Axim x51v also and the font looks good.

Ron, I'm getting the font by using the following:

CFont* font = m_netremote->GetFont( m_pCCFbutton->GetFontSize()-1);

When I change the font on the button using designer, it doesn't seem to change the font that gets used. I can't remember where I got the above. Does this seem right to you?

Curt

vitello
March 30th, 2008, 02:24 PM
Curt,

Thanks for the quick reply. If you compare the screenshot on the left from my PPC and my PC client on the right you can see how much bigger the font is on the PPC. The PC client shows a lot of text and the time info is clearly visible.

peter

curtiswren
March 30th, 2008, 05:42 PM
There should be two sets of bitmaps for the grid cells. I can't remember if I ever posted the ones for the 480x640 resolution. I've added these to the xmltv.zip on the downloads page. I think it may take a day or two to make it there, so I've attached them here. Overwrite these files on your PPC. On the PPC, I only get 3 columns (1 1/2 hours) and 8 rows on a screen.

vitello
March 30th, 2008, 09:17 PM
Curt,

The larger set of bitmaps for the grid cells makes the text much, much better on my PPC. Thanks.

I have two requests/suggestions. In the channel column it would be really nice if the sub-channel number were shown (i.e. 2, 2-1, 2-2 instead of 2, 2, 2). Also, the station names now are often more than 4 characters and the longer names don't fit very well. I would suggest a smaller font for the channel text.

The plugin is great and very useful as it stands. If it isn't too much trouble to modify the channel column it would be even better.

Thanks for the help.

Peter

Rob H
March 31st, 2008, 02:45 AM
Is there anyway you could post a screenshot? I'm using this on a Dell Axim x51v also and the font looks good.

Ron, I'm getting the font by using the following:

CFont* font = m_netremote->GetFont( m_pCCFbutton->GetFontSize()-1);

When I change the font on the button using designer, it doesn't seem to change the font that gets used. I can't remember where I got the above. Does this seem right to you?

Curt
Hmm.. rather than using m_netremote->GetFont() you should probably use m_pCCFButton->GetFont() which will have the scaling applied already and will also use any font assigned to the button rather than the font set in NR's properties.

curtiswren
March 31st, 2008, 03:35 PM
Rob,

I changed it to use m_pCCFButton->GetFont() which works, but when I select the smallest font on designer, it still comes out the same size as Peter's most recent snapshot. Do you know how I can get a smaller font. If I pick larger fonts, they do come out larger, so I know it's grabbing the selected font. It seems to be doing some scaling like you mention.

Peter,

I haven't seen sub-channels before. Is that the name of the field in the xml file? What I try to do is map all the channels to an icon. If you put an icon in the bitmaps directory with the channel name and .png as the suffix, it will display that. As you can see from the above note to Rob, I'm having trouble getting a smaller font.

Curt

vitello
March 31st, 2008, 07:13 PM
Curt,

Concerning sub-channels, the sub-channel number is the value after the dash for digital broadcast stations. If you look at the last screenshot I posted you can see that there are three listings for channel 2 in the left column. They correspond to the actual channels
2-1 KTVUDT
2 KTV
2-2 KTVUDT2

The -1 and -2 are the sub-channel numbers. In the xml file the data for three channels is

<channel id="I50439.labs.zap2it.com">
<display-name>2-2 KTVUDT2</display-name>
<display-name>2-2 KTVUDT2 PC:94552</display-name>
<display-name>2-2</display-name>
<display-name>56 KTVUDT2 fcc</display-name>
<display-name>KTVUDT2</display-name>
<display-name>KTVUDT2 (KTVU-DT2)</display-name>
<display-name>Fox Affiliate</display-name>
</channel>

<channel id="I50439.labs.zap2it.com">
<display-name>2-2 KTVUDT2</display-name>
<display-name>2-2 KTVUDT2 PC:94552</display-name>
<display-name>2-2</display-name>
<display-name>56 KTVUDT2 fcc</display-name>
<display-name>KTVUDT2</display-name>
<display-name>KTVUDT2 (KTVU-DT2)</display-name>
<display-name>Fox Affiliate</display-name>
</channel>

<channel id="I50439.labs.zap2it.com">
<display-name>2-2 KTVUDT2</display-name>
<display-name>2-2 KTVUDT2 PC:94552</display-name>
<display-name>2-2</display-name>
<display-name>56 KTVUDT2 fcc</display-name>
<display-name>KTVUDT2</display-name>
<display-name>KTVUDT2 (KTVU-DT2)</display-name>
<display-name>Fox Affiliate</display-name>
</channel>

Your plugin seems to be dropping the -1 and -2 values. What would be very nice would be for the full channel numbers (2, 2-1, 2-2) to be displayed so that they could be told apart a bit more easily. I agree that unique names for ions would show the separate channels also.

Thanks again for looking into this.

Peter

curtiswren
April 5th, 2008, 08:05 AM
Peter, I'll try to have a look at the subchannels this weekend. What numbers to you press on your remote control to change to these channels?

vitello
April 6th, 2008, 05:21 PM
Curt,

What I found works for subchannels with my DishNetwork receiver is sending five digit numbers starting with zeros. So for channel 9-1 I would send 0 0 9 0 1. The zeros are needed to distinguish 9-1 from say channel 91 or 901. My tv receiver is setup to watch both over the air digital stations like 9-1 and satellite channels like 901. What I actually do is send strings like 'PBS.1' from NR to G5 and have G5 send the individual IR commands out. I'd be willing to modify my G5 GML file to accept any event strings you want to use.

Thanks for the help.

Peter

vitello
April 6th, 2008, 07:00 PM
Curt,

I am not able to get your new xmltv plugin to work with NR 115. I am using your ccf file. When I click on your TVGuide button on the Cable page NR crashes. The G5 log display shows

OnScroll Lua Success (Nothing Triggered)
Communication Server xmltv_scroll
GetGrid Lua Success (Nothing Triggered)
xmltv date convert from 06.04.2008/22:30:00 to 20080406223000
.
.
.
xmltv date convert from 06.04.2008/20:00:00 to 20080406200000
xmltv date convert from 06.04.2008/19:30:00 to 20080406193000
GetGrid 192.168.1.101
Communication Server xmltv_get
Communication Server switchCable


The Interactive Lua Console shows

pld3=06.04.2008/19:30:00,1,17,7

Any suggestions?

Peter

P.S.

The curt.ccf with your xmltv plugin zip file seems to be using the non-DM customweather variables that aren't working with G5. Using G5 I don't get any weather data in the new curt.ccf. It was working with the old curt.ccf. By the way I like the way you are using the customweather icon + current temperature as a button in your header. I copied that idea into my ccf.

curtiswren
April 8th, 2008, 04:50 PM
Peter, is this PC or PPC version? Did you open the properties box for this plugin?

vitello
April 9th, 2008, 11:18 PM
Curt,

I am having problems on both my PC client and my PPC NR. On the NR PC client, when I click on your TVGuide button the grid is loaded with the time data across the top and then NR crashes with a windows error message. On my PPC the grid frame is not loaded. The PPC does not crash however. I opened the properties box for this plugin on NR and the Bmp path is correctly set.

If I run NR without G5 running, then your plugin does not crash the PC client. There is only the time data, but NR is stable. I have also checked running an older version of my NR PC client (version 112) and I am getting the same crashes if G5 is running.

Tomorrow I'll try going back to your original xmltv plugin with a version of NR that it worked with and check that still works.

Peter

vitello
April 10th, 2008, 09:37 PM
Curt,

I restored NR to version 104 and used the old version of xmltv and the plugin worked again. Then I updated NR to the latest version 117, and used the files you posted for xmltv and the new NR plugin format. Now NR PC client crashes as soon as I select the TVGuide button. I'm using G5 523.

Any suggestions?

Peter

Rob H
April 11th, 2008, 03:15 AM
117 will probably require a recompile of the plugin

vitello
April 12th, 2008, 08:43 AM
Rob,

I tried Curt's latest xmltv with several earlier development versions of NR also and I couldn't get it to work on any of them.

peter

curtiswren
April 12th, 2008, 11:18 AM
Peter, give this one a shot with v117. I had to make a couple changes for the latest sdk.

vitello
April 12th, 2008, 02:54 PM
Curt,

I'm still getting NR crashing when I select TVGuide. Any debugging suggestions? On the PC client I see the grid and time data just before the crash. On my PPC, it doesn't crash, but the grid and time data is not displayed.

Peter

curtiswren
April 12th, 2008, 03:15 PM
Did you try it with the CCF in the new zip file too? If so, can you run debugview and see if there's any info in there?

vitello
April 12th, 2008, 04:18 PM
Curt,

I'm using your new CCF file from the new zip (the CustomWeather works again with G5). I installed debugview. There is not much info when the crash happens. When I select "Watch Cable TV" from the home page I get in debugview:

[4904] XXX
[4748] CallEvent: TRegExpr(comp): ?+*{ Follows Nothing (pos 1)
[4904] Trying to find the element DM.Receiver.Channels
[4904] Have the panel
[4904] Element DM.Receiver.Channels not found in Recentre
[4904] Trying to find the element DM.Receiver
[4904] Have the panel
[4904] Element DM.Receiver not found in Recentre
[4904] 17:10:30.359] ScriptEngine] Total time : 235
[4904] YYY

When I select TVGuide I get:

[4904] XXX
[4748] CallEvent: TRegExpr(comp): ?+*{ Follows Nothing (pos 1)
[4904] Trying to find the element DM.Receiver.Channels
[4904] Have the panel
[4904] Element DM.Receiver.Channels not found in Recentre
[4904] Trying to find the element DM.Receiver
[4904] Have the panel
[4904] Element DM.Receiver not found in Recentre
[4904] 17:11:06.828] ScriptEngine] Total time : 422
[4748] CallEvent: TRegExpr(comp): ?+*{ Follows Nothing (pos 1)
[4904] YYY
[4904] XXX
[3056] DllMain

The windows info window from the crash says that the Error signature is:

AppName: netremote.exe AppVer: 2.0.0.117 ModName: drv_xmltv.dll
ModVer: 0.0.0.0 Offset: 00003cc2

So it does look like drv_xmltv.dll is the problem. debugview shows that NR is using the new plugin. I'm not a debugview user so if anyone knows of settings to get more info I would appreciate it.

Peter

curtiswren
April 13th, 2008, 03:50 AM
Can you post your xml file. Maybe there's something in the data that will allow me to reproduce this.

Can you also use this gml just to be sure the one you have is up-to-date

vitello
April 13th, 2008, 10:13 AM
Curt,

Same crash problem with the xmltv.gml you posted. I've uploaded my xml file. The xml file works with NR 104 and your old xmltv plugin and curt.ccf. It also works with the XMLTV Grid Version2.gml on G5 and the xmltv.gml you just posted.

Peter

curtiswren
April 13th, 2008, 02:25 PM
Can you try opening the drv_xmltv.dll in a tool like PE Explorer and running the dependency scanner to make sure you have all the required dlls that this uses?

If all dlls are found in that. Try using the attached dll with debugview running and send me the output.

vitello
April 13th, 2008, 09:00 PM
Curt,

Your wouldn't possibly be using Vista? I ran PE Explorer dependency scanner on drv_xmltv.dll and it showed

dwmapi.dll Path not Found.

I checked on dwmapi.dll and it appears to be a Vista dll. I'm running Windows XP.

Peter

curtiswren
April 15th, 2008, 02:46 AM
I'm still using the same xp machine for developing the plugin. I'm not sure why it's saying yours has a dependency on dwmapi.dll. For me, on my XP machine, it shows
gdiplus.dll
mfc71u.dll
msvcr71.dll
kernel32.dll
user32.dll
gdi32.dll
advapi32.dll
oleaut32.dll

I've installed this on both an xp and vista machine with no problems. I have another XP machine that I will try it out on and see what happens there.

Rob H
April 15th, 2008, 07:22 AM
Curt,

Your wouldn't possibly be using Vista? I ran PE Explorer dependency scanner on drv_xmltv.dll and it showed

dwmapi.dll Path not Found.

I checked on dwmapi.dll and it appears to be a Vista dll. I'm running Windows XP.

Peter

You may want to try running the dependency scanner on each of the DLLs that it found for drv_xmltv.dll - perhaps something else you have installed has replaced a DLL with one that expects to run under Vista?

vitello
April 15th, 2008, 10:58 PM
It looks like my missing dwmapi.dll may not be an actual problem. The immediate dependencies on my system for drv_xmltv.dll are same as those Curt listed. dwmapi.dll shows up using Dependency Walker as a distant dependent under advapi32.dll. I did some searching and it appears that even though it is listed as being an immediate dependent of ieframe.dll, it is not really needed by ieframe.dll. I did dependency scanning of a bunch of other NR plugin dll's and they all showed a dependency on dwmapi.dll, yet they worked.

I also reinstalled NR 104 and the old drv_xmltv.dll, tested that it worked, and then did a dependency scan on the old drv_xmltv.dll. I get the same missing dwmapi.dll message from the old working drv_xmltv.dll.

Any other suggestions?

Peter

Ron
April 16th, 2008, 06:18 AM
Just checking here.. What version of the SDK is the plugin compiled against and what version of NR are you running. At the moment the SDK and NR version have to match as we have been tweaking it.

vitello
April 16th, 2008, 08:13 PM
It works!!! It was a SDK version issue. I thought I had tested xmltv with each recent release of NR, but it looks like I skipped a few. I have xmltv PC client and PPC working now with NR version 115. Thanks for the help and patience.

Peter

Ron
April 16th, 2008, 08:16 PM
Good. I am glad you found what the problem was!

curtiswren
April 17th, 2008, 02:28 AM
That's great to hear. I haven't been able to get to the latest version yet. I hope to be able to this weekend.

beags
May 12th, 2008, 09:00 PM
Hi Guys,

I am having the same problems here. Netremote crashes as soon as I run tvguide.

I am using netermote 2.0.1.124

Even if I use curt's ccf, still crashes


Any ideas would be appreciated

Thanks
Des

beags
May 13th, 2008, 10:50 PM
All sorted now.

I didn't have the latest xmltv plugin.


Thanks
Beags

beags
October 7th, 2008, 04:25 PM
Hi,

Is anyone else finding that the tvguide is painfully slow with 2.0.1.128 ?

Kind regards
Beags

tmorten
November 3rd, 2008, 10:01 PM
Where's the latest XMLTV plug-in located? I pulled down xmltv2.0-1.zip from the NetRemote downloads section, and the xmltv.dll file in the Win32 folder has a date stamp of 4-19-06... did I screw up?

UPDATE: Never mind; silly me -- the latest is in the release thread for NetRemote. Still, I wonder if we shouldn't update the zip in the downloads section as well?

Best,
Tim

curtiswren
November 4th, 2008, 02:46 AM
Hi Tim, I didn't notice that the download page wasn't up to date. I've copied it over now. Thanks.