|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#21
|
||||
|
||||
Quote:
Are you having some problem that you think is traceable to this?
__________________
-- Greg |
#22
|
|||
|
|||
Well, I'm having some kind of a problem.
1. I load SageTV7.xml into Studio 2. I disable all plugins except STVI Configurator 3. See Screenshot 1 (Looks fine) 4. I save as StockAndSTVIConfig.xml 5. Screenshot 2 and 2-1 (Duplicates the menu and adds the children nodes of the menu to the root node) 6. So I manually delete those added nodes but then when it does the compare I don't think it works because there are a lot more changes than just the few nodes I added. Edit: I think I got by this by just copying the XML files and then adding my config nodes. Last edited by chrishallowell; 08-19-2010 at 10:27 PM. |
#23
|
|||
|
|||
Ok, next problem
Ok, I'm getting an object and a string when I test the config lines manually.
So now I switched back to the stock STV and reenabled all of the plugins. Expression Evaluator to get the MD5Sum: CalculateMD5Sum("C:\\Program Files\\SageTV\\SageTV\\STVs\\Development\\HelloTable - ConfigOnly.zip") I'm trying to install the plugin but I get this message: Code:
Plugin Install Progress: Done - FAILED - Resource Download http://hallowell.googlecode.com/files/HelloTable - ConfigOnly.zip Does it matter if I saved the STVi as an XML file? Does it matter what name I give the XML file(Does it need to match the plugin id)? Last edited by chrishallowell; 08-19-2010 at 10:45 PM. |
#24
|
||||
|
||||
Did you save using the Save As command, or Save a Copy As? Save a Copy is what you want to use to save a copy. Using Save As does much more than just saving a copy; it also sets the saved file as your base STV and then reimports all active STVIs into it, which is why you're getting duplicates.
Quote:
It's always an XML file. Doesn't matter whether the filename extension is .stvi or .xml. (I prefer .xml.) It can be any name you like, but from a user-friendliness perspective it's nice if there's some obvious connection to the plugin name.
__________________
-- Greg |
#25
|
|||
|
|||
Ok, good to learn the difference between Save As and Save a Copy As.
Quote:
Thanks again for all of your help Greg. You are the best. There is no way I would figure all of this stuff out on my own. I'm starting to know enough to be dangerous . |
#26
|
|||
|
|||
Ok, the zip file without spaces did the trick. It downloaded the file and asked to reboot the UI. So I said "yes". Went back to the plugin and it's disabled. I can't enable it.
I looked in the log file: sagetv_0.txt but it didn't give me an error messages in regards to that plugin. Not sure where to go from here. All I can think is that the Studio can't find the ConfigDefs.xml file. (Edit: I copied "plugins\Hallowell\HelloTable\ConfigDefs.xml" all over the place and still won't enable.) C:\Program Files\SageTV\SageTV\plugins\Hallowell\HelloTable\ConfigDefs.xml Code:
<config> <setting name="CallName" type="Text"> <label>Call name:</label> <helptext>This will be the call name used.</helptext> <property>Hallowell/HelloTable/CallName</property> </setting> <setting name="AgeOfUser" type="Integer"> <label>Age:</label> <helptext>Enter your age.</helptext> <property>Hallowell/HelloTable/AgeOfUser</property> </setting> </config> C:\Program Files\SageTV\SageTV\SageTVPluginsDev.xml Code:
<SageTVPlugin> <Name>HelloTable</Name> <Identifier>hallowell_hellotable</Identifier> <Description>Displays Hello Table Config Options.</Description> <Author>chrishallowell</Author> <CreationDate>2010.08.16</CreationDate> <ModificationDate>2010.05.25</ModificationDate> <Version beta="true">2010.0</Version> <ReleaseNotes>2010.0 Initial release</ReleaseNotes> <Desktop>false</Desktop> <PluginType>STVI</PluginType> <Dependency> <STV>STVI Configurator</STV> <MinVersion>1.0.8</MinVersion> </Dependency> <Package> <PackageType>STVI</PackageType> <Location>http://hallowell.googlecode.com/files/HelloTable.zip</Location> <MD5>A3654B1090A611862DD441D7A3738CA9</MD5> <Overwrite>true</Overwrite> </Package> </SageTVPlugin> Last edited by chrishallowell; 08-20-2010 at 06:16 PM. |
#27
|
||||
|
||||
A plugin's enable/disable state has nothing to do with its config settings. Plugins with no configuration options at all can still be enabled and disabled, and missing config info would not cause the plugin to be disabled.
Looking at your manifest, I see two issues: 1. You have not declared an STV dependency on SageTV7: Code:
<Dependency><STV>SageTV7</STV><MinVersion>7.0.15</MinVersion></Dependency> In your particular case this isn't fatal, since you depend on STVI Configurator, which in turn does depend on SageTV7.xml. So the right thing will happen in this case, i.e. Sage won't try to load your STVI unless STVI Configurator has been successfully loaded first (which won't happen unless SageTV7.xml is loaded). Nevertheless, if your STVI depends directly on SageTV7.xml due to changes or additions you've made to menus in the stock UI (in addition to your STVI Config changes), then you should declare that dependency explicitly. 2. There's no STVImport tag in your manifest. Code:
<STVImport>HelloTable.stvi</STVImport> However since I see your changes in your Studio screenshots, I assume those screenshots were taken during your Studio editing session, before you packaged and installed your plugin. So presumably you remembered to revert to the unmodified stock STV before testing your plugin install. Otherwise you would have been installing your STVI into an STV that already included your changes (which would be nonsensical).
__________________
-- Greg |
#28
|
|||
|
|||
Ok, plug-in installed successfully .... but no config button for the plugin . (Yes, I remembered to revert back to the stock STV)
I'm still not sure I'm creating my copy of stockAndSTVIConfigAndHelloTable.xml correctly. It seems like I'm still getting a duplicate STVi Config menu whenever I open it... 1. I open SageTV7.xml and do a save a copy as to StockAndSTVIConfig.xml. 2. I open StockAndSTVIConfig.xml and I disable all plugins except the ConfigSTVI and do a save. (so far so good. No duplication.) 3. I do a save a copy as to StockAndSTVIConfigAndHelloTable.xml. (so far so good. No duplication.) 4. I then open StockAndSTVIConfigAndHelloTable.xml and I see 2 STVI Configurator menus FYI: Here's what I ended up with for my manifest: Code:
<SageTVPlugin> <Name>HelloTable</Name> <Identifier>hallowell_hellotable</Identifier> <Version>2010</Version> <Description>Displays Hello Table Config Options.</Description> <Author>chrishallowell</Author> <PluginType>STVI</PluginType> <STVImport>HelloTable.xml</STVImport> <Dependency> <STV>SageTV7</STV> <MinVersion>7.0.15</MinVersion> </Dependency> <Dependency> <STV>STVI Configurator</STV> <MinVersion>1.0.8</MinVersion> </Dependency> <Package> <PackageType>STVI</PackageType> <Location>http://hallowell.googlecode.com/files/HelloTable.zip</Location> <MD5>713CC17C530CE3FCE17BB668C7425A6F</MD5> <Overwrite>true</Overwrite> </Package> </SageTVPlugin> Last edited by chrishallowell; 08-20-2010 at 07:40 PM. |
#29
|
|||
|
|||
Doesn't look like my SettingMethods were added to the right spot for some reason... (See attachment)
Edit: Yeap. that's the problem. I move them up where they belong and everything works. I'll have to try and see what I'm doing wrong. Last edited by chrishallowell; 08-20-2010 at 07:51 PM. |
#30
|
|||
|
|||
What does this warning message mean when I save the xml file?
"There are currently STV Import Plugins loaded into this STV, are you sure you want to save it this way? |
#31
|
||||
|
||||
Quote:
Quote:
My guess is that in fact you are getting duplication here, but you're just not seeing it due to the Studio display bug mentioned in post #12. Quote:
If you're reopening the saved STVs just to see if they got saved properly and have the expected contents, that's fine, so long as you disable all active STVIs (including STVI Config), so that the only widgets present come from the STV file you're trying to verify. Having verified it, I don't really see a reason to then save it again, as you did in step 2. If your approach to STVI development is to keep everything in STV form, i.e. SageTV7.xml, SageTV7PlusSTVIConfig.xml, SageTV7PlusSTVIConfigPlusMyPlugin.xml, then you must work with all STVIs disabled, so that nothing gets added to those STVs other than what you add by editing. I personally prefer an alternative approach in which I work with STVIs enabled and save my work in STVI form (by comparing against a saved base STV), but you seem to be leaning toward the pure STV approach, which is fine, so long as you understand that enabling STVIs that you've already saved in STV form will lead to duplication.
__________________
-- Greg |
#32
|
||||
|
||||
Quote:
This is why I'm urging you to work with STVIs disabled. After you've done that merge once, you don't want to keep redoing it every time you save. That's where your duplications are coming from.
__________________
-- Greg |
#33
|
|||
|
|||
Thanks soooooo much Greg!
Disabling the STVIConfig before I open it back up prevents the duplication. To get the nodes where they belonged, I manually created them instead of copying the examples and changing them. (Not sure if that was the problem or something else I did.) I think I might lean towards your approach. Now that you have explained both ways. (do a save a copy where you want to branch. Add your stuff, save, and then compare.) Thanks again for all your help and for this great plugin. I have a new sense of respect for anyone who publishes any kind of plugin. There's a lot of work/knowledge involved. |
#34
|
||||
|
||||
Chris,
Greg gives good advice and has taught me many things. Here is what I typically do to create/edit/save stvi plugins: Start with a clean STV by loading the default Sage7 STV and ensuring that ALL plugins are uninstalled. Disabling them is not sufficient. (In some cases it might be sufficient, but I just uninstall them all to make sure.) If I want to edit an existing STVi, import it through Detailed Setup->Advanced. You can also import it through the plugin manager but then you have to remember to uninstall it after the next step. (Looking at your Studio screen shot you probably forgot to do that.) In Studio choose Save A Copy As... I found out the hard way that Save As... will NOT work. If you imported the STVi using the plugin manager go back and uninstall it. If you forget this step you will get very bad results Now load the .xml that you created when you did Save A Copy As... A big thing to remember is that the plugin manager will always import the plugins regardless of what STV you are using as your base. It's easy to get the imports loaded twice if you forget that. Another thing to remember is to NOT update the base STV until you have created your new STVi. You want to do the UID diff on the same STV you started with, not an updated one. Finally, when you are done keep the original Sage7 STV, your modified STV and the .stvi files somewhere safe (outside of the Sage directory.) You may need to go back to it one day. Greg, If I forgot something please chime in. Tom
__________________
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. |
#35
|
|||
|
|||
You actually don't have to uninstall the ui mod after saving it simply disabling suffices as it won't get loaded if it's disabled so you won't see duplicates.
|
#36
|
||||
|
||||
Yes, but I uninstall it anyway just to be sure
__________________
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. |
#37
|
|||
|
|||
I do the same as Plucky and just disable it via Gregs tool.....its alot easier and quicker.
__________________
Server - Win7 64bit, 2.4Ghz Intel Core 2 Duo, TBS 6284 PCI-E Quad DVB-T2 Tuner, 3 x HD200 & 1 x HD300 extenders |
#38
|
||||
|
||||
Quote:
However when you save a copy of SageTV7 (without or without STVIs), the label that identifies it as SageTV7 gets copied too. So if you load that saved copy, Sage will think it's SageTV7 and try to import STVIs that are compatible with SageTV7, and that's where duplication can happen. Personally I try to minimize the amount of STV reloading I do. When I save a copy of SageTV7+STVIConfig, for instance, I don't see a need to immediately reload that saved file, since it contains exactly the same widgets as what I already have loaded. I just put the saved copy somewhere safe and carry on working. That way I minimize the risk of accidental duplication, and the STVI enable states are already correct for what I (still) have loaded. I also agree with the others that uninstalling plugins is overkill for Studio work. Disabling an STVI is sufficient to remove it from the Studio editing equation, and if you know of cases where it's not sufficient, that's a bug in the plugin manager that needs to be addressed. As Ben mentioned, my Studio Tools include a command that lets you enable and disable STVIs all in one go directly from within Studio.
__________________
-- Greg |
#39
|
|||
|
|||
properties
Greg,
Is there a way I can get the STVi configurator to save to the sage.properties file instead of the client file? My configuration options are more global in nature and each client and extender will need to read these values. |
#40
|
||||
|
||||
Quote:
You've chosen to delegate that task to XmlConfig. As I mentioned in your other thread, XmlConfig does not currently have an option for saving properties to the server's properties files. I could add such an option, but before doing so I'd like to hear a concrete example of why you think it's necessary.
__________________
-- Greg |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
STVi Plugin: Phoenix Fanart for Malore Menus | tmiranda | SageTV v7 Customizations | 29 | 11-28-2015 01:28 PM |
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin | deria | SageTV Customizations | 447 | 12-11-2010 07:38 PM |
STVi plugin request: Send TV show detailed info to an email recipient | mkanet | SageTV Customizations | 1 | 01-22-2006 03:59 PM |