[GUIDE] How to use XBMC as a game/emulation frontend.

IncognitoMan

Senior Member
Jul 2, 2013
132
209
0
I'm getting the same error as before. Any idea what the problem is?
Sadly I do not.... I've had a few people test it both OUYA and a few android stick devices and it has worked so far....

I just downloaded the lastest SuperGNES lite from playstore and tested the command with a zipped rom and it worked fine over here.

Sorry but ATM I'm stumped on this one...
 

jahjah440

Senior Member
Apr 30, 2011
196
45
0
Sadly I do not.... I've had a few people test it both OUYA and a few android stick devices and it has worked so far....

I just downloaded the lastest SuperGNES lite from playstore and tested the command with a zipped rom and it worked fine over here.

Sorry but ATM I'm stumped on this one...
I am using Gingerbread 2.3. I don't think that will cause problems though.
 

IncognitoMan

Senior Member
Jul 2, 2013
132
209
0
I am using Gingerbread 2.3. I don't think that will cause problems though.
Yea I just charged up my only 2.3 based device ( old Nook Color ) and tested it there... no problems either.

Only thing I can say is to make sure you are on the latest version of SuperGNES lite... or try a different snes emulator..
 
Last edited:

jahjah440

Senior Member
Apr 30, 2011
196
45
0
Yea I just charged up my only 2.3 based device ( old Nook Color ) and tested it there... no problems either.

Only thing I can say is to make sure you are on the latest version of SuperGNES lite... or try a different snes emulator..
Just tried SNES 9x+, no dice. Straight from the Play Store too....

The command of
Code:
am start -n com.explusalpha.Snes9xPlus/com.imagine.BaseActivity
starts the emulator perfectly fine.

The problem must lie somewhere in
Code:
[B]-a android.intent.action.VIEW -eu Uri[/B] "file:///mnt/sdcard/ROMS/SNES/Super Mario World.zip"
More specifically in the bolded part

Although I'm not sure what "unable to find intent" means.

Maybe XBMC and Android as a whole just hates me :laugh:
 

incidentic

New member
May 20, 2011
1
0
0
I'm racking my brain trying to get this working on my tablet. I'm using advanced launcher and trying to launch snesoid but nothing happens when trying to launch a rom...here is a screen of my config...any help would be great I would love to get this working thanks
 

Attachments

jahjah440

Senior Member
Apr 30, 2011
196
45
0
I'm racking my brain trying to get this working on my tablet. I'm using advanced launcher and trying to launch snesoid but nothing happens when trying to launch a rom...here is a screen of my config...any help would be great I would love to get this working thanks
I am having the same exact problem. I'm trying to find a solution though

---------- Post added at 11:49 AM ---------- Previous post was at 10:52 AM ----------

Yea I just charged up my only 2.3 based device ( old Nook Color ) and tested it there... no problems either.

Only thing I can say is to make sure you are on the latest version of SuperGNES lite... or try a different snes emulator..
Just had a breakthrough! Using the command
Code:
am start -n com.bubblezapgames.supergnes_lite/.SuperGNES -a android.intent.action.VIEW -eu Uri "file:///mnt/sdcard/ROMS/SNES/Super Mario World.zip"
through ADB Shell starts up the emulator and boots the ROM.

Still having no luck with starting it from XBMC though. Will keep trying.
 

IncognitoMan

Senior Member
Jul 2, 2013
132
209
0
I'm racking my brain trying to get this working on my tablet. I'm using advanced launcher and trying to launch snesoid but nothing happens when trying to launch a rom...here is a screen of my config...any help would be great I would love to get this working thanks
Could you try loading it through adb shell? get into adb shell and execute

Code:
am start -n com.androidemu.snes/.EmulatorActivity -a android.intent.action.VIEW -eu Uri "file:///extsd/data4emu/snes/nameofgame.zip"
Replacing nameofgame.zip with the rom you are trying to load.

