Jump to content
LaunchBox Community Forums

Android launchbox load separate core.cfg for each system


haleksander

Recommended Posts

When launching a game in Launchbox on android, is it possible to load separate .cfg-files for each system, like what’s possible on Launchbox for Windows by typing in »-c coreconfigfilename.cfg« i think?) in emulator settings.

This would solve the problems i am facing trying to set up my Nvidia Shield TV not having to remap the buttons each time i’m playing N64 with a N64 usb Retro-bit controller or Sega with a Sega usb Retro-bit controller each time.

Link to comment
Share on other sites

37 minutes ago, haleksander said:

When launching a game in Launchbox on android, is it possible to load separate .cfg-files for each system, like what’s possible on Launchbox for Windows by typing in »-c coreconfigfilename.cfg« i think?) in emulator settings.

This would solve the problems i am facing trying to set up my Nvidia Shield TV not having to remap the buttons each time i’m playing N64 with a N64 usb Retro-bit controller or Sega with a Sega usb Retro-bit controller each time.

Unfortunately not yet. It is on my list of to-do items though. :)

  • Thanks 1
Link to comment
Share on other sites

So. I've spent the last couple of afternoons trying to configure Retroarch on my Nvidia Shield TV to let me connect n64-controllers in the 64-emulator and Sega-controllers in the sega-emulator and so on. In the process i've learned a lot more about how Retroarch works using logging to reveal destinations for generated settings files and vendor ID's for unrecognized peripherals and such

As a memo to my self in case i have to do this all over again:
What i did (which probably could be done a lot easier, i'm sure) is:

in Settings:
         -User interface: (in order to reveal important settings.)
                - Show Advanced Settings on

          - Configurations:
             - save configuration on exit
 off (in order to avoid storing mistakes )
             - Load content-specific core options on (not entirely sure what this actually does)
             - Load Override Files Automatically on (which, i guess, let's you do store separate customizations regarding screen overlay and similar stuff
             - Load Remap Files Automatically on (Though i ended without having to use the remap-function, since i couldn't figure out how to make it work consistently 
             - Use Global Core Options File off 

          - Directory:
               I basically made sure to adjust the paths of almost all of the folders to the part of my nvidia shield which i have windows explorer access to via network since i need to access the .cfg's.

          - Input:
               - Remap Binds for this Core on

                    - User 1 Binds  (Connecting the correct controller i had to use User 1 Bind All after decrypting button codes for the Sega/N64-controller since they differ in controller form.)  by checking the log (which i recommend activating as well btw) And by checking 
Main Menu - Information - System Information i could learn a bit more about the device identifiers. I duplicated some other N64-controller cfg-file in the autoconfig-folder and adjusted the vendor id and button numbers accordingly. Although making sure the device identifiers is identical should make it pop up when you connect it to the next session of Retroarch. (btw. I think it's wise to  properly shut down retroarch for each time you make cfg-adjustments)

Quick Menu:
         - Made my adjustments to overlays and shaders (note, in order to store shader settings, use the "save"-function inside "Shaders"-section since this isn't a part of the "core override"-settings apparently.
         - Overrides     
                     - Save core overrides
 (i had to delete this override-file before each time i adjusted it and generated a new one. (perhaps this could be some sort of write-error on my connected 128gb USB-stick made as internal storage in Nvidia Shield settings?) 

Making sure the default binding is correct wasn't enough. At least not in my case. The buttons still wouldn't automap when i connected Sega/N64-controller.  This might either be because i made some adjustments to some mappings that got stored in the retroarch.cfg, so i went into retroarch.cfg searched for all "input_player1_"-lines and set the ones containing "btn" (which means controller button, not a keyboard key) to "nul". This "free'd" up the default bindings for each controller and finally  made things work like i wanted.

Copied all my folders and backed'em up to my dropbox

Like i said, this could probably've been done more effectively, and some adjustments that i listed up might be redundant/solutions to problems i created myself, but i am still kinda satisfied with myself finally making it work from a non-programmer perspective. And perhaps this might be helpful for others in similar situations while we wait for the ability to let Launchbox load separate .cfg-files for each core like in Windows. 

 

  • Like 2
Link to comment
Share on other sites

What do u mean by u want different configs for each core?...retroarch  already allows for that and they will be located  in the configs folder inside the core name folder...this is where option files and game and core configs are located....android reads text files differently  than windows so the only way to mass produce  configs for individual  games will be via batch files...with batch files u can make per game configs or option files for things like per game bezels and per game settings....when that game gets loaded up , those overrides  will automatically  take effect....I been working with android for along time and this is how I do per game bezels and many other configs especially  for ms dos that's a huge pain to properly setup and scummvm  as well for android

Link to comment
Share on other sites

When I said batch files to make configs  for android to be more specific,  windows  reads retroarch  like this example/example/example...on android it will be the opposite  like this example\example\example....so basically u make 1 config via in retroarch...then go on windows and us that same info to make the batch file...then either in the same batch file or separate  batch or python file u use to make sure all the game names are in the file and each file named the same as the game...sounds confusing as hell but I can help or show u what I mean...

Link to comment
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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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...