RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    Can we expect an lr-package for dosbox some day?

    Scheduled Pinned Locked Moved Ideas and Development
    dosboxlr-packages
    62 Posts 8 Posters 14.1k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      dudleydes @psyke83
      last edited by

      @psyke83 .conf is already included in the list of permitted extensions for DOSBox.

      .conf files will work with standalone DOSBox but requires a -confflag for it to launch.

      1 Reply Last reply Reply Quote 0
      • D
        dudleydes
        last edited by

        I have found a way of launching games in standalone DOSBox straight from ES using .conf files.

        First I added lines to the +Start DOSBox.sh script that will allow launching of conf files so that my script now reads:

        #!/bin/bash
        params=("$@")
        if [[ -z "${params[0]}" ]]; then
            params=(-c "@MOUNT C /home/pi/RetroPie/roms/pc" -c "@C:")
        elif [[ "${params[0]}" == *.sh ]]; then
            bash "${params[@]}"
            exit
        elif [[ "${params[0]}" == *.conf ]]; then
        	params=(-conf "${params[@]}")
        else
            params+=(-exit)
        fi
        "/opt/retropie/emulators/dosbox/bin/dosbox" "${params[@]}"
        

        Now if I use the .conf for Albion as posted earlier, then if I press ESC on a keyboard anytime once the game has loaded, then DOSBox exits unexpectedly. Checking the runcommand log, there is Segmentation fault error. If I relaunch Albion, then, instead of seeing the runcommand launch menu, I see a still of the moment when DOSBox had previously exited.

        This is not ideal so the solution is to copy the default DOSBox conf, dosbox-SVN.conf file found in /opt/retropie/configs/pc/ into the PC roms folder and rename it Albion.conf. In the [Autoexec] section, I added the commands to launch Albion as in my previous post.

        This fixes the above issue but when testing Jazz Jackrabbit, my PS3 controller did not work and the runcommand log notes that the mapper file was not being loaded. To overcome this, it is necessary to include the full path to the mapper file in the sdl section of the conf file as below:

        mapperfile=/opt/retropie/configs/pc/mapper-SVN.map
        

        These .conf files can also be used to launch games in lr-dosbox.

        I hope users can test this to make sure I haven't overlooked anything as I have tested this on the two games mentioned. Then, maybe, we can look to add support to launch games from ES using .conf files as they can be used with lr-dosbox and standalone DOSBox.

        E edmaul69E 2 Replies Last reply Reply Quote 1
        • P
          psyke83 Global Moderator
          last edited by psyke83

          Instead of making a full copy of your dosbox-SVN.conf, try adding the -userconf argument, like so:

          elif [[ "${params[0]}" == *.conf ]]; then
          	params=(-userconf -conf "${params[@]}")
          else
          
          1 Reply Last reply Reply Quote 0
          • E
            EctoOne @dudleydes
            last edited by

            @dudleydes does the mapper file even work? last thing i've seen was that they are bugged. If they do now that would be great, because it would allow differebt mappings for each game plus having mouse support on the stick.
            SInce i messed up my latest installation anyways, it's time to figure out if i could put two versions of RetroPie on one card, one just for testing.

            1 Reply Last reply Reply Quote 0
            • P
              psyke83 Global Moderator
              last edited by psyke83

              Update: -userconfsolves the problem. You were seeing a segmentation fault and broken mapper due to the default behaviour of -confcausing dosbox to ignore the default user configuration.

              When invoked with -userconf, it appends/overrides the user configuration correctly:

              CONFIG:Loading primary settings from config file /home/pi/.dosbox/dosbox-SVN.conf
              CONFIG:Loading additional settings from config file /home/pi/RetroPie/roms/pc/DOOM.conf
              

              I've confirmed that launching via .conf files now work correctly both on dosbox and lr-dosbox, so I've gone ahead and merged the necessary change. You should be able to override any other necessary setting changes in this file (such as custom mappers) too. Thanks.

              1 Reply Last reply Reply Quote 0
              • edmaul69E
                edmaul69
                last edited by

                Thank goodness for bulk rename and notepad++. Saved me a lot of time changing 195 .sh files to working .conf files.

                1 Reply Last reply Reply Quote 0
                • edmaul69E
                  edmaul69 @dudleydes
                  last edited by

                  @dudleydes any chance you could post your dosbox-SVN.conf and your mapper-SVN.map? I cant figure out why it doesnt recognize me having any controllers in lr-dosbox. Did you setup dosbox or lr-dosbox first? Thank you for your help.

                  1 Reply Last reply Reply Quote 0
                  • edmaul69E
                    edmaul69 @dudleydes
                    last edited by

                    @dudleydes so i got the controls figured out. i could not get the checkerboard retroarch gui to save settings for controls. i accidently deleted the retroarch.cfg for dosbox and it created a new one with a whole mess of stuff. this also gave me an entirely new retroarch gui that works awesome. how can i make all my systems use this gui?

                    alt text

                    1 Reply Last reply Reply Quote 0
                    • edmaul69E
                      edmaul69
                      last edited by

                      i can get it working by manually deleting all the retroarch.cfg files i guess

                      1 Reply Last reply Reply Quote 0
                      • P
                        psyke83 Global Moderator
                        last edited by

                        Doing that will mess up a lot of important configuration beyond the menu appearance - really not recommended. Remove the retroarch.cfg, reinstall retroarch and then manually set the menu driver to xmb if you want the above menu style.

                        edmaul69E 1 Reply Last reply Reply Quote 0
                        • edmaul69E
                          edmaul69 @psyke83
                          last edited by edmaul69

                          Nm i figured it out. Deleted

                          1 Reply Last reply Reply Quote 0
                          • E
                            EctoOne
                            last edited by

                            Um, so i just installed lr-dosbox but i can't select it from the runcommand screen. So if i start a game it won't go further than the runcommand screen until i also install dosbox itself.
                            How do i switch to lr-dosbox?

                            1 Reply Last reply Reply Quote 0
                            • hooperreH
                              hooperre @dudleydes
                              last edited by

                              @dudleydes Does that mean you have duplicate entries for each game in ES? I guess with the new hidden feature I can just hide the .sh files or change the es_systems.cfg if I want to switch over fully.

                              4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                              D 1 Reply Last reply Reply Quote 0
                              • D
                                dudleydes @hooperre
                                last edited by

                                @hooperre I just have a .conf file for games in lr-dosbox, no .sh files. With the recent changes to the +Start DOSBox.sh script, it is now possible to use these .conf files to launch games in the standalone version of DOSBox.

                                hooperreH 1 Reply Last reply Reply Quote 1
                                • hooperreH
                                  hooperre @dudleydes
                                  last edited by

                                  @dudleydes Oh okay. Do the .conf files need to be empty outside of [autoexec]?

                                  4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                                  P 1 Reply Last reply Reply Quote 0
                                  • P
                                    psyke83 Global Moderator @hooperre
                                    last edited by psyke83

                                    @hooperre said in Can we expect an lr-package for dosbox some day?:

                                    @dudleydes Oh okay. Do the .conf files need to be empty outside of [autoexec]?

                                    You can override any default dosbox options in the .conf file. So, for example, here's a way to set up a custom scaler just for Quake, in Quake.conf:

                                    [render]
                                    scaler=tv2x
                                    
                                    [autoexec]
                                    # Lines in this section will be run at startup.
                                    # You can put your MOUNT lines here.
                                    
                                    MOUNT c /home/pi/RetroPie/roms/pc
                                    C:
                                    CD GAMES/QUAKE_SW/
                                    QUAKE.EXE
                                    EXIT
                                    

                                    Just don't forget specify the correct config section in brackets (like [autoexec] or [render]) that the options belong to.

                                    hooperreH edmaul69E 3 Replies Last reply Reply Quote 0
                                    • hooperreH
                                      hooperre @psyke83
                                      last edited by

                                      @psyke83 Okay. I have a bunch of working .conf files that are opened with my .sh files currently. I assume if I launch those from lr-dosbox that they should work.

                                      4B ~ RPi PSU 5.1V / 3.0A ~ 32GB SanDisk microSD ~ 128GB USB

                                      1 Reply Last reply Reply Quote 0
                                      • edmaul69E
                                        edmaul69 @psyke83
                                        last edited by

                                        lines. You put them before all the mount stuff. I have have several games i change their speed with cycles= and stuff like that this way.

                                        1 Reply Last reply Reply Quote 0
                                        • edmaul69E
                                          edmaul69 @psyke83
                                          last edited by

                                          @psyke83 an example of how i have my individual game conf files

                                          [autoexec]
                                          cycles=150
                                          mount c /home/pi/RetroPie/roms/pc
                                          c:
                                          cd/cstlewlf
                                          CE.EXE
                                          exit
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            psyke83 Global Moderator
                                            last edited by psyke83

                                            This post is deleted!
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                                            Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.