I am having the same exact problem. I'm trying to find a solution though

---------- Post added at 11:49 AM ---------- Previous post was at 10:52 AM ----------



Just had a breakthrough! Using the command
Code:
am start -n com.bubblezapgames.supergnes_lite/.SuperGNES -a android.intent.action.VIEW -eu Uri "file:///mnt/sdcard/ROMS/SNES/Super Mario World.zip"
through ADB Shell starts up the emulator and boots the ROM.

Still having no luck with starting it from XBMC though. Will keep trying.
Just pointing out that's the same exact command I said to try the first time around.... ( post #35 )
 

jahjah440

Senior Member
Apr 30, 2011
196
45
0
I'm racking my brain trying to get this working on my tablet. I'm using advanced launcher and trying to launch snesoid but nothing happens when trying to launch a rom...here is a screen of my config...any help would be great I would love to get this working thanks
I know it's the same command, it just wasn't working before. Now it decided it wants to work. I need to get it to boot through XMBC though

Sent from my C6916 using xda app-developers app
 

Groty

New member
Jul 4, 2013
3
0
0
Ouya - Fully Updated
SMPC
RCB
Starting with Snes9x EX+

I've made all of the adjustments in the files you described and imported my SNES collection, everything is recognized and scraped. I then went into the config.xml and changed the params for the SNES collection. I also noticed that the same string params are editable through the RCB Rom Collection Configuration, but I still did it all through the XML file, it's easier to manipulate.

I receive the following error when I try to launch a SNES ROM. The screen also adjusts, putting the SPMC window in the bottom left of the screen and very small. Here's the error that displays across RCB:

Code:
Error while launching emulator: encode() argument 1 must be string, not NONE
And here's my config for the SNES collection

