2018-09-04, 22:23
Hi Malte,
I have some emulators set up with bat files which I am trying to run with rom collection browser without any luck.
I was a long time user of RCB till Dec 2017 whilst playing with Kodi 18 and finding out it did not work and it looked like it was abandoned I moved to Launch Box/Big Box, but after doing a search for adding widgets from launch box I found that you are continuing with RCB and also added a cool widget feature.
Now when I was using the old version of RCB I got the bat files to work by modifying the launcher.py with a little code from a user way back in 2013/14 which is below
elif (romCollection.name == 'Linux' or romCollection.name == 'Macintosh' or romCollection.name == 'Windows'):
cmd = replacePlaceholdersInParams(emuCommandLine, rom, romCollection, gameRow, escapeCmd)
elif (emuCommandLine == ''):
cmd = emuParams.replace('%I%', str(fileindex))
else:
cmd = '\"' +emuCommandLine +'\" ' +emuParams.replace('%I%', str(fileindex))
the part in bold is what I added to get batch files working, now this was the only was I got it to work, adding explorer to the emulator command option did not work and neither did leaving it blank.
Now that I am using the new update, the one from the git, I see that the launcher.py code has changed and I can not seem to be able to add that code in anymore, so I would like to ask would it be possible to add his code into your code.
On a side note after doing a bit of digging in the logs on a game which does run you can see its in quotation marks
20:02:19.825 T:904 DEBUG: RCB_INFO cmd: call "D:\Emu\RetroArch\retroarch.exe" -L "D:\Emu\Retroarch\cores\mednafen_pce_fast_libretro.dll" "D:\Emu\TurboCD\Games\Ai Chou Aniki.chd"
but with the batch file they are no quotation marks around it which makes me think that's why its not running.
20:00:05.853 T:904 DEBUG: RCB_INFO rom: D:\Emu\PS2\Buzz! The Hollywood Quiz.bat
20:00:05.853 T:904 DEBUG: RCB_INFO No precmd created.
20:00:05.853 T:904 DEBUG: RCB_INFO No postcmd created.
20:00:05.863 T:904 DEBUG: RCB_INFO cmd: call "" D:\Emu\PS2\Buzz! The Hollywood Quiz.bat
20:00:05.863 T:904 DEBUG: RCB_INFO precmd: call
Any idea why you can not run bat files and if not how can I add the code above which did seem to make it work to the launcher.py code.
Thanks again for a great addon and I look forward to using it again, especially the widgets.
Ok just a quick update, I found a workaround on running bat files, you have to use the Windows platform and scrape them offline, then you can edit your config.xml file to change the platform to the correct name.
I have some emulators set up with bat files which I am trying to run with rom collection browser without any luck.
I was a long time user of RCB till Dec 2017 whilst playing with Kodi 18 and finding out it did not work and it looked like it was abandoned I moved to Launch Box/Big Box, but after doing a search for adding widgets from launch box I found that you are continuing with RCB and also added a cool widget feature.
Now when I was using the old version of RCB I got the bat files to work by modifying the launcher.py with a little code from a user way back in 2013/14 which is below
elif (romCollection.name == 'Linux' or romCollection.name == 'Macintosh' or romCollection.name == 'Windows'):
cmd = replacePlaceholdersInParams(emuCommandLine, rom, romCollection, gameRow, escapeCmd)
elif (emuCommandLine == ''):
cmd = emuParams.replace('%I%', str(fileindex))
else:
cmd = '\"' +emuCommandLine +'\" ' +emuParams.replace('%I%', str(fileindex))
the part in bold is what I added to get batch files working, now this was the only was I got it to work, adding explorer to the emulator command option did not work and neither did leaving it blank.
Now that I am using the new update, the one from the git, I see that the launcher.py code has changed and I can not seem to be able to add that code in anymore, so I would like to ask would it be possible to add his code into your code.
On a side note after doing a bit of digging in the logs on a game which does run you can see its in quotation marks
20:02:19.825 T:904 DEBUG: RCB_INFO cmd: call "D:\Emu\RetroArch\retroarch.exe" -L "D:\Emu\Retroarch\cores\mednafen_pce_fast_libretro.dll" "D:\Emu\TurboCD\Games\Ai Chou Aniki.chd"
but with the batch file they are no quotation marks around it which makes me think that's why its not running.
20:00:05.853 T:904 DEBUG: RCB_INFO rom: D:\Emu\PS2\Buzz! The Hollywood Quiz.bat
20:00:05.853 T:904 DEBUG: RCB_INFO No precmd created.
20:00:05.853 T:904 DEBUG: RCB_INFO No postcmd created.
20:00:05.863 T:904 DEBUG: RCB_INFO cmd: call "" D:\Emu\PS2\Buzz! The Hollywood Quiz.bat
20:00:05.863 T:904 DEBUG: RCB_INFO precmd: call
Any idea why you can not run bat files and if not how can I add the code above which did seem to make it work to the launcher.py code.
Thanks again for a great addon and I look forward to using it again, especially the widgets.
Ok just a quick update, I found a workaround on running bat files, you have to use the Windows platform and scrape them offline, then you can edit your config.xml file to change the platform to the correct name.