Script request or help
#1
i changed to xbmc as my main dash a few weeks ago - and haven't looked back since =)
one thing i did on my old dash (evox) was make a custom menu to change the skins for dead or alive 3 - and while using xbmc as the main dash if i want to change the skins i have to run evox and use that menu.
changing the skins is just a simple copying task ~ so i am wondering if it is possible to make a script in xbmc to do the same thing.
any pointers on how i should do this would be great =)
Reply
#2
copying files is pretty easy. you will probably want something like this which backs up a file and overwrites it. this is untested but everything you need is in shutil library and os library.

Quote:import shutil
src = 'f:\\games\\doa3\\replacementfile'
dst = 'f:\\games\\doa3\\filetochange'
backup = 'f:\\games\\doa3\\filetochange.original'
shutil.copyfile(dst, backup)
shutil.copyfile(src, dst)
Reply
#3
(asteron @ nov. 11 2005,06:59 Wrote:copying files is pretty easy.  you will probably want something like this which backs up a file and overwrites it.  this is untested but everything you need is in shutil library and os library.

Quote:import shutil
src = 'f:\\games\\doa3\\replacementfile'
dst = 'f:\\games\\doa3\\filetochange'
backup = 'f:\\games\\doa3\\filetochange.original'
shutil.copyfile(dst, backup)
shutil.copyfile(src, dst)
perfect ~ thank you =)
works like a charm =d

only problem i now have is that it is loads of script files lol!
44 for kasumi alone (11 skins - 4 different save slots) but i can work on that later - i got what i needed, i really appreciated the help =d
Reply
#4
np, ohh if you also want to launch the xbe do:
Quote:import xbmc #put this with the other import statement
xbmc.executebuilitin('xbmc.runxbe(f:\\games\\doa3\\default.xbe)')
Reply

Logout Mark Read Team Forum Stats Members Help
Script request or help0