Custom Menu item path error

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
homerjs Online
Senior Member
Posts: 172
Joined: Nov 2011
Reputation: 0
Post: #1
I am trying to add a custom menu item where I can have a direct link to my 'New Movies' located in a specific folder.
When I try and add the custom menu item I can give it a name but when I select path to favorite, I get the 'cannot find Favourites.xml' message.
Initially I thought this was ios specific because it would not work on my aptv2, but then I tried it on my pc and I get the same message.
Just noticed that if I switch to aeon nox skin I can set the path but not when I switch back to confluence.
Thanks
find quote
Mudislander Online
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #2
Have you got any items set as a favourite? Only after that is favorites.xml created.

Noli illegitimi carborundum
find quote
homerjs Online
Senior Member
Posts: 172
Joined: Nov 2011
Reputation: 0
Post: #3
yes, I have 2 items marked as favourites. These items are selectable when I switch to the aeon nox skin, however when I switch back to confluence and then try to select path I can see them very briefly just before it switches to the 'cannot find favourite.xml' message.
When I switch back to Aeon nox I can see the path set as ActivateWindow(10025,xxxxx,return) and it works in aeon nox...just not in Confluence.
find quote
Mudislander Online
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #4
The error "Can Not Find favourites.xml" is generated by script-favourites when it cannot find "special://profile/favourites.xml"

Try checking your profile directory to make sure it's there. Also `Black has updated the script http://forum.xbmc.org/showthread.php?tid=114671. Without checking there might be something that is throwing up an error for you.

Edit Just had a smoke break & came up with an idea! - Could be that Confulence is not running the script & aeon nox is. Check Confluence to make sure script being called. I've had that problem before.

Noli illegitimi carborundum
(This post was last modified: 2011-11-17 14:39 by Mudislander.)
find quote
homerjs Online
Senior Member
Posts: 172
Joined: Nov 2011
Reputation: 0
Post: #5
seems very logical, sorry to be a noob but how would I check to see if script is being called? and if it isn't is there a way to correct this?
thanks really do appreciate your help
Just tried ver 3 of the script, same thing, Confluence will not call up the favourite but Aeon Nox will.
So , now how to make confluence call the script?
(This post was last modified: 2011-11-17 16:01 by homerjs.)
find quote
homerjs Online
Senior Member
Posts: 172
Joined: Nov 2011
Reputation: 0
Post: #6
I have noticed that the favourites script does not appear in my list of addons or available scripts...so checking out the xml I noticed that the line
<provides>executable</provides>
was missing from the script. I added it to the favourites script, I then executed the script by adding it to the 'add on shortcut' (since I added the <provides> line it is now selectable there) .
I launch the script from the main menu and then low and behold I can set the path.

Now to try this on my aptv2
find quote
Mudislander Online
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #7
in brief you could - Open up home.xml & find the command
Code:
<defaultcontrol always="true">9000</defaultcontrol>
Change the 9000 to something else eg 8999 then page down & find
Code:
<control type="fixedlist" id="9000">
Just above insert a new section
Code:
<control type="button" id="8999">
    <description>Run Favourites Script</description>
    <posx>-20</posx>
    <posy>-20</posy>
    <width>1</width>
    <height>1</height>
    <label>-</label>
    <font>-</font>
    <onfocus>RunScript(script.favourites,playlists=play)</onfocus>
    <onfocus>SetFocus(9000)</onfocus>
    <texturenofocus>-</texturenofocus>
    <texturefocus>-</texturefocus>
    <visible>System.HasAddon(script.favourites)</visible>
</control>
<control type="button" id="8999">
    <description>Don't run Recently added</description>
    <posx>-20</posx>
    <posy>-20</posy>
    <width>1</width>
    <height>1</height>
    <label>-</label>
    <font>-</font>
    <onfocus>SetFocus(9000)</onfocus>
    <texturenofocus>-</texturenofocus>
    <texturefocus>-</texturefocus>
    <visible>!System.HasAddon(script.favourites)</visible>
</control>

Noli illegitimi carborundum
find quote
Mudislander Online
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #8
homerjs Wrote:I have noticed that the favourites script does not appear in my list of addons or available scripts...so checking out the xml I noticed that the line
<provides>executable</provides>
was missing from the script. I added it to the favourites script, I then executed the script by adding it to the 'add on shortcut' (since I added the <provides> line it is now selectable there) .
I launch the script from the main menu and then low and behold I can set the path.

Now to try this on my aptv2

The script was designed to be invisable & run in the background (frequently)

Noli illegitimi carborundum
find quote
homerjs Online
Senior Member
Posts: 172
Joined: Nov 2011
Reputation: 0
Post: #9
ok, thanks.
Couldn't really follow your script mod posted above...I found the line
<defaultcontrol always="true">9000</defaultcontrol>
but couldnt find the
<control type="fixedlist" id="9000">
line in the home.xml so I didnt follow through with it.
What exactly was it supposed to do?
Aslo it was labled 8999 already not 9000, also not sure of this, thanks for the info
find quote
Mudislander Online
Skilled Skinner
Posts: 1,155
Joined: Jun 2009
Reputation: 20
Post: #10
Sounds as if you're version is allready modified. (Which or whose version of confluence are you running.) Try a search for id="8999" and see what comes up.

Basically above code was just to run script.favourites,( if it's installed ) every time you entered the home menu. There are otherways eg onload etc.

Noli illegitimi carborundum
find quote
Post Reply