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 Launching Problem

    Scheduled Pinned Locked Moved Help and Support
    dosbox
    4 Posts 2 Posters 489 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
      Milkie
      last edited by

      I've transferred all my games over to a new system 4.6 (Pi4), everything is working on the old system fine and the new system, except my DOS games/Programs.

      I launch a program from ES and get the following:
      Z:\MOUNT C "/home/pi/RetroPie/roms/pc"
      Drive C is mounted as local directory /home/pi/RetroPie/roms/pc/
      Z:\C:

      All seems fine until the following line:

      C:\WIN311.SH
      Illegal command: WIN311.SH

      I can't work out why its calling win311.sh, it is the file to start the program, but I don't know why its calling it, or how to solve the problem..

      I think my old system was using DOSBox and the new system is using lr-DOSBox, but I'm shooting in the dark here. Can someone point me in the right direction please?

      Any help would be greatly appreciated! It will probably save me hours and hours of going round in circles ;-)

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

        Please add more info about your system, as detailed in https://retropie.org.uk/forum/topic/3/read-this-first.

        Which emulator you used by default on the previous system - does it match the one used on the Pi4 system ?

        1 Reply Last reply Reply Quote 0
        • M
          Milkie
          last edited by

          I have checked my previous system and that is no longer working. I think I updated it a year or so ago and probably broke at that time. I have tried using DOSBox and lr-DOSBox, both create the same problem.

          I've followed the guides here:
          [https://github.com/RetroPie/RetroPie-Setup/wiki/PC](link url)
          Recreated the .sh file

          I have found the same problem here:
          [https://retropie.org.uk/forum/topic/26086/emulationstation-parses-sh-files-into-runcommand-argument-for-lr-dosbox/8](link url)

          But I don't understand the solution. If lr-DOSBox doesn't use .sh files to launch, how do I get ES to see the game and launch it? Can someone point me in the right direction, I realise there is something I really should know, but don't yet!

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

            .sh files are not understood by lr-dosbox, but they should work withdosbox - as mentioned in the topic you referenced.

            The preferred way would be to use .conf file for launching your games, where you can set your dosbox preferences and add an [autoexec] section for launching the game itself. For instance (game.conf):

            
            [autoexec]
            MOUNT c /home/pi/RetroPie/roms/pc
            C:
            cd GameDir
            Game.exe
            EXIT
            

            The .conf files are understood by both dosbox and lr-dosbox.

            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.