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 03-01-2011, 09:23 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Steps to recover an STVI?

Anyone have suggestions on how to recover an STVI?
I had a hard drive crash a while ago. I am finally ready to work on my plugin again.

I have decompiled my Java code so I have that back minus the erasure details..

However, I am unsure the best method to recover my STVI. I have downloaded the STVI - but when I import it back in using studio, everything seems to be there but my menu entry into my plugin. However, if I exit sage, saving my changes and start again my main screen is distorted.

Any tips on the step to recover an STVI so I can work on it again?
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #2  
Old 03-01-2011, 10:22 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Are we talking V6 or V7? For V7, you shouldn't need to import it using Studio. Just install it as a plugin and it will be imported automatically on startup. And you definitely don't want to do a Save As, since that will save the entire STV+STVI as a new STV, set that as the default, and still import the STVI again on startup, making a hash of everything. If for some reason you need to save the STV+STVI as a merged STV, always use Save A Copy for that to avoid changing the default.

But you shouldn't even need to do that if you make a point of always saving your STVI changes in STVI form using UID File Difference. But for this to work properly, you must disable all other STVI plugins except the one you're working on before you make any changes that need saving.
__________________
-- Greg
Reply With Quote
  #3  
Old 03-02-2011, 05:45 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
And make sure you turn off the plugin if you save a full stv and start working from it or you will have a double import.
Reply With Quote
  #4  
Old 03-02-2011, 06:34 AM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by GKusnick View Post
Are we talking V6 or V7? For V7, you shouldn't need to import it using Studio. Just install it as a plugin and it will be imported automatically on startup. And you definitely don't want to do a Save As, since that will save the entire STV+STVI as a new STV, set that as the default, and still import the STVI again on startup, making a hash of everything. If for some reason you need to save the STV+STVI as a merged STV, always use Save A Copy for that to avoid changing the default.

But you shouldn't even need to do that if you make a point of always saving your STVI changes in STVI form using UID File Difference. But for this to work properly, you must disable all other STVI plugins except the one you're working on before you make any changes that need saving.
Interesting. I always worked on a full STV and then just did the UID file difference when I was exporting a new version of my plugin.

If I try to save the merged STV using Save A Copy, when I load that merged STV I still end up with a distorted screen on startup.. I assume because it is importing the STVI again on startup..
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #5  
Old 03-02-2011, 06:35 AM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by PLUCKYHD View Post
And make sure you turn off the plugin if you save a full stv and start working from it or you will have a double import.
I assume there is some step I am missing here.. If I disable the plugin, the code in the plugin seems to disappear from studio?
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #6  
Old 03-02-2011, 07:09 AM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by broconne View Post
I assume there is some step I am missing here.. If I disable the plugin, the code in the plugin seems to disappear from studio?
I was refering to if you are saving as and working with a full stv.
Reply With Quote
  #7  
Old 03-02-2011, 07:35 AM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Ok.. My preference is to work with a full STV and my clean development server, as that is how I am used to coding in Studio.

Here are my steps:

(1) Uninstall SageTV
(2) Delete SageTV directory
(3) Reinstall SageTV
(4) Install TVBrowser Plugin
(5) Open Studio - Save A Copy As - name "TVBrowser.xml"
(6) Disable TVBrowser Plugin.
(7) In studio - select Open - select TVBrowser.xml
(8) Everything looks ok. Shutdown SageTV
(9) Open SageTV
(10) Screen look list this:


I am clearly missing or failing to understand a step... Just not sure which ones.
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #8  
Old 03-02-2011, 01:13 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
If you're going to work with a full, merged STV, then you really should set aside a copy of the base STV you started from in step 3. Keep it in a safe place, separate from your SageTV installation directory, where it won't be overwritten by downloadable STV updates and new beta releases. Otherwise you may find you don't have the right version to compare against to recover your changes.

As to what's causing your screen corruption issues, my best guess is that you're loading your merged STV from a different directory path than the stock STV, so that it can't find the stock images it expects. If you want to work from a separate directory, you'll need to copy over all the images and other resources from the stock directory. The merged STV alone is not sufficient.

