Kodi Community Forum

Full Version: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2013-06-01, 19:23)buymeapc Wrote: [ -> ]I would like to say what a great job has been done on this add-on. Absolutely fantastic!

One question, though:

I'm using an XBox 360 controller to control XBMC and RCB. When I fire up a rom and I'm ready to quit the emulator and return to XBMC, is there a way I can close the emulator with my controller? I did some research into using the guide button (big X button), but that seems like a dead end since the driver doesn't work too well and makes my XBMC go crazy scrolling. I don't have a keyboard accessible either. Do you have any advice/suggestions?

It may be possible but as it stands you have to use a remote or a keyboard.
(2013-06-01, 13:51)Ghostdivision Wrote: [ -> ]I just looked in the nfo and noticed the elusive F-zero for instance has no description of the game in the nfo compared to the others....

hmmmm, I have no idea why no description was scrapped for it, artwork was now scrapped but no description.

And since i have dont import games without description enabled, i thought that was the problem. But then i disabled it and re-imported it so games without descriptions could be imported and still it would not show up.

Im confused.

Yeah I don't understand why games aren't appearing that have been properly scraped. Time to devote the next few hours trying to find out!
Just to clarify: if you re-import games via "import games", rcb will not scrape games that are already in your database. Unless you enable this in addon settings. If you select "rescrape game/selection", rcb will always rescrape the selected games. No matter what you configured in addon settings. Maybe this caused some confusion.
Also, if you encounter misbehaviour during scraping, please upload your xbmc.log for me. Maybe there is a bug that i could fix when i am in the game again.
(2013-06-01, 22:21)malte Wrote: [ -> ]Just to clarify: if you re-import games via "import games", rcb will not scrape games that are already in your database. Unless you enable this in addon settings. If you select "rescrape game/selection", rcb will always rescrape the selected games. No matter what you configured in addon settings. Maybe this caused some confusion.
Also, if you encounter misbehaviour during scraping, please upload your xbmc.log for me. Maybe there is a bug that i could fix when i am in the game again.

Once I get above 1000 roms RCB will crash when loading the list maybe 40% of the time. Here is the log info pertaining to the time it crashed if this helps at all.

