Jump to content
LaunchBox Community Forums
fromlostdays

Command Line to Target a Specific Retroarch Config File?

Recommended Posts

Posted (edited)

Heya,

So I'm wanting to use the Atari800 core in Retroarch for both Atari 5200 and Atari 8-Bit. In order to do that I need each system to launch a different core option - the Atari System option can either be set to 800 or 5200. So, I know I could just create another instance of retroarch and save myself the trouble. I could also make game option files for each game in 5200 (it being the smaller of the list) but I'm wondering if I can do this via custom command line?

If so I could just use this: 

 to set every Atari 5200 game with a custom command line telling it to launch a different Core config.

So, if its possible, does anyone know what the command line would look like?

I remember this used to tell launchbox what core to launch 

-L "cores\[core name]_libretro.dll"

 Is there a variation of this command that I could use to define a different core config, rather than a different core? 

Thanks!

Edited by fromlostdays

Share this post


Link to post
Share on other sites

To launch a specific config you would use the below command line.

-c "config\name_of_config.cgf"

You should not need to do this any more since retroarch allows you to launch configs per folder now. So if all your 8-bit roms are in one folder and 5200 in another you can set the config in RA then choose "save content directory override" option.

  • Like 1

Share this post


Link to post
Share on other sites

pullin my hair out..

when i try to apply a custom cfg it on a specific core via launchbox manage emulator/associated platforms its like it loads the cfg but none of the settings i had saved in the cfg seem to be applied (in this case overlay and video settings to position a gameboy overlay bezel)

I tried the Save Core or Content overrides option with improved result but now the game isn't going full screen on start... lol

this is maddening. do i use CFG to save settings, or Overrides, or both? 

Share this post


Link to post
Share on other sites

Also

seems like if i do a Save Core Overrides and then try to Save Current Config, it always gives me "Failed to save current config"

just trying to figure how to get the current settings to save across all games of the same platform of the same core. I tried OrionsAngels tip of making a copy of a retroarch core to be specifically for one platform (for those cores that do multiple platforms) thinking that would help with trying to save specific overlay settings for just the one platform...

but my result is not being able to get to apply to all games of the platform 

Share this post


Link to post
Share on other sites
41 minutes ago, zoemorn said:

pullin my hair out..

when i try to apply a custom cfg it on a specific core via launchbox manage emulator/associated platforms its like it loads the cfg but none of the settings i had saved in the cfg seem to be applied (in this case overlay and video settings to position a gameboy overlay bezel)

I tried the Save Core or Content overrides option with improved result but now the game isn't going full screen on start... lol

this is maddening. do i use CFG to save settings, or Overrides, or both? 

There are actually shaders with overlays built right into Retroarch which will apply a shader and overlay with the correct proportions. Shaders/slang/handheld/borders.

1453415378_RetroArchScreenshot2020_01.21-10_29_51_48.thumb.png.6686362195cd827d49c3e2f43697d9af.png2083219734_RetroArchScreenshot2020_04.07-12_22_11_14.thumb.png.ba16b26a4d4e46f57d2f87f046cd35fe.png678092824_RetroArchScreenshot2020_04.07-12_21_27_95.thumb.png.8c171c38a31c1ace8106b73a884a130b.png

 

 

Share this post


Link to post
Share on other sites
27 minutes ago, neil9000 said:

There are actually shaders with overlays built right into Retroarch which will apply a shader and overlay with the correct proportions. Shaders/slang/handheld/borders.

1453415378_RetroArchScreenshot2020_01.21-10_29_51_48.thumb.png.6686362195cd827d49c3e2f43697d9af.png2083219734_RetroArchScreenshot2020_04.07-12_22_11_14.thumb.png.ba16b26a4d4e46f57d2f87f046cd35fe.png678092824_RetroArchScreenshot2020_04.07-12_21_27_95.thumb.png.8c171c38a31c1ace8106b73a884a130b.png

 

 

I perused that path you mentioned and couldnt find any files to load.

in retroarch, went to Quick Menu/Shaders/Load Shader Preset/shaders_slang/border/gameboy_player/sample_borders/ ... no items available... and pretty much saw this with any of the folders i looked into..

That first image that you showed is what i'm after for game boy basically, was trying to use an orionsangel overlay and get the view port position, but when i add "custom_viewport" settings in the config file it doesnt seem to pull into retroarch (and i've made sure the config is showing as loaded in retroarch) so not sure what thats about.

for custom viewport settings i'm using, and its like these are being ignored, when in the retroarch menu they dont show up at all 

custom_viewport_height = "645" ---expected would = Custom Aspect Ratio Height
custom_viewport_width = "674"  --ditto but for width
custom_viewport_x = "623"   ----- expected would map to in Retroarch:   Video/Custom Aspect Ratio X Pos  
custom_viewport_y = "244"   --ditto but for Y Pos

Share this post


Link to post
Share on other sites
Posted (edited)
On 4/17/2020 at 6:02 AM, Retro808 said:

You should not need to do this any more since retroarch allows you to launch configs per folder now. So if all your 8-bit roms are in one folder and 5200 in another you can set the config in RA then choose "save content directory override" option.

Thanks!

There's a problem with this method for me though, I think. I keep every one of my roms in a separate folder... or rather I group versions of the each game into their own folder. I think this messes with retroarch's Save Per Directory option unless I could somehow save set the config to save options one directory up...

I appreciate the heads up though! I'm about to test the command line you recommended.

 

Edited by fromlostdays

Share this post


Link to post
Share on other sites
20 minutes ago, fromlostdays said:

unless I could somehow save set the config to save options one directory up...

Just tried it and no luck.

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)

We tried it at the same time haha. Yeah, no joy.

Follow Up to Retro808s suggestions:

Neither suggestion is working.

Command Line Results:

So the first thing I noticed is that the option atari800_system = "5200" is not saved in the .cfg file but the .opt file. I tried every variation of the command line using absolute paths, relative paths and tried injecting atari800_system = "5200" into both configs and option files and unless I missed something it doesn't work (maybe anymore, maybe something is changed in RA).

Save Per Directory Results:

I also went ahead and tested how Retroarch is handling the save per directory - it saves a file in config/atari800 named after the rom folder which is named after the game in my case. So if I launch Astro Chase (USA).a52 and save any options per directory I get a .cfg file in there named "Astro Chase.cfg" (which is the name of the folder its in, game name minus region). I tried renaming this .cfg to "Atari 5200" which is the parent directory for all my game folders and no joy.

 

This isn't a super pressing issue, as I know as a last resort I can just do another version of retroarch with a different config, but I would like to explore alternatives further.  

 

Edited by fromlostdays

Share this post


Link to post
Share on other sites

I have a similar issue here.  I am using the RA, Atari800 core and when I set the content directory override for Atari 5200, my Atari XEGS titles wont run (keeps the setting for 5200) and vice-versa if I set it to for the XE.  It will save it for that instance but not for both.   I've tried to save a custom config file but I only see the .OPT file for the core in the config folder?   I could see this being a problem if I selected save core override but I'm trying to save content directory override and it doesn't seem to work. 

Share this post


Link to post
Share on other sites

that is strange I'm guessing that the games are in separate folders?

Share this post


Link to post
Share on other sites

Yeah the content directory override will only work if your games are in separate folders (as they should be), it wont save a content directory override if the directory is the same for both systems roms.

Share this post


Link to post
Share on other sites

Yes they are in different folders which is why it's odd it's not working...

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...