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

    [SOLVED] - DOSBox - Won't return to RetroPie menu when game ends

    Scheduled Pinned Locked Moved Help and Support
    dosboxexitignition
    6 Posts 3 Posters 4.3k 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.
    • S
      Spiky
      last edited by Spiky

      In order to make Ignition run without calling several commands every time, I created a script:

      #!/bin/bash
      /opt/retropie/emulators/dosbox/bin/dosbox -c "imgmount d /home/pi/RetroPie/roms/pc/Ignition/Ignition.iso -t iso" -c "mount c /home/pi/RetroPie/roms/pc/Ignition/game" -c "c:" -c "IGN_DOS" -exit

      It is working all good until I decide to stop playing and quit the game. As you can see, I added -exit option, but as I quit the game, the DOSBox console remains open and it won't let me back to RetroPie menu, unless I manually type exit in there, which is not what I want, since I play on joystick. I also tried -c "exit", but no effect as well.

      edmaul69E 1 Reply Last reply Reply Quote 0
      • S
        Spiky
        last edited by

        Once again I was just few hours away from figuring it out by myself, so I will just post the solution here in case anyone has the same problem.

        #!/bin/bash
        /opt/retropie/emulators/dosbox/bin/dosbox /home/pi/RetroPie/roms/pc/Ignition/game/IGN_DOS.BAT -exit -c "imgmount d /home/pi/RetroPie/roms/pc/Ignition/Ignition.iso -t iso"

        in order to make -exit command work, you have to specify name parameter, which is /home/pi/RetroPie/roms/pc/Ignition/game/IGN_DOS.BAT in this particular case

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

          @Spiky some games dont work with -c "exit" but most do If you are in dosbox if you press ctrl and f1 you can set the (i forget what it is called in there) exit to a keyboard key or a button on your controller. You need a mouse hooked up to move around in the dosbox keymap to set it up though. I set my caps lock as an exit and i set it to my select button on my controller. Having an exit key is a good thing because sometimes games will not exit correctly and wont respond to anything

          S 1 Reply Last reply Reply Quote 0
          • S
            Spiky @edmaul69
            last edited by

            @edmaul69 thank you for advices. I though about mapping "exit" to some key, but I left that as the last option, because I was sure there must be way how to do it without losing one key to it.

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

              @Spiky in my case i use an apple iie that is modded with a pi. I also have a mac m0110a keyboard hooked up. They both have click on click off caps locks. I disabled the switches so they cant click down anymore. So now they basically are shift keys. So it was no loss to me. But putting one on a controller if you have the button to spare that wont interfere with using the controller is a good idea.

              1 Reply Last reply Reply Quote 0
              • mediamogulM
                mediamogul Global Moderator @Spiky
                last edited by

                @Spiky said in DOSBox - Won't return to RetroPie menu when game ends:

                I was sure there must be way how to do it without losing one key to it.

                I have all of my 38 emulated systems and various ports mapped to exit out with 'select+x' so that I don't lose an individual key that could otherwise be used for game play. It's also just easier to remember. There's a bit of setup involved, but when using a controller, the final result gives everything in RetroPie that cohesive console feeling.

                RetroPie v4.5 • RPi3 Model B • 5.1V 2.5A PSU • 16GB SanDisk microSD • 512GB External Drive

                1 Reply Last reply Reply Quote 1
                • 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.