XBMC4XBOX Launch Roms

Requests, suggestions, support, and everything else python / plugin related.
Post Reply
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

XBMC4XBOX Launch Roms

Post by NOTTHESAME »

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 :)

Image
Image

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
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: XBMC4XBOX Launch Roms

Post by NOTTHESAME »

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.
fxmech
Posts: 673
Joined: Wed Aug 01, 2012 9:15 am
Has thanked: 37 times
Been thanked: 46 times

Re: XBMC4XBOX Launch Roms

Post by fxmech »

Which emulators are supported? Just MadMab? I'll put some work into it if you can provide a little more expanded idea of which support direct launching of a specified ROM.
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: XBMC4XBOX Launch Roms

Post by NOTTHESAME »

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
tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 59 times

Re: XBMC4XBOX Launch Roms

Post by tim619 »

make a text file and name copy and paste this inside
Nope that wouldn't work

Code: Select all

if
needs right spacing.

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?
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: XBMC4XBOX Launch Roms

Post by NOTTHESAME »

Good question, he never said about this anymore, can't say I do, ask him about this, he give you some more info
tim619
Posts: 204
Joined: Sun Mar 10, 2013 10:22 am
Has thanked: 25 times
Been thanked: 59 times

Re: XBMC4XBOX Launch Roms

Post by tim619 »

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.
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: XBMC4XBOX Launch Roms

Post by NOTTHESAME »

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
User avatar
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

Post by Ninhooo »

I could not make this application work. how can I do this?
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: XBMC4XBOX Launch Roms

Post by NOTTHESAME »

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
User avatar
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

Post by Ninhooo »

I think you misunderstand. I was wondering how do I run this little script you posted.

I have created the default.py as you said and it did not work.
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: XBMC4XBOX Launch Roms

Post by NOTTHESAME »

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)
User avatar
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

Post by Ninhooo »

thanks for that my friend. Then take a look at who did the mod lite confluence concludes some changes because I am sure you will like.
User avatar
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

Post by Ninhooo »

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.
NOTTHESAME
Posts: 532
Joined: Thu Aug 02, 2012 7:46 am
Has thanked: 82 times
Been thanked: 61 times

Re: XBMC4XBOX Launch Roms

Post by NOTTHESAME »

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
Post Reply