coliver33 Posted November 1 Share Posted November 1 All -- I am using the MAME_Current core in RetroArch to emulate the Acorn Archimedes. In standalone MAME, the actual command line that I use to load one of the Archimedes games is: mame aa310 -bios 200 -flop1 "<path to ROMfile>" This works like a charm. aa310 is the machine. I have the aa310.zip file in the same directory as the game ROMs, so it's picked up just fine. One note: -flop1 expects a filename argument after it -- it crashes if I don't have the ROM path after it in the command line. So now -- as I cut over to the RA MAME_Current core, I have RetroArch set up in LaunchBox with "aa310 -bios 200 -flop1" as my Extra Command-Line Parameters for the Archimedes platform -- and of course nothing happens. How exactly do I translate the MAME standalone command line above into LaunchBox so that the arguments are passed from LaunchBox to RetroArch to the MAME_Current core? The answer to this question will answer my real meta-question, which is: How exactly does LB package up CLI options for RA and (subsequently) for RA cores? Thank you for any feedback or guidance! Chris Quote Link to comment Share on other sites More sharing options...
sundogak Posted November 1 Share Posted November 1 2 hours ago, coliver33 said: All -- I am using the MAME_Current core in RetroArch to emulate the Acorn Archimedes. In standalone MAME, the actual command line that I use to load one of the Archimedes games is: mame aa310 -bios 200 -flop1 "<path to ROMfile>" This works like a charm. aa310 is the machine. I have the aa310.zip file in the same directory as the game ROMs, so it's picked up just fine. One note: -flop1 expects a filename argument after it -- it crashes if I don't have the ROM path after it in the command line. So now -- as I cut over to the RA MAME_Current core, I have RetroArch set up in LaunchBox with "aa310 -bios 200 -flop1" as my Extra Command-Line Parameters for the Archimedes platform -- and of course nothing happens. How exactly do I translate the MAME standalone command line above into LaunchBox so that the arguments are passed from LaunchBox to RetroArch to the MAME_Current core? The answer to this question will answer my real meta-question, which is: How exactly does LB package up CLI options for RA and (subsequently) for RA cores? Thank you for any feedback or guidance! Chris The main issue is doesn't appear you added the variable to append the rom file. For MAME and RA the following setup works. Note I make a separate RA core entry specifically for anything in the former MESS (or Software List ) category as they are treated differently than arcade and avoids messing up your arcade setup. This also assumes you have copied your MAME XML files and they correspond to the core version. Make sure entry has "remove quotes" checked. Append the %romfile% variable to your command which tells LB to take whatever was imported as the rom file and append to command line. It will also follow the check boxes above as to how parses command line. Note double quotes like this example for Atari 5200. "a5200 -cart \"%romfile%\"" 1 Quote Link to comment Share on other sites More sharing options...
JoeViking245 Posted November 1 Share Posted November 1 2 hours ago, coliver33 said: How exactly does LB package up CLI options for RA and (subsequently) for RA cores? When you edit your RetroArch emulator in LaunchBox, in Associated Platforms next to the platform name you have your selected core_name to use for that platform. RetroArch needs -L to prefix the core_name. Next to that are the parameters you want/need to use for that platform. Depending on what checkboxes you have checked in the Details section, when you launch a game, LB will suffix the command with "full/path/to/rom.ext" or rom or a variation there-of. The parameters and ROM_file need to be encapsulated in quotes. Put that all together and you get: -L core_name "parameters rom" or if you use the full path, no quotes -L core_name "parameters \"full/path/to/rom.ext\"" Note that the quotes added to the full/path/to/rom.ext need to be escaped (forward slash). Using Atari 2600 as an example, from the Window Command Prompt, you'd type retroarch.exe -L mame_libretro.dll "a2600 -cart \"D:\ROMs\Atari 2600\frogger.zip\"" Or just follow what @sundogak wrote. (he types faster than me ) Quote Link to comment Share on other sites More sharing options...
coliver33 Posted November 1 Author Share Posted November 1 I will try all of these later today -- will reply back with status -- thank you both! Quote Link to comment Share on other sites More sharing options...
coliver33 Posted November 1 Author Share Posted November 1 @sundogak Are you physically creating a separate install of Retroarch that just handles the MESS/SW LIst platforms? My current instance of RA uses MAME_Current for the arcade set, plus of course I use it for other platforms like Atari 2600, etc. (Stella). Should I create a whole separate RA instance, with the hashes copied in, etc.? Or can I use the existing RA install here as well? Quote Link to comment Share on other sites More sharing options...
sundogak Posted November 1 Share Posted November 1 (edited) 10 minutes ago, coliver33 said: @sundogak Are you physically creating a separate install of Retroarch that just handles the MESS/SW LIst platforms? My current instance of RA uses MAME_Current for the arcade set, plus of course I use it for other platforms like Atari 2600, etc. (Stella). Should I create a whole separate RA instance, with the hashes copied in, etc.? Or can I use the existing RA install here as well? No, it is only within LB as it is just an additional launcher from LB view. The actual RA install is not modified (nor should be). Edit with snap: both point to same install only difference is what LB is told to send as commands. Edited November 1 by sundogak Quote Link to comment Share on other sites More sharing options...
coliver33 Posted November 1 Author Share Posted November 1 👍 Quote Link to comment Share on other sites More sharing options...
coliver33 Posted November 1 Author Share Posted November 1 (edited) OK @sundogak -- some screenshots: Edited November 1 by coliver33 Quote Link to comment Share on other sites More sharing options...
coliver33 Posted November 1 Author Share Posted November 1 (edited) There are two required BIOS files for this system: aa310.zip and archimedes_keyboard.zip -- I've placed them in a system/mame/bios folder Notice I have the hash directory under system/mame as well And I have a mame.ini file under system/mame/INI with all the pathing, for both the ROM directory and the bios directory I can bring up RA manually, load the MAME_current core, click on the aa310 machine, load a game from that R:Romroot directory, and it loads up fine. But I get nothing when I click on that same game in LaunchBox, even after putting in all those settings -- RA never comes up -- just stays on LB (figure it's crashing) If the only extra parameters I use are "a3310 -bios 200", the machine will load from LB and use the correct bios -- but of course there is no ROM loaded to the floppy so there is nothing to play when you click on the floppy drive on the Archimedes desktop. It's something about the -flop1 and the romfile element that's messing things up... Edited November 1 by coliver33 Quote Link to comment Share on other sites More sharing options...
coliver33 Posted November 1 Author Share Posted November 1 (edited) Don't know if you can run a quick test on this platform to see if it loads for you. It's something about the way LB is passing these arguments to RA -- because I can get the ROMs to load by going through either MAME standalone directly or RA directly -- just not via LB. Edited November 1 by coliver33 Quote Link to comment Share on other sites More sharing options...
ci2own Posted November 1 Share Posted November 1 MAME SL on RetroArch is a pain in the ass. After a lot of try, i ended up using MAME for SL which works perfect. Anyway i still have some MAME SL systems working: The next configs are working for me right now, so try them. 1) Check RetroArch/config/MAME/MAME.opt file 2) Check RetroArch/system/mame/ini/aa3000.ini file rompath points to the folder with bios (in my case the complete MAME romset. Not the SL one) be sure aa3000.zip is in the rompath folder. 3) Check only "Remove quotes" in your RetroArch SL emulator. 4) Use the right command for your platform 5) cfg files are in this folder, in case you need them for something: RetroArch/saves/MAME/mame/cfg Hope this helps. Quote Link to comment Share on other sites More sharing options...
sundogak Posted November 1 Share Posted November 1 (edited) 1) Yes, it works for me. RA with MAME standard core: 2) Using the base MAME core you don't need to move anything around from standard install of MAME arcade and MAME software lists. Bios files remain as for normal MAME. So you don't need to move the bios into System folder for RA. 3) MAME.ini for RA in system directory doesn't looks consistent. Should just point to standard MAME arcade ROMs folder and standard MAME software list set. If have CHDs separate then those as well. Example: 4) Then on your MAME options file for RA should have this which for SL the red boxes are key: Using above you can keep a normal MAME set and also use for RA. Because of the an issue/coding glitch you have to have updated copies of HASH XMLs and Samples within the MAME RA system folder (won't work pointing to MAME install) even though the intent of the RA "MAME_PATHS_ENABLE" was to be able to use all MAME normal paths. But at least for ROM MAME paths they can reside outside RA folder structure. Edited November 1 by sundogak Quote Link to comment Share on other sites More sharing options...
coliver33 Posted November 1 Author Share Posted November 1 (edited) @sundogak 3 questions: 1) Which version of the MAME_Current core are you using? I'm on 2.70 and when I look at core options, there is no "boot from CLI" listed in RA. 2) Can you clarify exactly what mame_path_enable does? 3) Does having any spaces or parentheses in my rompath directory paths cause issues? (you can see in my ini file that my paths have special characters and spaces in them) Edited November 1 by coliver33 Quote Link to comment Share on other sites More sharing options...
sundogak Posted November 1 Share Posted November 1 3 minutes ago, coliver33 said: @sundogak 2 questions: 1) Which version of the MAME_Current core are you using? I'm on 2.70 and when I look at core options, there is no "boot from CLI" listed in RA. 2) Can you clarify exactly what mame_path_enable does? 2) allows rom paths outside RA System directory, specifically to a normal MAME install path. Quote Link to comment Share on other sites More sharing options...
sundogak Posted November 2 Share Posted November 2 (edited) @coliver33A couple additional things. It looks like they deprecated that Mame.opt option of "boot from CLI" so wouldn't worry about that line (used to need that so not sure what they did there). One thing I noticed is you are pointing LB to Retroarch two folder layers deep. Was that intended to have Retroarch inside another RA folder? LB needs to point to same setup EXE as what you are using outside of LB. In your MAME RA INI above you show RA path one level down (as normal) so you should be pointing to that exe. Likely that is part of problem as the MAME system files in RA don't match. Edited November 2 by sundogak Quote Link to comment Share on other sites More sharing options...
ci2own Posted November 2 Share Posted November 2 15 hours ago, coliver33 said: OK @sundogak -- some screenshots: It's just me, or are there too much spaces in that line? Quote Link to comment Share on other sites More sharing options...
coliver33 Posted November 2 Author Share Posted November 2 (edited) Many thanks to you both, @ci2own and @sundogak -- I figured I'd start fresh today and give some new screenshots/files. 1) The Archimedes ROM I'm testing against is 3dtanks: 2) Here is the Retroarch MESS emulator info -- this points to the same executable that I'm using for the arcade MAME set (it always did @sundogak -- I think you were getting confused by @ci2own's screenshots above vs. mine) 3) Attached is my mame.ini file, updated -- plus screenshot of its location mame.ini 4) Attached is my mame.opt file, updated -- plus screenshot of its location MAME.opt 5) I have the hash directory (copied over from a .270 standalone MAME install) sitting under system/mame: 6) Here is the path to the archimedes SW list ROM folder -- this is where the 3dtanks.zip lives 7) @ci2own That extra space in the path is actually correct. The reason the path is funky is that I'm using a ROM/DAT Manager called RomVault, and this directory name is where the DAT places the ROMs as part of hashing against the DAT. I have all-things-LB on drive D:, and I have all of my ROMs on drive R: - so I can simply point the LB platforms toward that repository on R: -- comes in handy given that several platforms like Sega NAOMI etc. use the MAME ROMs, so I can point several LB platforms to the same set, managed and updated by the DAT. Now that said, here is a screenshot from inside of the MAME_Current Core, which shows that my paths are all pulling in correctly: 8} There are two required files for the Archimedes: aa310,zip and archimedes_keyboard.zip -- both of which live in the MAME fullset directory from my DAT: 9) From within the RA MAME_Current core, if I select 3dtanks and run it, I get presented with the BIOS selection screen, and I pick the RISC 2,00 option (same as -bios 200 from command line) -- and the machine loads up fine (meaning the paths to my MAME and MAME SL sets are able to find aa310 and keyboard in the MAME set and 3dtanks.zip in the SL set). And all is well. 10) Outside of pulling over the hash directory and placing into RA's system directory, I am not using my standalone MAME install at all. I'm running the full arcade set plus these SL/MESS platforms from the RA core. (So right now there is no reason for the standalone MAME instance and the RA MAME core to share any files or communicate in any way.) 11) All this being said, when I click on the 3dtanks entry in launchbox (see screenshot) -- nothing happens. It totally works from within the core itself. The ini is being read, the ROM paths are being read by the core, the files are all being found (across two directories no less), I'm guessing the hash must be being read by the core as well, otherwise the game wouldn't load from within the core. And yet -- when I kick things off from LB, I get nothing. I'm assuming my ROM paths -- even with the spaces, etc. -- are working fine, since they load into the core and the core can follow them -- and clearly I don't need to have the bios files in the same folder as the game ROM, because things are loading fine across ROMpath directories from within the core. Unless there is just something different about running via command line vs. from within the core itself? Are there any RA settings outside of the MAME Core settings that matter here? This is the full story of what I'm looking at, I think. Ideas? THANK YOU BOTH SO MUCH! Edited November 2 by coliver33 Quote Link to comment Share on other sites More sharing options...
sundogak Posted November 2 Share Posted November 2 (edited) @coliver33 My guess at this point is that spacing in path is causing issues when LB parses command. Particularly because it is double space and likely some escaping issue and LB missing a "space" so from RA view doesn't know what to launch. Although I know you said it works outside of LB, we are now dealing with 4 levels of stuff to deal with 1) LB command, RA, MAME, and MAME Software List all of which have their oddities and make difficult to troubleshoot where things are going wrong. With SL, simple is best on paths. At any rate could try two things to check above with particular focus on that "(Merged)" path being double space. Under your MAME SL level directory make a simple directory name (say software) and copy the ..software\archimedes\3dtanks.zip, point LB to it and see if that works. If so then that double space is issue and likely good to know for future as may cause other glitches. Likely "better" solution. LB added new variables within last several months (which haven't bothered to try as don't mess with RA if works!). The %romfilename% strips out path and extension which for MAME SL is actually the preferred way even within MAME standalone as MAME only needs to know the game name not anything else (as takes from XML/INI data). You also get advantage of MAME using the XML data. If do it this way then SHOULD take care of any spacing issues as you are not sending anything from LB to RA other than file name (no extension or path). As you said RA works fine out side of LB then in theory the double space aspect should not come into play from LB view. "aa310 -bios 200 -flop \"%romfilename%\"" In example above with zip you used it would then look like this to RA incoming: aa310 -bios 200 -flop 3dtanks You keep the RA setup as before as far as check boxes as still need quotes stripped other than what we explicitly put in. I tried this and works as well on my setup with %romfilename% and launches 3dtanks. Note: edited slightly to delete the "-flop1" to "flop" as if using this method the XML will parse to correct drive. Edited November 2 by sundogak Quote Link to comment Share on other sites More sharing options...
coliver33 Posted November 2 Author Share Posted November 2 (edited) @sundogakWell................................. THAT DID IT. Thank you so much!! 🙏🙏🙏 I used romefilename -- worked perfectly. No other changes made. Edited November 2 by coliver33 Quote Link to comment Share on other sites More sharing options...
sundogak Posted November 2 Share Posted November 2 (edited) 9 minutes ago, coliver33 said: @sundogakWell................................. THAT DID IT. Thank you so much. Glad figured issue. But also in the "Ugh nothing ever simple" ..........the use of %romfilename% will break RA's "Content Directory" overrides if using them. As RA doesn't seem to be "smart" enough to parse the MAME.ini it used to launch the program (odd). Will have to do a bit more playing around but if use Content level overrides you have to stick with the %romfile% variable. You can see how RA sees it if go to Information and once running will revert to Core Overrides. Edited November 2 by sundogak 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.