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 - gotham2014 - 2018-02-12

hi, just to clarify, artwork also needs to be in a different directory than the game? So I would have something like:

GAMES > N64 > Advert
GAMES > N64 > Background
GAMES > N64 > Banner
GAMES > N64 > Box
GAMES > N64 > Box_3D
GAMES > N64 > BoxBack
GAMES > N64 > Cart
GAMES > N64 > Cart_3D
GAMES > N64 > Games
GAMES > N64 > Gamevideo
GAMES > N64 > Logos
GAMES > N64 > System_Logo


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - malte - 2018-02-12

No. It just needs to be unique.

In your setup you have filenames like "poster.*", "screenshot.*", fanart.*. If you tell RCB to look for screenshot.* it will just import the screenshot file and all is good.

The only problem is if you have files with the same name and a different extension and tell RCB to search for * as extension.
So, if you have several files like
- Roadsters.nfo
- Roadsters.zip
- Roadsters.mp4

and you tell RCB to search for "%GAME%.*" it will find all three files (because %GAME% will be replaced with the game name and the * acts as a wildcard).

In this scenario you have to tell RCB exactly what files it should use for each filetype. So, rom file has to be "%GAME%.zip" and video file hast to be "%GAME%.mp4".


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - gotham2014 - 2018-02-12

ahh ha, now I get you. Angel

Will work on this now and get back to you with an update report.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - gotham2014 - 2018-02-12

Hi @malte 

I found out that the mp4 was giving the problems as suggested and was causing the crashing of kodi. Blush

I did notice something while importing which I could not solve. Maybe you know.

Attached 2 nfo files. one before local scraping of nfo to restore DB and the second after. As you can see RCB almost all cleaned the data out of the nfo. This must have happened before the import as the GUI doesn't have any data anymore to show either, only the name of the game and platform.

Any idea what causes this?

Before scraping of nfo file:
Code:
<game>
  <title>007 - GoldenEye (USA)</title>
  <originalTitle />
  <alternateTitle />
  <platform>Nintendo 64</platform>
  <plot>You are Bond, James Bond.

You are assigned to covert operations connected with the GoldenEye weapons satellite. M will brief you on your mission and objectives from London. Q Branch will support your efforts with a plentiful supply of weapons and gadgets. Moneypenny offers you light-hearted best wishes and you're off!

Your mission begins in the heavily guarded chemical warfare facility at the Byelomorye Dam in the USSR. Look and shoot in any direction as you navigate 12 interactive 3-D environments. Use stealth and force as you see fit in matters of international security. Consider the military personnel expendable. You are licensed to kill!

* Exciting 3-D environments.
* Highly intelligent enemies!
* Numerous Q gadgets and weapons!
* Battery-backed memory saves game progress! </plot>
  <publisher>Nintendo</publisher>
  <developer>Rare</developer>
  <year>1997</year>
  <genre>Action</genre>
  <genre>Adventure</genre>
  <genre>Shooter</genre>
  <genre>Stealth</genre>
  <detailUrl />
  <maxPlayer>4+</maxPlayer>
  <region />
  <media />
  <perspective />
  <controller />
  <version />
  <rating />
  <votes />
  <isFavorite>0</isFavorite>
  <launchCount>0</launchCount>
</game>



After scraping of nfo file:
Code:
<game>
  <title>007 - GoldenEye (USA)</title>
  <originalTitle />
  <alternateTitle />
  <platform>Nintendo 64</platform>
  <plot />
  <publisher />
  <developer />
  <year />
  <detailUrl />
  <maxPlayer />
  <region />
  <media />
  <perspective />
  <controller />
  <version />
  <rating />
  <votes />
  <isFavorite>0</isFavorite>
  <launchCount>0</launchCount>
  <thumb local="smb://xxx/media/GAMES/N64/007 - GoldenEye (USA)/poster.jpg" type="boxfront" />
  <thumb local="smb://xxx/media/GAMES/GameTrailer/N64/007 - GoldenEye (USA).mp4" type="gameplay" />
  <thumb local="smb://xxx/media/GAMES/N64/007 - GoldenEye (USA)/fanart.jpg" type="fanart" />
  <thumb local="smb://xxx/media/GAMES/N64/007 - GoldenEye (USA)/screenshot.jpg" type="screenshot" />
  <thumb local="smb://xxx/media/GAMES/N64/007 - GoldenEye (USA)/back.jpg" type="boxback" />
</game>



RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - malte - 2018-02-12

Strange. Usually it should not touch nfo files when rescraping from nfo files. Do you have a log file from the scraping process? Sorry for the hassle. I hope you have backups of the files?


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - trihy - 2018-02-12

Thabks @malte

There are many emulators with rom naming like mame.

Atomis, naomi, naomi2 all this are emulated by demul emulator. M2 emulator, cps3 emulator, model 3 emulator...

Maybe we can have an option to edit a rom name? I mean the rom name rcb shows, not the actual ron filename. This systems doesnt have a lot of roms, so it wont be that bad to use manual renaming. Maybe if renaming is possible, we can just add a .jpg with the renamed name on boxfront folder and on the other ones.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - trihy - 2018-02-12

Great the history.dat thing for mame.

Will wait for that.

Btw, the file txt/xml we were using for adding games to mame on rcb, was so cool because it didnt have 5 or 10 sf2, mk, etc mods or clones. Just the proper one and maybe the 2 player / 4 player version of a rom that has multiplayer.

Will be great if we can have some kind of filter when parsing a mame dat. Not sure if its possible.

Browsing a 15.000 mame roms list will be a pain.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - gotham2014 - 2018-02-12

No worries I had a backup and I am very happy you are so active in your help to resolve the problem. Not many app developers are like you. :-)

attached the log. I had to run it again just to make sure I cached the event. I had only enabled the rcb debug. do i also need to enable the kodi debug?

Thanks

https://paste.ubuntu.com/=wZmxCd2Vhq/


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - malte - 2018-02-13

trihy Wrote:Maybe we can have an option to edit a rom name? I mean the rom name rcb shows, not the actual ron filename. This systems doesnt have a lot of roms, so it wont be that bad to use manual renaming. Maybe if renaming is possible, we can just add a .jpg with the renamed name on boxfront folder and on the other ones.
You could also create folders for your games with the correct game name and use the "foldername as gamename" option in Edit Rom Collection dialog.
trihy Wrote:Btw, the file txt/xml we were using for adding games to mame on rcb, was so cool because it didnt have 5 or 10 sf2, mk, etc mods or clones. Just the proper one and maybe the 2 player / 4 player version of a rom that has multiplayer.

Will be great if we can have some kind of filter when parsing a mame dat. Not sure if its possible.

Browsing a 15.000 mame roms list will be a pain.
It will parse the full history.dat file that is available on https://www.arcade-history.com. I just tested some simple game imports and performance was quite good.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - malte - 2018-02-13

gotham2014 Wrote:I am very happy you are so active in your help to resolve the problem. Not many app developers are like you. :-)
Haha, I have been away for more than a year so you just came here at the right time Smile
gotham2014 Wrote:I had only enabled the rcb debug. do i also need to enable the kodi debug?
Yes, you need to enable Kodi Debug log. Otherwise it won't write log information of addons.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - gotham2014 - 2018-02-13

Than I am very lucky. :-) But keep it up please. :-)

Here is the new debug log: https://paste.ubuntu.com/p/gT4rV87ghq/


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - malte - 2018-02-13

Ok, there seem to be 2 errors.

1. You don't use the "local nfo" scraper (this is the scraper that uses the nfo files that you exported via RCB). In fact, this does not matter, you could as well use the offline parsers that you have created earlier. And this leads to error 2:

2. The offline parser that you are using does not seem to work anymore. The error is:
Code:
DEBUG: RCB_WARNING: description file for game 007 - GoldenEye (USA) could not be found. Check if this path exists: \\XXX\media\GAMES\N64\007 - GoldenEye (USA)\game.xml

Can you check if the game.xml files are still available?

So, you have 2 options:
1) use the local nfo scraper (if you have valid nfo files)
2) make sure that yor game.xml files are available.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - gotham2014 - 2018-02-13

Apologies.

Send you the wrong log. I had forgotten to select local nfo file scraper.

Attached correct version: https://paste.ubuntu.com/p/442y2CRHsx/

As for question 2, yes, the game.xml is not their anymore, I removed it to make sure it was not causing problems. As I was importing only nfo, I thought the game.xml would not matter.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - malte - 2018-02-13

Looks like you have found a bug. nfo import seems to have issues with "foldername as gamename" option. I have to test this option anyway on another feature so I could try to fix this alltogether. But new release will take a while. So in the meantime you could try to reimport your old offline descriptions.


RE: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - gotham2014 - 2018-02-13

Ah ok happy to have assisted you in finding a bug. :-)

All my description are inside the nfo files. Anyway to import it a different way so that data is saved into the RCB database? Can I rename game.xml to %GAME%.nfo?
e.g. in following line of code:
Quote:    <Site descFilePerGame="True" name="Nintendo 64" searchGameByCRC="False" useFilenameAsCRC="False" useFoldernameAsCRC="False">
      <Scraper encoding="iso-8859-1" parseInstruction="C:\Users\xxx\AppData\Roaming\Kodi\userdata\addon_data\script.games.rom.collection.browser\_parserConfig_Emby.xml" returnUrl="False" source="\\xxx\media\GAMES\N64\%GAME%\game.xml" />
    </Site>

I also have spend hours trying different configs to get the PS game to launch. Without any luck. Maybe you can see something?

The problem is that the emulator is opening, but no game is loaded. This is the log:

Code:
13:43:19.855 T:3580   DEBUG: RCB_INFO: Begin saveViewMode
13:43:19.892 T:3580   DEBUG: RCB_INFO: End saveViewMode
13:43:19.892 T:3580   DEBUG: RCB_INFO: Begin helper.saveViewState
13:43:19.931 T:7428   DEBUG: Skin Helper Service --> Kodi_Monitor: sender xbmc - method: Player.OnStop  - data: {"end":false,"item":{"title":"","type":"movie"}}
13:43:19.986 T:3580   DEBUG: RCB_INFO: End helper.saveViewState
13:43:19.986 T:3580   DEBUG: RCB_INFO: End saveViewState
13:43:19.987 T:3580   DEBUG: RCB_INFO: files for current game: [(u'smb://XXX/media/GAMES/PS/The X-Files/The X-Files.cue',)]
13:43:19.987 T:3580   DEBUG: RCB_INFO: launcher.buildCmd
13:43:19.987 T:3580   DEBUG: RCB_INFO: emuCommandLine: C:\Program Files\ePSXe202-1\ePSXe.exe
13:43:19.987 T:3580   DEBUG: RCB_INFO: preCmdLine:
13:43:19.987 T:3580   DEBUG: RCB_INFO: postCmdLine:
13:43:19.987 T:3580   DEBUG: RCB_INFO: Getting Multiple Disc Parameter
13:43:19.988 T:3580   DEBUG: RCB_INFO: emuParams: -nogui -loadbin "%ROM%"
13:43:19.988 T:3580   DEBUG: RCB_INFO: rom: smb://XXX/media/GAMES/PS/The X-Files/The X-Files.cue
13:43:19.989 T:3580   DEBUG: RCB_INFO: Trying to delete local rom files
13:43:20.013 T:3580   DEBUG: RCB_INFO: Creating local copy: C:\Users\XXX\AppData\Roaming\Kodi\userdata\addon_data\script.games.rom.collection.browser\tmp\PlayStation\The X-Files.cue
13:43:20.033 T:3580   DEBUG: RCB_INFO: Local copy created
13:43:20.033 T:3580   DEBUG: RCB_INFO: No precmd created.
13:43:20.033 T:3580   DEBUG: RCB_INFO: No postcmd created.
13:43:20.127 T:3580   DEBUG: RCB_INFO: cmd: call "C:\Program Files\ePSXe202-1\ePSXe.exe" -nogui -loadbin "C:\Users\XXX\AppData\Roaming\Kodi\userdata\addon_data\script.games.rom.collection.browser\tmp\PlayStation\The X-Files.cue"
13:43:20.127 T:3580   DEBUG: RCB_INFO: precmd: call
13:43:20.127 T:3580   DEBUG: RCB_INFO: postcmd: call
13:43:20.127 T:3580   DEBUG: RCB_INFO: launchEmu on non-xbox
13:43:20.127 T:3580   DEBUG: RCB_INFO: screenMode: Windowed
13:43:20.128 T:3580   DEBUG: RCB_INFO: launch emu
13:43:20.176 T:6728   DEBUG: CSaveFileStateJob:Big GrinoWork - Saving file state for video item smb://XXX/media/GAMES/GameTrailer/PS/The X-Files.mp4
13:43:20.228 T:3580   DEBUG: RCB_INFO: onAction: 7
13:43:21.157 T:6308   DEBUG: CAESinkDirectSound:Big Grineinitialize: Cleaning up
13:43:21.777 T:3832  NOTICE: EMBY.player -> Could not find itemId, cancelling playback report...
13:43:21.820 T:6044   DEBUG: CWinEventsWin32::WndProcWindow is active
13:43:21.821 T:6044   DEBUG: CWinEventsWin32::WndProc: Focus switched to process C:\Windows\System32\cmd.exe
13:43:26.273 T:6044    INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://XXX (easy=0E32BF38, multi=141E71D0)
13:43:26.273 T:6044    INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://XXX (easy=0E8E81B8, multi=141E7100)
13:43:27.782 T:6044    INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://XXX (easy=0DEA8008, multi=0424E350)
13:43:28.283 T:6044    INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://XXX (easy=13E40048, multi=0424E280)
13:43:50.183 T:7280   DEBUG: Thread JobWorker 7280 terminating (autodelete)
13:43:50.183 T:6300   DEBUG: Thread JobWorker 6300 terminating (autodelete)
13:43:50.183 T:540   DEBUG: Thread JobWorker 540 terminating (autodelete)
13:43:50.378 T:6728   DEBUG: Thread JobWorker 6728 terminating (autodelete)
13:43:55.971 T:6044   DEBUG: ------ Window Init (Pointer.xml) ------
13:43:58.006 T:3580   DEBUG: RCB_INFO: launch emu done

This is the emulator log:
Code:
 * Running ePSXe emulator version 2.0.2.
 * Memory handlers init.
 * ePSXe: PSX BIOS loaded [bios\SCPH1001.BIN].
 * Loading Single CUE File ok
 * Loading ISO Format  (ECM File) (2352)  (NO ECM File) ok
 * First/Last track: 1 1
 * Track 1: (DATA)  - Start 1: (00,02,00) -  Length 954437:08
 * NTSC cdrom detected. (SLU__000.00)
 * Doing init gpu[0]...
 * GPU supports GTE Accurate
 * Gpu open[0]...
 * Direct input init ok.
 * Init core spu ...  ok

The game structure looks like this:
GAMES > PS > The X-Files > The X-Files.cue
GAMES > PS > The X-Files > The X-Files.bin
GAMES > PS > The X-Files > The X-Files_Disk2.bin
GAMES > PS > The X-Files > The X-Files_Disk3.bin
GAMES > PS > The X-Files > The X-Files_Disk4.bin


The cue file is:
Code:
FILE “The X-Files.bin” BINARY
TRACK 01 MODE1/2352
INDEX 01 00:00:00


I also removed the "*.bin" and only have now:
      <romPath>smb://MULTIMEDIA-NAS/media/GAMES/PS//*.cue</romPath>
      <romPath>smb://MULTIMEDIA-NAS/media/GAMES/PS//*.iso</romPath>