yashsingh1/xdaforums huggingface dataset:
[Ouya General] tarvoke:
man, thanks to the reference to ouyaforum, I've seen the link to the latest/cheapest BT+IR controller that honestly will work both my TV/LCD and the Ouya at the same time - http://www.amazon.com/Media-Blu-ray-Remote-Control-Playstation-3/dp/B0050SX9I2/. ordered and gonna give it a try.

I got a Rii bluetooth off spamazon a while back but it is not performing up to snuff.
[Ouya General] IncognitoMan:
Just curious since I don't know what all the currently most used ( or user preferred ) emulators these days are.... but if people here could start listing emulators they use or would like to see the args and setup for please do post here and I'll get to adding it into the second post.
[Ouya General] drWIDOWMAKER:
Sega Saturn and Atari Jaguar would be cool! :good:
[Ouya General] shirleeey:
I just wanted to say that this looks really awesome and can't wait to try it out!
[Ouya General] 1995mkw:
Speechless

I cant believe I never found this thread until today. This is amazing, I cant thank you enough. This makes the Ouya a 1000x better. :good::good::good:

This needs to be put in more places. Is it okay if I post a link to this thread on a couple of forums(gwenael, xbmc.org, freaktab, xbmchub, xunitytalk, and so on)? Many people are curios about launching games through xbmc on android.

This is just.........I can't even put it into words.

You just made my month.

Thank you.Thank you. Thank you.Thank you. Thank you.Thank you. Thank you.Thank you. Thank you.Thank you.

---------- Post added at 07:47 AM ---------- Previous post was at 07:38 AM ----------

ppsspp(side-loaded) is the only one I dont see that id like to know for the ouya(Retroarch/libretro along with Mupen64plus pretty much handle everything else for me)

So how do you figure these arguments out in the first place?
[Ouya General] IncognitoMan:
I was meaning to right a bit more in the guide in regards to how to figure out the args ( or in this case what intents are being called upon ) but to basically sum it up you can logcat and see how the apps intents are being passed and whats being called for ( you can also do the same thing by decompiling and looking at the source but for 90% of it you *should* be able to get away with using just logcat )

So far I haven't been able to get ppsspp to work due to it missing intents we need... so until the author adds intents that we can use to call for we cant use ppsspp with this other than to load the emulator.

Also I'll be massively updating ( and cleaning ) this thread *soon* to include RCB support ( Rom Collection Browser )

Yesterday between me and EldonMcGuinness we figured out what was causing the issues with it not wanting to work on android... lucky for us the changes were small and very little had to be done to make it work ( and it basically works the same way as Advanced Launcher )... The benefit of being able to use RCB is quite nice since not only is RCB included in the main repo of plugins ( thus this works not only on frodo but gotham too! ) but also because some skins actually have RCB support as a widget... so for instance my last 10 played games are shown on the home screen...

As for posting this at other forums I'm fine with that as long as it links back here so I can answer questions or maybe take requests on which games/apps they'd like to see added to the list.

--edit:

In fact you should start seeing the changes today ( I'll probably be moving posts around and refining more throughout the day )
[Ouya General] 1995mkw:
Its a shame ppsspp wont work. However the fact that RCB is on the verge of working is quite nice(RCB is what Im using on my HTPC).

I'll try fiddling around with logcat later(Its all always good to know how to do things yourself.)

One of the things I noticed about this thread is the lack of activity(posts/veiws) despite its significance(I believe this is due to the lack of traffic in the Ouya section of xda). Im sure a lot of people are interested in this but just haven't had the opportunity to see the thread(Ive been looking for something like this since just after Christmas and only found it just now). This is is useful to more than just people with an Ouya. Anyone running an android device attached to their TV can benefit from this guide(Though the Ouya makes the most sense since it is operated with a gamepad).

So I figured posting links to this thread on the places I was originally looking(Mainly xbmc and advanced launcher related resouses/fourums. I just never thought about looking in a device specific forum despite it being the device I wanted this for in the first place) would help people find this easier.
[Ouya General] IncognitoMan:
I've been thinking about posting this into a more generic section once the guide is a little more... finished. As yes you are correct, the guide applies to all devices that are plugged into a tv and use xbmc ( very little of the guide has to be changed... only retroarch's IME selection and location of su is about it )

