Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
Yup using AllocResources() fixes the texture bug.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
Ok, When I get approval I'll commit the fix for the texture bug. I will also commit the fallbackMediaPath change at that time.
So scripters be prepared to move your /media/ folders inside your /skinofchoice/ folder with the /Pal/ folder
Posts: 2,321
Joined: Sep 2006
Reputation:
309
IDEA!!
You should code in a self.getcurrentskinpath(), or self.getcurrentskinname().
ETC, i know you could just find out what skin xbmc is running but this won't work for scripts that allow changing of skins and also, when the script does not have a skin for the current xbmc skin.
Posts: 26,215
Joined: Oct 2003
Reputation:
187
Have made some changes so that the fallback path is only set while the window is allocating resources or while the window is rendering (only 2 states where it should require it).
This is so that other windows that are allocating while the python window is up will use the correct directory.
Let me know if it breaks stuff or not.
Also: Are we not using m_fallbackPath (set in constructor of GUIPythonWindowXML ?)
Cheers,
Jonathan
Posts: 2,321
Joined: Sep 2006
Reputation:
309
Nuka, have you tried using fallback in a script on an actual xbox? I just tried my script which works great on xbmc_pc but on the actual xbox - no textures at all - even if i put my gfx straight into the skin/media folder. I looked at XBMCLyrics and see, even tho you have a media folder, your script will be using the pm3 gfx as they have the same name. Could you do me a favour and for example rename one of your gfx to "testme.png", and then change the xml to load this image. Then try on the xbox with the latest xbmc rev. And let me know if you can see the image.
Would be a great help.
Cheers Stanley87
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
ok, solved. It was a slashatend issue. I need to build for pc now to test to make sure it still works on that. I may need an #ifdef for it.
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
Stanley, I just committed a fix. It works on both Xbox and the PC.
I'm not sure if it's the right way to fix it. A developer will have to decide.
Posts: 2,321
Joined: Sep 2006
Reputation:
309
Thanks, im compiling now.
I was talking to Donno the other day and said hows its funny that we now use xbmc_pc so much, that an issue with the actual xbox goes un-noticed for awhile :-D
Posts: 14
Joined: Feb 2007
Reputation:
0
l8tig
Junior Member
Posts: 14
it is possible to post 2 list different on the same screen with same the xml?
ex: list channel + list epg
Posts: 3,909
Joined: Dec 2004
Reputation:
20
Nuka1195
Skilled Python Coder
Posts: 3,909
should be as long as they are not both in the id range 50-59