RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    [DOSBox] official thread

    Scheduled Pinned Locked Moved Help and Support
    dosdosboxdosbox-stagingdosbox-xdosbox-pure
    234 Posts 27 Posters 79.7k 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.
    • A
      aftermath17 @nemo93
      last edited by

      @nemo93 said in [DOSbox] official thread:

      @aftermath17 thanks for reporting. The thing is when you regenerate dosbox-staging.conf via C:\>config -wc it won't get the values/settings from the Retropie script. Just copy/paste the file from there (make sure you pick the Raspberry one!). This should provide you with the best out-of-the-box experience on your Pi.

      As with everything DOS related the file and settings above are the ones I deemed the most appropriate to run a large selection of games. Yet it won't work for all though. With DOS you always have to fine-tune your games configs!

      The next Staging release is imminent (0.79) and it will bring an even smoother experience on the Pi (and all platforms in general) as well as plenty of audio related improvement (mostly Sound Blaster) to name a few. I'll update the Retropie script with the new best settings I've found in the coming days.

      Hope this helps.

      Thank you! I created a new copy of my dosbox-staging.conf using the settings from the website and that worked fine.

      I've been using the DOSBox Pure core using RetroArch. That works pretty well. One thing I really like about it is the fact that you can run games from the .ZIP file.

      One game that crashes for me using DOSBox Pure is FaceOff! I extracted it into a folder in my roms folder (/home/pi/RetroPie/roms/pc). Then, I created a faceoff.conf file that has nothing but the [autoexec] portion. If I run it from the DosBox Staging binary folder using this command line, it works without crashing!

      ./dosbox -conf /home/pi/RetroPie/roms/pc/faceoff.conf

      If I try to run it directly from Emulationstation (after choosing to use DosBox Staging as my emulator for this ROM), it fails because it's trying to run it using the .zip file. I know there's a '+Start DOSBox-Staging.sh' in my roms folder, so somehow I'm sure I need to get Emulationstation to use that to launch Dosbox and my custom conf file. I haven't figured out how to put those pieces together but this is promising.

      N 1 Reply Last reply Reply Quote 0
      • N
        nemo93 @aftermath17
        last edited by nemo93

        @aftermath17 glad you are able to play your game(s) on your Pi. You should have an emulators.cfg file under your Retropie configs/pc folder. Setting default = "dosbox-staging" should do the trick.

        That may be a bit brutal as Retropie allows users to pick a specific emulator per game. You have to press any key/button right after launching a game to bring the runcommand menu. Then up to you to configure the way you'd like to. So that you can mix Pure and Staging for instance.

        1 Reply Last reply Reply Quote 0
        • N
          nemo93
          last edited by nemo93

          Hi everyone, just to let you know that new DOSBox Staging has been released. You can already update to that version yet be sure to rely on values set by the new PR (to be merged in Retropie). This would ensure a smoother upgrade. I do really recommend users to move to that as it brings many improvements. You can read the full changelog there. Note that if you're a Windows 3.x user (!) that's also the version you need.

          If you have any feedback (not only about Staging) feel free to share.

          EDIT: After you upgrade your DOSBox Staging binary it's wise to update your dosbox-staging.conf as well. Your existing settings will be retained however extraneous comments will be dropped. You have to run DOSBox Staging first then type in the following command:

          C:\>config -wc
          
          LolonoisL jamrom2J 2 Replies Last reply Reply Quote 5
          • LolonoisL
            Lolonois @nemo93
            last edited by

            @nemo93 Nice. Works like a charm, I could remove the custom settings from most of my game conf files. Tested on a Rpi4 with recent RetroPie.

            However, for instance "Dungeon Keeper" and "The Last Express" need higher values for buffersize (4096) and prebuffer (120). But that is not an issue.

            Thanks a lot for all the effort to improve dosbox-staging.

            N 1 Reply Last reply Reply Quote 0
            • N
              nemo93 @Lolonois
              last edited by

              @Lolonois thanks for reporting and for the positive comment. All credits to the dev team and maintainers of the project!

              I didn't have to increase the values for the 2 games you've mentioned but given the flexibility of DOSBox it's indeed easy to set values best suiting your needs.

              1 Reply Last reply Reply Quote 0
              • ectoE
                ecto
                last edited by

                I'm also very happy with the latest Dosbox-staging!
                What I did though, was changing the cycles back to auto, as i.e. Dungeon Keeper was too slow, especially in high-res mode. DK is now playable on my setup with staging, but Dosbox SVN still is more fluent with this games.

                I will try other "high-res" games, and see how dosbox-staging is performing there. Wing Commander 4 for instance is running just fine now!

                I'm very exited, but I don't have much time to test right now... :(

                1 Reply Last reply Reply Quote 0
                • jamrom2J
                  jamrom2 @nemo93
                  last edited by

                  @nemo93

                  Thanks for the good new, however, mine fails on a Pi3B+. Log files say it's looking for a shader. Where are the shaders for DosBox as they don't seem to build with the update.

                  I'm running A-10 Tank Killer, which worked fine on the previous version of DosBox.

                  2022-09-20 12:58:36.261 | SDL: version 2.0.10 initialized (RPI video and alsa audio)
                  2022-09-20 12:58:36.265 | CONFIG: Loaded primary conf file /home/pi/.config/dosbox/dosbox-staging.conf
                  2022-09-20 12:58:36.266 | CONFIG: Loaded custom conf file /home/pi/RetroPie/roms/pc/a10_staging.conf
                  2022-09-20 12:58:36.266 | RENDER: Shader file 'sharp' not found
                  2022-09-20 12:58:36.266 | RENDER:
                  2022-09-20 12:58:36.266 | RENDER: List of available GLSL shaders
                  2022-09-20 12:58:36.266 | RENDER: ------------------------------
                  2022-09-20 12:58:36.266 | RENDER: Path './glshaders' does not exist
                  2022-09-20 12:58:36.266 | RENDER:
                  2022-09-20 12:58:36.267 | RENDER: Path '/home/pi/.config/dosbox/glshaders' has no shaders
                  2022-09-20 12:58:36.267 | RENDER:
                  2022-09-20 12:58:36.267 | RENDER: Path '/opt/retropie/emulators/dosbox-staging/bin/../resources/glshaders' does not exist
                  2022-09-20 12:58:36.267 | RENDER:
                  2022-09-20 12:58:36.267 | RENDER: Path '/opt/retropie/emulators/dosbox-staging/bin/resources/glshaders' does not exist
                  2022-09-20 12:58:36.267 | RENDER:
                  2022-09-20 12:58:36.267 | RENDER: Path '/usr/local/share/dosbox-staging/glshaders' does not exist
                  2022-09-20 12:58:36.267 | RENDER:
                  2022-09-20 12:58:36.267 | RENDER: Path '/usr/share/dosbox-staging/glshaders' does not exist
                  2022-09-20 12:58:36.267 | RENDER:
                  2022-09-20 12:58:36.267 | RENDER: Path 'resources/glshaders' does not exist
                  2022-09-20 12:58:36.267 | RENDER:
                  2022-09-20 12:58:36.267 | RENDER: The above shaders can be used exactly as listed in the "glshader"
                  2022-09-20 12:58:36.267 | RENDER: conf setting, without the need for the resource path or .glsl extension.
                  2022-09-20 12:58:36.267 | RENDER:
                  Stack trace:
                  5 0x76956718 __libc_start_main + 268
                  4 0x217394 /opt/retropie/emulators/dosbox-staging/bin/dosbox() [0x217394]
                  3 0x31178 /opt/retropie/emulators/dosbox-staging/bin/dosbox() [0x31178]
                  2 0x310e8 /opt/retropie/emulators/dosbox-staging/bin/dosbox() [0x310e8]
                  1 0x155bfc /opt/retropie/emulators/dosbox-staging/bin/dosbox() [0x155bfc]
                  0 0x3dd28 /opt/retropie/emulators/dosbox-staging/bin/dosbox() [0x3dd28]
                  2022-09-20 12:58:36.267 | ABORT: RENDER: Fallback shader file 'none' not found and is mandatory
                  /home/pi/RetroPie/roms/pc/+Start DOSBox-Staging.sh: line 43: 19422 Aborted "/opt/retropie/emulators/dosbox-staging/bin/dosbox" "${params[@]}"

                  Thanks!

                  JamR

                  1 Reply Last reply Reply Quote 0
                  • mituM
                    mitu Global Moderator
                    last edited by mitu

                    @jamrom2 You'll have to wait for the install script to be updated in order to get the default shaders included and get past this error. Or you can create the shaders' folder as $HOME/.config/dosbox/glshaders and copy the files from here in that folder.

                    EDIT: I found it funny that specifying glshader = none in the configuration file would actually make dosbox to load a shader from none.glsl file.

                    jamrom2J 1 Reply Last reply Reply Quote 0
                    • jamrom2J
                      jamrom2 @mitu
                      last edited by

                      @mitu ok, I'll give that a try. I would think without a shader specified it should just load without it, or default to none and skip it.

                      Will the shaders even work with a Pi3? Never did before.

                      Thanks!

                      mituM 1 Reply Last reply Reply Quote 0
                      • mituM
                        mitu Global Moderator @jamrom2
                        last edited by

                        @jamrom2 said in [DOSbox] official thread:

                        Will the shaders even work with a Pi3? Never did before.

                        They don't seem to work, but that may be because the detection in dosbox-staging for the GL driver seems to fail on a Pi3. I wonder why that is...

                        jamrom2J 1 Reply Last reply Reply Quote 0
                        • jamrom2J
                          jamrom2 @mitu
                          last edited by

                          @mitu That worked. I added the shader folder.

                          Not sure about using the shaders though. I set mine to "none" until it's confirmed they'll work on a Pi3.

                          1 Reply Last reply Reply Quote 0
                          • N
                            nemo93
                            last edited by nemo93

                            Hi,

                            DOSBox Staging latest update has now been merged in Retropie (0.79.1). It contains bugfixes (mostly SoundBlaster related) as well as a new extra: mapping files for Xbox controllers. This allows users to enjoy DOS games with only their controllers. Plug your controller, point your conf to the proper mapperfile and you're good to go. Select+Start combo works the same as RetroArch: it closes Staging. The doc is there.

                            Shaders are there as well yet they will work only when an opengl* output is selected (RPi4 only).

                            I'd recommend users to upgrade to that version from the Retropie-Setup script. Staging has now been moved under the optional section.

                            After you've upgraded the DOSBox Staging binary it's wise to update your dosbox-staging.conf as well. Do so by typing in the following command:

                            C:\>config -wc
                            

                            Thanks to the DOSBox and Staging community. Any feedback appreciated as well as any participation. And of course thanks a lot to mitu and buzz for excellent feedback, thorough testing and advices.

                            1 Reply Last reply Reply Quote 4
                            • duglorD
                              duglor
                              last edited by

                              Leisure Suit Larry 6 and 7.
                              On the oc they run fine with no modifications. However, the dosbox on the pie is asking for a cd. Is there some batch file with mounted drive I need to create? Does the pie being drive Z mess things up as it isn’t drive C?

                              Specific questions I have , I know. If you need the files...to try to simulate issue....

                              N 1 Reply Last reply Reply Quote 0
                              • N
                                nemo93 @duglor
                                last edited by nemo93

                                @duglor thanks for reporting. Not sure to understand your exact issue (what's an oc?). The Leisure Suit Larry's are all working fine on DOSBox Staging (DOSBox too I suppose) even if I prefer to go with ScummVM for those. You have to mount your CD image then go through the install process prior running the game.

                                There are quite a lot of docs available online covering that topic. I can point you to DOSBox Staging wiki which contains some pointers for new users. The official DOSBox wiki is also a great source of information. Please read those carefully.

                                The Z: drive is special as it contains necessary files to run the DOS console. It won't mess up with anything.

                                N 1 Reply Last reply Reply Quote 0
                                • N
                                  nemo93 @nemo93
                                  last edited by

                                  DOSBox Staging 0.80.0 has landed a couple of days ago. Thanks as usual @mitu for ensuring Retropie's script has been updated accordingly (thanks!).

                                  You can read the changelog but in a nutshell:

                                  • ReelMagic DOS games are now playable thanks to the efforts of Jon Dennis, Chris Guthrie, and Joseph Whittaker, with testing and feedback from Vogons users Uka, DonutKing, and Vetz
                                  • Mouse emulation has been improved and now supports up to six independent mice, enabling split-screen play in games like The Settlers and The Settlers II
                                  • More settings, including video, audio, and MIXER effects, can now be changed on the fly

                                  Enjoy!

                                  1 Reply Last reply Reply Quote 3
                                  • N
                                    nemo93
                                    last edited by

                                    DOSBox Staging 0.80.1 has been released with the usual bugfixes. Yet the biggest news is: new website for this fork. It just landed hence few things will be tweaked in the coming days. An overhaul of the doc should come as well.

                                    I still consider it the best 'all rounder' fork available. Really nice performance (ie. Doom runs at 'full speed' on stock Pi4), same config file as Dosbox 'SVN' (eg. easy to make the switch) and clearly the best fork regarding audio given the many soundcards supported/emulated with great accuracy. Not as comfortable as a libretro 'core' (Pure, Core, etc) for sure yet it's worth a try. I'd like to mention also Dosbox-X which is fantastic fork as well for those wiling plenty of options.

                                    @BuZz @mitu not sure it's the best place to ask yet would you be ok for Retropie to appear under the Downloads/Linux section of that new site? (Frankly I'd love to). We collectively spent a tremendous amount of time to ensure it works great on RPi devices and integrate well in your distro. I won't push any more PR if you agree :-)

                                    Thanks.

                                    ExarKunIvE mituM 2 Replies Last reply Reply Quote 2
                                    • ExarKunIvE
                                      ExarKunIv @nemo93
                                      last edited by

                                      @nemo93 I would love to include this on my RetroPie extras GitHub if I can.

                                      I have not gotten around to messing around with it yet but I'm all for adding more things to it

                                      RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                      RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                      Maintainer of RetroPie-Extra .

                                      1 Reply Last reply Reply Quote 0
                                      • mituM
                                        mitu Global Moderator @nemo93
                                        last edited by mitu

                                        @nemo93 said in [DOSbox] official thread:

                                        @BuZz @mitu not sure it's the best place to ask yet would you be ok for Retropie to appear under the Downloads/Linux section of that new site?

                                        Sure, why not ?

                                        We collectively spent a tremendous amount of time to ensure it works great on RPi devices and integrate well in your distro. I won't push any more PR if you agree :-)

                                        Thanks for all the testing, much appreciated ! PRs shouldn't be needed except on build issues (like the updates for 0.80 due to the meson upgrade), since the scriptmodule automatically installs the latest stable release (as opposed to Amiberry, where the version is pinned).

                                        1 Reply Last reply Reply Quote 1
                                        • N
                                          nemo93
                                          last edited by

                                          @mitu @BuZz appreciated. A short desc will be added soon on site. Thanks for your patience and also all testing/checking/packaging (you certainly look after way more softs/emus than me).

                                          @ExarKunIv not sure what you mean? DOSbox Staging is part of Retropie (Optional Packages) already. Let me know what I'm missing here please.

                                          ExarKunIvE 1 Reply Last reply Reply Quote 0
                                          • ExarKunIvE
                                            ExarKunIv @nemo93
                                            last edited by

                                            @nemo93 my bad, i have not updated my script in a long time, so nevermind then

                                            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                                            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                                            Maintainer of RetroPie-Extra .

                                            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.