This is another reason why I prefer to save my work in STVI form, so that I'm developing and testing in the environment in which the code will actually run, rather than having to set up a secondary environment to satisfy all the dependencies.
__________________
-- Greg
Reply With Quote
  #9  
Old 03-02-2011, 02:40 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
Quote:
Originally Posted by GKusnick View Post
If you're going to work with a full, merged STV, then you really should set aside a copy of the base STV you started from in step 3. Keep it in a safe place, separate from your SageTV installation directory, where it won't be overwritten by downloadable STV updates and new beta releases. Otherwise you may find you don't have the right version to compare against to recover your changes.

As to what's causing your screen corruption issues, my best guess is that you're loading your merged STV from a different directory path than the stock STV, so that it can't find the stock images it expects. If you want to work from a separate directory, you'll need to copy over all the images and other resources from the stock directory. The merged STV alone is not sufficient.

This is another reason why I prefer to save my work in STVI form, so that I'm developing and testing in the environment in which the code will actually run, rather than having to set up a secondary environment to satisfy all the dependencies.
The merged STV is saved in the same directory as the original. So I don't think its image related?

So.. How do you keep working on something if you do it in STVI form? Everytime you start Sage backup, do you just import your STVI again?
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram
Guest: Ubuntu 16.04 with Sage v9 in Docker
Tuners: 2 HDHR (OTA);
Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD
Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case.
Reply With Quote
  #10  
Old 03-02-2011, 02:45 PM
tmiranda's Avatar
tmiranda tmiranda is offline
SageTVaholic
 
Join Date: Jul 2005
Location: Central Florida, USA
Posts: 5,851
Quote:
Originally Posted by GKusnick View Post
If you're going to work with a full, merged STV, then you really should set aside a copy of the base STV you started from in step 3. Keep it in a safe place, separate from your SageTV installation directory, where it won't be overwritten by downloadable STV updates and new beta releases. Otherwise you may find you don't have the right version to compare against to recover your changes.
This is what I do. I start with the stock, unmodified .xml file and then start modifying as needed. I keep a copy of the unmodified STV in a safe place so I know what to compare the modified STV against to create the STVi. I also do a sanity check by applying the STVi to the latest and greatest STV making sure that the STV fileset number does not change.
__________________

Sage Server: 8th gen Intel based system w/32GB RAM running Ubuntu Linux, HDHomeRun Prime with cable card for recording. Runs headless. Accessed via RD when necessary. Four HD-300 Extenders.
Reply With Quote
  #11  
Old 03-02-2011, 03:05 PM
bialio's Avatar
bialio bialio is offline
SageTVaholic
 
Join Date: May 2007
Location: Frisco, TX
Posts: 3,445
IF I have an existing STVi that I want to update:

1) load up a clean default STV. (Save a copy off somewhere)
2) import the STVi
3) Save As "SageTV7 + mySTVi.xml"
4) Modify away.
5) When done, UID diff with the saved copy from Step 1.
6) Generate new STVi from the diff.

ez pz.
btl.
__________________
PHOENIX 3 is here!
Server : Linux V9, Clients : Win10 and Nvidia Shield Android Miniclient
Reply With Quote
  #12  
Old 03-02-2011, 03:21 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by broconne View Post
So.. How do you keep working on something if you do it in STVI form? Everytime you start Sage backup, do you just import your STVI again?
It's imported automatically by the plugin manager. I have a one-click build script that takes the generated STVI and repackages it as a local plugin in SageTVPluginsDev.xml. So it's not that big a deal for me to always save my work in ready-to-use plugin form.
__________________
-- 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper steps to update v7 on WHS? m1abrams SageTV Beta Test Software 17 09-10-2010 08:19 AM
Steps to move to a new computer raoul General Discussion 2 07-09-2010 09:48 AM
Change volume steps? APillowOfClouds SageTV Software 1 01-11-2009 01:54 PM
New server build - migration steps tsitalon1 The SageTV Community 3 01-02-2009 08:05 PM
Baby Steps vexhold Hardware Support 8 10-14-2008 01:04 PM


All times are GMT -6. The time now is 06:04 PM.


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