As for RCB I updated the second post so far to include what has to be changed to get it to work on android... the rest of it works similar to Advanced Launcher but I need to fill the rest out for that.
[Ouya General] 1995mkw:
Ignore this post.
[Ouya General] sindrefyrn:
I'm having some problems with Mupen64Plus AE. I've used the root command, haven't tried the one with am. I think there's some problems with the parameters, because I've tried running the command in terminal it says that the MainActivity doesn't exist.

I checked Mupen64Plus AE on Github, and it seems like they don't use the MainActivity any longer, but I don't know what command to use instead. Oh, and I'm using an Android stick, not an Ouya, but that shouldn't matter in this case - should it? I'm still using SPMC.

Any help, please?

Cheers
[Ouya General] IncognitoMan:
I'll check it out sometime today... ATM I'm using my ouya for test flashing cm10.2/cm11 builds so I haven't had much time to see if they've changed ( I did find out that retroarch changed and have fixed the args accordingly ).
[Ouya General] sindrefyrn:
That's awesome - thanks.
[Ouya General] IncognitoMan:
I'm guessing you are using the free version from the google play store...

If so then there's a *slight* change to the command... heres the command set for people wanting to use the one on the playstore. ( as of 2.4.4 )

Mupen64Plus AE Free 2.4.4:

non-root: ( will load the emulator menu with the correct rom selected )

start -n paulscode.android.mupen64plus.free/paulscode.android.mupen64plusae.MainActivity -a android.intent.action.VIEW -eu Uri "file://%rom%"

root: ( will first load the emulator with the correct rom and then reload to the play menu to either resume where you last left off on your game or restart the emu so the game is at first boot )

-c 'am start -n paulscode.android.mupen64plus.free/paulscode.android.mupen64plusae.MainActivity -a android.intent.action.VIEW -eu Uri "file://%rom%" && am start -S -n paulscode.android.mupen64plus.free/paulscode.android.mupen64plusae.PlayMenuActivity'

-----

*sigh* this is why I wish I would have a more vanilla android device to test this with...

Anyway thanks for the heads up sindrefyrn... if you run across any others that have problems let me know and I'll see about checking it out.
[Ouya General] sindrefyrn:
THANK YOU!!! :laugh:

This is amazing. I'm actually using the paid version, but even I could figure out what to do with the command.
[Ouya General] Techhead33:
Roms on NFS mount

First I would like to thank you for all of the work that has been put to get things working!!!!

My question is around XMBC and NFS mounts. In XMBC / Rom Collection Browser I am able to map an nfs share to my roms. When I click on a rom to play it comes up to the menu for Snes9x EX+. Is this the expected behavior? I know when I launch Snes9x that it only sees the local file system so I am guessing that is the reason that it does not play the game but wanted to check because of going through XBMC. If that is the case is there a way to mount an nfs mount to the system when the system is rooted ?

Thank you
[Ouya General] IncognitoMan:
Should work as long as the command is passed correctly... sounds like its not finding the rom...

could you tell me where you are pointing your the roms folder? ( maybe paste the config for snes? )
[Ouya General] reifnotreef:
You are awesome!

Hey everyone,