17:35:05 T:1864 NOTICE: CJoystick::EnumJoysticksCallback : Enabled Joystick: XBOX 360 For Windows (Controller)
17:35:05 T:1864 NOTICE: CJoystick::EnumJoysticksCallback : Total Axis: 5 Total Hats: 1 Total Buttons: 10
17:35:05 T:1864 NOTICE: CJoystick::EnumJoysticksCallback : Enabled Joystick: XBOX 360 For Windows (Controller)
17:35:05 T:1864 NOTICE: CJoystick::EnumJoysticksCallback : Total Axis: 5 Total Hats: 1 Total Buttons: 10
17:35:13 T:5596 NOTICE: Thread Jobworker start, auto delete: true
17:35:15 T:3132 NOTICE: Thread XBPyThread start, auto delete: false
17:35:15 T:3132 NOTICE: -->Python Interpreter Initialized<--
17:35:15 T:3132 NOTICE: RCB started
17:35:15 T:3132 NOTICE: RCB: sys.argv = ['script.games.rom.collection.browser']
17:35:15 T:3132 NOTICE: RCB: param = script.games.rom.collection.browser
17:35:15 T:3132 NOTICE: RCB: setting launchRCB = True
17:35:15 T:3132 NOTICE: RCB: launchRCB = True
17:35:15 T:3132 NOTICE: RCB_INFO: Loading sqlite3 as DB engine
17:35:15 T:3132 NOTICE: RCB: init log level
17:35:15 T:3132 NOTICE: RCB: current log level: 2
17:35:15 T:3132 NOTICE: RCB_INFO: Loading sqlite3 as DB engine
17:35:15 T:3132 NOTICE: RCB_INFO: Path to configuration file: C:\Users\Admin\AppData\Roaming\XBMC\userdata\addon_data\script.games.rom.collection.browser\config.xml
17:35:15 T:3132 NOTICE: RCB_INFO: XBMC version: Assuming we are on Eden
17:35:15 T:3132 NOTICE: RCB_INFO: Init Rom Collection Browser: C:\Users\Admin\AppData\Roaming\XBMC\addons\script.games.rom.collection.browser
17:35:15 T:3132 NOTICE: RCB_INFO: RCB version: 2.0.6
17:35:15 T:3132 NOTICE: RCB_INFO: RCB service addon: <xbmcaddon.Addon object at 0x0A70FFC8>
17:35:15 T:3132 NOTICE: RCB_INFO: checkUpdateInProgress
17:35:15 T:3132 NOTICE: RCB_INFO: scrapeOnStartupAction =
17:35:15 T:3132 NOTICE: RCB_INFO: initializeConfig
17:35:15 T:3132 NOTICE: RCB_INFO: Config() set path to None
17:35:15 T:3132 NOTICE: RCB_INFO: Path to configuration file: C:\Users\Admin\AppData\Roaming\XBMC\userdata\addon_data\script.games.rom.collection.browser\config.xml
17:35:15 T:3132 NOTICE: RCB_INFO: checkRomCollectionsAvailable
17:35:15 T:3132 NOTICE: RCB_INFO: initXml
17:35:15 T:3132 NOTICE: RCB_INFO: Path to configuration file: C:\Users\Admin\AppData\Roaming\XBMC\userdata\addon_data\script.games.rom.collection.browser\config.xml
17:35:15 T:3132 NOTICE: RCB_INFO: Number of Rom Collections in config.xml: 4
17:35:15 T:3132 NOTICE: RCB_INFO: Reading config version from config.xml: 1.0.6
17:35:15 T:3132 NOTICE: RCB_INFO: Config file is up to date
17:35:15 T:3132 NOTICE: RCB_INFO: readXml
17:35:15 T:3132 NOTICE: RCB_INFO: initXml
17:35:15 T:3132 NOTICE: RCB_INFO: Begin readRomCollections
17:35:15 T:3132 NOTICE: RCB_INFO: current Rom Collection: SNES
17:35:15 T:3132 NOTICE: RCB_INFO: Rom path: C:\zEmulation\Games\SNES\*.zip
17:35:15 T:3132 NOTICE: RCB_INFO: Rom path: C:\zEmulation\Games\SNES\*.smc
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\SNES\boxfront\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\SNES\boxback\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\SNES\cartridge\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\SNES\screenshot\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\SNES\fanart\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: thegamesdb.net
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: thegamesdb.net
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: archive.vg
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: archive.vg
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: mobygames.com
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: mobygames.com
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Image Placing name: gameinfobig
17:35:15 T:3132 NOTICE: RCB_INFO: Image Placing name: gameinfosmall
17:35:15 T:3132 NOTICE: RCB_INFO: emulatorCmd: C:\zEmulation\Systems\SNES\zsnesw.exe
17:35:15 T:3132 NOTICE: RCB_INFO: emulatorParams: "%ROM%"
17:35:15 T:3132 NOTICE: RCB_INFO: useBuiltinEmulator: False
17:35:15 T:3132 NOTICE: RCB_INFO: ignoreOnScan: False
17:35:15 T:3132 NOTICE: RCB_INFO: allowUpdate: True
17:35:15 T:3132 NOTICE: RCB_INFO: useEmuSolo: False
17:35:15 T:3132 NOTICE: RCB_INFO: usePopen: False
17:35:15 T:3132 NOTICE: RCB_INFO: autoplayVideoMain: True
17:35:15 T:3132 NOTICE: RCB_INFO: autoplayVideoInfo: True
17:35:15 T:3132 NOTICE: RCB_INFO: useFoldernameAsGamename: False
17:35:15 T:3132 NOTICE: RCB_INFO: maxFolderDepth: 99
17:35:15 T:3132 NOTICE: RCB_INFO: doNotExtractZipFiles: False
17:35:15 T:3132 NOTICE: RCB_INFO: diskPrefix: _Disk
17:35:15 T:3132 NOTICE: RCB_INFO: current Rom Collection: Nintendo 64
17:35:15 T:3132 NOTICE: RCB_INFO: Rom path: C:\zEmulation\Games\Nintendo 64\*.zip
17:35:15 T:3132 NOTICE: RCB_INFO: Rom path: C:\zEmulation\Games\Nintendo 64\*.z64
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\Nintendo 64\boxfront\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\Nintendo 64\boxback\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\Nintendo 64\cartridge\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\Nintendo 64\screenshot\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\Nintendo 64\fanart\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: thegamesdb.net
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: thegamesdb.net
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: archive.vg
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: archive.vg
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: mobygames.com
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: mobygames.com
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Image Placing name: gameinfobig
17:35:15 T:3132 NOTICE: RCB_INFO: Image Placing name: gameinfosmall
17:35:15 T:3132 NOTICE: RCB_INFO: emulatorCmd: C:\zEmulation\Systems\P64\Project64.exe
17:35:15 T:3132 NOTICE: RCB_INFO: emulatorParams: "%ROM%"
17:35:15 T:3132 NOTICE: RCB_INFO: useBuiltinEmulator: False
17:35:15 T:3132 NOTICE: RCB_INFO: ignoreOnScan: False
17:35:15 T:3132 NOTICE: RCB_INFO: allowUpdate: True
17:35:15 T:3132 NOTICE: RCB_INFO: useEmuSolo: False
17:35:15 T:3132 NOTICE: RCB_INFO: usePopen: False
17:35:15 T:3132 NOTICE: RCB_INFO: autoplayVideoMain: True
17:35:15 T:3132 NOTICE: RCB_INFO: autoplayVideoInfo: True
17:35:15 T:3132 NOTICE: RCB_INFO: useFoldernameAsGamename: False
17:35:15 T:3132 NOTICE: RCB_INFO: maxFolderDepth: 99
17:35:15 T:3132 NOTICE: RCB_INFO: doNotExtractZipFiles: False
17:35:15 T:3132 NOTICE: RCB_INFO: diskPrefix: _Disk
17:35:15 T:3132 NOTICE: RCB_INFO: current Rom Collection: NES
17:35:15 T:3132 NOTICE: RCB_INFO: Rom path: C:\zEmulation\Games\NES\*.zip
17:35:15 T:3132 NOTICE: RCB_INFO: Rom path: C:\zEmulation\Games\NES\*.nes
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\NES\boxfront\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\NES\boxback\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\NES\cartridge\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\NES\screenshot\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\NES\fanart\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: thegamesdb.net
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: thegamesdb.net
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: archive.vg
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: archive.vg
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: mobygames.com
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: mobygames.com
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Image Placing name: gameinfobig
17:35:15 T:3132 NOTICE: RCB_INFO: Image Placing name: gameinfosmall
17:35:15 T:3132 NOTICE: RCB_INFO: emulatorCmd: C:\zEmulation\Systems\NEStopia\nestopia.exe
17:35:15 T:3132 NOTICE: RCB_INFO: emulatorParams: "%ROM%"
17:35:15 T:3132 NOTICE: RCB_INFO: useBuiltinEmulator: False
17:35:15 T:3132 NOTICE: RCB_INFO: ignoreOnScan: False
17:35:15 T:3132 NOTICE: RCB_INFO: allowUpdate: True
17:35:15 T:3132 NOTICE: RCB_INFO: useEmuSolo: False
17:35:15 T:3132 NOTICE: RCB_INFO: usePopen: False
17:35:15 T:3132 NOTICE: RCB_INFO: autoplayVideoMain: True
17:35:15 T:3132 NOTICE: RCB_INFO: autoplayVideoInfo: True
17:35:15 T:3132 NOTICE: RCB_INFO: useFoldernameAsGamename: False
17:35:15 T:3132 NOTICE: RCB_INFO: maxFolderDepth: 99
17:35:15 T:3132 NOTICE: RCB_INFO: doNotExtractZipFiles: False
17:35:15 T:3132 NOTICE: RCB_INFO: diskPrefix: _Disk
17:35:15 T:3132 NOTICE: RCB_INFO: current Rom Collection: PlayStation
17:35:15 T:3132 NOTICE: RCB_INFO: Rom path: C:\zEmulation\Games\Playstation\*.bin
17:35:15 T:3132 NOTICE: RCB_INFO: Rom path: C:\zEmulation\Games\Playstation\*.iso
17:35:15 T:3132 NOTICE: RCB_INFO: Rom path: C:\zEmulation\Games\Playstation\*.img
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\Playstation\boxfront\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\Playstation\boxback\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\Playstation\cartridge\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\Playstation\screenshot\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Media path: C:\zEmulation\Games\Playstation\fanart\%GAME%.*
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: thegamesdb.net
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: thegamesdb.net
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: archive.vg
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: archive.vg
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper site: mobygames.com
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: mobygames.com
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Image Placing name: gameinfobig
17:35:15 T:3132 NOTICE: RCB_INFO: Image Placing name: gameinfosmall
17:35:15 T:3132 NOTICE: RCB_INFO: emulatorCmd: C:\zEmulation\Systems\ePSXe\ePSXe1.exe.lnk
17:35:15 T:3132 NOTICE: RCB_INFO: emulatorParams: "%ROM%"
17:35:15 T:3132 NOTICE: RCB_INFO: useBuiltinEmulator: False
17:35:15 T:3132 NOTICE: RCB_INFO: ignoreOnScan: False
17:35:15 T:3132 NOTICE: RCB_INFO: allowUpdate: True
17:35:15 T:3132 NOTICE: RCB_INFO: useEmuSolo: False
17:35:15 T:3132 NOTICE: RCB_INFO: usePopen: False
17:35:15 T:3132 NOTICE: RCB_INFO: autoplayVideoMain: True
17:35:15 T:3132 NOTICE: RCB_INFO: autoplayVideoInfo: True
17:35:15 T:3132 NOTICE: RCB_INFO: useFoldernameAsGamename: False
17:35:15 T:3132 NOTICE: RCB_INFO: maxFolderDepth: 99
17:35:15 T:3132 NOTICE: RCB_INFO: doNotExtractZipFiles: False
17:35:15 T:3132 NOTICE: RCB_INFO: diskPrefix: _Disk
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: local nfo
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: thegamesdb.net
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: giantbomb.com
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: mobygames.com
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: archive.vg
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper Site: maws.mameworld.info
17:35:15 T:3132 NOTICE: RCB_INFO: Scraper descFilePerGame: True
17:35:15 T:3132 NOTICE: C:\Users\Admin\AppData\Roaming\XBMC\userdata\addon_data\script.games.rom.collection.browser\MyGames.db
17:35:15 T:3132 NOTICE: RCB_INFO: Begin cacheItems
17:35:15 T:3132 NOTICE: RCB_INFO: End cacheItems
17:35:16 T:1864 WARNING: Trying to add unsupported control type 1
17:35:16 T:3132 WARNING: Previous line repeats 3 times.
17:35:16 T:3132 NOTICE: RCB_INFO: Begin onInit
17:35:16 T:1864 ERROR: Control 50 in window 13000 has been asked to focus, but it can't
17:35:16 T:3132 NOTICE: RCB_INFO: Begin loadViewState
17:35:16 T:3132 NOTICE: RCB_INFO: Begin showConsoles
17:35:16 T:3132 NOTICE: RCB_INFO: begin showFilterControl: 500
17:35:16 T:3132 NOTICE: RCB_INFO: End showConsoles
17:35:16 T:3132 NOTICE: RCB_INFO: Begin showGenre
17:35:16 T:3132 NOTICE: RCB_INFO: Selected Console: 0
17:35:16 T:3132 NOTICE: RCB_INFO: begin showFilterControl: 600
17:35:16 T:3132 NOTICE: RCB_INFO: End showGenre
17:35:16 T:3132 NOTICE: RCB_INFO: Begin showYear
17:35:16 T:3132 NOTICE: RCB_INFO: Selected Console: 0
17:35:16 T:3132 NOTICE: RCB_INFO: begin showFilterControl: 700
17:35:16 T:3132 NOTICE: RCB_INFO: End showYear
17:35:16 T:3132 NOTICE: RCB_INFO: Begin showPublisher
17:35:16 T:3132 NOTICE: RCB_INFO: Selected Console: 0
17:35:16 T:3132 NOTICE: RCB_INFO: begin showFilterControl: 800
17:35:16 T:3132 NOTICE: RCB_INFO: End showPublisher
17:35:16 T:3132 NOTICE: RCB_INFO: Begin showCharacterFilter
17:35:16 T:3132 NOTICE: RCB_INFO: End showCharacterFilter
17:35:16 T:3132 ERROR: EXCEPTION: Non-Existent Control 1100
17:35:16 T:3132 NOTICE: RCB_ERROR: Control with id: 1100 could not be found. Check WindowXML file. Error: Non-Existent Control 1100
17:35:16 T:3132 NOTICE: RCB_INFO: Begin showGames
17:35:16 T:3132 NOTICE: RCB_INFO: helper.buildLikeStatement
17:35:16 T:3132 NOTICE: showGames: load games from db in 81 ms
17:35:16 T:4992 NOTICE: Thread Jobworker start, auto delete: true
(2013-06-01, 19:23)buymeapc Wrote: [ -> ]I would like to say what a great job has been done on this add-on. Absolutely fantastic!

