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)



- The-Boxhead - 2010-12-27

Okay im going mad Smile

Im on linux Jaunty 9.10 running dharma 10 final and version 07.10 of this addon.

Im unable to scan anything to the database. Im trying to get sdlmame
working. I have set up everything including a valid rom folder with mame roms in zip format.

also have fixed and copied the pysqlite2 files to correct location.

Here is my debug log file when trying to scan to database a couple of times:
http://pastebin.com/3y9JZDUH

Anyone has ideas ?


- malte - 2010-12-27

@ShadeBlack: Thanks for the positive feedback!

ShadeBlack Wrote:I think the scanning should still import the game if it can't find images. for example, I scanned a game today which had a description, boxart but no fanart backdrop. it didn't import the game because it couldn't find the fanart.
perhaps if rcb could just import the game anyway, then we can manually add the images later, that would be an easier solution.
Thats the way it should behave already. Games are only NOT imported if you have enabled the option "Don't import games without artwork" and it does not find any artwork. As soon as there is one artwork file found (screenshot, boxfront or whatever) the game should be imported. The missing artwork will the be listed in the "scrapeResult_missingArtwork.txt" file. What does the log say when you try to import the game?

' Wrote:Here is my debug log file when trying to scan to database a couple of times:
http://pastebin.com/3y9JZDUH

ShadeBlack Wrote:I'd also like to suggest the ability to turn fanarts off entirely. I'd personally like just the boxart and decription for a more simplistic view. I feel that fanarts have always slowed down navigation, not just with rcb, but also in tv shows and movie libraries.
It is possible with the imagePlacing options in config.xml. The default option "gameinfobig" looks like this (check the end of config.xml for these entries):
Code:
<fileTypeFor name="gameinfobig">
  <fileTypeForGameList>boxfront</fileTypeForGameList>
  <fileTypeForGameList>screenshot</fileTypeForGameList>
  <fileTypeForGameListSelected>boxfront</fileTypeForGameListSelected>
  <fileTypeForGameListSelected>screenshot</fileTypeForGameListSelected>
  <fileTypeForMainViewBackground>fanart</fileTypeForMainViewBackground>
  <fileTypeForMainViewBackground>boxfront</fileTypeForMainViewBackground>
  <fileTypeForMainViewBackground>screenshot</fileTypeForMainViewBackground>
  <fileTypeForMainViewGameInfoBig>screenshot</fileTypeForMainViewGameInfoBig>
  <fileTypeForMainViewGameInfoBig>boxfront</fileTypeForMainViewGameInfoBig>
  <fileTypeForGameInfoViewBackground>fanart</fileTypeForGameInfoViewBackground>
  <fileTypeForGameInfoViewBackground>boxfront</fileTypeForGameInfoViewBackground>
  <fileTypeForGameInfoViewBackground>screenshot</fileTypeForGameInfoViewBackground>
  <fileTypeForGameInfoViewGamelist>boxfront</fileTypeForGameInfoViewGamelist>
  <fileTypeForGameInfoViewGamelist>screenshot</fileTypeForGameInfoViewGamelist>
  <fileTypeForGameInfoView1>boxfront</fileTypeForGameInfoView1>
  <fileTypeForGameInfoView2>boxback</fileTypeForGameInfoView2>
  <fileTypeForGameInfoView3>cartridge</fileTypeForGameInfoView3>
  <fileTypeForGameInfoView4>screenshot</fileTypeForGameInfoView4>
</fileTypeFor>
With these settings you can control which image RCB will show in which control. E.g. if you don't want to have any background images, just remove all "fileTypeForMainViewBackground"-elements. If you don't want to use fanart as background but maybe boxfront or screenshot, just remove the first "fileTypeForMainViewBackground"-element that tells RCB to use fanart as the first option for background images.

You'll find more details about this mechanism in the wiki.

