2012-05-28, 14:44
Hi,
I know my problem is not new, I did seen some other who had kinda same issue around past years or so.
But still I read their post and try to figure out by myself to resolve the issue, without succes.
So i post here.
First, here is what I wanted to do :
Add a custom menu in XBMC home that point to a specific program that I previously added to favourites.
Second, What I Have :
XBMC 11 (eden)
Windows 8 CP 32 bit
2 HDD, system (C:) and Data (E:)
I installed XBMC on E:, and launching him each in portable mode (using -p parameter).
Using Influence skin.
When I ad a new menu in system skin setting and try to use favourites as a link to what i want to this new menu i get an empty fields, like if I had no favourites (But I have, can accessing them from Home favourtites button). Same thing If I want to add tthe built in Skin Favourites menu, It doesn't work (this built in menu call the built in script SetMenuFav.py) and return "can not Find favourites.xml" in this Skin setting (as the submenu label). So I did go to this SetMenuFav.py and change the return error message to "canaa not Find favourites.xml" just ot be sure this message came from this script. I relaunche XBMC and now display "canaa not Find favourites.xml". So yeah this came from this script.
So Then i edited this script like that :
The first one is the orignal code, the commented one is the different one i tried to use, Didn't work.
And by the way tries to did the same thing in the default.py script in the favourites.script folder just ot be sure, still no succes.
So I thought ok I execute XBMC in portable mode, may be it explain why it can not find the favourites.xml. So I copied this favourites.xml (form XBMC/portable_data/userdata) files in XBCM/userdata part, retried, still didn't work.
By the end I copied manually the value inside favourites.xml to the XBMC/portable_data/userdata/guisettings.xml, so i can have my new menu.
But that was a default and badsolution, I don't want to manualy edit the XML files each time I wanna ad / modify a menu.
I tried another skin (alaska) and the same happend, so I suppose it isn't skin related.
I post here my xbmc.log (deggub activated) of me going to the Setting->Skin->menu->activate the built in favourite menu.
http://pastebin.com/uqqmHB2s
Edit : just tried with cirrus2.1 Skin and it say echec du script (script failure with my translation in engligh) ! :Script.favourites. and display me "can not find find favourites.xml". Did try again by changing the cirrus script.favourites/default.py script to
Same script failure message, but no display of "can not find find favourites.xml" this time ...
If you want I can add a new debbug log with this skin (wich seems to be less complicated than influence).
I know my problem is not new, I did seen some other who had kinda same issue around past years or so.
But still I read their post and try to figure out by myself to resolve the issue, without succes.
So i post here.
First, here is what I wanted to do :
Add a custom menu in XBMC home that point to a specific program that I previously added to favourites.
Second, What I Have :
XBMC 11 (eden)
Windows 8 CP 32 bit
2 HDD, system (C:) and Data (E:)
I installed XBMC on E:, and launching him each in portable mode (using -p parameter).
Using Influence skin.
When I ad a new menu in system skin setting and try to use favourites as a link to what i want to this new menu i get an empty fields, like if I had no favourites (But I have, can accessing them from Home favourtites button). Same thing If I want to add tthe built in Skin Favourites menu, It doesn't work (this built in menu call the built in script SetMenuFav.py) and return "can not Find favourites.xml" in this Skin setting (as the submenu label). So I did go to this SetMenuFav.py and change the return error message to "canaa not Find favourites.xml" just ot be sure this message came from this script. I relaunche XBMC and now display "canaa not Find favourites.xml". So yeah this came from this script.
So Then i edited this script like that :
Code:
self.fav_dir = 'special://masterprofile//favourites.xml'
# self.fav_dir = xbmc.translatePath( 'special://masterprofile//favourites.xml' )
# self.fav_dir = xbmc.translatePath( 'special://profile/favourites.xml' )
# self.fav_dir = xbmc.translatePath('E:\XBMC\portable_data\userdata\favourites.xml')
The first one is the orignal code, the commented one is the different one i tried to use, Didn't work.
And by the way tries to did the same thing in the default.py script in the favourites.script folder just ot be sure, still no succes.
So I thought ok I execute XBMC in portable mode, may be it explain why it can not find the favourites.xml. So I copied this favourites.xml (form XBMC/portable_data/userdata) files in XBCM/userdata part, retried, still didn't work.
By the end I copied manually the value inside favourites.xml to the XBMC/portable_data/userdata/guisettings.xml, so i can have my new menu.
But that was a default and badsolution, I don't want to manualy edit the XML files each time I wanna ad / modify a menu.
I tried another skin (alaska) and the same happend, so I suppose it isn't skin related.
I post here my xbmc.log (deggub activated) of me going to the Setting->Skin->menu->activate the built in favourite menu.
http://pastebin.com/uqqmHB2s
Edit : just tried with cirrus2.1 Skin and it say echec du script (script failure with my translation in engligh) ! :Script.favourites. and display me "can not find find favourites.xml". Did try again by changing the cirrus script.favourites/default.py script to
Code:
# self.fav_dir = 'special://masterprofile//favourites.xml'
# self.fav_dir = xbmc.translate('special://masterprofile//favourites.xml') # first try with notepad++ autocompletion (no translatePath found, only translate !)
self.fav_dir = xbmc.translatePath('special://masterprofile//favourites.xml')
Same script failure message, but no display of "can not find find favourites.xml" this time ...
If you want I can add a new debbug log with this skin (wich seems to be less complicated than influence).