One question, though:

I'm using an XBox 360 controller to control XBMC and RCB. When I fire up a rom and I'm ready to quit the emulator and return to XBMC, is there a way I can close the emulator with my controller? I did some research into using the guide button (big X button), but that seems like a dead end since the driver doesn't work too well and makes my XBMC go crazy scrolling. I don't have a keyboard accessible either. Do you have any advice/suggestions?

I'm currently doing this and it works for me in linux. Instead of using the kernel space driver, i use the user space drive xboxdrv. I launch it with the following to allow 4 controls and to properly control the lights on them...

Code:
sudo xboxdrv --daemon --wid 0 -l 2 --ui-buttonmap guide=KEY_ESC --dpad-as-button --trigger-as-button --deadzone 12000 --next-controller --wid 1 -l 3 --ui-buttonmap guide=KEY_ESC --dpad-as-button --trigger-as-button --deadzone 12000 --next-controller --wid 2 -l 4 --ui-buttonmap guide=KEY_ESC --dpad-as-button --trigger-as-button --deadzone 12000 --next-controller --wid 3 -l 5 --ui-buttonmap guide=KEY_ESC --dpad-as-button --trigger-as-button --deadzone 12000 >/dev/null 2>/dev/null &

There is alot going on here I know but I built the command to press esc when the X is pressed. I then launch the emulators to exit upon esc. I also stop lirc so keys dont get queued during a game and I pause the thread xbmc runs on so the xbox control doesnt keep controlling xbmc while in the emulator. For example with gens...

