• 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 14
Broken XinBox (E-Mail Client for XBMC)
I have the newest version of XinBox and the newest version of xbmc. When i click on xinbox it says running for like 3 seconds then does nothing, it was working fine even with the atlantis build. I will post the debug for the script in a bit. Iam using xbmc on my xbox.
Reply
16:52:26 M: 39567360 INFO: -->Python Initialized<--
16:52:26 M: 39546880 INFO:
16:52:26 M: 41680896 DEBUG: CGUIMediaWindow::GetDirectory (Q:\scripts)
16:52:26 M: 41701376 DEBUG: ParentPath = [Q:\scripts]
16:52:26 M: 41709568 DEBUG: kernel32.dll fake function SetConsoleCtrlHandler called
16:52:27 M: 37150720 DEBUG: dllGetProcAddress(007B8508(advapi32.dll), 'CryptAcquireContextA') => 00236C73
16:52:27 M: 37130240 DEBUG: dllGetProcAddress(007B8508(advapi32.dll), 'CryptGenRandom') => 00234098
16:52:27 M: 37130240 DEBUG: advapi32.dll fake function dllCryptAcquireContext() called
16:52:27 M: 37093376 DEBUG: LoadLibraryExA called with flags:
- LOAD_WITH_ALTERED_SEARCH_PATH
16:52:27 M: 37093376 DEBUG: LoadLibraryA('_socket.pyd')
16:52:27 M: 37044224 DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
16:52:27 M: 37044224 DEBUG: LoadLibrary('_socket.pyd') returning: 00CB4D80
16:52:27 M: 37044224 DEBUG: dllGetProcAddress(1E1D0000(_socket.pyd), 'init_socket') => 1E1D4BF0
16:52:27 M: 37044224 DEBUG: LoadLibraryExA called with flags:
- LOAD_WITH_ALTERED_SEARCH_PATH
16:52:27 M: 37023744 DEBUG: LoadLibraryA('_ssl.pyd')
16:52:27 M: 36524032 DEBUG: Unable to resolve msvcr71.dll _getch
16:52:27 M: 36524032 DEBUG: Unable to resolve kernel32.dll FlushConsoleInputBuffer
16:52:27 M: 36524032 DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
16:52:27 M: 36524032 DEBUG: LoadLibrary('_ssl.pyd') returning: 008AB400
16:52:27 M: 36524032 DEBUG: dllGetProcAddress(10000000(_ssl.pyd), 'init_ssl') => 10001820
16:52:28 M: 35733504 DEBUG: LoadLibraryExA called with flags:
- LOAD_WITH_ALTERED_SEARCH_PATH
16:52:28 M: 35737600 DEBUG: LoadLibraryA('pyexpat.pyd')
16:52:29 M: 35598336 DEBUG: kernel32.dll fake function DisableThreadLibraryCalls called
16:52:29 M: 35598336 DEBUG: LoadLibrary('pyexpat.pyd') returning: 00C049F0
16:52:29 M: 35598336 DEBUG: dllGetProcAddress(1D100000(pyexpat.pyd), 'initpyexpat') => 1D102350
16:52:29 M: 35033088 INFO: Loading skin includes from Q:\scripts\XinBox\src\resources\skins\DefaultSkin\includes.xml
16:52:29 M: 35053568 INFO: Error loading includes.xml file (Q:\scripts\XinBox\src\resources\skins\DefaultSkin\includes.xml): Failed to open file (row=0, col=0)
16:52:29 M: 35053568 INFO: Traceback (most recent call last):
16:52:29 M: 35053568 INFO: File "Q:\scripts\XinBox\default.py", line 34, in ?
16:52:29 M: 35045376 INFO:
16:52:29 M: 35045376 INFO: else:w = XinBox_MainMenu.GUI("XinBox_MainMenu.xml",scriptpath + "src","DefaultSkin",lang=_)
16:52:29 M: 35053568 INFO: TypeError
16:52:29 M: 35053568 INFO: :
16:52:29 M: 35053568 INFO: XML File for Window is missing
16:52:29 M: 35053568 INFO:
16:52:29 M: 35053568 ERROR: Scriptresult: Error
16:52:29 M: 35057664 INFO: Python script stopped

