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

    HOWTO: Pro Pinball: Timeshock! in Dosbox on Rpi3

    Scheduled Pinned Locked Moved Help and Support
    pro pinballdosboxrpi3timeshock
    88 Posts 17 Posters 33.4k 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.
    • edmaul69E
      edmaul69
      last edited by

      For people who create several dosbox .sh file it is bad practice to make the games folder the c drive. Several games need to use the seperately installed soundblaster drivers for audio. You should set the pc folder as the c drive and change the directory to the games folder. You will want to install the soundblaster drivers once in the pc folder. If you are missing sounds you might have chosen irq 5 instead of 7 in audio setup. You should usually go with whatever settings it auto finds. You cant choose whatever you want. You need to use the sounblaster drivers. I havent installed this games so i am not sure if you had to go through it. If you havent, there is probably a file called setup.exe. That file lets you set things like audio and music. You need to make sure they are all set to soundblaster. Also you want it to self exit. Not all games will auto exit even with the exit setting. Do not add the exit option until you have it working. Otherwise it might auto exit right after you boot it and you wont see the error. So this is how the .sh file should look:

      /opt/retropie/emulators/dosbox/bin/dosbox
      -c "@mount c $HOME/RetroPie/roms/pc"
      -c "@imgmount d $HOME/RetroPie/roms/pc/pptime/pptime.cue -t iso"
      -c "@c:"
      -c "cd/pptime"
      -c "@pinball"
      -c "exit"

      1 Reply Last reply Reply Quote 2
      • DRBD
        DRB
        last edited by

        Thanks for the responses. I am still getting the same message after trying some of the suggestions.

        I have deleted the /pic directory and have placed the .sh file in the pc directory.

        I've added the backslashes (actually I copy/pasted the complete script as suggested by backstander)

        I tried the script offered by edmaul69 (copy/paste).

        I'm still getting the Error 3 initialising CDROM routines.

        I'm also not sure I have addressed all the 'case' issues. Could this be the problem causing this error?

        B 1 Reply Last reply Reply Quote 0
        • B
          backstander @DRB
          last edited by backstander

          @DRB
          I noticed that this person is getting the same error for the same game on the Android version of DOSBox
          http://www.tomdupont.net/2013/01/how-to-play-gog-games-on-android-with.html?showComment=1369282450689#c2049814093514628018

          Also Pro Pinball: The Web has a similar issue because it "uses some funky method for the CD check that dosbox doesn't support." I wonder if this is the same with Timeshock!
          https://www.dosbox.com/comp_list.php?showID=3587&letter=P

          Here's some more information about the error:
          http://www.vogons.org/viewtopic.php?t=10786

          1 Reply Last reply Reply Quote 1
          • DRBD
            DRB
            last edited by

            OK, I've made progress, but still cannot get the script to work. I can launch DOSBox and mount the C: drive to /home/pi/RetroPie/roms/pc/pptime

            Then I can get the CDROM mounted with the following line:
            C:\ imgmount d /home/pi/RetroPie/roms/pc/pptime/pptime.cue -t iso

            Then I can launch and play the game via C:\ pinball.exe

            Here's where I need help...
            How can I properly translate those commands to create the .sh file?

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

              @DRB you didnt post any caps, but if there are caps in any of the names you need to fix them in this info. this is what you need to put in the .sh file.then you need to give your .sh files 0777 permissions. you used "-t iso" so i posted that. however to truly make it a cdrom drive, i believe it should be "-t cdrom -fs iso"

              #!/bin/bash 
              /opt/retropie/emulators/dosbox/bin/dosbox -c "imgmount d /home/pi/RetroPie/roms/pc/pptime/pptime.cue -t iso" -c "mount c /home/pi/RetroPie/roms/pc" -c "c:" -c "cd/pptime" -c "pinball.exe" -c "exit"
              
              1 Reply Last reply Reply Quote 1
              • DRBD
                DRB
                last edited by

                Thanks edmaul69, I will try this later today. I have a couple clarifying questions though.

                1. What are 0777 permissions and how do I do that?
                2. With regard to the -t iso, that is exactly how I typed it when it worked.
                3. What does the -c do?
                4. I noticed that you didn't include the backslashes (/) at the end of each command; is that an issue? One of the other repliers above noted that I didn't add them to one of the scripts that I tried.
                5. Can your script be copy/pasted exactly as is or should each new line start with -c?
                6. To address your questions about the caps; what I typed is what worked exactly. The only caps were in RetroPie.

                Thanks for the help. I will try this later and report back.

                edmaul69E B 2 Replies Last reply Reply Quote 0
                • edmaul69E
                  edmaul69 @DRB
                  last edited by

                  @DRB put it exactly how i have it. No seperate lines no backslashes. I have made hundreds of .sh files this way. They all work. As far as caps, when you make an .sh file caps matter. You need to make sure the pptime folders and pptime.exe match what is in this file

                  1 Reply Last reply Reply Quote 0
                  • B
                    backstander @DRB
                    last edited by backstander

                    @DRB

                    What are 0777 permissions and how do I do that?

                    That number represents what the Linux system uses for file attributes. 777 just makes it so anybody can execute a file. Here's how I'd change the attributes to executable (from the command line):

                    chmod +x /home/pi/RetroPie/roms/pc/pptime.sh
                    

                    With regard to the -t iso, that is exactly how I typed it when it worked.

                    @edmaul69 is pretty much the DOSBox guru around here so I'd listen to him!

                    What does the -c do?

                    Basically it just tells DOSBox to use what follows as a command to execute in DOS.

                    I noticed that you didn't include the backslashes (/) at the end of each command

                    You only use the backslashes if you want to continue code on the next line. If you use @edmaul69's example and put it all on one line then you don't need the backslashes.

                    Can your script be copy/pasted exactly as is or should each new line start with -c?

                    Yes, @edmaul69's script can be copied and pasted exactly.

                    To address your questions about the caps; what I typed is what worked exactly. The only caps were in RetroPie.

                    @edmaul69 was just try to emphasize that file & directory name case is important in Linux (case sensitive). Windows is not case sensitive so most users new to Linux get confused about that.

                    1 Reply Last reply Reply Quote 1
                    • DRBD
                      DRB
                      last edited by DRB

                      Alright guys, I really appreciate you putting up with my [very steep] learning curve. I understand the caps issue with Linux and all caps issues are correct. Unfortunately I do not know what to do with the following line suggested by @backstander

                      chmod +x /home/pi/RetroPie/roms/pic/pptime.sh

                      I have created a proper .sh file with a copy/paste from @edmaul69 's post but it still doesn't work (as suspected until I know what to do with the above line of code.)

                      Thanks again in advance for your help!

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

                        @DRB said in HOWTO: Pro Pinball: Timeshock! in Dosbox on Rpi3:

                        chmod +x /home/pi/RetroPie/roms/pic/pptime.sh

                        Are you accessing the .sh with a pc? If you are using something like winscp you can right click on the file and choose properties. Then change permissions from 0644 to 0777 and save. Then it will work. Also

                        chmod +x /home/pi/RetroPie/roms/pic/pptime.sh
                        

                        Says pic instead of pc. You need to change it to:

                        chmod +x /home/pi/RetroPie/roms/pc/pptime.sh
                        
                        B 1 Reply Last reply Reply Quote 1
                        • B
                          backstander @edmaul69
                          last edited by backstander

                          @edmaul69 @DRB
                          My bad. I have updated my original post. I was copying and pasting something from earlier on this thread and I must had got pic but yes it should be pc!

                          Unfortunately I do not know what to do with the following line suggested by @backstander

                          Using WinSCP might be the easiest route for you. The 2nd way is you can exit EmulationStation by pressing F4 and drop into a command line on your Raspberry Pi with an attached USB keyboard. 3rd way is to SSH in using a program like PuTTY.

                          DRBD 1 Reply Last reply Reply Quote 1
                          • DRBD
                            DRB @backstander
                            last edited by

                            @backstander - thaks for the reply and clarification on the /pic vs. /pc.

                            With regard to entering the command, I am familiar with the F4 and PuTTY to get to a command prompt and that is what I wanted to confirm. Once at the command prompt, do I just enter the command anywhere? Or do I need to first navigate to a particular directory?

                            I navigated to /home/pi/RetroPie/roms/pc and entered the line: chmod +x /home/pi/RetroPie/roms/pc/pptime.sh in the bash terminal, but nothing seems to happen.

                            I installed WinSCP and found the permissions that you mentioned and changed it to 0777 (it was not at 0644 to start with).

                            I still get the same error.

                            B 1 Reply Last reply Reply Quote 0
                            • B
                              backstander @DRB
                              last edited by

                              @DRB

                              Once at the command prompt, do I just enter the command anywhere? Or do I need to first navigate to a particular directory?
                              I navigated to /home/pi/RetroPie/roms/pc and entered the line: chmod +x /home/pi/RetroPie/roms/pc/pptime.sh in the bash terminal, but nothing seems to happen.

                              You can type it just like it is because it already has the directory location in it but first navigating to that directory won't hurt anything. I don't think it gives any feedback unless there was an error. If you didn't see anything after it is run then I would assume it worked.

                              I installed WinSCP and found the permissions that you mentioned and changed it to 0777 (it was not at 0644 to start with).

                              Do you remember what number it was originally? Just curious.

                              I still get the same error.

                              Are you using the gog.com version of Pro Pinball Timeshock?

                              DRBD 1 Reply Last reply Reply Quote 0
                              • DRBD
                                DRB @backstander
                                last edited by

                                @backstander

                                Unfortunately I don't remember the original number before I put in 0777. I thought about that right after changing it.

                                Yes, I am using the gog.com version of the game.

                                B 1 Reply Last reply Reply Quote 0
                                • B
                                  backstander @DRB
                                  last edited by

                                  @DRB
                                  I bet it was 0766 or rwxrw-rw-

                                  Yes, I am using the gog.com version of the game.

                                  Hmmm, I'm stumped. From one of the documents I posted a couple days ago, they thought it might be some kind of special code that looks for the original cd (like early copy protection) but the gog.com version shouldn't have that code in there.

                                  1 Reply Last reply Reply Quote 0
                                  • DRBD
                                    DRB
                                    last edited by

                                    Well this is quite frustrating isn't it. Since I CAN get it to work from the command prompt in DOSBoxbut cannot get it to work via the .sh script.

                                    I'll keep searching and experimenting.

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

                                      @DRB do you see any error message? Also can you post a pic of your contents inside the pptime folder while you are using winscp? I want to see if i can find an error

                                      DRBD 1 Reply Last reply Reply Quote 0
                                      • DRBD
                                        DRB @edmaul69
                                        last edited by

                                        @edmaul69

                                        The only error is: Internal error: Error 3 initialising CDROM routines.

                                        Here are the filesalt text

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

                                          @DRB as i stated caps and lowercase was important. PINBALL.EXE is in all caps so you have to do that in the .sh file. So it needs to look like this:

                                          #!/bin/bash 
                                          /opt/retropie/emulators/dosbox/bin/dosbox -c "imgmount d /home/pi/RetroPie/roms/pc/pptime/pptime.cue -t iso" -c "mount c /home/pi/RetroPie/roms/pc" -c "c:" -c "cd/pptime" -c "PINBALL.EXE" -c "exit"
                                          
                                          DRBD 1 Reply Last reply Reply Quote 0
                                          • DRBD
                                            DRB @edmaul69
                                            last edited by DRB

                                            @edmaul69

                                            IT'S WORKING

                                            My bad; I changed to PINBALL.EXE but still having the same error. However, I did find something that may be worthy of mentioning though. On the MS-DOS screen of Retropie, there are 2 PPTIME entries. The first one brings me to the results that I have been talking about (the error message) and the other one actually works now. Prior to this, it would only act like it is starting DOSBox then returns to the menu.

                                            Anyway; any thoughts on how to remove the first (not working) entry? Or why it may be there?

                                            [edit]
                                            Well, I thought it was working. It launches and plays, but now that I hooked it up to my system with speakers I am not getting any sound. Ugh!

                                            edmaul69E 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.