SpaceMidget75 Posted March 9, 2017 Share Posted March 9, 2017 (edited) Hi, So, here's the thing. I like to use RetroArch wherever possible, as I'm sure many do as it keeps the interface common. The MAME Retroarch Core replaces the old Mess core for home systems which is fine and it works well outside of LB. The problem is that to use either the MAME (or old MESS) cores, the MAME/MESS parameters need to be put in their own set of quotes - so they are essentially passed to the Core as a single parameter - and this also includes the ROM path unfortunately. Take this example: retroarch.exe -L "D:\Games\Emulators\RetroArch\cores\mame_libretro.dll" "a5200 -cart \"[PATH TO ROM]\" " That extra quote at the end is causing the problem. Retroarch.exe has its personal parameters: -L "[CORE TO USE]" and the core has ITS parameters (that have to be in quotes): "a5200 -cart \"[PATH TO ROM\"" Launchbox always adds the ROM PATH to the end so I can't see how to get it to fit within here: \"[PATH TO ROM\"" Note: The forward slashes are required so that RA knows you have quotes within quotes. Is there a way around this or does LB support %RomPath% or something along those lines? I'm surprised this has been an issue yet? Maybe a feature request? Edited March 9, 2017 by SpaceMidget75 Quote Link to comment Share on other sites More sharing options...
DOS76 Posted March 9, 2017 Share Posted March 9, 2017 If you go to Manage Emulators and open an edit window for RA do you have any of the checkboxes checked I recently found that MAME standalone doesn't work for any of the software list stuff if you have the 2 checkboxes on the left checked. I don't have any success with MAME for software list in RA unless I actually use the real software list games with the naming MAME is looking for unlike the standalone version of MAME which will allow you to use any ROM as long as the BIOS file is in the right place in MAME it will load it up. I'm all for trying to use RA for everything but MAME/Mess I prefer the standalone MAME actually has more powerful controller options and pretty good graphics options too. Quote Link to comment Share on other sites More sharing options...
SpaceMidget75 Posted March 9, 2017 Author Share Posted March 9, 2017 Unfortunately those tickboxes only affect how the rom path format, not where is should be placed. I could fall back to using MAME directly if I have to but I'm surprised LB hasn't gone the "attribute" route yet as it will give it all the future flexibility it needs and can replace those check boxes at the same time: %fullpath% %romname% %foldername% That way all you need is to specify either in the default command line section or the platform specific one, something like the following: -fullscreen -rompath="%fullpath%" -someother=setting It could be toggled on or off with a "Use ROM attribute" checkbox which would then disable the other rom formatting checkboxes. Quote Link to comment Share on other sites More sharing options...
DrMaxwell Posted May 10, 2018 Share Posted May 10, 2018 @SpaceMidget75 Did you ever get an answer to this? I'm also running a similar setup. I was thinking of passing this through a config option and loading a per game config (worst case scenario) or shader config for the rom folder. Quote Link to comment Share on other sites More sharing options...
SpaceMidget75 Posted May 10, 2018 Author Share Posted May 10, 2018 (edited) Hi I didn't actually get around to fixing it but did have a solution which is to replace RetroArch.exe as the calling executable with a batch file such as RetroArchMame.bat or something. This then takes the rom path as a parameter (at the end of command line because that's what LB demands) and then places the rom path within quotes inside the batch file when calling RetroArch.exe...etc etc. Haven't tested it but pretty sure it'll work and doesn't need to be done on a game by game basis or anything. I still think LB should move to an attribute system though. Edited May 10, 2018 by SpaceMidget75 Quote Link to comment Share on other sites More sharing options...
DrMaxwell Posted May 10, 2018 Share Posted May 10, 2018 25 minutes ago, SpaceMidget75 said: Hi I didn't actually get around to fixing it but did have a solution which is to replace RetroArch.exe as the calling executable with a batch file such as RetroArchMame.bat or something. This then takes the rom path as a parameter (at the end of command line because that's what LB demands) and then places the rom path within quotes inside the batch file when calling RetroArch.exe...etc etc. Haven't tested it but pretty sure it'll work and doesn't need to be done on a game by game basis or anything. I still think LB should move to an attribute system though. So multiple parameters can be called. For example, with gp32 where you need to load both a -cart and -memc. I can run this through RA no problem; it's just LaunchBox that becomes the issue and having the correct command line. Quote Link to comment Share on other sites More sharing options...
SpaceMidget75 Posted May 10, 2018 Author Share Posted May 10, 2018 (edited) You can pass multiple parameters with batch files (you then use them inside the script as %1, %2 etc etc) so you can do it one of two ways. Setup a Batch file for each system, hardcoding all the parameters except the rompath, which LB changes based on the game being loaded such as: RetroArchAtari5200.bat: retroarch.exe -L "D:\Games\Emulators\RetroArch\cores\mame_libretro.dll" "a5200 -cart \"%1\"" or setup one batch file and then specify the extra parameters within LB itself such as: RetroArchMame.bat: retroarch.exe -L "D:\Games\Emulators\RetroArch\cores\mame_libretro.dll" "%1 %2 \"%3\"" and then in LB you'd put something like a5200 -cart in the addition command line parameters section. Of course, either way you will need an "Emulator" setup in LB for each system you want to emulate. Edited May 10, 2018 by SpaceMidget75 Quote Link to comment Share on other sites More sharing options...
DrMaxwell Posted May 10, 2018 Share Posted May 10, 2018 It's funny because for a5200, I have it loading without any changes to the commandline within LB using RA mame core. It requires bios and cart parameters to load from softwarelists, but I have it loading fine. I still think this might be possible via a mame config file loaded into LB. Have you tested the batch file solution yet? What's a system that we could try? Quote Link to comment Share on other sites More sharing options...
SpaceMidget75 Posted May 10, 2018 Author Share Posted May 10, 2018 I don't have time to work on it at the moment but what's the command line you're using for A5200 because, fact is, if the commandline needs a quote mark after the rom name it's never going to work in LB as standard. Only thing I can think of is that if you're using software lists then the command line is different and is happy to have the rom name right at the end of the commandline? I don't use software lists at all and the command line requires the following: retroarch.exe -L "D:\Games\Emulators\RetroArch\cores\mame_libretro.dll" "a5200 -cart \"[PATH TO ROM]\" " For that to work LB needs to pass the rompath inside a quote mark which it can't do with the current design. Quote Link to comment Share on other sites More sharing options...
DrMaxwell Posted May 10, 2018 Share Posted May 10, 2018 I'm using the default for all drivers within the mame core: RA.exe -L "cores\mame_libretro.dll" The issue I have is load a system like Game Park 32 where you have to pass both -memc and -cart parameters into the commandline. If I load mame core then point to my gp32 roms within mame it loads no problem. I also have playlists for Lakka that auto load about 50 mame systems. I think LB isn't reading my config files all the time though for the MAME/MESS systems. Quote Link to comment Share on other sites More sharing options...
DrMaxwell Posted May 10, 2018 Share Posted May 10, 2018 Also, to complicate things further, I run RetroArch out of two drives. The executable is run from my C:\ which is an intel nvme SSD. I also save my configs files for this system there. The storage drive, a 10TB WD red NAS HDD, is A:\ Quote Link to comment Share on other sites More sharing options...
DrMaxwell Posted May 10, 2018 Share Posted May 10, 2018 svision drivers are loading fine. Quote Link to comment Share on other sites More sharing options...
DrMaxwell Posted May 10, 2018 Share Posted May 10, 2018 sv8000 loads 100% Quote Link to comment Share on other sites More sharing options...
vaderag Posted February 1, 2019 Share Posted February 1, 2019 Ever solve this? I need the same with Future Pinball... -open %fullrompath% -play Has to be this way... Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 2, 2019 Share Posted February 2, 2019 21 hours ago, vaderag said: I need the same with Future Pinball... -open %fullrompath% -play Unless I'm behind on FP updates (which is very likely), the setup is very basic. If it doesn't seem to work, try different tables. Quote Link to comment Share on other sites More sharing options...
vaderag Posted February 2, 2019 Share Posted February 2, 2019 14 minutes ago, JoeViking245 said: Unless I'm behind on FP updates (which is very likely), the setup is very basic. If it doesn't seem to work, try different tables. So, took me a couple of Google's but I've found why you're finding it so simple! There is a launcher in the downloads section here which gives you the fp.exe After finding that it does indeed make things easy! One thing I can't get to work is hiding the loading process using the startup screens. I still get the splash and editor window showing with any emulator settings. If anyone has solved this would love to hear! Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted February 2, 2019 Share Posted February 2, 2019 Ya, I set it up quite a while ago and forgot about the FP.exe launcher (thought the name looked funny). I still get the editor window as well. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.