Kodi Community Forum
[RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Game Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=291)
+---- Thread: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs (/showthread.php?tid=70115)



- lestat1977uk - 2010-12-22

Thats ok, i'm really impressed with the addon and when i get it working it will be great.

im trying to setup project n64 as a test, can you help?

here is my config file.

<config>
<RomCollections>
<RomCollection id="1" name="Nintendo 64">
<emulatorCmd>G:\Emulators\XBMC READY\N64\Project64\Project64.exe</emulatorCmd>
<emulatorParams>%ROM%</emulatorParams>
<romPath>G:\Emulators\XBMC READY\ROMS\N64\*.zip</romPath>
<mediaPath type="boxfront">G:\Emulators\XBMC READY\ARTWORK\boxfront\%GAME%.*</mediaPath>
<mediaPath type="boxback">G:\Emulators\XBMC READY\ARTWORK\boxback\%GAME%.*</mediaPath>
<mediaPath type="cartridge">G:\Emulators\XBMC READY\ARTWORK\cartridge\%GAME%.*</mediaPath>
<mediaPath type="screenshot">G:\Emulators\XBMC READY\ARTWORK\screenshot\%GAME%.*</mediaPath>
<mediaPath type="fanart">G:\Emulators\XBMC READY\ARTWORK

LOG


23:26:40 T:14232 M:572768256 NOTICE: RCB_INFO: Begin launchEmu
23:26:40 T:14232 M:572768256 NOTICE: RCB_INFO: launching game with id: 64
23:26:40 T:14232 M:572739584 NOTICE: RCB_INFO: Begin helper.launchEmu
23:26:40 T:14232 M:572764160 NOTICE: RCB_INFO: cmd: call "G:\Emulators Organised\Project64_1.7\Project64 1.7\Project64.exe" G:\ROMS\N64\Excitebike 64 (U) [!].zip
23:26:40 T:14232 M:572760064 NOTICE: RCB_INFO: launchEmu on non-xbox
23:26:40 T:14232 M:572755968 NOTICE: RCB_INFO: screenMode: Windowed
23:26:40 T:14232 M:572755968 NOTICE: RCB_INFO: launch emu
23:26:48 T:14232 M:559370240 NOTICE: RCB_INFO: launch emu done
23:26:48 T:14232 M:559366144 NOTICE: RCB_INFO: End helper.launchEmu
23:26:48 T:14232 M:559366144 NOTICE: RCB_INFO: End launchEmu
23:26:50 T:15088 M:570355712 NOTICE: Storing total System Uptime
23:26:50 T:15088 M:570355712 NOTICE: Saving settings
23:26:50 T:15088 M:570302464 NOTICE: stop all
23:26:50 T:15088 M:570302464 NOTICE: ES: Stopping event server
23:26:50 T:15088 M:570298368 NOTICE: stopping upnp
23:26:50 T:6136 M:569942016 NOTICE: ES: UDP Event server stopped
23:26:50 T:15088 M:570007552 NOTICE: Webserver: Stopping...
23:26:50 T:15088 M:570449920 NOTICE: WebServer: Stopped the webserver
23:26:50 T:15088 M:570449920 NOTICE: Webserver: Stopped...
23:26:50 T:15088 M:570449920 NOTICE: stop sap announcement listener
23:26:50 T:15088 M:570449920 NOTICE: clean cached files!
23:26:50 T:15088 M:570449920 NOTICE: unload skin
23:26:50 T:15088 M:570449920 ERROR: CLocalizeStrings::ClearBlock: Trying to clear non existent block C:\Program Files (x86)\XBMC Dharma\addons\script.games.rom.collection.browser
23:26:50 T:15088 M:570449920 ERROR: Previous line repeats 1 times.
23:26:50 T:15088 M:570449920 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture rcb-button-focus.png
23:26:50 T:15088 M:570449920 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture rcb-button-nofocus.png
23:26:50 T:15088 M:572936192 NOTICE: stop python


- malte - 2010-12-22

Looks like you are missing the quotes around %ROM%. Change your emuParams to this and try again:
Code:
<emulatorParams>"%ROM%"</emulatorParams>



- lestat1977uk - 2010-12-22

Thanks for that, i get a little further however it now says unable to initialize plug-in, however if i launch the game direct in Project 64 it has no issues... i'm obviously missing something here?


- malte - 2010-12-22

lestat1977uk Wrote:Thanks for that, i get a little further however it now says unable to initialize plug-in, however if i launch the game direct in Project 64 it has no issues... i'm obviously missing something here?
Sounds like a problem with the emu itself. What happens if you launch it via cmd with the command that you find in xbmc.log?

I am not using Project64 myself atm so I did not try it here. But I have read that it may not work from command line with spaces and quotes in the rom name. You could play around with different commands (with quotes, without quotes, removing whitespaces from romname etc.) and see which one works.


- lestat1977uk - 2010-12-22

i will try that , but does anyone know of an n64 emu that does work... i don't have to use project n64, any emu that works would do!


