• 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 13
[RELEASE] Gamma-X (formerly called "Xbox Net Loader") Xbox game manager and launcher
#46
Quote:+ new - xbox media center updater
it's working :kickass: :thumbsup:

can u add checking changelog before update
i want put updater to autoexec.py
if no change in changelog - make nothing
else dialog yes/no
Reply
#47
affini:

everything is in the right place, you just need relative file paths in the exceptions (see below) and a fully qualified smb url (see below)

computer name is the name that shows up for the computer within the workgroup. you may need user:pass if you have a password.

of course, please back up stuff the first time as this is new Smile
i have tested it but you know how it is Smile

<xbmc_update>
<xbmc_dir path = "e:\apps\xbmc" />
<source url='smb://computername;user@hostname/share/path' />
<exceptions>
<file name="xboxmediacenter.xml" />
<file name="filezilla server.xml" />
<file name="skin\project mayhem iii\pal\dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal\home.xml" />
</exceptions>
<copies>
<file name="default.xbe" dest="c:\xbmc.xbe" />
</copies>
</xbmc_update>'''

smuto:
i'll see if i can slip that in there Smile


ruuk
Reply
#48
cool, thanks... i'll try it soon.

btw... are you going to change the folder name to 'gamma-x' from 'xnetload' since you changed the script name :nuts:
I'm not an expert but I play one at work.
Reply
#49
n1ce work!
i´ll try it soon ...
Philips TV with Kodi 20.2 with IPTV --- Orbsmart 500 Android 21 alpha/beta as Online-radio/TV in the kitchen
Reply
#50
ruuk,
xbmc update is not working for me...
Quote:17-11-2005 10:05:06 debug loadlibrarya('pyexpat.pyd')
17-11-2005 10:05:06 warning kernel32.dll fake function disablethreadlibrarycalls called
17-11-2005 10:05:06 debug loadlibrary('pyexpat.pyd') returning: 0x9329b0
17-11-2005 10:05:06 debug pyexpat.pyd!getprocaddress(0x9329b0, 'initpyexpat') => 0x1034540
17-11-2005 10:05:06 info traceback (most recent call last):
17-11-2005 10:05:06 info file "q:\scripts\gamma-x\xbmcupdate.py", line 154, in ?
17-11-2005 10:05:06 info
17-11-2005 10:05:06 info main()
17-11-2005 10:05:06 info file "q:\scripts\gamma-x\xbmcupdate.py", line 126, in main
17-11-2005 10:05:06 info
17-11-2005 10:05:06 info x = xbmc_update(file)
17-11-2005 10:05:06 info file "q:\scripts\gamma-x\xbmcupdate.py", line 20, in
17-11-2005 10:05:06 info
17-11-2005 10:05:06 info self.read_config(file)
17-11-2005 10:05:06 info file "q:\scripts\gamma-x\xbmcupdate.py", line 29, in read_config
17-11-2005 10:05:06 info
17-11-2005 10:05:06 info self.dom = parsestring(open(file,'r').read())
17-11-2005 10:05:06 info file "q:\python\lib\_xmlplus\dom\minidom.py", line 1929, in parsestring
17-11-2005 10:05:06 info
17-11-2005 10:05:06 info return expatbuilder.parsestring(string)
17-11-2005 10:05:06 info file "q:\python\lib\_xmlplus\dom\expatbuilder.py", line 940, in parsestring
17-11-2005 10:05:06 info
17-11-2005 10:05:06 info return builder.parsestring(string)
17-11-2005 10:05:06 info file "q:\python\lib\_xmlplus\dom\expatbuilder.py", line 223, in parsestring
17-11-2005 10:05:06 info
17-11-2005 10:05:06 info parser.parse(string, true)
17-11-2005 10:05:06 info xml.parsers.expat
17-11-2005 10:05:06 info .
17-11-2005 10:05:06 info expaterror
17-11-2005 10:05:06 info :
17-11-2005 10:05:06 info not well-formed (invalid token): line 15, column 13
17-11-2005 10:05:06 info
17-11-2005 10:05:07 debug got rss feed: http://rss.news.yahoo.com/rss/topstories
17-11-2005 10:05:07 debug filecurl::close(d0621b84)
17-11-2005 10:05:26 debug httpapi start command: getsysteminfo paras: getsysteminfo;117
17-11-2005 10:05:27 info activating window id: 13000
17-11-2005 10:05:33 info activating window id: 10020
17-11-2005 10:05:33 info loading skin file: myscripts.xml
17-11-2005 10:05:34 info loading skin file: dialogok.xml
17-11-2005 10:05:41 info traceback (most recent call last):
17-11-2005 10:05:41 info file "q:\scripts\gamma-x\xnetload.py", line 348, in oncontrol
17-11-2005 10:05:41 info self.control_response(control)
17-11-2005 10:05:41 info file "q:\scripts\gamma-x\xnetload.py", line 393, in control_response
17-11-2005 10:05:41 info import xbmcupdate
17-11-2005 10:05:41 info file "q:\scripts\gamma-x\xbmcupdate.py", line 154, in ?
17-11-2005 10:05:41 info main()
17-11-2005 10:05:41 info file "q:\scripts\gamma-x\xbmcupdate.py", line 126, in main
17-11-2005 10:05:41 info x = xbmc_update(file)
17-11-2005 10:05:41 info file "q:\scripts\gamma-x\xbmcupdate.py", line 20, in
17-11-2005 10:05:41 info self.read_config(file)
17-11-2005 10:05:41 info file "q:\scripts\gamma-x\xbmcupdate.py", line 29, in read_config
17-11-2005 10:05:41 info self.dom = parsestring(open(file,'r').read())
17-11-2005 10:05:41 info file "q:\python\lib\_xmlplus\dom\minidom.py", line 1929, in parsestring
17-11-2005 10:05:41 info return expatbuilder.parsestring(string)
17-11-2005 10:05:41 info file "q:\python\lib\_xmlplus\dom\expatbuilder.py", line 940, in parsestring
17-11-2005 10:05:41 info return builder.parsestring(string)
17-11-2005 10:05:41 info file "q:\python\lib\_xmlplus\dom\expatbuilder.py", line 223, in parsestring
17-11-2005 10:05:41 info parser.parse(string, true)
17-11-2005 10:05:41 info expaterror: not well-formed (invalid token): line 15, column 13
17-11-2005 10:07:41 info activating window id: 12900


also, is there a way to put a password on the xbmc update function?
I'm not an expert but I play one at work.
Reply
#51
affini:

that is an xml reading error. check your xml file. if you didn't modify it too much there may be something wrong near the exceptions (it says "line 15, col 13" in your output) if you don't see anything wrong, send me the xml file (removing your sensitive info course Smile ) and i'll check it out.

also, what do you mean exactly. ask for the server password when you run it? just a password for usage... ?

ruuk



Reply
#52
my mods:

Quote:<xbmc_update>
<xbmc_dir path = "e:\apps\xbmc" />
<source url='smb://office/xbmc' />
<exceptions>
<file name="xboxmediacenter.xml" />
<file name="filezilla server.xml" />
<file name="skin\project mayhem iii\pal\dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal\home.xml" />
<file name="skin\project mayhem iii\pal16x9\dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal16x9\home.xml" />
</exceptions>
<copies>
<file name="default.xbe" dest="c:\xbmc.xbe" />
<file name="xboxmediacenter.xml" dest="_xboxmediacenter.xml" />
<file name="filezilla server.xml" dest="_filezilla server.xml" />
<file name="skin\project mayhem iii\pal\dialogsubmenu.xml" dest="skin\project mayhem iii\pal\_dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal\home.xml" dest="skin\project mayhem iii\pal\_home.xml" />
<file name="skin\project mayhem iii\pal16x9\dialogsubmenu.xml" dest="skin\project mayhem iii\pal16x9\_dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal16x9\home.xml" dest="skin\project mayhem iii\pal16x9\_home.xml" />
</copies>
</xbmc_update>'''
I'm not an expert but I play one at work.
Reply
#53
ok, some notes.
this is fine.
Quote:<xbmc_update>
<xbmc_dir path = "e:\apps\xbmc" />
i assume you added the stuff i mentioned earlier but removed it here. (ie computername)
Quote: <source url='smb://office/xbmc' />
Quote: <exceptions>
<file name="xboxmediacenter.xml" />
<file name="filezilla server.xml" />
<file name="skin\project mayhem iii\pal\dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal\home.xml" />
<file name="skin\project mayhem iii\pal16x9\dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal16x9\home.xml" />
</exceptions>
the destinations need to be absolute paths, i changed them below
Quote: <copies>
<file name="default.xbe" dest="c:\xbmc.xbe" />
<file name="xboxmediacenter.xml" dest="e:\apps\xbmc\_xboxmediacenter.xml" />
<file name="filezilla server.xml" dest="e:\apps\xbmc\_filezilla server.xml" />
<file name="skin\project mayhem iii\pal\dialogsubmenu.xml" dest="e:\apps\xbmc\skin\project mayhem iii\pal\_dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal\home.xml" dest="e:\apps\xbmc\skin\project mayhem iii\pal\_home.xml" />
<file name="skin\project mayhem iii\pal16x9\dialogsubmenu.xml" dest="e:\apps\xbmc\skin\project mayhem iii\pal16x9\_dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal16x9\home.xml" dest="e:\apps\xbmcskin\project mayhem iii\pal16x9\_home.xml" />
</copies>
the ''' at the end is causing the xml error.
Quote:</xbmc_update>'''

