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)



- malte - 2011-03-22

@fallenae:
sounds like a configuration error. Can you show me your config.xml?

@jubal1:
This is a known problem on windows. Do you have a Disc inserted in your drive or mounted a virtual drive? Remove it and try again.


- fallenae - 2011-03-22

- <config>
- <RomCollections>
- <RomCollection id="1" name="MAME">
<emulatorCmd>F:\Roms\MAME Plus + 6000 Roms + Extras Deluxe [http://www.SpaTorrent.com]\MAME Plus + 6000 Roms + Extras Deluxe [www.SpaTorrent.com]\MameUI32.exe</emulatorCmd>
<emulatorParams>"%ROM%"</emulatorParams>
<romPath>F:\Roms\MAME Plus + 6000 Roms + Extras Deluxe [http://www.SpaTorrent.com]\MAME Plus + 6000 Roms + Extras Deluxe [www.SpaTorrent.com]\roms\*.zip</romPath>
<mediaPath type="boxfront">F:\Roms\MAME Plus + 6000 Roms + Extras Deluxe [http://www.SpaTorrent.com]\MAME Plus + 6000 Roms + Extras Deluxe [www.SpaTorrent.com]\artwork\boxfront\%GAME%.*</mediaPath>
<mediaPath type="action">F:\Roms\MAME Plus + 6000 Roms + Extras Deluxe [http://www.SpaTorrent.com]\MAME Plus + 6000 Roms + Extras Deluxe [www.SpaTorrent.com]\artwork\action\%GAME%.*</mediaPath>
<mediaPath type="title">F:\Roms\MAME Plus + 6000 Roms + Extras Deluxe [http://www.SpaTorrent.com]\MAME Plus + 6000 Roms + Extras Deluxe [www.SpaTorrent.com]\artwork\title\%GAME%.*</mediaPath>
<mediaPath type="cabinet">F:\Roms\MAME Plus + 6000 Roms + Extras Deluxe [http://www.SpaTorrent.com]\MAME Plus + 6000 Roms + Extras Deluxe [www.SpaTorrent.com]\artwork\cabinet\%GAME%.*</mediaPath>
<mediaPath type="marquee">F:\Roms\MAME Plus + 6000 Roms + Extras Deluxe [http://www.SpaTorrent.com]\MAME Plus + 6000 Roms + Extras Deluxe [www.SpaTorrent.com]\artwork\marquee\%GAME%.*</mediaPath>
<ignoreOnScan>False</ignoreOnScan>
<descFilePerGame>True</descFilePerGame>
<useFoldernameAsGamename>False</useFoldernameAsGamename>
<searchGameByCRC>True</searchGameByCRC>
<maxFolderDepth>99</maxFolderDepth>
<doNotExtractZipFiles>True</doNotExtractZipFiles>
<imagePlacing>gameinfomamecabinet</imagePlacing>
<scraper name="maws.mameworld.info" />
</RomCollection>
</RomCollections>


- malte - 2011-03-22

Sorry, this is an error with [] in the path name. I tested it here and it behaves the same when I add [] to the path. Can you remove it and try again (you need to remove it in the file system and your config.xml)?

I will try to fix this error with one of the next releases.


- fallenae - 2011-03-23

Thank you, my next plan was acctually to clean up that file path tonight. I did notice it was a little messy. I didn't think it would be a problem though. thanx for pinpointing the issue.


- kruuth - 2011-03-23

Ok I had a freeze again, and this time I got the log....when I tried to start version .81 I got this:

19:09:06 T:3460 M:705957888 NOTICE: RCB_INFO: Init Rom Collection Browser: C:\Users\xbmc-user\AppData\Roaming\XBMC\addons\script.games.rom.collection.browser
19:09:06 T:3460 M:705949696 NOTICE: C:\Users\xbmc-user\AppData\Roaming\XBMC\userdata\addon_data\script.games.rom.collection.browser\MyGames.db
19:09:06 T:3460 M:705937408 NOTICE: RCB_INFO: Path to configuration file: C:\Users\xbmc-user\AppData\Roaming\XBMC\userdata\addon_data\script.games.rom.collection.browser\config.xml
19:09:06 T:3460 M:705937408 NOTICE: RCB_INFO: Path to configuration file: C:\Users\xbmc-user\AppData\Roaming\XBMC\userdata\addon_data\script.games.rom.collection.browser\config.xml
19:09:06 T:3460 M:705888256 DEBUG: LoadLibraryExA called with flags:
- LOAD_WITH_ALTERED_SEARCH_PATH
19:09:06 T:3460 M:705888256 DEBUG: Win32DllLoader::Load(special://xbmc/system/python/DLLs\pyexpat.pyd)
19:09:06 T:3460 M:705761280 NOTICE: RCB_INFO: Begin cacheItems
19:09:07 T:3460 M:705642496 NOTICE: RCB_INFO: End cacheItems
19:09:13 T:2044 M:705765376 DEBUG: Thread 2044 terminating (autodelete)
19:09:13 T:3044 M:705789952 DEBUG: Thread 3044 terminating (autodelete)
19:09:18 T:1856 M:705789952 DEBUG: Thread 1856 terminating (autodelete)

What's going on here?


- kruuth - 2011-03-23

Oh, on another note, I can't seem to get it to differentiate between the Atari 5200 Roms and the MAME roms.


- malte - 2011-03-23

Sorry, I can't see whats hapenning in the log. Did the log end with the "Thread terminating" stuff?

What do you mean with differentiating between MAME and Atari? During import or browsing? Do you have your roms in different locations?


- kruuth - 2011-03-23

Yes, that's where it ended.

Also, it's hung looking up 5200 games.


- fallenae - 2011-03-24

God damn MAME.

Ohk so I've managed to import my whole rom collection. All consoles are working well, however; I'm still having problems with mame.

As I said the other day my mame roms are multiple files within zip folders. RCB has scanned and added them to database correctly however when I try to run a ROMs the emulator fails and says that files are missing.

All of these roms are mounted in the emulator and run fine when loaded from the emulator.

Any help would be much appreciated.


- Digital Vortex - 2011-03-24

fallenae Wrote:God damn MAME.


Any help would be much appreciated.

I think I spot your issue from your above config.

You're trying to use Mame UI, not the Mame 'command line' version.
Go to the Mame Dev site and download that version
http://mamedev.org/release.html

You can extract it wherever you like, and just copy the mame.exe file into your MameUI directory.. change your config to point to this .exe rather the the UI version.

Did that work? Big Grin


- DigiTech - 2011-03-24

fallenae Wrote:God damn MAME.

Ohk so I've managed to import my whole rom collection. All consoles are working well, however; I'm still having problems with mame.

As I said the other day my mame roms are multiple files within zip folders. RCB has scanned and added them to database correctly however when I try to run a ROMs the emulator fails and says that files are missing.

All of these roms are mounted in the emulator and run fine when loaded from the emulator.

Any help would be much appreciated.

Which version on mameui32 are you using?
Are you using the mame.ini file inside the "ini" folder in mameui32 directory and pointing the exact location of it in your arguments?

You need to indicate into the arguments the path where is located the mame.ini file like this (in mameui32 the path is inside the mame directory,it's inside a folder called ini) It should be like this.

-inipath "C:\Program Files\mame32\ini" "%rom%"

You also need to configure the mame.ini file to express the exact location of the configuration files of mameui own folders:

rompath "C:\Program Files\mame32\roms" (It doesnt matter where they are as long as you specify the correct location, you need to set the same location in mameui too)
cfg_directory "C:\Program Files\mame32\cfg"
nvram_directory "C:\Program Files\mame32\nvram"
memcard_directory "C:\Program Files\mame32\memcard"
input_directory "C:\Program Files\mame32\inp"
state_directory "C:\Program Files\mame32\sta"
snapshot_directory "C:\Program Files\mame32\snap"



I asked you that because i just finished scrapping my 8,000 roms with mameui32 v0.39 and working with no problems following this parameters using MameUI32 V0.39.
Mameui and Mame command version has esentially the same code so mameui can be configured with no big problems.
Hope i can be of any help, pls tell me if that worked out your situation.


- Digital Vortex - 2011-03-25

DigiTech Wrote:Which version on mameui32 are you using?
Are you using the mame.ini file inside the "ini" folder in mameui32 directory and pointing the exact location of it in your arguments?

-inipath "C:\Program Files\mame32\ini" "%rom%"

fallenae:-
This is what you need to put in your emulator params in the Config.xml file so that the whole code looks like:
<emulatorParams>-inipath "F:\Roms\MAME\" "%ROM%"</emulatorParams>

I took the liberty with your Directory code Smile

The config.xml is in C:\Users\YOURNAME\Appdata\Roaming\XBMC\userdata\addon_data
\script.games.rom.collection browser

Digitech is right, and in my case, I have both Mame and MameUI in the base directory, and there's no problem. My .ini files for both programs are in the same directory as the .exe.
http://www.gwenael.org/xbmc/index.php?title=MAME_-_Windows#Windows

When you're using the command line version of mame, you'll have to run the -createconfig switch. Put the full path (as in F:\Roms..etc.) in the newly created mame.ini file in the CORE SEARCH PATH OPTIONS and CORE OUTPUT DIRECTORY sections

Working yet? Huh


Saturn Emulator for RCB in Win. - DigiTech - 2011-03-25

Anyone has sucessfully used a Sega Saturn Emulator in RCB in Windows.?,
I havent been able to get one working yet, even at the pc scenario, if you have any tips with that matter pls share with us.


- twotone8 - 2011-03-25

@DigiTech

if you're using SSF, you're probably going to need to write a batch file which will mount an .iso image (in daemon tools or something similar), then wait half a moment for the .iso to get cozy, and THEN launch the emulator in fullscreen. I've been meaning to do the same for quite some time, but haven't got around to it.

edit: just spent a bit of time on it.

here's my batch script for launching ssf


C:
CD "C:\GameEx\Emulators\SSF"
"C:\Program Files (x86)\DAEMON Tools Lite\dtlite.exe" -mount 0,"%~1"

PING 1.1.1.1 -n 1 -w 6000 >NUL

ssf.exe

"C:\Program Files (x86)\DAEMON Tools Lite\dtlite.exe" -unmount 0


i would open up a text file, copy and past something similar to this (depending on your paths and mounting utility and stuff) and then change the file extension from .txt to .bat. then you would have to point RCB to the .bat file instead of the ssf.exe.

effectively, what it's doing is opening
whatevernamehere.bat "rompath/romname.cue"
and the batch file handles the rest.

after you're done playing, it'll unmount the image.

if you're curious, the "%~1" part of the batch file is substituted with whatever you put after the batch file in the command line or shortcut.

the PING 1.1.1.1 -n 1 -w 6000 >NUL part just stalls for a moment after mounting the image to avoid errors before starting the .exe


- malte - 2011-03-25

New test version available: 0.8.2

General:
  • new option: Delete Game
  • bugfix: use uppercase "\Addon"-path in autoexec.py (Windows only)
Configuration:
  • option "Edit Rom Collection" in context menu (see screenshot below)
  • config wizard bugfixes and improvements: better support for mixing online scraping and local data
Game Import:
  • background scraping: start scraping on XBMC startup (see screenshot below)
  • encoding error fixes
  • better error handling on encoding errors


Background scraping

Image

The background scraping option is still experimental. You can activate it in the Addon settings. Once activated you must launch RCB and it will create an autoexec.py file that is launched at every XBMC startup. This autoexec starts the scraping process while you can do everything else in XBMC (but not start RCB). Progress of the current import is only shown in the home window.

If you want to cancel the current import, just launch RCB and it will ask you to cancel the current import. After this you are able to launch RCB again.

If you want to disable autmatic import on XBMC startup, disable it in Addon settings and launch RCB once. Then it will remove the autoexec.py again.

The progress dialog is designed for Confluence skin. It may look a bit off for other skins. This is a todo for one of the next releases.


Edit Rom Collection

Image

The "Edit Rom Collection (Basic)" dialog offers most common edit options for your Rom Collections. The missing options will be added to a new dialog in one of the next releases.

In this dialog you can edit all available properties for all your Rom Collections and they will be saved all together if you select "Save Config". When saving your configuration RCB will delete and recreate the Rom Collection configuration section in config.xml. Not nice but easier to implementBig Grin. Because of this it can happen that the ordering of Rom Collections changes after you have edited the config via this dialog.

Note: With this dialog RCB only supports 1 Rom path (with several extensions) per Rom Collection! If you have edited your config manually and added different paths to your roms per Rom Collection, all pathes besides the first one will be lost.


Please leave any comments on the new features here. Thank you for testing and have fun with it!