Code:
    <RomCollection id="1" name="SNES">
      <useBuiltinEmulator>False</useBuiltinEmulator>
      <gameclient />
      <emulatorCmd>/system/bin/am</emulatorCmd>
      <emulatorParams>start -n com.explusalpha.Snes9xPlus/com.imagine.BaseActivity -a android.intent.action.VIEW -eu Uri "file://%ROM%"</emulatorParams>
      <romPath>/usbdrive/SNESROMS/USA/*.smc</romPath>
      <saveStatePath />
      <saveStateParams />
      <mediaPath type="boxfront">/usbdrive/SNESROMS/USA/boxfront/%GAME%.*</mediaPath>
      <mediaPath type="boxback">/usbdrive/SNESROMS/USA/boxback/%GAME%.*</mediaPath>
      <mediaPath type="cartridge">/usbdrive/SNESROMS/USA/cartridge/%GAME%.*</mediaPath>
      <mediaPath type="screenshot">/usbdrive/SNESROMS/USA/screenshot/%GAME%.*</mediaPath>
      <mediaPath type="fanart">/usbdrive/SNESROMS/USA/fanart/%GAME%.*</mediaPath>
      <preCmd />
      <postCmd />
      <useEmuSolo>False</useEmuSolo>
      <usePopen>False</usePopen>
      <ignoreOnScan>False</ignoreOnScan>
      <allowUpdate>True</allowUpdate>
      <autoplayVideoMain>True</autoplayVideoMain>
      <autoplayVideoInfo>True</autoplayVideoInfo>
      <useFoldernameAsGamename>False</useFoldernameAsGamename>
      <maxFolderDepth>99</maxFolderDepth>
      <doNotExtractZipFiles>False</doNotExtractZipFiles>
      <diskPrefix>_Disk</diskPrefix>
      <imagePlacingMain>gameinfobig</imagePlacingMain>
      <imagePlacingInfo>gameinfosmall</imagePlacingInfo>
      <scraper name="thegamesdb.net" replaceKeyString="" replaceValueString="" />
      <scraper name="archive.vg" replaceKeyString="" replaceValueString="" />
      <scraper name="mobygames.com" replaceKeyString="" replaceValueString="" />
    </RomCollection>
Any help would be greatly appreciated!

Thanks!
 

IncognitoMan

Senior Member
Jul 2, 2013
132
209
0
Ouya - Fully Updated
SMPC
RCB
Starting with Snes9x EX+

I've made all of the adjustments in the files you described and imported my SNES collection, everything is recognized and scraped. I then went into the config.xml and changed the params for the SNES collection. I also noticed that the same string params are editable through the RCB Rom Collection Configuration, but I still did it all through the XML file, it's easier to manipulate.

I receive the following error when I try to launch a SNES ROM. The screen also adjusts, putting the SPMC window in the bottom left of the screen and very small. Here's the error that displays across RCB:

Code:
Error while launching emulator: encode() argument 1 must be string, not NONE
And here's my config for the SNES collection

Code:
    <RomCollection id="1" name="SNES">
      <useBuiltinEmulator>False</useBuiltinEmulator>
      <gameclient />
      <emulatorCmd>/system/bin/am</emulatorCmd>
      <emulatorParams>start -n com.explusalpha.Snes9xPlus/com.imagine.BaseActivity -a android.intent.action.VIEW -eu Uri "file://%ROM%"</emulatorParams>
      <romPath>/usbdrive/SNESROMS/USA/*.smc</romPath>
      <saveStatePath />
      <saveStateParams />
      <mediaPath type="boxfront">/usbdrive/SNESROMS/USA/boxfront/%GAME%.*</mediaPath>
      <mediaPath type="boxback">/usbdrive/SNESROMS/USA/boxback/%GAME%.*</mediaPath>
      <mediaPath type="cartridge">/usbdrive/SNESROMS/USA/cartridge/%GAME%.*</mediaPath>
      <mediaPath type="screenshot">/usbdrive/SNESROMS/USA/screenshot/%GAME%.*</mediaPath>
      <mediaPath type="fanart">/usbdrive/SNESROMS/USA/fanart/%GAME%.*</mediaPath>
      <preCmd />
      <postCmd />
      <useEmuSolo>False</useEmuSolo>
      <usePopen>False</usePopen>
      <ignoreOnScan>False</ignoreOnScan>
      <allowUpdate>True</allowUpdate>
      <autoplayVideoMain>True</autoplayVideoMain>
      <autoplayVideoInfo>True</autoplayVideoInfo>
      <useFoldernameAsGamename>False</useFoldernameAsGamename>
      <maxFolderDepth>99</maxFolderDepth>
      <doNotExtractZipFiles>False</doNotExtractZipFiles>
      <diskPrefix>_Disk</diskPrefix>
      <imagePlacingMain>gameinfobig</imagePlacingMain>
      <imagePlacingInfo>gameinfosmall</imagePlacingInfo>
      <scraper name="thegamesdb.net" replaceKeyString="" replaceValueString="" />
      <scraper name="archive.vg" replaceKeyString="" replaceValueString="" />
      <scraper name="mobygames.com" replaceKeyString="" replaceValueString="" />
    </RomCollection>
Any help would be greatly appreciated!

Thanks!
Sounds like you didn't modify parts in launcher.py correctly... care to post up your launcher.py config?
 

Groty

New member
Jul 4, 2013
3
0
0
Sounds like you didn't modify parts in launcher.py correctly... care to post up your launcher.py config?
Doh!

I'd re-installed RBC, so launcher.py was overwritten!

It's fixed now! Thank you!

One question. When I exit a game launched via RBC on the Ouya, it restarts SPMC. Is there a workaround for this? Is there a command to go back into the RCB screen when exiting an EMU game?
 

IncognitoMan

Senior Member
Jul 2, 2013
132
209
0
Doh!

I'd re-installed RBC, so launcher.py was overwritten!

It's fixed now! Thank you!

One question. When I exit a game launched via RBC on the Ouya, it restarts SPMC. Is there a workaround for this? Is there a command to go back into the RCB screen when exiting an EMU game?
Huh....for me it goes back to my last view ( in this case RCB menu ) but another person said they were having the same problem...

Honestly there's really no clean "way" to make it go back to last view in this case unless you untick the "Don't keep activities" option in the Developer option settings...

Anyway glad you got it working! :good:
 

ggrammer

Senior Member
Jan 24, 2010
151
25
0
So I have the emulators working great (Thanks incognitoman!) but my problem now is when I go into a rom (snesoid or nesoid) and want to exit I hit the U key on the remote and go to more and at this point it shows me the options but I can't access them with the remote or even the touchpad on the remote so I have to double tap U and click exit which takes me out of xbmc.
anybody else having this problem and find a way around it?
 
Last edited:

Keenana

New member
Feb 20, 2014
3
0
0
So I did a lot of messing around with the settings and the only way I was able to get either Advanced Launcher to work or RCB was to modify the program calls slightly to include "--user 0". I am not sure if this is related to my hardware or not as I am using a Minix Neo X7 which was rooted after the fact, but is running their non-root stock rom.

Anyways, for anyone who is having issues and wants to try this just add --user 0 to the commands as exampled below:

start -n com.explusalpha.Snes9xPlus/com.imagine.BaseActivity --user 0 -a android.intent.action.VIEW -eu Uri "file://%rom%"

Thanks for all the work on this one guys, this is awsome!
 

daeymon

Senior Member
May 15, 2008
193
55
0
Has anyone had any luck with launching Mame4Droid, ScummVM, DosBox or AGS (Adventure Game Studio Runtime). I've contacted the various developers but no responses. Anyone else played around with them at all?
 

krazyflipj

Senior Member
Jan 14, 2008
2,827
440
0
Noob to this and was wondering if anyone was able to get RCB to work on Gotham? Also I can't find applaunch.sh. Furthermore there isn't a scriptfiles directory. Trying to get this working on a ouya

Sent from my HTC One using Tapatalk
 
Last edited:

IncognitoMan

Senior Member
Jul 2, 2013
132
209
0
Noob to this and was wondering if anyone was able to get RCB to work on Gotham? Also I can't find applaunch.sh. Furthermore there isn't a scriptfiles directory. Trying to get this working on a ouya

Sent from my HTC One using Tapatalk
Try here:

Code:
/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/addons/script.games.rom.collection.browser/resources/scriptfiles/applaunch.sh
I forgot to add it to the guide so sorry about that.
 
  • Like
Reactions: krazyflipj

krazyflipj

Senior Member
Jan 14, 2008
2,827
440
0
Try here:

Code:
/sdcard/Android/data/org.xbmc.xbmc/files/.xbmc/addons/script.games.rom.collection.browser/resources/scriptfiles/applaunch.sh
I forgot to add it to the guide so sorry about that.
Not problems. Found it on a post you made on another forum. In any case I figured it out. I couldn't get supergnes to work but was able to use another snes emulator to get it working

Sent from my HTC One using Tapatalk
 

krazyflipj

Senior Member
Jan 14, 2008
2,827
440
0
Ok so now I'm having issues setting up root argument for the n64 emulator that's found on the Ouya. After making changes it breaks the script. I'm able to run the unrooted version though. Any suggestions? Set file path /system/xbin/su and used the one click method to root

Sent from my HTC One using Tapatalk
 

Epicrean

Member
Dec 5, 2010
19
0
0
I am having some issues with this part:

3.) Create a "launcher"

Open the newly created category which should prompt you to create a new launcher. Select "Files Launcher" and go through the menus ( select the launcher application [ su or am... read 3rd post ], select files path [ where the games are stored ] and set file extensions [ look at the example it gives ] )


When I click "files laucher" I just get a blank screen, no meus to or anything. any one can help?
 
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone