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]DOS game won't launch via .sh or .conf file in emulation station

    Scheduled Pinned Locked Moved Help and Support
    dosbox configraspberrypi4retropie 4
    3 Posts 2 Posters 1.2k 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.
    • M
      Montrovant
      last edited by Montrovant

      Hi!

      I've been trying to figure this out my self, but a lot of the information I find seems to be outdated.
      I'm running a Pi4 and the official Retropie img.

      I have my DOS games located in:
      home/pi/pcroms/

      In /pi/RetroPie/roms/pc
      I have my .sh and .conf files.
      I also have +Start DOSBox.sh

      Most games run just fine from .sh or .conf but some do not. the example I'll use is Loderunner the Legend Returns.

      With this game I get thrown back to emulationstation just after dosbox launch.
      If I put the game files for loderunner in /pi/RetroPie/roms/pc, launch dosbox and run the LODERUNN.EXE from within dosbox, it works fine..

      These two post are the closest I've come to finding the same problem online:
      https://retropie.org.uk/forum/topic/26086/emulationstation-parses-sh-files-into-runcommand-argument-for-lr-dosbox
      https://retropie.org.uk/forum/topic/27767/game-won-t-launch-via-sh-file-on-retropie-with-dosbox-emulator

      Loderunner.sh:

      #!/bin/bash
      /opt/retropie/emulators/dosbox/bin/dosbox -c "mount c /home/pi/pcroms/" -c "c:" -c "cd loderunnerLR" -c "LODERUNN.EXE" -c "exit"
      

      Loderunenr.conf:

      [autoexec]
      MOUNT c /home/pi/pcroms/
      C:
      CD loderunnerLR
      LODERUNN.EXE
      EXIT
      

      I have also tried:

      • Copying the entire dosbox-svn, renaming it loderunner.cfg and appending the [autoexec] part for loderunner.
      • Moving the gamefiles to /pi/RetroPie/roms/pc and chaning the .sh or .cfg accordingly. It still only works if I launch it from within dosbox.

      Any help or direction to other sources is appreciated!
      Hopefully It's something obvious I've misunderstood.

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

        @montrovant said in DOS game won't launch via .sh or .conf file in emulation station:

        CD loderunnerLR

        DOS doesn't support more than 8 characters for folder/filename (not without some LFN add-ons). Shorten the name of the folder and re-try.
        Btw, you don't need to create a .sh file if you already have a .conf file, EmulationStation will launch the conf file directly.

        M 1 Reply Last reply Reply Quote 0
        • M
          Montrovant @mitu
          last edited by

          @mitu

          That seems to have sorted it! Thank you!

          When I stared out I first visited the retropie docs
          https://retropie.org.uk/docs/PC/#install-gravis-ultrasound-gus

          Which redirected me to this guide from 2015, that suggest using .sh scripts.
          Now that everything is working I'll start converting everything over to just using conf-files, and optimizing the games :)

          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.