The-Boxhead Wrote:Here is my debug log file when trying to scan to database a couple of times:
http://pastebin.com/3y9JZDUH
Looks like RCB tries to display data but does not find anything. Do you already have games in your DB or is it completely empty? This seems to be a bug that I have to look at, but maybe you could work around this issue with deleting your "MyGames.db" and try to rescan the games.


- The-Boxhead - 2010-12-27

malte Wrote:Looks like RCB tries to display data but does not find anything. Do you already have games in your DB or is it completely empty? This seems to be a bug that I have to look at, but maybe you could work around this issue with deleting your "MyGames.db" and try to rescan the games.

okay i deleted the db file from here:
/home/xbmc/.xbmc/userdata/addon_data/script.games.rom.collection.browser/MyGames.db

It recreated the db file with exact same size but still no Joy Sad the file size stays at 21,504

Also another question:
first time wizard that comes up. I couldent find an entry for mame so i choose "other" in the list.
Added path for mame \usr\games\mame
Then followed trough adding extension *.zip (since my mame roms are zip files)
Then pinted rom location to \home\xbmc\roms\mame
Didnt add any fanart or other image stuff in the wizard...

Is this correct ?


- malte - 2010-12-27

What does the log file say during the first import (when you launch RCB after the DB was deleted)?

Your last log file only says that there was an error when you try to push the "Import Games"-button. But I guess that there must be an initial error when you try to import games the first time.

Maybe mame is a bad choice for the first try. I think I have to add some more intelligence to the scraping process for mame roms as there is no mapping between rom names an game names implemented. And there is no good scraper for mame sources implemented atm. It is on my list to improve mame support, but not yet done. There are offline game description files available for mame but I am afraid you won't get any results with the online scrapers atm.

The-Boxhead Wrote:Also another question:
first time wizard that comes up. I couldent find an entry for mame so i choose "other" in the list.
Added path for mame \usr\games\mame
Then followed trough adding extension *.zip (since my mame roms are zip files)
Then pinted rom location to \home\xbmc\roms\mame
Didnt add any fanart or other image stuff in the wizard...

Is this correct ?
You mean, RCB did not offer you to choose path to artwork or you did not select a path?

If it did not offer this option this is a bug in RCB. If you cancel the selection of path to artwork in the wizard it will cancel the creation of the complete Rom Collection. This could explain the weird behavior when launching the UI. Could you please post you config.xml file?


- The-Boxhead - 2010-12-27

RCB offerred path to artwork but since i dint have any i just choose
my home folder Wink

Okay maybe RCB at the moment does not work well with sdlmame on linux.
Since mame is my main interest when it comes to emu's i'll guess i just have to wait. You have done some awesome work from what i have seen on the screenshots.

Gonna test with some nes or snes to se if this changes anything for me Smile


- The-Boxhead - 2010-12-27

Okay now it scans to database Smile

i deleted everything and started over again, seems that did the trick.
Gonna post debug log when done.

Btw have you ever tried gamebase64 ?
http://www.gb64.com/gamebase.php
It has a large database over many emu including screenshots, the frontend
is genius. Could some of that be used to RCB advantage ?

Also would it be possible to use:
http://www.mamedb.com/
or:
http://maws.mameworld.info/maws/
to scrape mame roms and screenshots ?


- The-Boxhead - 2010-12-27

Okay excelent news !

Everything works ! Smile Smile

From the 20 mame zip roms i added i got screenshots and covers for all of them. Looks very nice. mame launches and games play like hell Smile

Return to xbmc is also functioning as it should.

Does anyone know how to launch the mame roms directly without first launching the settings screen, cause i get the standard mame rom selecting screen after the launch from xbmc. Prolly i need to add some parameters to to mame, just dont know what Smile


- ShadeBlack - 2010-12-27

thanks again malte - I removed the fan-art lines and edited the settings as you said, and everything works the way I want it to.

fantastic Big Grin


- malte - 2010-12-27

The-Boxhead Wrote:Okay excelent news !

Everything works !

From the 20 mame zip roms i added i got screenshots and covers for all of them. Looks very nice. mame launches and games play like hell

Return to xbmc is also functioning as it should.