I got my Ouya at Target last week, I had almost completely forgot about it(didn't kickstart back it) until I saw it there. Ended up impulse buying it knowing there would be at least some good games for it, at the very least I could use a side loaded XBMC or something to use it as a media computer for my tv.

Found this thread the other day and started working on it. Having some trouble with getting the emu's working correctly but I just need to go through the launcher/RCB setup and check all my files. I'm actually using a chromebook as my full time computer. I have Ubuntu installed on here that I just chroot into to run ADB/fastboot etc and it's working great.

Any word on updates to this? It would be epic if someone could put together an APK or something that could be sideloaded that had a pre-configured XBMC+RCB(pretty sure RCB is preferred by most people). Just have it setup for like the top 5 emu's and post instructions on where to put roms etc.

I was hoping you could post the config for SuperGNES(one of the ouya store's SNES emus)

And for other emu's, how do I know if I use the root or non-root version? For example: Mupen64Plus

And I wanted to say thank you so much for your work on the Ouya Incognito!

You have made my $160 investment much more worth it! I've been playing You Dont Know Jack and Super Mario World/SMB3 with my girlfriend haha!

Finally logged into XDA, google sign in ftw.
[Ouya General] IncognitoMan:
malte ( the dev of RCB ) said he would look into including fixes required to get it so you don't have to do the code changes to make RCB work on android. So atleast when he *does* include them it'll be less work to get RCB functional.

in terms of SuperGNES I do not have the full version...however I guess to get the full version working just remove "_lite" from the command...

SuperGNES lite:

non-root:

start -n com.bubblezapgames.supergnes_lite/.SuperGNES -a android.intent.action.VIEW -eu Uri "file://%rom%"

In terms of non-root vs root versions of the commands... in example of Mupen the difference is application selection ( am or su ) and what the command does.

For the non-root command it simply loads the emulator and menu with the correctly selected rom ( of which then you'll have to select play and then choose whether to resume or restart )

For the root command it does the same as above except after it has selected the rom it'll force reload the emu to its "play" menu from which you'll either select resume or restart.

Basically the root one will remove one step... and that is going from emulator menu -> play -> resume/restart
[Ouya General] Techhead33:
Found another way

Hey IncognitoMan thank you for the response. I have found a post in another forum that allowed me to mount my roms directly with busybox / nfs so now it is access by all of the apps in my ouya so now I do not have an issue...

Thank you
[Ouya General] IncognitoMan:
Ah glad to hear.

On another note massively updated the 3rd post's emulator args to include a lot more emulators... now up to 27

A note in regards to PPSSPP... you must use a development build >= Jan 6th for it to work... you can grab the latest build here http://www.ppsspp.org/downloads.html#devbuilds
[Ouya General] 1995mkw:
Wait. What? you found out a way to get PPSSPP working? Brilliant. This is why I keep checking this thread every couple of days. Things keep getting better and better.

I'm going to have to get an external HDD because 8gb is defiantly not enough for all the games Im going to put on this thing.

Also what skin are you using for RCB? It looks snazzy. Kinda reminds me of alaska.
[Ouya General] IncognitoMan:
Skin is arctic mk ii found here: http://forum.xbmc.org/showthread.php?tid=170954

Works great on frodo but when I tried it on gotham it killed my gotham setup. YMMV

Speaking of gotham... if you plan to use RCB with gotham and use a skin that causes RCB to go into its "fallback" mode it'll crash XBMC.
[Ouya General] jahjah440:
When I click to start a rom, nothing happens.
[Ouya General] IncognitoMan:
Could you tell me what you tried? ( maybe post your config? )

Give as much detail as possible so I can figure out what the problem may be.
[Ouya General] jahjah440:
Ok, I'm not using an OUYA, but that shouldn't really make a difference, right?

Anyway, I'm trying to use Rom Collection Browser. I think I'm following your directions, but I found that most of the code you have posted is already in the files?

I've got it set up, and the album art is downloaded and everything, but when I click the ROM, nothing happens. I've set it up using SuperGNES too. I'll post the config.xml (that's what you want, right?) in a few.
[Ouya General] IncognitoMan:
Did you comment out and modify the lines in applaunch.sh and launcher.py as with what the guide says? and yes post the config.xml ( and/or applaunch.sh and launcher.py just incase. )
[Ouya General] jahjah440:
I keep getting error: Error :script.games.rom.collection.browser

I don't think I'm commenting out properly or something. I've attached all three files below
[Ouya General] Groty:
Can you post a link to the post? I'm guessing you are able to load ROMS from a network share now? Something I've been trying to figure out how to do for a long time. CIFs Manager never worked for me.
[Ouya General] IncognitoMan:
You are only commenting out the first line... you'll need to comment out the entire block.

So for example this:

if(isFullScreen):
Logutil.log("Toggle to Windowed mode", util.LOG_LEVEL_INFO)
#this minimizes xbmc some apps seems to need it
try:
xbmc.executehttpapi("Action(199)")
except:
xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"togglefullscreen"},"id":"1"}')