the copy lines will only copy from files on the xbox after the script fetches the files. since most of your 'copies' are in the exceptions, you will be making copies of the undmodified files, which i'm not sure is what you intended.
maybe i should create an exceptions dir in the xbmc dir and copy the exceptions there. what do you think?

so here is the full xml (just modify the source url).
Quote:<xbmc_update>
<xbmc_dir path = "e:\apps\xbmc" />
<source url='smb://office/xbmc' />
<exceptions>
<file name="xboxmediacenter.xml" />
<file name="filezilla server.xml" />
<file name="skin\project mayhem iii\pal\dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal\home.xml" />
<file name="skin\project mayhem iii\pal16x9\dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal16x9\home.xml" />
</exceptions>
<copies>
<file name="default.xbe" dest="c:\xbmc.xbe" />
<file name="xboxmediacenter.xml" dest="e:\apps\xbmc\_xboxmediacenter.xml" />
<file name="filezilla server.xml" dest="e:\apps\xbmc\_filezilla server.xml" />
<file name="skin\project mayhem iii\pal\dialogsubmenu.xml" dest="e:\apps\xbmc\skin\project mayhem iii\pal\_dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal\home.xml" dest="e:\apps\xbmc\skin\project mayhem iii\pal\_home.xml" />
<file name="skin\project mayhem iii\pal16x9\dialogsubmenu.xml" dest="e:\apps\xbmc\skin\project mayhem iii\pal16x9\_dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal16x9\home.xml" dest="e:\apps\xbmcskin\project mayhem iii\pal16x9\_home.xml" />
</copies>
</xbmc_update>



Reply
#54
ruuk,
i do not have my smb share passworded so i did not need the username/pw

also, the three single quote marks were from your original xml file. i did no mods.

maybe it is a problem with converting from linux to dos formated text file... i'm using ultraedit and it asks if you want to convert it to dos format... otherwise is it all run together using notepoad and such... thus completely unreadable... same as all your files in the package.
I'm not an expert but I play one at work.
Reply
#55
affini:

you will need the ip address in your smb url and if it is a windows pc you will almost certainly need the computername. on my computer i do not have my smb passworded and i need smb://computername;user@ip/share/path

ruuk
Reply
#56
ruuk,
this is odd... none of my smb urls in any other xbmc config needs a format like this:
'smb://office;[email protected]/xbmc'

why does yours require something so different?

got an error still

tried to run via gamma-x.py and then directly using xbmcupdate.py



Quote:17-11-2005 21:59:56 info loading skin file: dialogsubmenu.xml
17-11-2005 21:59:57 debug freevisualisation() started
17-11-2005 21:59:57 debug freevisualisation() done
17-11-2005 21:59:57 info activating window id: 10020
17-11-2005 21:59:57 info loading skin file: myscripts.xml
17-11-2005 21:59:58 debug httpapi start command: getsysteminfo paras: getsysteminfo;117
17-11-2005 21:59:58 info activating window id: 13000
17-11-2005 22:00:00 info activating window id: 10020
17-11-2005 22:00:00 info loading skin file: myscripts.xml
17-11-2005 22:00:00 info loading skin file: dialogok.xml
17-11-2005 22:00:04 info traceback (most recent call last):
17-11-2005 22:00:04 info file "q:\scripts\gamma-x\xnetload.py", line 348, in oncontrol
17-11-2005 22:00:04 info self.control_response(control)
17-11-2005 22:00:04 info file "q:\scripts\gamma-x\xnetload.py", line 393, in control_response
17-11-2005 22:00:04 info import xbmcupdate
17-11-2005 22:00:04 info file "q:\scripts\gamma-x\xbmcupdate.py", line 156
17-11-2005 22:00:04 info config = r'''\
<?xml version="1.0" ?>
<xbmc_update>
<xbmc_dir path = "e:\apps\xbmc" />
<source url='smb://office;[email protected]/xbmc' />
<exceptions>
<file name="xboxmediacenter.xml" />
<file name="filezilla server.xml" />
<file name="skin\project mayhem iii\pal\dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal\home.xml" />
<file name="skin\project mayhem iii\pal16x9\dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal16x9\home.xml" />
</exceptions>
<copies>
<file name="default.xbe" dest="c:\xbmc.xbe" />
<file name="xboxmediacenter.xml" dest="e:\apps\xbmc\_xboxmediacenter.xml" />
<file name="filezilla server.xml" dest="e:\apps\xbmc\_filezilla server.xml" />
<file name="skin\project mayhem iii\pal\dialogsubmenu.xml" dest="e:\apps\xbmc\skin\project mayhem iii\pal\_dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal\home.xml" dest="e:\apps\xbmc\skin\project mayhem iii\pal\_home.xml" />
<file name="skin\project mayhem iii\pal16x9\dialogsubmenu.xml" dest="e:\apps\xbmc\skin\project mayhem iii\pal16x9\_dialogsubmenu.xml" />
<file name="skin\project mayhem iii\pal16x9\home.xml" dest="e:\apps\xbmcskin\project mayhem iii\pal16x9\_home.xml" />
</copies>
</xbmc_update>

return config

class test_label:
def setlabel(self,text):
pass

def main():
from xnlmodules.dialogs import progress_dialog
if os.path.exists(os.path.join(utility.get_working_dir(),'xnlsettings')):
file = os.path.join(utility.get_working_dir(),'xnlsettings','xbmcupdate.xml')
else:
file = os.path.join(utility.get_working_dir(),'xbmcupdate.xml')
x = xbmc_update(file)
import time
import xbmcgui
xbmcgui.lock()
dialog = none
try:
dialog = progress_dialog()
dialog.start_bench = time.clock()
dialog.speed_label = test_label()
dialog.create('updating','updating xbmc.','please wait...')
x.progress = dialog
browsers.prog_dialog = dialog

not_copied = x.get_xbmc()
dialog.close()
dialog = none
finally:
xbmcgui.unlock()
if dialog: dialog.close()

if not_copied:
not_copied = ['not copied:'] + not_copied
dialogs.list_dialog('not copied',not_copied)
yes = xbmcgui.dialog().yesno('finished','update finished. restart xbox?')
if yes:
import xbmc
xbmc.restart()

main()
17-11-2005 22:00:04 info
































































^
17-11-2005 22:00:04 info syntaxerror: eof while scanning triple-quoted string
17-11-2005 22:00:06 info file "
17-11-2005 22:00:06 info q:\scripts\gamma-x\xbmcupdate.py
17-11-2005 22:00:06 info ", line
17-11-2005 22:00:06 info 156
17-11-2005 22:00:06 info
17-11-2005 22:00:06 info
17-11-2005 22:00:06 info
17-11-2005 22:00:06 info
17-11-2005 22:00:06 info ^
17-11-2005 22:00:06 info syntaxerror
17-11-2005 22:00:06 info :
17-11-2005 22:00:06 info eof while scanning triple-quoted string
17-11-2005 22:00:06 info
17-11-2005 22:00:07 info loading skin file: home.xml



I'm not an expert but I play one at work.
Reply
#57
ahhhhhhh, now i see what your are doing. that's where the triple quotes came from.

the xml should go into a file called xbmcupdate.xml

this can either go into the xnetload\xnlsettings dir (where there is already a template stored) or in the same dir with xbmcupdate.py

you don't edit the xbmcupdate.py file. that xml you see there is part of some code for creating an xml file if one is not found.

you should probably delete your xbmcupdate.py file and replace it from gamma-x.zip.

python scripts don't have any access to xbmc samba shares. the smb format for gamma-x is dependent on a python samba module that has nothing to do with xbmc and that i did not write.

hope all that helps. Smile

ruuk
Reply
#58
i reinstalled fresh and changed the xml file this time...
no workie.

maybe you can put in some error trapping to give better on-screen and in xbmc log error codes?


here's the log:

Quote:18-11-2005 00:05:49 info loading skin file: myscripts.xml
18-11-2005 00:05:49 info loading skin file: dialogok.xml
18-11-2005 00:05:51 info traceback (most recent call last):
18-11-2005 00:05:51 info   file "q:\scripts\gamma-x\xnetload.py", line 348, in oncontrol
18-11-2005 00:05:51 info     self.control_response(control)
18-11-2005 00:05:51 info   file "q:\scripts\gamma-x\xnetload.py", line 393, in control_response
18-11-2005 00:05:51 info     import xbmcupdate
18-11-2005 00:05:51 info   file "q:\scripts\gamma-x\xbmcupdate.py", line 142, in ?
18-11-2005 00:05:51 info     main()
18-11-2005 00:05:51 info   file "q:\scripts\gamma-x\xbmcupdate.py", line 114, in main
18-11-2005 00:05:51 info     x = xbmc_update(file)
18-11-2005 00:05:51 info   file "q:\scripts\gamma-x\xbmcupdate.py", line 20, in
18-11-2005 00:05:51 info     self.read_config(file)
18-11-2005 00:05:51 info   file "q:\scripts\gamma-x\xbmcupdate.py", line 29, in read_config
18-11-2005 00:05:51 info     self.dom = parsestring(open(file,'r').read())
18-11-2005 00:05:51 info   file "q:\python\lib\_xmlplus\dom\minidom.py", line 1929, in parsestring
18-11-2005 00:05:51 info     return expatbuilder.parsestring(string)
18-11-2005 00:05:51 info   file "q:\python\lib\_xmlplus\dom\expatbuilder.py", line 940, in parsestring
18-11-2005 00:05:51 info     return builder.parsestring(string)
18-11-2005 00:05:51 info   file "q:\python\lib\_xmlplus\dom\expatbuilder.py", line 223, in parsestring
18-11-2005 00:05:51 info     parser.parse(string, true)
18-11-2005 00:05:51 info expaterror: not well-formed (invalid token): line 15, column 12



I'm not an expert but I play one at work.
Reply
#59
so, let me see if i understand this....

as it stands if i compile a new build and store it in a given location (and of course edit the config for this app to reflect that) then i can use the updater to fetch it from my network and update it automatically?

if the above is true, does the updater work with archives and perhaps rename the default.xbe if i am using it as a dash?
Image
Reply
#60
harsh,
yes... just look at my config file...
I'm not an expert but I play one at work.
Reply
  • 1
  • 2
  • 3
  • 4(current)
  • 5
  • 6
  • 13

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Gamma-X (formerly called "Xbox Net Loader") Xbox game manager and launcher0