Code:
#!/bin/bash
xbmc-send -a "LIRC.Stop"
sudo killall -STOP xbmc.bin
gens --fs --quickexit "$1"
sudo killall -CONT xbmc.bin
xbmc-send -a "LIRC.Start"

Using the above plus my recommendation from a few posts ago to stop the alsa sink before launch and to restart on exit (http://forum.xbmc.org/showthread.php?tid...pid1434251) I have a perfectly working setup with four xbox 360 controls that will quit an emulator on the X being pressed. Additionally I dont have to use solo mode so when I press the X i am instantly dropped back to the games list to pick another. Cut on the ability to control xbmc from gamepads too and then you can navigate and control xbmc with the 360 control. Here's my keymap xml for the 360 remote...
Code:
<keymap>

  <global>

    <joystick name="Xbox Gamepad (userspace driver)">
      <button id="1">Up</button>
      <button id="2">Down</button>
      <button id="3">Left</button>
      <button id="4">Right</button>
      <button id="5">Select</button>
      <button id="6">ParentDir</button>
      <button id="7">FullScreen</button>
      <button id="8">ContextMenu</button>
      <button id="10">Info</button>
      <button id="11">PageUp</button>
      <button id="12">PageDown</button>
      <button id="13">PreviousMenu</button>
      <button id="14">XBMC.ActivateWindow(Settings)</button>
      <button id="16">Mute</button>
      <axis id="4" limit="+1">VolumeDown</axis>
      <axis id="4" limit="-1">VolumeUp</axis>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #2">
      <button id="1">Up</button>
      <button id="2">Down</button>
      <button id="3">Left</button>
      <button id="4">Right</button>
      <button id="5">Select</button>
      <button id="6">ParentDir</button>
      <button id="7">FullScreen</button>
      <button id="8">ContextMenu</button>
      <button id="10">Info</button>
      <button id="11">PageUp</button>
      <button id="12">PageDown</button>
      <button id="13">PreviousMenu</button>
      <button id="14">XBMC.ActivateWindow(Settings)</button>
      <button id="16">Mute</button>
      <axis id="4" limit="+1">VolumeDown</axis>
      <axis id="4" limit="-1">VolumeUp</axis>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #3">
      <button id="1">Up</button>
      <button id="2">Down</button>
      <button id="3">Left</button>
      <button id="4">Right</button>
      <button id="5">Select</button>
      <button id="6">ParentDir</button>
      <button id="7">FullScreen</button>
      <button id="8">ContextMenu</button>
      <button id="10">Info</button>
      <button id="11">PageUp</button>
      <button id="12">PageDown</button>
      <button id="13">PreviousMenu</button>
      <button id="14">XBMC.ActivateWindow(Settings)</button>
      <button id="16">Mute</button>
      <axis id="4" limit="+1">VolumeDown</axis>
      <axis id="4" limit="-1">VolumeUp</axis>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #4">
      <button id="1">Up</button>
      <button id="2">Down</button>
      <button id="3">Left</button>
      <button id="4">Right</button>
      <button id="5">Select</button>
      <button id="6">ParentDir</button>
      <button id="7">FullScreen</button>
      <button id="8">ContextMenu</button>
      <button id="10">Info</button>
      <button id="11">PageUp</button>
      <button id="12">PageDown</button>
      <button id="13">PreviousMenu</button>
      <button id="14">XBMC.ActivateWindow(Settings)</button>
      <button id="16">Mute</button>
      <axis id="4" limit="+1">VolumeDown</axis>
      <axis id="4" limit="-1">VolumeUp</axis>
    </joystick>

  </global>

  <FullscreenVideo>

    <joystick name="Xbox Gamepad (userspace driver)">
      <button id="1">BigStepForward</button>
      <button id="2">BigStepBack</button>
      <button id="3">StepBack</button>
      <button id="4">StepForward</button>
      <button id="5">Pause</button>
      <button id="6">Stop</button>
      <button id="8">OSD</button>
      <button id="9">CodecInfo</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #2">
      <button id="5">Pause</button>
      <button id="6">Stop</button>
      <button id="8">OSD</button>
      <button id="9">CodecInfo</button>
      <button id="1">BigStepForward</button>
      <button id="2">BigStepBack</button>
      <button id="3">StepBack</button>
      <button id="4">StepForward</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #3">
      <button id="1">BigStepForward</button>
      <button id="2">BigStepBack</button>
      <button id="3">StepBack</button>
      <button id="4">StepForward</button>
      <button id="5">Pause</button>
      <button id="6">Stop</button>
      <button id="8">OSD</button>
      <button id="9">CodecInfo</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #4">
      <button id="1">BigStepForward</button>
      <button id="2">BigStepBack</button>
      <button id="3">StepBack</button>
      <button id="4">StepForward</button>
      <button id="5">Pause</button>
      <button id="6">Stop</button>
      <button id="8">OSD</button>
      <button id="9">CodecInfo</button>
    </joystick>

  </FullscreenVideo>

  <VideoOSD>

    <joystick name="Xbox Gamepad (userspace driver)">
      <button id="8">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #2">
      <button id="8">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #3">
      <button id="8">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #4">
      <button id="8">Back</button>
    </joystick>

  </VideoOSD>

  <FullscreenInfo>

    <joystick name="Xbox Gamepad (userspace driver)">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #2">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #3">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #4">
      <button id="10">Back</button>
    </joystick>

  </FullscreenInfo>

  <MovieInformation>

    <joystick name="Xbox Gamepad (userspace driver)">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #2">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #3">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #4">
      <button id="10">Back</button>
    </joystick>

  </MovieInformation>

  <SongInformation>

    <joystick name="Xbox Gamepad (userspace driver)">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #2">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #3">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #4">
      <button id="10">Back</button>
    </joystick>

  </SongInformation>

  <MusicInformation>

    <joystick name="Xbox Gamepad (userspace driver)">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #2">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #3">
      <button id="10">Back</button>
    </joystick>

    <joystick name="Xbox Gamepad (userspace driver) #4">
      <button id="10">Back</button>
    </joystick>

  </MusicInformation>

</keymap>

See, it is actually not a dead end at all. Enjoy!
(2013-06-01, 22:21)malte Wrote: [ -> ]Just to clarify: if you re-import games via "import games", rcb will not scrape games that are already in your database. Unless you enable this in addon settings. If you select "rescrape game/selection", rcb will always rescrape the selected games. No matter what you configured in addon settings. Maybe this caused some confusion.
Also, if you encounter misbehaviour during scraping, please upload your xbmc.log for me. Maybe there is a bug that i could fix when i am in the game again.


Im not sure how to really give a helpful log because its like rcb just does not even recognize f-zero or frogger, I tried to import them doing manual matches and it would not even pick these games up. Yet it did scrape them, it just wont let me import them.

I looked inside the nfo and there is no description for the game scrapped...
edit
Just wanted to share the layout I have been working on (well not layout, just custom images and using Aeon MQ4 skin) for my RCB Smile


Image

Ignore the ONE game in the collection as that was a fake collection for testing.
(2013-06-02, 08:03)NewYears1978 Wrote: [ -> ]Just wanted to share the layout I have been working on (well not layout, just custom images and using Aeon MQ4 skin) for my RCB Smile


Image

Ignore the ONE game in the collection as that was a fake collection for testing.

Nice look! That's going to take a while for any decent sized collection though :S
I use automated scripts in Photoshop so it does it all for me..just finished the SNES ones in about 20 mins Smile
Great view, i am trying to convince marcos to put video snaps back into his ace skin, i love the skin, but am crushed my favorite view and video clips were removed Sad

For malte, I cant find any log why f-zero and frogger wont import, or why rcb acts like it does not see those games.

But here is 1080 snowboarding issue, i have to scrape this one manually all the time.

02:40:51 T:1996 NOTICE: RCB_INFO: Files read: [u'C:\\Users\\HTPC\\Documents\\Games\\Project64Games\\Roms\\1080 Snowboarding.z64', u'C:\\Users\\HTPC\\Documents\\Games\\Project64Games\\Roms\\Banjo-Kazooie (U).rom', u'C:\\Users\\HTPC\\Documents\\Games\\Project64Games\\Roms\\Banjo-Tooie (U).rom', u"C:\\Users\\HTPC\\Documents\\Games\\Project64Games\\Roms\\Legend of Zelda 2, The - Majora's Mask (E) (M4) [!].rom", u'C:\\Users\\HTPC\\Documents\\Games\\Project64Games\\Roms\\Legend of Zelda, The - Ocarina of Time - Master Quest.v64', u'C:\\Users\\HTPC\\Documents\\Games\\Project64Games\\Roms\\Legend of Zelda, The - Ocarina of Time.v64']
02:40:51 T:1996 NOTICE: RCB_INFO: current rom file: C:\Users\HTPC\Documents\Games\Project64Games\Roms\1080 Snowboarding.z64
02:40:51 T:1996 NOTICE: RCB_INFO: gamename (file): 1080 Snowboarding.z64
02:40:51 T:1996 NOTICE: RCB_INFO: gamename (friendly): 1080 Snowboarding
02:40:51 T:1996 NOTICE: RCB_INFO: checkRomfileIsMultirom. gamename = 1080 Snowboarding, lastgamename =
02:40:51 T:1996 NOTICE: RCB_INFO: Start scraping info for game: 1080 Snowboarding
02:40:51 T:1996 NOTICE: RCB_INFO: Begin getFoldernameFromRomFilename: %sC:\Users\HTPC\Documents\Games\Project64Games\Roms\1080 Snowboarding.z64
02:40:51 T:1996 NOTICE: RCB_INFO: dirname: C:\Users\HTPC\Documents\Games\Project64Games\Roms
02:40:51 T:1996 NOTICE: RCB_INFO: using scraper: thegamesdb.net
02:40:51 T:1996 NOTICE: RCB_INFO: description file (tokens replaced): http://thegamesdb.net/api/GetGame.php?na...tendo%2064
02:40:51 T:1996 NOTICE: RCB_WARNING: Encoding: utf-8
02:40:51 T:612 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Users\HTPC\AppData\Roaming\XBMC\addons\script.games.rom.collection.browser
02:40:51 T:1996 NOTICE: RCB_INFO: Searching for game: 1080 Snowboarding
02:40:51 T:1996 NOTICE: RCB_INFO: 1 results found. Try to find best match.
02:40:51 T:1996 NOTICE: RCB_WARNING: Error while resolving item: PlatformSearchKey : 'PlatformSearchKey'
02:40:51 T:1996 NOTICE: RCB_WARNING: An error occured while matching the best result: 'ascii' codec can't decode byte 0xc2 in position 4: ordinal not in range(128)
02:40:51 T:1996 NOTICE: RCB_WARNING: an error occured while adding game 1080 Snowboarding
02:40:51 T:1996 NOTICE: RCB_WARNING: Error: 'ascii' codec can't decode byte 0xc2 in position 4: ordinal not in range(128)

Trying to import it manually i wonder if the 1080 with the degree symbol is causing this issue. I dont know how to make a degree symbol (that tiny circle after 1080) but i would hope rcb would not be this picky.
(2013-06-01, 21:16)blinken Wrote: [ -> ]
(2013-06-01, 19:23)buymeapc Wrote: [ -> ]I would like to say what a great job has been done on this add-on. Absolutely fantastic!

One question, though:

I'm using an XBox 360 controller to control XBMC and RCB. When I fire up a rom and I'm ready to quit the emulator and return to XBMC, is there a way I can close the emulator with my controller? I did some research into using the guide button (big X button), but that seems like a dead end since the driver doesn't work too well and makes my XBMC go crazy scrolling. I don't have a keyboard accessible either. Do you have any advice/suggestions?

It may be possible but as it stands you have to use a remote or a keyboard.

it IS possible just to use the controller if you install eventghost, choose a key on controller to be the one to "kill" the emulators, personally i use the click on right top hat (joystick.button10), here's how my eventghost config looks like:
Image
and the python script goes like this:
Image
the only 2 emulators i use right now Wink but you can add more to kill any emu you want

-Deco
Event ghost gave me a headache for a novice user when i tried last time Sad

I might give it a try, right now im using mce controller which simply allows me to close windows.

If its to much of a headache i might just skip it for now since this may become useless if emulators are included in xbmc late this year as i would not want to be closing xbmc to exit.
(2013-06-02, 11:38)deco Wrote: [ -> ]
(2013-06-01, 21:16)blinken Wrote: [ -> ]
(2013-06-01, 19:23)buymeapc Wrote: [ -> ]I would like to say what a great job has been done on this add-on. Absolutely fantastic!

One question, though:

I'm using an XBox 360 controller to control XBMC and RCB. When I fire up a rom and I'm ready to quit the emulator and return to XBMC, is there a way I can close the emulator with my controller? I did some research into using the guide button (big X button), but that seems like a dead end since the driver doesn't work too well and makes my XBMC go crazy scrolling. I don't have a keyboard accessible either. Do you have any advice/suggestions?

It may be possible but as it stands you have to use a remote or a keyboard.

it IS possible just to use the controller if you install eventghost, choose a key on controller to be the one to "kill" the emulators, personally i use the click on right top hat (joystick.button10), here's how my eventghost config looks like:
Image
and the python script goes like this:
Image
the only 2 emulators i use right now Wink but you can add more to kill any emu you want

-Deco

This was a great idea! I ended up adding all of my emulator exe's to the script and performing the quit using the same button. Thanks so much for the help!

Although, I ended up not liking the multitude of cmd prompts that would display, so I modified the code you had to hide the taskkill windows:
Code:
import subprocess
startupinfo = subprocess.STARTUPINFO()
startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW
subprocess.call('taskkill /IM Dolphin.exe', startupinfo=startupinfo)

@Aubrien
Thanks so much for that detailed approach for Linux. Unfortunately, I'm using Windows, but I very much appreciate reading how you accomplished this! Great stuff!
thanks for your code, i will try that too Wink

btw. i found out that eventghost does NOT react on controller if it's turned on after eventghost is started (fx. after a reboot and controller is off)

so i did a little extra for the configuration to disable/enable the joystick plugin WHEN the controller is turned on and it seems to work great Smile

Image

-Deco