- lestat1977uk - 2010-12-22

Made loads of progress (thx for all the help), main thing for n64 is you have to use project 64 version 1.7.0.49 not sure why but works like a charm.

Only thing i need to work out now is an easy way to exit the game and return to xbmc, how does everyone else achieve this?


- carabalb - 2010-12-22

Alt + F4. If you're using a controller you might be able to program it to your controller too, but you'll have to do some research for that.

lestat1977uk Wrote:Made loads of progress (thx for all the help), main thing for n64 is you have to use project 64 version 1.7.0.49 not sure why but works like a charm.

Only thing i need to work out now is an easy way to exit the game and return to xbmc, how does everyone else achieve this?



- ShadeBlack - 2010-12-23

This has been looking great for a long time now. i could never get it to work on xbmc live though.

since Dharma, I decided to try again.
I went through the initial wizard that tells the script where my folders are, and you can see the params i have below. For testing purposes, I am only doing xsnes with one "mega man x" rom.
the problem I have is that the import wizard sees the games, scans, but does not download any artwork, and then refuses to import them.

here's my config file:
Code:
<RomCollection id="1" name="SNES">
      <emulatorCmd>/usr/bin/zsnes</emulatorCmd>
      <emulatorParams>-m "%ROM%"</emulatorParams>
      <romPath>/home/xbmc/Games/SNES/Roms/*.zip</romPath>
      <romPath>/home/xbmc/Games/SNES/Roms/*.smc</romPath>
      <mediaPath type="boxfront">/home/xbmc/Games/SNES/Artwork/boxfront/%GAME%.*</mediaPath>
      <mediaPath type="boxback">/home/xbmc/Games/SNES/Artwork/boxback/%GAME%.*</mediaPath>
      <mediaPath type="cartridge">/home/xbmc/Games/SNES/Artwork/cartridge/%GAME%.*</mediaPath>
      <mediaPath type="screenshot">/home/xbmc/Games/SNES/Artwork/screenshot/%GAME%.*</mediaPath>
      <mediaPath type="fanart">/home/xbmc/Games/SNES/Artwork/fanart/%GAME%.*</mediaPath>
      <ignoreOnScan>False</ignoreOnScan>
      <searchGameByCRC>True</searchGameByCRC>
      <descFilePerGame>True</descFilePerGame>
      <imagePlacing>gameinfobig</imagePlacing>
      <scraper name="thegamesdb.net" replaceKeyString="" replaceValueString="" />
      <scraper name="giantbomb.com" replaceKeyString="" replaceValueString="" />
      <scraper name="mobygames.com" platform="15" replaceKeyString="" replaceValueString="" />
    </RomCollection>

and here's the scrape result:
Code:
~~~~~~~~~~~~~~~~~~~~~~~~
SNES
~~~~~~~~~~~~~~~~~~~~~~~~
Mega Man X (filename: Mega Man X) (boxfront)
Mega Man X (filename: Mega Man X) (boxback)
Mega Man X (filename: Mega Man X) (cartridge)
Mega Man X (filename: Mega Man X) (screenshot)
Mega Man X (filename: Mega Man X) (fanart)
--> No artwork found for game "Mega Man X". Game will not be imported.

thanks in advance to anyone that can help.


- malte - 2010-12-23

Maybe you are still on 0.7.9 (current version in repo)? There have been some issues with guessing the correct names for sequels, subtitles and games that appeared to be a sequel. I tested with 0.7.10 and it found everything. You can just update the script, your config file will remain and is still valid.


- ShadeBlack - 2010-12-23

hello again.

I installed 0.7.10 just now, deleted my db and tried again.
unfortunately, I get the same scraper issue, and my end result is the same.


- malte - 2010-12-23

Could you post your xbmc.log after you tried to scrape the games?

Also make sure that the user running xbmc has write access to your artwork folder "/home/xbmc/Games/SNES/Artwork".


- ShadeBlack - 2010-12-23

I'm ashamed to say I completely forgot that root access creates folders given 'root' permissions, that xbmc did not have access to.
re-writing the permissions fixed the problem completely!

thank-you for you prompt replies!

I am now able to get zsnes working full screen with args -m -s -v 22
just figuring out the sound now - gonna search the forums a bit.

update: found a fix (dharma) for the paramaters and sound issue in this forum: http://forum.xbmc.org/showthread.php?tid=71838&page=2


- malte - 2010-12-23

Glad that it works.

But your issue reminds me that I should stop importing games when there is a problem with storing the files. Not nice to wait for scraping a complete collection and ending up with no games being imported.


- wimpy - 2010-12-23

malte Wrote:Glad that it works.

But your issue reminds me that I should stop importing games when there is a problem with storing the files. Not nice to wait for scraping a complete collection and ending up with no games being imported.

if you get any error codes back you should be able to halt the process once you get the "no access / no write" Smile


- lestat1977uk - 2010-12-24

First of all Fantasic Addon, great work!

Just one issue, how do you correct games that have been scrapped incorrectly?