Does anyone know how to launch the mame roms directly without first launching the settings screen, cause i get the standard mame rom selecting screen after the launch from xbmc. Prolly i need to add some parameters to to mame, just dont know what
Very interesting! Do you know which of the scrapers returned the results? I checked some of the sites but they all did not seem to have mame informations. But I did not search wholeheartedly.

Thanks for the links. I will check if these sites are scrapable or if I can use the export format from the gamebase frontend. But afaik it was the base for spyvsspy's desc files that are linked in my wiki. So we can already use them with RCB.

The maws was already on our list and I hope that we can add a scraper for it soon.


- The-Boxhead - 2010-12-27

Dunno how it fetched the artwork but it sure did Wink

If it's any further help for you here is my debug log of my session
from i start RCB, after i deleted config and db files.
I have deleted everything until the point where i launch RCB
and start the config wizard including scanning roms to db.

http://pastebin.com/xKNG4ise


- malte - 2010-12-28

Ok, thanks! It really found some results from mobygames and giantbomb but I am sorry to say that they are not very accurate. As there was no Mame in the list and you chose platform "Other", it will search for the game name without specified platform. So you get results but maybe with screenshots or boxfronts from other systems. Because of the short rom names there are also some mismatches: "600" -> "Pretty Good Solitaire 600" (at least I guess this is not the correct one). So, before you start to scan your complete library now, you should maybe wait for the Mame safe scraper or use the offline game descriptions in the meantime. The Mame scraper is on the "near future" TODO list, so I hope it won't take too long.


- The-Boxhead - 2010-12-28

Yeah i discovered a good deal of wrong game screenshots, was a little fast on the trigger Wink

Im looking forward to the mame scraper support, if you want me to do any testing for you on this just gimme a pm.

And thank your for all the time and effort you are using on this !


- malte - 2010-12-28

I would like to support Angelscry's work on an Emulator Wikipage that he has posted here. Both addons will use the same command line syntax in the future, so the information will be valid for both user bases. I hope that one day this site is finished it could also be copied/moved to the official XBMC wiki. But as a start and to work on this with several people without access restriction it is good to have it on his own space.

If anybody is interested to support this project you can visit this site http://www.gwenael.org/xbmc/index.php and create an account to contribute.


- The-Boxhead - 2010-12-28

seems to have found a small bug while scanning to database... if i hit cancel
it doesent stop the scanning process but titles goes on. It says Canceling... but it goes on Wink

Also for feature suggestion:
We need to have a way to manually add single roms or delete titles from the database ++


- The-Boxhead - 2010-12-28

Hrmf launching games stopped working also. it worked yesterday
but today no joy. when i select a game and push the button.... nothing.

