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 - custom config file

    Scheduled Pinned Locked Moved Help and Support
    dosboxconfig file
    10 Posts 5 Posters 5.0k 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

      I have DEMONS.sh file which contains following code:
      #!/bin/bash
      /opt/retropie/emulators/dosbox/bin/dosbox -conf "/home/pi/RetroPie/configs/pc/dosbox-DEMONS.conf"

      I have several lines of code in [autoexec] section, but nothing shows up in DOSBox console, so obviously the config file is not used when I run DEMONS.sh. What am I missing here? The path to conf file is correct.

      D 1 Reply Last reply Reply Quote 0
      • D
        dudleydes @Spiky
        last edited by

        @spiky DOSBox is able to launch directly from .conf files so, in most cases, there shouldn't be a need for a shell script.

        Could you try placing the dosbox-DEMONS.conf file in the pc roms folder and launching the file directly from EmulationStation?

        If the .conf file does not appear in ES or the .conf file doesn't appear to be launching, then please re-install DOSBox to ensure you have the most up to date configuration.

        S T 2 Replies Last reply Reply Quote 2
        • S
          Spiky @dudleydes
          last edited by

          @dudleydes thank you. I did not know it was possible to launch from conf file. I will give it a try when I come home and let you know the result.

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

            Another problem... I deleted the sh file and moved everything to new conf file

            my code in [autoexec] is following
            imgmount d "/home/pi/RetroPie/roms/pcdata/DEMONS/cd/SPEED DEMONS.CUE" -t iso
            mount c "/home/pi/RetroPie/roms/pcdata/DEMONS/DEMONS"
            c:
            DEMONS.EXE
            exit

            I moved the conf file to roms/pc folder so I can use it to run the game, so I also edited [sdl] setting of mapper:
            mapperfile=/home/pi/RetroPie/configs/pc/mapper-SVN.map
            (was mapperfile=mapper-SVN.map before - as both map and conf files were in the same folder)

            When I run DEMON.conf now, it starts DOSBox for a moment and it crashes before any line of code is executed.

            Any ideas?

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

              I checked runcommand.info and found following issue:
              Exit to error: Can't init SDL Unable to open a console terminal
              Other DOSBox games that I run using .sh files run fine, so it's probably problem with path somewhere... have to dig into it a bit

              EDIT: it obviously had something to do with permission of files. it's a bit strange, since .sh files did not need it.. anyway, solved

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

                I'm having the exact same problem. How did you solve the permissions issue? I tried changing the permissions of the conf file and the folder that I'm trying to mount as the c: drive, but no success.

                quicksilverQ S 2 Replies Last reply Reply Quote 0
                • quicksilverQ
                  quicksilver @Nodfyr
                  last edited by quicksilver

                  @Nodfyr best to open a new topic since this one is marked solved. Please supply the details of your setup. Are you trying to run the same game? Etc.

                  Edit: I see you already did, it's best to keep everything in one thread instead of asking in multiple. So let's use the new topic.

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

                    Reposting this here in case google takes someone to this post (as happened to me):

                    Through trial and error, I figured out how to solve the problem.

                    I copied the default dosbox configuration file from ~/.dosbox/dosbox-SVN.conf and edited that with my custom setup.

                    Now everything works fine, though I never did figure out which permissions were broken.

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

                      @Nodfyr I didn't want to spend more time analyzing the problem, so I just called following:

                      chmod 777 /path/to/file
                      
                      1 Reply Last reply Reply Quote 0
                      • T
                        Turrican2k @dudleydes
                        last edited by

                        @dudleydes Thank you for this Information!

                        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.