Over-complication of emulators turning me off to XBMC

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
JTG2003 Offline
Junior Member
Posts: 41
Joined: Jul 2010
Reputation: 0
Post: #1
Let me start by saying that I love XBMC's ease of use and intuitive interface. It has become a great media hub for playing movies and TV shows. However, the other main reason I put my HTPC together was as an emulation box. I built a powerful system that should be able to support some more-recent emulators.

I have has nothing but the worst trouble dealing with Launcher and Advanced Launcher. From starting the game, getting it to show up in fullscreen, to exiting the game.. there always seems to be something going wrong. I downloaded the latest XBMC yesterday to replace my v10 install, and now my emulators don't work at ALL. At least before I could get them to start.

My biggest problems:
1) Starting an emulator in fullscreen then getting XBMC to resume fullscreen after (This is my #1 issue)
.. actually I think if that first problem was solved, it would fix most of the rest.

It seems like whenever I run ANY external application, XBMC either wont resume fullscreen or for some reason it changes the resolution. I have had problems with this for over a year. And since I don't have a mouse+keyboaard handy in the living room for the hours of configuration it takes to get just one application to work right, I need to constantly remote to the HTPC over the network.

In short, as much as I love XBMC for video playback, the external application launchers are so frustrating, it's making me want to switch to another front end. Can anyone relate or does anyone have any suggestions?

I appreciate you taking the time to read this.
Thanks,
Jeremy
(This post was last modified: 2012-07-30 20:38 by joebrady.)
find quote
artrafael Offline
Team-XBMC Forum Moderator
Posts: 4,424
Joined: Jul 2010
Reputation: 78
Location: USA
Post: #2
You could write a script that terminates XBMC, runs your external application and, upon exiting the applicatiaon, restarts XBMC. This way, XBMC doesn't step on the external app and/or vice versa. See here for a rudimentary example. The script can be added to a favourite and, if your skin supports it, you can even create a homepage shortcut to the favourite.

To ensure XBMC always starts in fullscreen, you can add the following to advancedsettings.xml:
Code:
<advancedsettings>
  <fullscreen>true</fullscreen>
</advancedsettings>
find quote
JTG2003 Offline
Junior Member
Posts: 41
Joined: Jul 2010
Reputation: 0
Post: #3
Sounds good.. that would fix a lot of issues. This scripting is a bit over my head though .. what executes the script?


Edit: I'm running XBMC over Windows .. could I use EventGhost to handle this? I still don't really know how that works so if I someone could walk me through that, I would appreciate it....
(This post was last modified: 2012-07-30 01:54 by JTG2003.)
find quote
artrafael Offline
Team-XBMC Forum Moderator
Posts: 4,424
Joined: Jul 2010
Reputation: 78
Location: USA
Post: #4
(2012-07-30 01:39)JTG2003 Wrote:  Edit: I'm running XBMC over Windows .. could I use EventGhost to handle this? I still don't really know how that works so if I someone could walk me through that, I would appreciate it....
Sorry, since you hadn't mentioned any OS in your initial post, I mistakenly assumed you were running XBMCbuntu. I'll have to defer to Windows users regarding EventGhost or for an equivalent script that can terminate XBMC, run an external application and then restart XBMC.
find quote
Carb0 Offline
Senior Member
Posts: 171
Joined: Sep 2011
Reputation: 0
Post: #5
I use AutoIt on Windows 7. Here is an example:

Code:
Run ( '"C:\HTPC\Emulatoren\PCSX2\pcsx2.exe" --fullboot --nogui --fullscreen "' & $CmdLine[1] & '"', "C:\HTPC\Emulatoren\PCSX2\" )
ProcessWaitClose ( "pcsx2.exe" )
Run ( "C:\Program Files (x86)\XBMC\XBMC.exe" )

The first line starts PCSX2 (a PS2 emulator) with the arguments "--fullboot --nogui --fullscreen" and the path to the ISO file "$CmdLine[1]" passed to the script by XBMC/Advanced Launcher. The second line pauses the script until PCSX2 is closed. And the third line maximizes XBMC.

You can create an executable of this script with AutoIt and then choose the created executable as a file launcher in Advanced Launcher. In Advanced Launcher you have to go to "Edit Launcher -> Advanced Modifications" and set "Toggle XBMC Fullscreen" to "Off". In this example you also have to set "Modify Arguments" to "%rom%".

There is a wiki page for Advanced Launcher where the possible command line options for some emulators are explained. http://www.gwenael.org/xbmc/index.php

NHL Gamecenter Addon
Watch live out-of-market games, full length and condensed game replays and classic games in XBMC. Get it now!


The Verge Addon
Watch podcast from theverge.com in XBMC. Get it now!
find quote
JTG2003 Offline
Junior Member
Posts: 41
Joined: Jul 2010
Reputation: 0
Post: #6
Thanks, Carb0. I will give this a shot tonight. One other problem is the lack of a universal button to close emulators. Project 64 for example.. the button on my remote emulates an "esc" keypress and in Project 64, that simply toggles fullscreen.

Is there any way to use this AutoIt to assist with closing an emulator based on a keypress?
find quote
reksveks Offline
Member
Posts: 75
Joined: Sep 2010
Reputation: 0
Post: #7
This is an example of my launcher; might help.

Code:
HotKeySet("{ESC}", "Terminate")

If $CmdLine[0] == 1 Then
    Run ( 'pssuspend XBMC.exe' )
    Run ('"C:\Users\Anon\Downloads\XBMC tools\Xpadder.exe" "C:\Users\Anon\Downloads\XBMC tools\PStwo.xpadderprofile"')
    Run ( '"Z:\Games\Playstation 2\Emulator\pcsx2.exe" --nogui --fullscreen "' & $CmdLine[1] & '"', "Z:\Games\Playstation 2\Emulator\" )
    While 1
       Sleep(100)
    WEnd
    EndIf

Func Terminate()
    ProcessClose ( "pcsx2.exe" )
    Run ('"C:\Users\Anon\Downloads\XBMC tools\Xpadder.exe" "C:\Users\Anon\Downloads\XBMC tools\xbmc.xpadderprofile"')
    Run ( 'pssuspend -r "XBMC.exe"' )
    Exit 0

Basically it allows me to just use my xbox controller, my xpadder profile is setup so that if I press L1, R1, LT and RT in order; xpadder emulates a key press of ESC which then close the emulator and xbmc is resumed. I would like it to be setup so the order isn't relevant. PS if anyone has an autoit script example that does the same by using the controllers output, I would be very grateful.
find quote
JTG2003 Offline
Junior Member
Posts: 41
Joined: Jul 2010
Reputation: 0
Post: #8
Code:
HotKeySet("{ESC}", "Terminate")
Run ( '"C:\HTPC\Emulatoren\PCSX2\pcsx2.exe" --fullboot --nogui --fullscreen "' & $CmdLine[1] & '"', "C:\HTPC\Emulatoren\PCSX2\" )
ProcessWaitClose ( "pcsx2.exe" )
Run ( "C:\Program Files (x86)\XBMC\XBMC.exe" )

Func Terminate()
    ProcessClose ( "pcsx2.exe" )
    Exit 0

Mmkay, I'm at work so I can't test this. Would this work? I mashed the two examples together. I would think this would start the emulator then resume XBMC when the emulator closes. The emulator can be forced to closed by pressing "ESC".

Thoughts?

Edit: I'm perfectly fine just using ESC to close it. My remote has a big 'back' button which sends "ESC" - I'd rather use the remote to close rather than buttons on the controller.
(This post was last modified: 2012-07-30 19:18 by JTG2003.)
find quote
Eldorado Offline
Posting Freak
Posts: 922
Joined: May 2009
Reputation: 11
Post: #9
(2012-07-30 17:10)JTG2003 Wrote:  Thanks, Carb0. I will give this a shot tonight. One other problem is the lack of a universal button to close emulators. Project 64 for example.. the button on my remote emulates an "esc" keypress and in Project 64, that simply toggles fullscreen.

Is there any way to use this AutoIt to assist with closing an emulator based on a keypress?

Isn't this more a configuration issue with the emulator?

PJ64 should have a keymap that you can edit, change what the ESC key is doing to make it exit the emulator

I've had to do this for pretty much every emulator I'm using
find quote
JTG2003 Offline
Junior Member
Posts: 41
Joined: Jul 2010
Reputation: 0
Post: #10
(2012-07-30 19:33)Eldorado Wrote:  Isn't this more a configuration issue with the emulator?

PJ64 should have a keymap that you can edit, change what the ESC key is doing to make it exit the emulator

I've had to do this for pretty much every emulator I'm using

I'm about 90% sure Project 64 doesn't have an option to change what the keys do (at least, it doesn't let you map a button to exit). Nestopia and ZSNES can both exit with "ESC" so no problems there. I don't know if the others can change the keys, haven't gotten that far yet.
find quote
Post Reply