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.
    • edmaul69E
      edmaul69 @KevinsHope
      last edited by edmaul69

      @kevinshope i would not expect it to ever get added to libretro on the pi.

      Edit: it is possible. But it with issues.

      K 1 Reply Last reply Reply Quote 1
      • K
        KevinsHope @edmaul69
        last edited by

        @edmaul69 Thanks for the info. I unfortunately am unable to access the mapper via the LXTerminal. It switches to the propper directory, but when I put in dosbox -startmapper, it returns a "command not found" message. Any idea what I'm doing wrong? I switched to the LXT desktop and then opened a LXTerminal as the instructions indicated.

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

          @kevinshope when you are in dosbox, press ctrl & f1 together. It brings up the mapper. But you need a mouse hooked up.

          K 1 Reply Last reply Reply Quote 1
          • K
            KevinsHope @edmaul69
            last edited by

            @edmaul69 So I started the mapper in dosbox and that works. But I get a dark blue keyboard with none of the options you are describing. There is no player 1 or 2 or hot key buttons. I'm guessing here that if you access the mapper in game, it looks more individualized for the game, but pressing f1 and ctrl in game causes weird lines and video loss. Here is a picture of the mapper launched from dosbox. Sorry it is so blurry. But it will give you the idea. Thanks for your help on this, by the way. 0_1502593930220_100_0617.JPG

            edmaul69E 2 Replies Last reply Reply Quote 0
            • edmaul69E
              edmaul69 @KevinsHope
              last edited by edmaul69

              @kevinshope mod 1 mod 2 and mod 3 are the hotkeys. In the middle of the blue screen you see joystick 1 and 2. Click on 1 of the buttons there. Then at the bottom press add. Then press whatever direction or button i said. Then choose the keyboard keys i mentioned and click add at the bottom. Then press what controller button i said to add to those keys. Next click on mod 3. Then choose add. Then press select on your controller. Then in the middle of the screen is shutdown. Click on that then click on add at the bottom. Press start Then in the bottom left corner click on mod 3. Now click on save and exit.

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

                @kevinshope made an edit. Forgot to mention to press start. Accidently said select

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

                  I compiled and tested the lr-dosbox core yesterday. There was supposedly a major bug in which inputs would repeat when pressing a key, thus making the core unusable, but that wasn't happening for me, so I assume this was fixed at some point.

                  The core works OK, but the speed is quite slow compared to the standard dosbox. It's possible to adjust the CPU cycles in the core's RetroArch settings to speed things up, and get a simpler game such as Wolf3D to run fullspeed, but more complex games like Descent run as a slideshow. I also tested Commander Keen (working fine), but I couldn't get Doom working - the shareware version exits with the "game mode indeterminate" error.

                  Keyboard and mouse support seems to work fine, but my joypad wasn't being detected; though perhaps it's a configuration issue per-game. The core does seem to let you map keyboard inputs to RetroArch's joypad buttons, but that also didn't seem to be working for me.

                  @BuZz, if you want me to send a PR to add lr-dosbox to the script (taking into account the issues above), let me know. I haven't submitted due to the port being inferior particularly for more complex games, so it probably would need discussing first.

                  BuZzB edmaul69E 3 Replies Last reply Reply Quote 1
                  • BuZzB
                    BuZz administrators @psyke83
                    last edited by

                    @psyke83 I already have a module for it so no need to do a PR. I'll retest it.

                    To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

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

                      @psyke83 yeah if they got it working at normal speed it would be cool. I heard it was really slow. One issue i am curious about? I use .sh files to boot directly into games. If it ever does get fixed for speed, is it even possible with the lr-dosbox to mount disc drives and boot directly into games? I am pretty happy with standalone dosbox and im not sure how the libretro version would have any advantages since i assume it would need individual emulators.cfg or individual .sh files to run the games seperately. That then seems to make it about the same effort to get the games running.

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

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

                        @psyke83 yeah if they got it working at normal speed it would be cool. I heard it was really slow. One issue i am curious about? I use .sh files to boot directly into games. If it ever does get fixed for speed, is it even possible with the lr-dosbox to mount disc drives and boot directly into games? I am pretty happy with standalone dosbox and im not sure how the libretro version would have any advantages since i assume it would need individual emulators.cfg or individual .sh files to run the games seperately. That then seems to make it about the same effort to get the games running.

                        It's possible to boot directly into a game by choosing the exe. So for example, if you have wolf3d unpacked into roms/pc/wolf3d, in EmulationStation, you can navigate into wolf3d folder and then choose the wolf3d(.exe) entry, which will launch lr-dosbox with C mounted to the current directory (roms/pc/wolf3d) and automatically launch wolf3d.exe.

                        edmaul69E 1 Reply Last reply Reply Quote 0
                        • BuZzB
                          BuZz administrators @psyke83
                          last edited by

                          @psyke83 Regarding performance - did you enable the dynamic recompilation ?

                          BTW see this branch for lr-dosbox - https://github.com/joolswills/RetroPie-Setup/tree/exp_modules

                          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

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

                            I didn't. I'll re-test tonight when I have access to my Pi, using the same build configuration from your script. Perhaps that's the cause of the input bug, so it may not be fixed at all. Will let you know soon if I jumped the gun in that regard.

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

                              @psyke83 does it have a way of assigning a disk drive/cd drive? Both real and iso/img?

                              P 1 Reply Last reply Reply Quote 0
                              • K
                                KevinsHope @BuZz
                                last edited by

                                @buzz I do not see the Lr-dosbox package under experimental or optional packages. Where is it listed at for instillation?

                                BuZzB 1 Reply Last reply Reply Quote 0
                                • BuZzB
                                  BuZz administrators @KevinsHope
                                  last edited by

                                  @kevinshope it's not yet.

                                  To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                                  K 1 Reply Last reply Reply Quote 1
                                  • P
                                    psyke83 Global Moderator @BuZz
                                    last edited by psyke83

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

                                    @psyke83 Regarding performance - did you enable the dynamic recompilation ?

                                    BTW see this branch for lr-dosbox - https://github.com/joolswills/RetroPie-Setup/tree/exp_modules

                                    Your script doesn't enable dynarec for rpi3:

                                        isPlatform "armv6" && params+="WITH_DYNAREC=oldarm"
                                        isPlatform "armv7" && params+="WITH_DYNAREC=arm"
                                    

                                    It will compile correctly when the following line is added:

                                        isPlatform "armv8" && params+="WITH_DYNAREC=arm"
                                    

                                    Dynarec improves things. Before I could only manage 4 x 1000 cycles before audio dropouts, but now it can manage a bit under 2 x 10000 total cycles. Descent becomes playable - much much better, but probably still not at the level of the native port.

                                    It's probably still inferior, but now I'd recommend adding this to experimental for those that want to tinker. It's definitely usable when dynarec is enabled and I haven't noticed any repeating key input issues.

                                    I've experienced several hard crashes with the native dosbox port that I haven't seen with the libretro core, so that's one plus, at least.

                                    BuZzB 1 Reply Last reply Reply Quote 0
                                    • K
                                      KevinsHope @BuZz
                                      last edited by

                                      @buzz Being a new user to linux in general, I will eagerly wait for it to be added.

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

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

                                        @psyke83 does it have a way of assigning a disk drive/cd drive? Both real and iso/img?

                                        "imgmount" is a recognized command in lr-dosbox, so I'm assuming it will work for mounting ISOs or hard disk images.

                                        https://www.dosbox.com/wiki/IMGMOUNT

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

                                          @psyke83 ok. Thanks.

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

                                            Update on Doom:

                                            It seems that Doom & Doom 2 were failing on lr-dosbox due to case sensitivity (!). Even though DOS is supposed to be limited to 8.3 filenames and case insensitive, when the wad files are named DOOM.WAD and DOOM2.WAD on the actual ext4 root filesystem (in roms/pc/doom/), the Doom executable can't find the files, but only if running via lr-dosbox (the native port is fine). Manually renaming the files to lowercase outside of the emulator fixed the issue.

                                            Performance is acceptable in lr-dosbox with dynarec enabled, but it's definitely a bit choppier than the native dosbox version, and certainly not reaching the 35fps engine limit at all times (whereas I suspect the native dosbox version does).

                                            edmaul69E 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.