XBMC4XBOX Launch Roms
-
- Posts: 532
- Joined: Thu Aug 02, 2012 7:46 am
- Has thanked: 82 times
- Been thanked: 61 times
XBMC4XBOX Launch Roms
heres a cool little app that might help us xbmc4xbox users launcher our games
thank you skatulskijean
you need to have the location of your default.xbe
and your rom location
make a text file and name copy and paste this inside
import xbmc
import xbmcgui
import os
import sys
emu = "E:\\Emulators\\NES\\default.xbe"
dir = "E:\\Emulators\\NES\\nesroms\\"
def savecut(name):
f = open("z:\\emu.cut","w")
d = "<shortcut><path>%s</path><custom><game>%s</game></custom></shortcut>" % (emu,name)
f.write(d)
f.close()
def checkdir(tdir):
dl = os.listdir(tdir)
ret = xbmcgui.Dialog().select("choose",dl)
if os.path.isdir(tdir+dl[ret]):
checkdir(tdir+dl[ret])
else:
savecut(tdir+dl[ret])
xbmc.executebuiltin('xbmc.runXBE(z:\\emu.cut)')
checkdir(dir)
now name it default.py
you can now place this file side /Q/plugins/programs
with confluence lite you can have it presented like a program short cut
NOTE:
im sorry but i cant seem to get it to work with surreal64 other emulators with other launchers
make sure your locations are correct if not this will not work
thank you skatulskijean
you need to have the location of your default.xbe
and your rom location
make a text file and name copy and paste this inside
import xbmc
import xbmcgui
import os
import sys
emu = "E:\\Emulators\\NES\\default.xbe"
dir = "E:\\Emulators\\NES\\nesroms\\"
def savecut(name):
f = open("z:\\emu.cut","w")
d = "<shortcut><path>%s</path><custom><game>%s</game></custom></shortcut>" % (emu,name)
f.write(d)
f.close()
def checkdir(tdir):
dl = os.listdir(tdir)
ret = xbmcgui.Dialog().select("choose",dl)
if os.path.isdir(tdir+dl[ret]):
checkdir(tdir+dl[ret])
else:
savecut(tdir+dl[ret])
xbmc.executebuiltin('xbmc.runXBE(z:\\emu.cut)')
checkdir(dir)
now name it default.py
you can now place this file side /Q/plugins/programs
with confluence lite you can have it presented like a program short cut
NOTE:
im sorry but i cant seem to get it to work with surreal64 other emulators with other launchers
make sure your locations are correct if not this will not work
-
- Posts: 532
- Joined: Thu Aug 02, 2012 7:46 am
- Has thanked: 82 times
- Been thanked: 61 times
Re: XBMC4XBOX Launch Roms
if someone can help me out write a view for this, to present front covers, fanart,video preview, maybe text if possible or just the basic cover and fanart, im not sure where to start
we can improve this little shortcut launcher with time.
we can improve this little shortcut launcher with time.
-
- Posts: 532
- Joined: Thu Aug 02, 2012 7:46 am
- Has thanked: 82 times
- Been thanked: 61 times
Re: XBMC4XBOX Launch Roms
Hey sounds good if you can help out, and yes it supports all mad mabs emulators, I'm sure theirs a work around for other emulators, like surreal has the default.xbe but also has the ultrahle.xbe and the others so need to find out to get around, in this case we can try to just use mad mab emulators but I heard of ways this will work, this app is like the shortcuts but the other way around if you see what I mean so I'm sure its possible just Need time to see what it needs
Re: XBMC4XBOX Launch Roms
Nope that wouldn't workmake a text file and name copy and paste this inside
Code: Select all
if
For Surreal64 I found out via google: "Surreal64 XXX B5 - Command Line Patch v2.0" should work to run that roms from xbmc
Btw is there a thread where Jan published this?
-
- Posts: 532
- Joined: Thu Aug 02, 2012 7:46 am
- Has thanked: 82 times
- Been thanked: 61 times
Re: XBMC4XBOX Launch Roms
Good question, he never said about this anymore, can't say I do, ask him about this, he give you some more info
Re: XBMC4XBOX Launch Roms
He's not active anymore that's why I asked.
I took a look at this and found out that xbmc can launch roms by shortcut but only xport emus are supported officially.
I tested it using xboyadvance and the gameboy roms launched fine although there where annoying nags so it wouldn't boot directly without pressing first b button.
Note: Of course you can't just link to an emu. The emu must have implemented a way to handle args[] as roms.
I will take a look at SNES and N64. I think the last one will work good. The python script will give a better overview I'll improve this soon for standard emus and all in one.
I took a look at this and found out that xbmc can launch roms by shortcut but only xport emus are supported officially.
I tested it using xboyadvance and the gameboy roms launched fine although there where annoying nags so it wouldn't boot directly without pressing first b button.
Note: Of course you can't just link to an emu. The emu must have implemented a way to handle args[] as roms.
I will take a look at SNES and N64. I think the last one will work good. The python script will give a better overview I'll improve this soon for standard emus and all in one.
-
- Posts: 532
- Joined: Thu Aug 02, 2012 7:46 am
- Has thanked: 82 times
- Been thanked: 61 times
Re: XBMC4XBOX Launch Roms
Yeah I was not aware of that peraon not active, and thanks, I used the shortcuts it to much work to ad front offers and fan art so I rather see another way to have images, and fan art, but what I was goi g for was a similar launcher like the old ones that don't work anymore, or a basic ROM Collection but with out the skin, kind like a plugin and not a script, this would be perfect, it would go with all skins
-
- Posts: 532
- Joined: Thu Aug 02, 2012 7:46 am
- Has thanked: 82 times
- Been thanked: 61 times
Re: XBMC4XBOX Launch Roms
it uses theses codes http://mirrors.xbmc.org/docs/python-docs/stable/ but im not sure how to work this stuff, never got anyone to help me understand it, i tried to add codes and views but dang i cant. but chekcck if you can make it better like download from internet info and fanart, cover
-
- Posts: 532
- Joined: Thu Aug 02, 2012 7:46 am
- Has thanked: 82 times
- Been thanked: 61 times
Re: XBMC4XBOX Launch Roms
you need to be sure your locations are correct, where your roms are located and your launcher, also
Code: Select all
import xbmc
import xbmcgui
import os
emu = "E:\\Emulators\\Genesis\\default.xbe"
dir = "E:\\Roms\\Sega Genesis\\"
def savecut(name):
f = open("z:\\emu.cut","w")
d = "<shortcut><path>%s</path><custom><game>%s</game></custom></shortcut>" % (emu,name)
f.write(d)
f.close()
def checkdir(tdir):
dl = os.listdir(tdir)
ret = xbmcgui.Dialog().select("choose",dl)
if os.path.isdir(tdir+dl[ret]):
checkdir(tdir+dl[ret])
else:
savecut(tdir+dl[ret])
xbmc.executebuiltin('xbmc.runxbe(z:\\emu.cut)')
checkdir(dir)
- Ninhooo
- Posts: 55
- Joined: Wed Aug 21, 2013 1:17 am
- Location: Brasil
- Has thanked: 4 times
- Been thanked: 5 times
Re: XBMC4XBOX Launch Roms
Tested but when starting the plugin has no way to cancel the release of the rom and go back to xbmc. Did it have any way to solve this, so do not throw it anyway and quit xbmc.
-
- Posts: 532
- Joined: Thu Aug 02, 2012 7:46 am
- Has thanked: 82 times
- Been thanked: 61 times
Re: XBMC4XBOX Launch Roms
i dont know how to cancel lol, i tried to add a cancel code, either i dont understand the codes or they dont work with this plugin, so you either have to restart xbmc or play the game then exit, if you press b at times to cancel it will only play the very last rom you can play, im sorry, i also wanted to add front covers, or atleast screenshots from the emulators, we use, for example i wanted to bring the images from screenshots we use in the games, to show on this window on the side, that should be enough for someone to select a game, but like i said either i dont understand or the codes dont work or something im doing wrong.
i know we can get it going we just need time to fix this issues, also we can try to use a window and not a dialog
i know we can get it going we just need time to fix this issues, also we can try to use a window and not a dialog