SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-07-2006, 05:04 AM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
Developing STVs/STVIs using SageTV6

Just a small warning to any STV/STVI devs: STV(i)s written by SageTV v6.0 Studio are not backward compatible with 5.0, to the point that Sage will not even load/import the STV(i)

So far, I have worked around this by removing the following lines in the xml files saved by Studio v6
Code:
<BackgroundComponent>false</BackgroundComponent>
(a new Panel attribute) and
Code:
<AutoRepeatAction>false</AutoRepeatAction>
(a new Image attribute).
Removing those lines seems to allow 5.0 to load a 6.0 STV(i)...

Obviously there are new API functions that if used will cause run-time errors, but these are fairly easy to avoid, and the run-time errors are more obvious than failure to load with no error message!

Hope this helps anyone
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #2  
Old 10-07-2006, 07:19 AM
dflachbart dflachbart is offline
SageTVaholic
 
Join Date: Jan 2006
Location: Brookfield, CT
Posts: 2,743
Quote:
Originally Posted by nielm
Just a small warning to any STV/STVI devs: STV(i)s written by SageTV v6.0 Studio are not backward compatible with 5.0, to the point that Sage will not even load/import the STV(i)

So far, I have worked around this by removing the following lines in the xml files saved by Studio v6
Code:
<BackgroundComponent>false</BackgroundComponent>
(a new Panel attribute) and
Code:
<AutoRepeatAction>false</AutoRepeatAction>
(a new Image attribute).
Removing those lines seems to allow 5.0 to load a 6.0 STV(i)...

Obviously there are new API functions that if used will cause run-time errors, but these are fairly easy to avoid, and the run-time errors are more obvious than failure to load with no error message!

Hope this helps anyone
Niel, thanks a lot for the info. Andy already pointed out that the STVs are not backward compatible, so I had to leave a 5.0 server test installation on my dev machine (which was a PITA because the new 6.0 beta client will *uninstall* any 5.0 version without asking, so I had to do some renaming tricks to get this to work) in order to provide bugfixes for 5.0 code in the future.

With this info I will be able to ditch the 5.0 server and do all dev on the 6.0 client.

Dirk
Reply With Quote
  #3  
Old 10-07-2006, 12:20 PM
nielm's Avatar
nielm nielm is offline
SageTVaholic
 
Join Date: Oct 2003
Location: Belgium
Posts: 4,496
What I forgot to mention is that:

There may be other new attributes that I have not yet tripped over

...And I found that these were causing the problem by looking at the logfile when opening a v6 STV(i) in SageTV 5.0. Amongst a whole load of java exception stack traces, you will find a line identifying the offending xml tag:
Code:
Caused by: org.xml.sax.SAXException: unrecognized tag AutoRepeatAction
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki
Reply With Quote
  #4  
Old 10-07-2006, 12:41 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by nielm
There may be other new attributes that I have not yet tripped over
Mechanically scanning both the V5 and V6 STVs and comparing the results, the only new attributes I find are the two you mentioned: AutoRepeatAction and BackgroundComponent. (Although, curiously, RenderXFormScaleX and RenderXFormScaleY seem to have disappeared from the V6 STV.)

This ties in with my earlier request for a definitive list of widget property names:

http://forums.sagetv.com/forums/showthread.php?t=20332

Sure would be nice to get these documented somewhere.
__________________
-- Greg
Reply With Quote
  #5  
Old 10-07-2006, 01:09 PM
Opus4's Avatar
Opus4 Opus4 is offline
Administrator
 
Join Date: Sep 2003
Location: NJ
Posts: 19,624
Quote:
Originally Posted by GKusnick
(Although, curiously, RenderXFormScaleX and RenderXFormScaleY seem to have disappeared from the V6 STV.)
Only the widget properties that get used are listed in the STV's XML file & those just happen to no longer be used where they were in the past -- when cycling through the NTE letters for a number.

And, any of the new widget properties listed in the v6 Studio manual that aren't actually used yet also won't appear in the XML file, such as the one for the Image widget's new "Scaling Insets" (ScalingInsets).

Quote:
This ties in with my earlier request for a definitive list of widget property names:

http://forums.sagetv.com/forums/showthread.php?t=20332

Sure would be nice to get these documented somewhere.
Oh yeah... I never replied there because there isn't a list for that so far, and I don't yet know about it for the future.

- Andy
__________________
SageTV Open Source v9 is available.
- Read the SageTV FAQ. Older PDF User's Guides mostly still apply: SageTV V7.0 & SageTV Studio v7.1.
- Hauppauge remote help: 1) Basics/Extending it 2) Replace it 3) Use it w/o needing focus
- HD Extenders: A) FAQs B) URC MX-700 remote setup
Note: This is a users' forum; see the Rules. For official tech support fill out a Support Request.
Reply With Quote
  #6  
Old 10-07-2006, 01:58 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Thanks for the clarification. I've updated my list in the other thread.
__________________
-- Greg
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 12:59 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.