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)



RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - pecospete - 2012-08-02

Thanks all.

(2012-07-18, 23:23)Maleficium Wrote:
(2012-07-18, 13:07)malte Wrote:
(2012-07-17, 00:31)Maleficium Wrote: You'll need to edit config.xml located in C:\Users\YOUR_USER_NAME\AppData\Roaming\XBMC\userdata\addon_data\script.games.rom.collection.browser\

Open that file with some text editor, take a look where your collection its named "Other" and change it to whatever you like. You'll find something like <RomCollection id="01" name="Other">
I thought you should get a text dialog to enter a new name for the rom collection. I will check this. If not, this should be fixed.

Anyway, when you don't find the system in RCBs list of platforms you won't get good results from the online scrapers. I guess there must be some more intelligence in the future to handle some of the Arcade systems with emulators other than MAME.

That text dialog was displayed only once after I installed the last test version. For all other collections that I added later it wasn't displayed.

About the other point about adding different names in the collection name it depends a bit. The best way to choose the name its check the availability and the name used in the page of the scrapper you want to use. It depends a lot of the amount of info about that system that the source have.

It sounds like the best would be to have the collection name and the name sent to the scrapper be different settings. That way, I could have a "supermodel3" collection, but scrap the roms as "mame" roms.



RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - ltj1200 - 2012-08-02

(2012-08-01, 21:59)st graveyard Wrote:
(2012-08-01, 21:42)ltj1200 Wrote: I've been skimming through this thread looking for info on how to correctly configure the xbox 360 wireless controller for use with RCB. I have the wireless receiver and the controller works with my Win 7 x64 machine when I've tried it using XPadder. It looks like setting up a keymap for xbmc will make it operable with Xbmc but what has to be done to configure it for the emulators? Right now, I'm still getting everything setup and am just using Kega Fusion but plan to also use other emulators once I get further into making this work.

Thanks!

I have the xbox wireless controler on my pc and it works great. I don't use the controler to select games in XBMC but I set up the controller in the emulators themselves.
What exactly is the problem, I don't understand. I select a game using the wireless keyboard and once in the game the controller kicks in ...

Thanks for the reply. That sounds like a pretty similar setup. I use a keyboard/mouse (actually a Logitech diNovo Mini) as well for normal XBMC use. I can select a rom and it'll start with no issue. However, the controller does nothing. In Fusion for example, I use a right click on the mouse to get into the settings and set the controller as the Xbox wireless controller and it still did nothing. Is there another way to setup the controller in the emulators that would be better? Something like editing an ini file or a something like a keymap? Or am I just missing something all together?

Thanks again for anyone with advice.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - Neo... - 2012-08-03

Thank you for the developer for putting this gem together. I'm really looking forward to playing some old school games. However, I haven't had the pleasure yet.

I seem to be having trouble importing any games. When I get to this step, I choose the option to import games, and then the "import games" loading screen comes up. It does not budge from there. Pure freeze. I've had to restart several times and still the same issue occurs.

Does this sound like anything? Are there any usual suspects I can check out?


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - wellspokenman - 2012-08-03

(2012-08-03, 02:03)Neo... Wrote: Thank you for the developer for putting this gem together. I'm really looking forward to playing some old school games. However, I haven't had the pleasure yet.

I seem to be having trouble importing any games. When I get to this step, I choose the option to import games, and then the "import games" loading screen comes up. It does not budge from there. Pure freeze. I've had to restart several times and still the same issue occurs.

Does this sound like anything? Are there any usual suspects I can check out?

tail ~/.xbmc/temp/xbmc.log

try that when you get the error - a good 1st step.
(2012-08-02, 01:27)ltj1200 Wrote:
(2012-08-01, 21:59)st graveyard Wrote:
(2012-08-01, 21:42)ltj1200 Wrote: I've been skimming through this thread looking for info on how to correctly configure the xbox 360 wireless controller for use with RCB. I have the wireless receiver and the controller works with my Win 7 x64 machine when I've tried it using XPadder. It looks like setting up a keymap for xbmc will make it operable with Xbmc but what has to be done to configure it for the emulators? Right now, I'm still getting everything setup and am just using Kega Fusion but plan to also use other emulators once I get further into making this work.

Thanks!

I have the xbox wireless controler on my pc and it works great. I don't use the controler to select games in XBMC but I set up the controller in the emulators themselves.
What exactly is the problem, I don't understand. I select a game using the wireless keyboard and once in the game the controller kicks in ...

Thanks for the reply. That sounds like a pretty similar setup. I use a keyboard/mouse (actually a Logitech diNovo Mini) as well for normal XBMC use. I can select a rom and it'll start with no issue. However, the controller does nothing. In Fusion for example, I use a right click on the mouse to get into the settings and set the controller as the Xbox wireless controller and it still did nothing. Is there another way to setup the controller in the emulators that would be better? Something like editing an ini file or a something like a keymap? Or am I just missing something all together?

Thanks again for anyone with advice.

When getting gamepads to control xbmc you have a choice between setting them up as an 'input' device or as a 'joystick' device. Input is just a pure mapping of buttons to keys, such as UP,DOWN,W,A,S,D etc. This is easier than joystick, as xbmc doesn't need to be aware of the js as an actual device. (Especially if you map them to existing xbmc keyboard shortcuts). Then you just reconfigure your emulators to respond to those keymaps. Two advantages to this approach: 1) you can connect your controller after xbmc starts and it will still work 2) when inside an emulator xbmc does not receive the key presses in the background; this happens with the js setup. See here for my ps3 sixad config.



RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - samapico - 2012-08-03

I'm having an issue trying to import my Rom database...

I reinstalled everything on my computer, and upgraded from XBMC10 to 11... I have a rom folder with a structure like this:
Code:
/%GAME%.smc
/%GAME%.nfo
/boxback/%GAME%.jpg
/boxfront/%GAME%.jpg
/cartridge/%GAME%.jpg
/fanart/%GAME%.jpg
/screenshot/%GAME%.jpg

The .nfo files were generated by the older RCB addon that I had with xbmc10.

So I created my collection, and in the import dialog, I select 'local nfo' as first scraper, 'local artwork' as 2nd. I'm guessing this should reimport my stuff in the database, right?

It scans through all the files (pretty quickly, about 5 or 10 games per second). But at the end, I get nothing in the database. It doesn't tell me any kind of error, though. I made sure my filters were correct, but still nothing shows up.

Here's what ends up in xbmc.log for each game it tries to add:

Code:
14:22:51 T:1648  NOTICE: RCB_INFO: current rom file: D:\Programmes\Jeux\Emulateurs\Snes\Roms Snes\Zombies Ate My Neighbors.smc
14:22:51 T:1648  NOTICE: RCB_INFO: gamename (file): Zombies Ate My Neighbors.smc
14:22:51 T:1648  NOTICE: RCB_INFO: gamename (friendly): Zombies Ate My Neighbors
14:22:51 T:1648  NOTICE: RCB_INFO: Start scraping info for game: Zombies Ate My Neighbors
14:22:51 T:1648  NOTICE: RCB_INFO: using scraper: local nfo
14:22:51 T:1648  NOTICE: RCB_INFO: Romdir: D:\Programmes\Jeux\Emulateurs\Snes\Roms Snes
14:22:51 T:1648  NOTICE: RCB_INFO: Using nfoFile: D:\Programmes\Jeux\Emulateurs\Snes\Roms Snes\Zombies Ate My Neighbors.nfo
14:22:51 T:1648  NOTICE: RCB_INFO: description file (tokens replaced): D:\Programmes\Jeux\Emulateurs\Snes\Roms Snes\Zombies Ate My Neighbors.nfo
14:22:51 T:1648  NOTICE: RCB_WARNING: Encoding: utf-8
14:22:51 T:1648  NOTICE: RCB_INFO: Searching for game: Zombies Ate My Neighbors
14:22:51 T:1648  NOTICE: RCB_INFO: 1 results found. Try to find best match.
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: PlatformSearchKey : 'PlatformSearchKey'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: SearchKey : 'SearchKey'
14:22:51 T:1648  NOTICE: RCB_INFO: No searchKey found. Using first result
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: SearchKey : 'SearchKey'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: SearchKey : 'SearchKey'
14:22:51 T:1648  NOTICE: RCB_INFO: Using result
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Publisher
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['Konami, Inc.']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Votes
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Description
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['In Zombies Ate My Neighbors, the player takes the role of a male or female protagonist (Zeke or Julia), fighting vampires, mummies, zombies, and other horrifying creatures. The goal is to destroy these monsters, survive the 50+ levels (not including secret ones), and rescue the neighbors that have survived the onslaught.There is a defined number of neighbors who can be saved on every level. When they are all rescued, an "Exit" door opens, and the player advances to the next level. The levels range from mall and grocery store to beaches and football fields. Using different weapons such as bazooka or water gun, Zeke and Julia have to kill regular enemies and bosses (huge babies, dragons, ants, and others) at the end of the levels. Despite the horror theme, the game\'s setting contains humorous elements as well. A two-player cooperative mode is available.']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: IsFavorite
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Players
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: URL
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Media
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Region
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Rating
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Controller
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: AlternateTitle
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: LaunchCount
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: OriginalTitle
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Platform
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['SNES']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Game
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['Zombies Ate My Neighbors']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Version
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Perspective
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: ReleaseYear
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['1993']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Genre
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['Action']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Developer
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['LucasArts']
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: Filetypeboxfront : 'Filetypeboxfront'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: Filetypeboxback : 'Filetypeboxback'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: Filetypecartridge : 'Filetypecartridge'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: Filetypescreenshot : 'Filetypescreenshot'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: Filetypefanart : 'Filetypefanart'
14:22:51 T:1648  NOTICE: RCB_INFO: using scraper: local artwork
14:22:51 T:1648  NOTICE: RCB_INFO: crc for current file: 3F057A06
14:22:51 T:1648  NOTICE: RCB_WARNING: an error occured while adding game Zombies Ate My Neighbors
14:22:51 T:1648  NOTICE: RCB_WARNING: Error: 'NoneType' object is not iterable

This happens with both my NES and Snes collections


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - Neo... - 2012-08-03

Thank you for the head's up wellspokenman. I've resolved that issue, but have another. fun! Now, what I am getting when importing games is the error, "Could not create the artwork directory," or after changes things around, "could not create artwork file". the log says something about permissions denied. If this is it, how do I change permissions? if not, what should i be looking at?

Please help!


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - Bairdsly - 2012-08-04

Just a quick question, is it possible to get XBMC to minimize when I load an emulator/rom instead of having it just jump into windowed mode and hopping to the background? I'm not too sure on where to do for this issue.

Thanks!


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - wellspokenman - 2012-08-04

(2012-08-03, 23:39)Neo... Wrote: Thank you for the head's up wellspokenman. I've resolved that issue, but have another. fun! Now, what I am getting when importing games is the error, "Could not create the artwork directory," or after changes things around, "could not create artwork file". the log says something about permissions denied. If this is it, how do I change permissions? if not, what should i be looking at?

Please help!

If your chosen rom artwork location is not located in your home directory, then you will probably need explicit permission to write there. I'd try relocating everything to home - that's the only place your user should be writing stuff.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - wellspokenman - 2012-08-05

Now it's my turn to beg for assistance. I followed the excellent MAME import instructions from here and even paid for an emumovies subscription in order to get video previews. Games imported quickly and well, but when browsing through the collection, every 10th preview or so will crash xbmc. The log just reads 'waiting for video thread to exit'