Debug from trying to launch games:
Code:
CGUIMediaWindow::GetDirectory (addons://sources/executable/)
20:00:39 T:3079300992 M:1425162240   DEBUG:   ParentPath = [addons://sources/executable/]
20:00:39 T:3076701040 M:1425170432   DEBUG: thread start, auto delete: 0
20:00:39 T:3076701040 M:1425170432   DEBUG: Previous line repeats 1 times.
20:00:39 T:3076701040 M:1425170432   DEBUG: Thread 3076701040 terminating
20:00:39 T:2899295088 M:1425170432 WARNING: CreateLoader - Unsupported protocol(addons) in addons://more/executable.tbn
20:00:39 T:2899295088 M:1425170432   DEBUG: Thread 2899295088 terminating
20:00:39 T:2821987184 M:1425170432   DEBUG: thread start, auto delete: 0
20:00:39 T:2821987184 M:1425170432   DEBUG: Thread 2821987184 terminating
20:00:39 T:2797316976 M:1424789504    INFO: Scriptresult: Success
20:00:39 T:2797316976 M:1421742080    INFO: Python script stopped
20:00:39 T:2797316976 M:1421615104   DEBUG: Thread 2797316976 terminating
20:00:39 T:3079300992 M:1421844480   DEBUG: python thread 4 destructed
20:00:39 T:3079300992 M:1421971456   DEBUG: LIRC: Update - NEW at 226760:00000000000000f7 00 MENU_UP XboxDVDDongle (MENU_UP)
20:00:44 T:3079300992 M:1422266368   DEBUG: LIRC: Update - NEW at 231261:00000000000000a6 00 UP XboxDVDDongle (UP)
20:00:44 T:3079300992 M:1422266368   DEBUG: OnKey: 166 pressed, action is Up
20:00:45 T:3079300992 M:1421209600   DEBUG: Previous line repeats 6 times.
20:00:45 T:3079300992 M:1421209600   DEBUG: LIRC: Update - NEW at 232344:00000000000000a6 00 UP_UP XboxDVDDongle (UP_UP)
20:00:45 T:3079300992 M:1421209600   DEBUG: LIRC: Update - NEW at 232461:000000000000000b 00 SELECT XboxDVDDongle (SELECT)
20:00:45 T:3079300992 M:1421209600   DEBUG: OnKey: 11 pressed, action is Select
20:00:45 T:3079300992 M:1421209600    INFO: initializing python engine.
20:00:45 T:3079300992 M:1421209600   DEBUG: new python thread created. id=5
20:00:45 T:2797316976 M:1421209600   DEBUG: thread start, auto delete: 0
20:00:45 T:2797316976 M:1421209600   DEBUG: Python thread: start processing
20:00:45 T:2797316976 M:1421082624  NOTICE: -->Python Interpreter Initialized<--
20:00:45 T:2797316976 M:1421082624   DEBUG: Process - The source file to load is /home/xbmc/.xbmc/addons/script.xbmc.debug.log/default.py
20:00:45 T:2797316976 M:1421082624   DEBUG: Process - Setting the Python path to /home/xbmc/.xbmc/addons/script.xbmc.debug.log:/home/xbmc/.xbmc/addons/script.module.dialogaddonscan/lib:/home/xbmc/.xbmc/addons/script.module.simplejson/lib:/home/xbmc/.xbmc/addons/script.module.beautifulsoup/lib:/usr/lib/xbmc/addons/script.module.pil/lib:/home/xbmc/.xbmc/addons/script.module.elementtree/lib:/usr/lib/xbmc/addons/script.module.pysqlite/lib:/usr/lib/xbmc/system/python/python24.zip:/usr/share/xbmc/system/python/lib/python24.zip:/usr/share/xbmc/system/python/lib/python2.4/:/usr/share/xbmc/system/python/lib/python2.4/plat-linux2:/usr/share/xbmc/system/python/lib/python2.4/lib-tk:/usr/share/xbmc/system/python/lib/python2.4/lib-dynload
20:00:45 T:2797316976 M:1421082624   DEBUG: Process - Entering source directory /home/xbmc/.xbmc/addons/script.xbmc.debug.log
20:00:45 T:2797316976 M:1421082624   DEBUG: ### [XBMC Debug Log] - Version: 0.5.8
20:00:45 T:2797316976 M:1420955648    INFO: Default 4:3 resolution directory is 720p
20:00:45 T:2797316976 M:1420955648    INFO: Default 16:9 resolution directory is 720p
20:00:45 T:2797316976 M:1420955648    INFO: Loading skin includes from /720p/includes.xml
20:00:45 T:2797316976 M:1420955648    INFO: Error loading includes.xml file (/720p/includes.xml): Failed to open file (row=0, col=0)
20:00:45 T:3079300992 M:1421107200   DEBUG: ------ Window Init (/home/xbmc/.xbmc/addons/script.xbmc.debug.log/resources/skins/Default/720p/script-XBMC-debug-log-main.xml) ------
20:00:45 T:3079300992 M:1421107200    INFO: Loading skin file: /home/xbmc/.xbmc/addons/script.xbmc.debug.log/resources/skins/Default/720p/script-XBMC-debug-log-main.xml
20:00:46 T:3079300992 M:1416433664   DEBUG: LIRC: Update - NEW at 233170:000000000000000b 00 SELECT_UP XboxDVDDongle (SELECT_UP)
20:00:47 T:3079300992 M:1414078464   DEBUG: LIRC: Update - NEW at 234584:00000000000000a7 00 DOWN XboxDVDDongle (DOWN)
20:00:47 T:3079300992 M:1414078464   DEBUG: OnKey: 167 pressed, action is Down
20:00:48 T:3079300992 M:1414078464   DEBUG: LIRC: Update - NEW at 235217:00000000000000a7 00 DOWN_UP XboxDVDDongle (DOWN_UP)
20:00:48 T:3079300992 M:1414078464   DEBUG: LIRC: Update - NEW at 235684:00000000000000a8 00 RIGHT XboxDVDDongle (RIGHT)
20:00:48 T:3079300992 M:1414078464   DEBUG: OnKey: 168 pressed, action is Right
20:00:49 T:3079300992 M:1414078464   DEBUG: LIRC: Update - NEW at 236217:00000000000000a8 00 RIGHT_UP XboxDVDDongle (RIGHT_UP)
20:00:49 T:3079300992 M:1414078464   DEBUG: LIRC: Update - NEW at 236250:00000000000000a8 00 RIGHT XboxDVDDongle (RIGHT)
20:00:49 T:3079300992 M:1414078464   DEBUG: OnKey: 168 pressed, action is Right
20:00:49 T:3079300992 M:1414078464   DEBUG: LIRC: Update - NEW at 236784:00000000000000a8 00 RIGHT_UP XboxDVDDongle (RIGHT_UP)
20:00:49 T:3079300992 M:1414078464   DEBUG: LIRC: Update - NEW at 236817:00000000000000a8 00 RIGHT XboxDVDDongle (RIGHT)
20:00:49 T:3079300992 M:1414078464   DEBUG: OnKey: 168 pressed, action is Right
20:00:50 T:3079300992 M:1414078464   DEBUG: LIRC: Update - NEW at 237184:00000000000000a8 00 RIGHT_UP XboxDVDDongle (RIGHT_UP)
20:00:50 T:3079300992 M:1414078464   DEBUG: LIRC: Update - NEW at 237217:000000000000000b 00 SELECT XboxDVDDongle (SELECT)
20:00:50 T:3079300992 M:1414078464   DEBUG: OnKey: 11 pressed, action is Select
20:00:50 T:3079300992 M:1414086656   DEBUG: LIRC: Update - NEW at 237784:000000000000000b 00 SELECT_UP XboxDVDDongle (SELECT_UP)
20:00:52 T:3079300992 M:1414086656   DEBUG: LIRC: Update - NEW at 239150:00000000000000a9 00 LEFT XboxDVDDongle (LEFT)
20:00:52 T:3079300992 M:1414086656   DEBUG: OnKey: 169 pressed, action is Left
20:00:52 T:3079300992 M:1413959680   DEBUG: LIRC: Update - NEW at 239650:00000000000000a9 00 LEFT_UP XboxDVDDongle (LEFT_UP)
20:00:52 T:3079300992 M:1413959680   DEBUG: LIRC: Update - NEW at 239684:00000000000000a6 00 UP XboxDVDDongle (UP)
20:00:52 T:3079300992 M:1413959680   DEBUG: OnKey: 166 pressed, action is Up
20:00:53 T:3079300992 M:1413959680   DEBUG: LIRC: Update - NEW at 240284:00000000000000a6 00 UP_UP XboxDVDDongle (UP_UP)
20:00:53 T:3079300992 M:1413959680   DEBUG: LIRC: Update - NEW at 240350:000000000000000b 00 SELECT XboxDVDDongle (SELECT)
20:00:53 T:3079300992 M:1413959680   DEBUG: OnKey: 11 pressed, action is Select
20:00:54 T:3079300992 M:1413959680   DEBUG: LIRC: Update - NEW at 241050:000000000000000b 00 SELECT_UP XboxDVDDongle (SELECT_UP)
20:00:57 T:3079300992 M:1413963776   DEBUG: LIRC: Update - NEW at 243918:00000000000000f7 00 MENU XboxDVDDongle (MENU)
20:00:57 T:3079300992 M:1413963776   DEBUG: OnKey: 247 pressed, action is PreviousMenu
20:00:57 T:3079300992 M:1413967872   DEBUG: ------ Window Deinit (/home/xbmc/.xbmc/addons/script.xbmc.debug.log/resources/skins/Default/720p/script-XBMC-debug-log-main.xml) ------
20:00:57 T:2797316976 M:1413967872    INFO: Scriptresult: Success
20:00:57 T:2797316976 M:1413967872    INFO: Python script stopped
20:00:57 T:2797316976 M:1413967872   DEBUG: Thread 2797316976 terminating
20:00:57 T:3079300992 M:1420189696   DEBUG: python thread 5 destructed
20:00:57 T:3079300992 M:1420189696   ERROR: ClearBlock: Trying to clear non existent block /home/xbmc/.xbmc/addons/script.xbmc.debug.log
20:00:57 T:3079300992 M:1420193792   DEBUG: LIRC: Update - NEW at 244527:00000000000000f7 00 MENU_UP XboxDVDDongle (MENU_UP)
20:01:07 T:3079300992 M:1420210176    INFO: Python, unloading python24.dll because no scripts are running anymore
20:01:07 T:3079300992 M:1420210176   DEBUG: UnloadExtensionLibs, clearing python extension libraries
20:01:07 T:3079300992 M:1420210176   DEBUG: Unloading: strop.so
20:01:07 T:3079300992 M:1420210176   DEBUG: Unloading: time.so
20:01:07 T:3079300992 M:1420210176   DEBUG: Unloading: array.so
20:01:07 T:3079300992 M:1420210176   DEBUG: Unloading: termios.so
20:01:07 T:3079300992 M:1420210176   DEBUG: Unloading: datetime.so
20:01:07 T:3079300992 M:1420210176   DEBUG: Unloading: _sqlite.so
20:01:07 T:3079300992 M:1420210176   DEBUG: Unloading: struct.so
20:01:07 T:3079300992 M:1420210176   DEBUG: Unloading: binascii.so
20:01:07 T:3079300992 M:1420210176   DEBUG: Unloading: zlib.so
20:01:07 T:3079300992 M:1420337152   DEBUG: Unloading: _weakref.so
20:01:07 T:3079300992 M:1420337152   DEBUG: Unloading: _socket.so
20:01:07 T:3079300992 M:1420337152   DEBUG: Unloading: _ssl.so
20:01:07 T:3079300992 M:1420337152   DEBUG: Unloading: itertools.so
20:01:07 T:3079300992 M:1420337152   DEBUG: Unloading: _bisect.so
20:01:07 T:3079300992 M:1420337152   DEBUG: Unloading: _heapq.so
20:01:07 T:3079300992 M:1420337152   DEBUG: Unloading: collections.so
20:01:07 T:3079300992 M:1420337152   DEBUG: Unloading: pyexpat.so
20:01:07 T:3079300992 M:1420337152   DEBUG: Unloading: python24-i486-linux.so
20:01:07 T:3079300992 M:1420464128   ERROR: ClearBlock: Trying to clear non existent block /home/xbmc/.xbmc/addons/script.games.rom.collection.browser
20:01:14 T:2871503728 M:1420472320   DEBUG: Thread 2871503728 terminating (autodelete)
20:01:22 T:3079300992 M:1420496896   DEBUG: SECTION:UnloadDelayed(DLL: special://xbmcbin/system/ImageLib-i486-linux.so)
20:01:22 T:3079300992 M:1420496896   DEBUG: Unloading: ImageLib-i486-linux.so

Darned Smile and also each time i reboot my xbmc the RCB automaticly starts
itself each time !

Maybe all this happened because i had to kill xbmc while it was scanning ?
Since cancel didn't work and i had about 800 titles left i wasnt going to wait for it to finish Wink