16:52:29 M: 35581952 INFO: Python, unloading python24.dll cause no scripts are running anymore
16:52:29 M: 35581952 INFO:
16:52:29 M: 35581952 INFO:
Reply
Iam assuming that it's because it's trying to find the mainmenu.xml file which is rooted through the resources folder, which i guess changed to the resources folder since the atlantis build, but the xinbox directory doesen't have a resources folder. So i guess i'll try and edit the default.py file and add the resources folder and make also make a resources folder in the xinbox directory like eg: "xinbox/src/resources/blah blah...." I'am prolly way off so feel free to tell me differently.
Thanks
Reply
Well a little bit of editing and iam nowhere, maybe it's about time i learned some python cause i don't no shit about shit as to what iam doing. lol. hopefully someone can fix it.Big Grin
Reply
Hi, yes - there have been changes in the winxml system.
The new version of XinBox will work.
Umm, for now...
Ill post the code fix when i get home from work tonight :-D
Reply
try editing your default.py to this:

http://pastebin.com/f4a90cf2a

then rename "src" folder to "resources"

That should start the script, but other windows will fail. You will need to replace any occurences throught all the .py's of:

foo = XinBox_foo.GUI("XinBox_foo.xml",scriptpath + "src","DefaultSkin",lang=_)

to:

foo = XinBox_foo.GUI("XinBox_foo.xml",os.getcwd(), DefaultSkin",lang=_)

Give that a go and let me know :-D
Reply
Well i edited the default.py with the text and renamed the src folder to resources like you said and violla it works, thanks. But i didn't edit all the other occurences because none of the windows that i went through failed and i was able to create an xinbox account and add my gmail addy and read my messages.
Thanks Alot/Awesome ScriptBig Grin

ps: if u still think i should go ahead and edit the rest then i will.
Reply
ok i went through the other py's in the "lib" folder and i couldn't find any code like this "foo = XinBox_foo.GUI("XinBox_foo.xml",scriptpath + "src","DefaultSkin",lang=_)" so i didn't know what to change.Huh
Reply
well there are things that don't work like mini-mode and the about button but the about button is easely fixed by editing XinBox_About.py and adding the resources folder.

class GUI( xbmcgui.WindowXML ):
def __init__(self,strXMLname, strFallbackPath,strDefaultName, lang=False):
f = open(strFallbackPath + "\\resources\\credits\\about.txt")
self.aboutcr = f.read()
f.close()
f = open(strFallbackPath + "\\resources\\credits\\language.txt")
self.languagecr = f.read()
f.close()
f = open(strFallbackPath + "\\resources\\credits\\skinning.txt")
self.skinningcr = f.read()
f.close()
self.lang = lang
Reply
yeh, theres some yucky code in there.
Really all the paths should defined in ONE place so it can easily be changed once through out the whole script.
Like I said, another script is in progress - Slowly (the drive has faded)
You should look in2 python, its great!
I learnt by trial and error and other ppl's scripts just to create a script.
Now i use python lots for other things (listing all my movies, renaming bulk files etc)
:-D
Reply
have a look in mini-mode.py
and also make sure you have changed all the bits in default.py :-)
It has 3 different places where it opens windows.

Check in mini-mode.py for any where it appears it may be looking in the "src" folder etc, and again with the winxml line.

Good luck! :-)
Reply
Ok, im crap at GFX.
Anyone keen to do the new XinBox skinning for me, this includes designing it etc , animation etc. I enjoy the code..
Reply
Might be worth asking the RazorFish team? looks like they're pretty dam good at it! Smile... might be able to give you some pointers on a Mediastream look for it as that seems to be the skin of choice lately.....
Reply
Yeh, well, i wanted someone too work with and get a nice default skin up and running and then pass on the script to the razorfish team so they can integrate it nicely.

It would look real nice running mini mode in media stream, nice lil prompt popping up with new email etc. mmmmmmmm
They could even include it with there skin like xbmc lyrics.
This is of course if i make it GREATER enough.
Im pretty sure with the new database features, it will hit the mark.
Reply
If V.0.9 is anything to go by I'm sure it will hit the mark!!
Reply
  • 1
  • 9
  • 10
  • 11(current)
  • 12
  • 13
  • 14

Logout Mark Read Team Forum Stats Members Help
XinBox (E-Mail Client for XBMC)0