Code:
17:39:58 T:11240752  NOTICE: CDVDPlayer::CloseFile()
17:39:58 T:11240752  NOTICE: DVDPlayer: waiting for threads to exit
17:39:58 T:2978990960  NOTICE: CDVDPlayer::OnExit()
17:39:58 T:2978990960  NOTICE: DVDPlayer: closing audio stream
17:39:58 T:2978990960  NOTICE: Closing audio stream
17:39:58 T:2978990960  NOTICE: Waiting for audio thread to exit
17:39:58 T:2987383664  NOTICE: thread end: CDVDPlayerAudio::OnExit()
17:39:58 T:2987383664   DEBUG: Thread CDVDPlayerAudio 2987383664 terminating
17:39:58 T:2978990960  NOTICE: Closing audio device
17:39:58 T:2978990960   DEBUG: SetActiveDevice - SetActiveDevice from 2 to 1
17:39:58 T:2978990960   DEBUG: RemoveActiveDevice - Removing device 2
17:39:58 T:2978990960  NOTICE: Deleting audio codec
17:39:58 T:2978990960  NOTICE: DVDPlayer: closing video stream
17:39:58 T:2978990960  NOTICE: Closing video stream
17:39:58 T:2978990960  NOTICE: waiting for video thread to exit

A larger exerpt of the log may be found here. Only other thing I can find on this error is some Eden beta time seeking crashes, not sure that applies here.

I'm using RCB 1.01 on Eden 11.0 (xbmcbuntu). I normally use Nox as my skin, but as mentioned earlier I use confluence when working with large RCB collections. The videos are the HQ MP4 videos from Emumovies - all roms and movies are stored locally under my home folder tree. The behaviour is reproduced 100% of the time - every 10 games or so it will crash with the error above in the log. Initially I had the default 'play video in main window' and info window selected. Then changed to just info window, viewing them one by one after pressing info on the game. Also made sure I pressed stop inside each info window before exiting. I have now resorted to queuing up all the movies on my laptop, pausing when I see a game of interest, and adding that as a favourite in RCB :/

Anyone got some bright ideas for me?


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - samapico - 2012-08-06

(2012-08-03, 20:43)samapico Wrote: I'm having an issue trying to import my Rom database...

I reinstalled everything on my computer, and upgraded from XBMC10 to 11... I have a rom folder with a structure like this:
Code:
/%GAME%.smc
/%GAME%.nfo
/boxback/%GAME%.jpg
/boxfront/%GAME%.jpg
/cartridge/%GAME%.jpg
/fanart/%GAME%.jpg
/screenshot/%GAME%.jpg

The .nfo files were generated by the older RCB addon that I had with xbmc10.

So I created my collection, and in the import dialog, I select 'local nfo' as first scraper, 'local artwork' as 2nd. I'm guessing this should reimport my stuff in the database, right?

It scans through all the files (pretty quickly, about 5 or 10 games per second). But at the end, I get nothing in the database. It doesn't tell me any kind of error, though. I made sure my filters were correct, but still nothing shows up.

Here's what ends up in xbmc.log for each game it tries to add:

Code:
14:22:51 T:1648  NOTICE: RCB_INFO: current rom file: D:\Programmes\Jeux\Emulateurs\Snes\Roms Snes\Zombies Ate My Neighbors.smc
14:22:51 T:1648  NOTICE: RCB_INFO: gamename (file): Zombies Ate My Neighbors.smc
14:22:51 T:1648  NOTICE: RCB_INFO: gamename (friendly): Zombies Ate My Neighbors
14:22:51 T:1648  NOTICE: RCB_INFO: Start scraping info for game: Zombies Ate My Neighbors
14:22:51 T:1648  NOTICE: RCB_INFO: using scraper: local nfo
14:22:51 T:1648  NOTICE: RCB_INFO: Romdir: D:\Programmes\Jeux\Emulateurs\Snes\Roms Snes
14:22:51 T:1648  NOTICE: RCB_INFO: Using nfoFile: D:\Programmes\Jeux\Emulateurs\Snes\Roms Snes\Zombies Ate My Neighbors.nfo
14:22:51 T:1648  NOTICE: RCB_INFO: description file (tokens replaced): D:\Programmes\Jeux\Emulateurs\Snes\Roms Snes\Zombies Ate My Neighbors.nfo
14:22:51 T:1648  NOTICE: RCB_WARNING: Encoding: utf-8
14:22:51 T:1648  NOTICE: RCB_INFO: Searching for game: Zombies Ate My Neighbors
14:22:51 T:1648  NOTICE: RCB_INFO: 1 results found. Try to find best match.
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: PlatformSearchKey : 'PlatformSearchKey'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: SearchKey : 'SearchKey'
14:22:51 T:1648  NOTICE: RCB_INFO: No searchKey found. Using first result
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: SearchKey : 'SearchKey'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: SearchKey : 'SearchKey'
14:22:51 T:1648  NOTICE: RCB_INFO: Using result
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Publisher
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['Konami, Inc.']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Votes
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Description
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['In Zombies Ate My Neighbors, the player takes the role of a male or female protagonist (Zeke or Julia), fighting vampires, mummies, zombies, and other horrifying creatures. The goal is to destroy these monsters, survive the 50+ levels (not including secret ones), and rescue the neighbors that have survived the onslaught.There is a defined number of neighbors who can be saved on every level. When they are all rescued, an "Exit" door opens, and the player advances to the next level. The levels range from mall and grocery store to beaches and football fields. Using different weapons such as bazooka or water gun, Zeke and Julia have to kill regular enemies and bosses (huge babies, dragons, ants, and others) at the end of the levels. Despite the horror theme, the game\'s setting contains humorous elements as well. A two-player cooperative mode is available.']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: IsFavorite
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Players
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: URL
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Media
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Region
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Rating
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Controller
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: AlternateTitle
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: LaunchCount
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: OriginalTitle
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Platform
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['SNES']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Game
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['Zombies Ate My Neighbors']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Version
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Perspective
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: []
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: ReleaseYear
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['1993']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Genre
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['Action']
14:22:51 T:1648  NOTICE: RCB_INFO: resultKey: Developer
14:22:51 T:1648  NOTICE: RCB_INFO: resultValue: ['LucasArts']
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: Filetypeboxfront : 'Filetypeboxfront'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: Filetypeboxback : 'Filetypeboxback'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: Filetypecartridge : 'Filetypecartridge'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: Filetypescreenshot : 'Filetypescreenshot'
14:22:51 T:1648  NOTICE: RCB_WARNING: Error while resolving item: Filetypefanart : 'Filetypefanart'
14:22:51 T:1648  NOTICE: RCB_INFO: using scraper: local artwork
14:22:51 T:1648  NOTICE: RCB_INFO: crc for current file: 3F057A06
14:22:51 T:1648  NOTICE: RCB_WARNING: an error occured while adding game Zombies Ate My Neighbors
14:22:51 T:1648  NOTICE: RCB_WARNING: Error: 'NoneType' object is not iterable

This happens with both my NES and Snes collections

I tried to import the roms again with a 'DEBUG' log level, but I get nothing more that would be relevant... everytime it tries to add a rom to the db, it logs:
14:22:51 T:1648 NOTICE: RCB_WARNING: an error occured while adding game <whatever the game is>
14:22:51 T:1648 NOTICE: RCB_WARNING: Error: 'NoneType' object is not iterable

I tried re-installing the plugin, made sure all the existing config was wiped before re-installing it. Still no luck... Help me please!

I only get this if I use the local nfo scraper... It I use an online scraper, it works. But I spent so much time cleaning up whatever bad results it gave me the first time, and I cleaned up all the artworks to make sure I had the proper ones, especially for files that are badly named... I don't want to go through this again, I really want to use local nfo and artwork.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - wellspokenman - 2012-08-06

(2012-08-06, 05:47)samapico Wrote: I tried re-installing the plugin, made sure all the existing config was wiped before re-installing it. Still no luck... Help me please!

I only get this if I use the local nfo scraper... It I use an online scraper, it works. But I spent so much time cleaning up whatever bad results it gave me the first time, and I cleaned up all the artworks to make sure I had the proper ones, especially for files that are badly named... I don't want to go through this again, I really want to use local nfo and artwork.
A long shot here, but just in case:

Launch RCBs context menu and select "Edit Offline Scrapers"
Make sure you have selected the correct rom collection in the Scraper list
Check the option "Use filename as crc" and "Save config"



RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - samapico - 2012-08-06

Hmm... I only have 'None' ... and if I do 'add scraper', it asks me for a collection, then it wants me to point a games descriptions file or something... I don't have that. What I have are individual .nfo files that were created by a previous import/scrape.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - wellspokenman - 2012-08-06

(2012-08-06, 09:30)samapico Wrote: Hmm... I only have 'None' ... and if I do 'add scraper', it asks me for a collection, then it wants me to point a games descriptions file or something... I don't have that. What I have are individual .nfo files that were created by a previous import/scrape.
Indeed you do, my bad. I look forward to an answer to that one, as I have to do something similar soon for the SNES games that won't scrape.



RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - samapico - 2012-08-06

For what it's worth, I did some trial and error debugging of the python script by adding logs here and there...

Take a look at this, from dbupdate.py, starting at line 528:
Code:
    def useSingleScrapers(self, result, romCollection, startIndex, gamenameFromFile, foldername, firstRomfile, fuzzyFactor, updateOption, gui, progDialogRCHeader, fileCount):
        
        filecrc = ''
        artScrapers = {}
        
        for i in range(startIndex, len(romCollection.scraperSites)):
            scraperSite = romCollection.scraperSites[i]            
            
            gui.writeMsg(progDialogRCHeader, "Import game: " +gamenameFromFile, scraperSite.name + " - downloading info", fileCount)
            Logutil.log('using scraper: ' +scraperSite.name, util.LOG_LEVEL_INFO)
            
            if(scraperSite.searchGameByCRC and filecrc == ''):
                filecrc = self.getFileCRC(firstRomfile)
            
            urlsFromPreviousScrapers = []
            doContinue = False
            for scraper in scraperSite.scrapers:
                pyScraper = PyScraper()
                result, urlsFromPreviousScrapers, doContinue = pyScraper.scrapeResults(result, scraper, urlsFromPreviousScrapers, gamenameFromFile, foldername, filecrc, firstRomfile, fuzzyFactor, updateOption, romCollection, self.Settings)
            if(doContinue):
                continue
                                    
            #Find Filetypes and Scrapers for Art Download
            if(len(result) > 0):
                for path in romCollection.mediaPaths:
                    thumbKey = 'Filetype' + path.fileType.name
                    if(len(self.resolveParseResult(result, thumbKey)) > 0):
                        if((thumbKey in artScrapers) == 0):
                            artScrapers[thumbKey] = scraperSite.name
                        
        return result, artScrapers
This function is always called, except the FIRST scraper is 'local artwork' (see lines 225,238). The function iterates through all the scrapers you give it. So it starts out with local nfo, which works fine. But it's the local artwork one that screws up. At line 544 (for scraper in scraperSite.scrapers:), it gives the 'NoneType' object is not iterable exception. I'm guessing this has to do with the fact that 'local artwork' is kind of a fake scraper, and it doesn't scrape anything anyway. I'm not sure why the whole thing is bypassed if the first scraper is 'local artwork', but I'm guessing it's somewhere in here that we need to skip something for the 'local artwork' scraper.


<Edit: Removed shitty code that didn't work to avoid confusion :P >

Edit: It actually doesn't work at all... but at least it doesn't throw out exceptions :P The local artwork is just ignored completely, though


Edit2: Stumbled upon this in the code:
if(isLocalArtwork):
Logutil.log('scraper == "local artwork": ' +str(isLocalArtwork), util.LOG_LEVEL_INFO)
Logutil.log('Can\'t use "local artwork" scraper if game is not already imported. Use another scraper first.', util.LOG_LEVEL_INFO)

So I'm guessing local artwork is not meant to be used on an initial import... I'll try importing with 2 runs.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - samapico - 2012-08-06

That's it...

In the add-on options, turn off 'Do not import games without artwork'

Import games using 'local nfo' as first scraper, and 'none' for the 2nd and 3rd

This should get all the descriptions properly... Then do another import, using 'local nfo' then 'local artwork'

Also, turns out my NES collection is not very clean Tongue My Snes one is better though.