toggledScreenMode = True

Becomes:

#	if(isFullScreen):
#	Logutil.log("Toggle to Windowed mode", util.LOG_LEVEL_INFO)
#	#this minimizes xbmc some apps seems to need it
#	try:
#	xbmc.executehttpapi("Action(199)")
#	except:
#	xbmc.executeJSONRPC('{"jsonrpc":"2.0","method":"Input.ExecuteAction","params":{"action":"togglefullscreen"},"id":"1"}')
#
#	toggledScreenMode = True
[Ouya General] jahjah440:
Urggg... I'm pretty sure I commented out properly this time. But when I click the ROM, it just says: Launch Super Mario World for about one second! But thank you for your help so far!
[Ouya General] IncognitoMan:
Everything looks okay so far... the only thing I could see that's even remotely possible is that either it needs to be %ROM% or that the zip you are pointing to doesn't work with supergnes lite

Can you try launching the command from adb shell? so for you it'd be:

am start -n com.bubblezapgames.supergnes_lite/.SuperGNES -a android.intent.action.VIEW -eu Uri "file:///mnt/sdcard/ROMS/SNES/putnameofrom.zip"

Where putnameofrom.zip is the game you are trying to load and tell me if that works.
[Ouya General] jahjah440:
" 'am' is not recognized as an internal or external command,

operable program or batch file."

If I delete the "am" command, it says "Windows could not find "-n". Make sure you typed the name correctly."

Edit: Just confirming that Super Mario World.zip starts fine when launched from SuperGNES lite. Hmmm....
[Ouya General] IncognitoMan:
adb shell into your android device.... once in THEN do that command and tell me the results.
[Ouya General] jahjah440:
am start -n com.bubblezapgames.supergnes_lite/.SuperGNES -a android.intent.action.VIEW -eu Uri "file:///mnt/sdcard/ROMS/SNES/Super Mario World.zip"

Starting: Intent { act=android.intent.action.VIEW dat=file:///mnt/sdcard/ROMS/SNES/Super Mario World.zip }

Error: Activity not started, unable to resolve Intent { act=android.intent.action.VIEW dat=file:///mnt/sdcard/ROMS/SNES/Super Mario World.zip flg=0x10000000 }
[Ouya General] IncognitoMan:
Try this...

am start -n com.bubblezapgames.supergnes_lite/.SuperGNES -a android.intent.action.VIEW -ei Uri "file:///mnt/sdcard/ROMS/SNES/Super Mario World.zip"
[Ouya General] jahjah440:
I'm getting the same error as before. Any idea what the problem is?
[Ouya General] IncognitoMan:
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...
[Ouya General] jahjah440:
I am using Gingerbread 2.3. I don't think that will cause problems though.
[Ouya General] IncognitoMan:
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..
[Ouya General] jahjah440:
Just tried SNES 9x+, no dice. Straight from the Play Store too....

The command of

am start -n com.explusalpha.Snes9xPlus/com.imagine.BaseActivity

starts the emulator perfectly fine.

The problem must lie somewhere in

[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:
[Ouya General] incidentic:
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
[Ouya General] jahjah440:
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

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.
[Ouya General] IncognitoMan:
Could you try loading it through adb shell? get into adb shell and execute

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.

Just pointing out that's the same exact command I said to try the first time around.... ( post #35 )
[Ouya General] jahjah440:
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
[Ouya General] Groty:
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:

Error while launching emulator: encode() argument 1 must be string, not NONE

And here's my config for the SNES collection

<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!
[Ouya General] IncognitoMan:
Sounds like you didn't modify parts in launcher.py correctly... care to post up your launcher.py config?
[Ouya General] Groty:
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?
[Ouya General] IncognitoMan:
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:
[Ouya General] ggrammer:
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?
[Ouya General] Keenana:
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!
[Ouya General] daeymon:
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?
[Ouya General] krazyflipj:
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
[Ouya General] IncognitoMan:
Try here:

/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.
[Ouya General] krazyflipj:
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