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

    Creating new DOSBOX based system

    Scheduled Pinned Locked Moved Help and Support
    dosboxretropiemsdospinball
    11 Posts 5 Posters 1.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
      sleve_mcdichael @Codafire
      last edited by

      @codafire said in Creating new DOSBOX based system:

      If i use the same code but changing pinball for pc, and with the files of the game in pc folder its work, i dont know why, in pinball folder it didnt work. Thanks.

      What does the "pinball" section of your es_systems.cfg look like and, for good measure, can we see the working "pc" section as well?

      C 1 Reply Last reply Reply Quote 0
      • C
        Codafire @sleve_mcdichael
        last edited by

        @sleve_mcdichael this is my pinball section:

        <system>
        <name>pinball</name>
        <fullname>Pinball Games</fullname>
        <path>/home/pi/RetroPie/roms/pinball</path>
        <extension>.bat .com .exe .sh .conf .BAT .COM .EXE .SH .CONF</extension>
        <command>/opt/retropie/supplementary/runcommand/runcommand.sh 0 SYS pc %ROM%</command>
        <platform>pinball</platform>
        <theme>pinball</theme>
        </system>
        <system>

        You want a video gameplay?

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

          What error you get - exactly - when you're running the game ? Post the log file from /dev/shm/runcommand.log.

          C 1 Reply Last reply Reply Quote 0
          • C
            Codafire @mitu
            last edited by Codafire

            @mitu It dont create a log file, i discover it fails when i erase +Start DOSBox.sh from the folder roms/pc, if i keep it there the pinball system works perfectly.

            +Start DOSBox.sh code is this:

            #!/bin/bash
            
            [[ ! -n "$(aconnect -o | grep -e TiMidity -e FluidSynth)" ]] && needs_synth="1"
            
            function midi_synth() {
                [[ "$needs_synth" != "1" ]] && return
            
                case "$1" in
                    "start")
                        timidity -Os -iAD &
                        until [[ -n "$(aconnect -o | grep TiMidity)" ]]; do
                            sleep 1
                        done
                        ;;
                    "stop")
                        killall timidity
                        ;;
                    *)
                        ;;
                esac
            }
            
            params=("$@")
            if [[ -z "${params[0]}" ]]; then
                params=(-c "@MOUNT C /home/pi/RetroPie/roms/pc" -c "@C:")
            elif [[ "${params[0]}" == *.sh ]]; then
                midi_synth start
                bash "${params[@]}"
                midi_synth stop
                exit
            elif [[ "${params[0]}" == *.conf ]]; then
                params=(-userconf -conf "${params[@]}")
            else
                params+=(-exit)
            fi
            
            midi_synth start
            "/opt/retropie/emulators/dosbox/bin/dosbox" "${params[@]}"
            midi_synth stop
            
            1 Reply Last reply Reply Quote 0
            • mituM
              mitu Global Moderator
              last edited by

              @codafire said in Creating new DOSBOX based system:

              i discover it fails when i erase +Start DOSBox.sh from the folder roms/pc, if i keep it there the pinball system works perfectly.

              That script is used as an intermediate launcher for the pc games, so would advise not to delete it. Reinstall dosbox and it will be re-created.

              C 1 Reply Last reply Reply Quote 0
              • C
                Codafire @mitu
                last edited by

                @mitu i have a backup of this file, i restored it an hidde sonthe system msdos dont appears. Thanks!!!

                1 Reply Last reply Reply Quote 0
                • RamenRaiderY95R
                  RamenRaiderY95
                  last edited by RamenRaiderY95

                  It sounds like this is a very complicated method of listing all of your dosbox emulated pinball games in one place. Are you applying some very specific controls or other settings for these games? Otherwise, you could just use a collection.

                  The "collections" feature was designed to allow you to group games, even those from different systems.

                  For example, you could put NES, Genesis, DOS and Arcade pinball games in a collection titled "Pinball" using the Retropie menu options for doing so. When selected, each would run properly using their settings from their native system.

                  IanDaemonI C 2 Replies Last reply Reply Quote 1
                  • IanDaemonI
                    IanDaemon @RamenRaiderY95
                    last edited by

                    The "collections" feature was designed to allow you to group games, even those from different systems.

                    I have "fighters" and "shmups" collections that do this exact thing. Great feature!

                    • 5 Favorite Arcade Games in MAME
                    • Cocktail Cabinet Games
                    • Check out the MAME RoW
                    1 Reply Last reply Reply Quote 0
                    • C
                      Codafire @RamenRaiderY95
                      last edited by

                      @ramenraidery95 I never ear a bout that.... Mmmmm, i try it, thanks!

                      RamenRaiderY95R 1 Reply Last reply Reply Quote 0
                      • RamenRaiderY95R
                        RamenRaiderY95 @Codafire
                        last edited by

                        @codafire You're welcome!

                        Everything you need should be right here:
                        https://retropie.org.uk/docs/EmulationStation/#custom-collections

                        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.