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

    Ports in RetroPie not working properly

    Scheduled Pinned Locked Moved Help and Support
    portsdoomwadretropie 4.1 pi
    27 Posts 5 Posters 8.5k 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
      SpacedInvader
      last edited by

      Problem: PORTS in RetroPie Not being able to play DOOM wads (with the exception of the shareware that comes pre-installed with IR-prboom)
      Version of RetroPie: 4.1.12
      Raspberry Pi: Raspberry Pi 3 Model B

      After thumbing through all the topics, I am not seeing anything related to problems in Version 4.1.12 in the forum related to PORTS not emulating at all ... so either this is a new problem, or I am missing something from the Wiki pages on how to install everything. The directions are very clear on the Wiki, and I don't ask for help unless I have exhausted every other option.

      Description: I can see all the .wad files I moved over to the RetroPie and they are available in the PORTS menu. Selecting any one of the .wad files (with the exception of the pre-installed shareware version) all do the exact same thing: The RetroPie screen fades out, the grey info box with the launching, hit any key to config appears, then fades out, and instead of running the game, it fades back to the PORTS menu in RetroPie.

      My wad files are golden, as they work on my PC without a problem. So something has to be going on in RetroPie.

      Here's what I have done:
      I made sure Ir-prboom was installed, and up to date.
      I have checked all of the .sh files to make sure there were no syntax errors, and that each one was properly named to its corresponding wad file.
      I double checked all of the configs, tried every single resolution to see if I could get it up and running.
      Nothing.
      SO.....
      I looked into the shareware doom wad and .sh file and found that it reads:

      #!/bin/bash
      "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 _PORT_ "doom" ""
      

      This looks nothing like anything on the Wiki page... In fact... it looks like it shouldn't work at all. I went so far as to rewrite the .sh file for plutonia with this format changing out the word "doom" with "plutonia". Nothing. Just fade out, and fade back in. Except for the shareware.

      All my other games are working, NeoGeo, NES, even my old Atari 800 games work great. PORTS seems to be a problem. Is Ports need to This is preplexing! Any ideas? Suggestions?

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

        ok it is not as straight forward as that. for doom 1 if you have doom 1 or if you only have ultimate doom, just overwrite the doom1.wad (rename yours to all lowercase as linux is case sensitive) in /home/pi/RetroPie/roms/ports/doom/ . also put your doom2.wad, your tnt.wad, and your plutonia.wad there.

        now you have to make a .sh file for each game other than doom, so for example you need to make a file in /home/pi/RetroPie/roms/ports/ called Doom2.sh (no spaces until later). now in that file you will put this info in it:

        #!/bin/bash
        /opt/retropie/supplementary/runcommand/runcommand.sh 0 "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-prboom/prboom_libretro.so --config /opt/retropie/configs/ports/doom/retroarch.cfg /home/pi/RetroPie/roms/doom/doom2.wad" "lr-prboom"
        

        now you need to save the file then give permissions to the file. in the commandline you would type:

        sudo chmod +x /home/pi/RetroPie/roms/ports/Doom2.sh
        

        now you can go back to the file and rename it and add spaces if you wish. but keep the .sh at the end. now you just repeat for tnt.wad (Final Doom: Evilution), plutonia.wad (Final Doom: The Plutonia Experiment) and if you have both doom and ultimate doom, rename the Ultimate Doom's DOOM1.WAD to just doom.wad and create a .sh file for it.

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

          I am only modifying the doom2.sh. Once I get that working, I will copy the procedure with the other games. I started fresh. I do not have any spaces in the sh file names. Keeping it simple prevents mistakes, eh? I am very careful with this so here's what I did:

          I entered in the

          sudo chmod +x /home/pi/RetroPie/roms/ports/Doom2.sh
          

          into the commandline, as you instructed. It said

           press any key to continue...
          

          Success? I restarted Emulation station, just to be safe. Then tracked back to PORTS.

          It still will not start. No error messages why it will not start... just fade out, and then fade back into the PORTS screen.

          This sounds like it should be a very straight forward easy fix... but its not. Quite perplexing...

          J edmaul69E 2 Replies Last reply Reply Quote 0
          • J
            jcook84 @SpacedInvader
            last edited by jcook84

            @SpacedInvader
            what is runcommand.log saying?

            eta
            /dev/shm/runcommand.log

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

              @SpacedInvader im sorry. Typo. Put this in your doom2.sh

              #!/bin/bash
              /opt/retropie/supplementary/runcommand/runcommand.sh 0 "/opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-prboom/prboom_libretro.so --config /opt/retropie/configs/ports/doom/retroarch.cfg /home/pi/RetroPie/roms/ports/doom/doom2.wad" "lr-prboom"
              
              1 Reply Last reply Reply Quote 0
              • S
                SpacedInvader @jcook84
                last edited by

                @jcook84 Here ya go!

                Parameters: 
                Executing: /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-prboom/prboom_libretro.so --config /opt/retropie/configs/ports/doom/retroarch.cfg /home/pi/RetroPie/roms/ports/doom/doom2.wad --appendconfig /dev/shm/retroarch.cfg
                M_LoadDefaults: Load system defaults.
                 default file: /home/pi/RetroPie/roms/ports/doom/prboom.cfg
                IdentifyVersion: basesavegame: /home/pi/RetroPie/roms/ports/doom
                i: 1
                myargv[0]: prboom
                myargv[1]: -iwad
                myargv[2]: doom2.wad
                myargv[3]: (null)
                myargv[4]: (null)
                myargv[5]: (null)
                myargv[6]: (null)
                myargv[7]: (null)
                myargv[8]: (null)
                myargv[9]: (null)
                myargv[10]: (null)
                myargv[11]: (null)
                myargv[12]: (null)
                myargv[13]: (null)
                myargv[14]: (null)
                myargv[15]: (null)
                myargv[16]: (null)
                myargv[17]: (null)
                myargv[18]: (null)
                myargv[19]: (null)
                myargv[20]: (null)
                myargv[21]: (null)
                myargv[22]: (null)
                myargv[23]: (null)
                myargv[24]: (null)
                myargv[25]: (null)
                myargv[26]: (null)
                myargv[27]: (null)
                myargv[28]: (null)
                myargv[29]: (null)
                myargv[30]: (null)
                myargv[31]: (null)
                iwad: (null)
                IdentifyVersion: IWAD not found
                
                /opt/retropie/supplementary/runcommand/runcommand.sh: line 957:   997 Aborted                 /opt/retropie/emulators/retroarch/bin/retroarch -L /opt/retropie/libretrocores/lr-prboom/prboom_libretro.so --config /opt/retropie/configs/ports/doom/retroarch.cfg /home/pi/RetroPie/roms/ports/doom/doom2.wad --appendconfig /dev/shm/retroarch.cfg
                

                I hope you can help me decipher this... my understanding of this is a bit... lacking. :(

                I guess the best question is: What is this telling me that I am missing, or forgot to do? Mind you this is RetroPie Verison 4.1.12

                I have all updates for Ir-prboom.

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

                  @SpacedInvader look at my correct post directly above this one for the correct setup. Not sure why you added an --appendconfig /dev/shm/retroarch.cfg and removed the " "lr-prboom" "?

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

                    @SpacedInvader read my last post. Also your problem is that you either dont have the doom2.wad in the correct location or you need to give it a 0777 permissions. Remember it CANNOT have any caps in the name. It cannot be named DOOM2.WAD OR doom2.WAD

                    1 Reply Last reply Reply Quote 0
                    • BuZzB
                      BuZz administrators @edmaul69
                      last edited by BuZz

                      @edmaul69 runcommand adds the appendconfig.

                      the commandline failed because as @edmaul69 has said your wad file is incorrectly named - doesn't match the path you provided.

                      To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                      1 Reply Last reply Reply Quote 0
                      • BuZzB
                        BuZz administrators
                        last edited by BuZz

                        Just to note - If you have updated retropie-setup in the last few days - update again, and reinstall the emulator from binary. The copy Doom.sh and change the wad name in the copy. It's been simplified.

                        To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                        1 Reply Last reply Reply Quote 0
                        • BuZzB
                          BuZz administrators
                          last edited by BuZz

                          If you install/update lr-prboom on the latest RetroPie-Setup your RetroPie/roms/port/Doom.sh should contain

                          #!/bin/bash
                          "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 _PORT_ "doom" "/home/pi/RetroPie/roms/ports/doom/doom1.wad"
                          

                          so it's just a matter of copying this to "Doom2.sh" (if you want to play doom2, and making it look like

                          #!/bin/bash
                          "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 _PORT_ "doom" "/home/pi/RetroPie/roms/ports/doom/doom2.wad"
                          

                          the older wiki method should still work, but this is simpler.

                          To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                          1 Reply Last reply Reply Quote 0
                          • BuZzB
                            BuZz administrators
                            last edited by

                            I have made an update to retropie-setup to autoatically set up launch scripts for installed doom games if any of the following are installed doom1.wad, doom2.wad, tnt.wad and plutonia.wad.

                            If you have any of those wads in place in roms/ports/doom - you can then update retropie-setup and re-install any doom emulator and the launch scripts should be created.

                            To help us help you - please make sure you read the sticky topics before posting - https://retropie.org.uk/forum/topic/3/read-this-first

                            1 Reply Last reply Reply Quote 1
                            • S
                              SpacedInvader
                              last edited by

                              @BuZz @edmaul69

                              I changed the "WAD" to "wad" and the Updated to RetroPie 4.1.13, Uninstalled Ir-prboom and Reinstalled, and updated Ir-prboom, and then rebooted!

                              OMG! IT WORKS! IT WORKS! I just nee to reconfig the joystick, but that's nothing! I just need to get Ultimate Doom working , but I think I can figure that out on my own now that everything is up and running and playable!

                              Guys, I may have to buy you both a few pints next time I'm overseas!

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

                                ULTIMATE DOOM NOW WORKS!!!!

                                CASE SOLVED!

                                I will have to experiment with some of the Doom Master Level wads and see if I can get those to work now!

                                Again, THANKS!

                                herb_fargusH edmaul69E 2 Replies Last reply Reply Quote 0
                                • herb_fargusH
                                  herb_fargus administrators @SpacedInvader
                                  last edited by

                                  @SpacedInvader curious if music packs work as well...

                                  If you read the documentation it will answer 99% of your questions: https://retropie.org.uk/docs/

                                  Also if you want a solution to your problems read this first: https://retropie.org.uk/forum/topic/3/read-this-first

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

                                    @SpacedInvader ok so you need to install zdoom for the master levels. then you need to download a file on the internet called ZDMLMENU.pk3 . make sure its is named exactly as i posted it with caps and lowercase or rename it to what i put. of course put this and all the master levels wads in your doom rom folder. next you need to create a Doom2MasterLevels.sh file in /home/pi/RetroPie/roms/ports. in that file you will put this content:

                                    #!/bin/bash
                                    "/opt/retropie/supplementary/runcommand/runcommand.sh" 0 _SYS_ doom2ml
                                    

                                    now you need to give it a chmod. go to the commandline and type:

                                    sudo chmod +x /home/pi/RetroPie/roms/ports/Doom2MasterLevels.sh
                                    

                                    now you can put spaces in the name if it worked. then you need to create a folder in /opt/retropie/configs/ called doom2ml. in that folder you need to create a file called emulators.cfg. in that file you need to add this content:

                                    zdoom = "/opt/retropie/ports/zdoom/zdoom -iwad /home/pi/RetroPie/roms/ports/doom/doom2.wad -file /home/pi/RetroPie/roms/ports/doom/ZDMLMENU.pk3"
                                    
                                    default = "zdoom"
                                    

                                    now you i would give this file 0777 permissions just to make sure you dont have any conflicts. then you should be good to go.

                                    S 1 Reply Last reply Reply Quote 0
                                    • S
                                      SpacedInvader @herb_fargus
                                      last edited by

                                      @herb_fargus I have not tried adding the music yet. I may try next weekend, work has been stealing my evening play time at home. Right now, the sound effects work great!

                                      S 1 Reply Last reply Reply Quote 0
                                      • S
                                        SpacedInvader @edmaul69
                                        last edited by

                                        @edmaul69 I will be trying this out probably next weekend. I hope this works! I gotta head into work later this afternoon. Thanks! I will report any issues I have.

                                        I will install zdoom, and then update from binary first.

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

                                          @herb_fargus I installed the mp3 renamed music files for Doom. No music. I did rename all the files for the proper coding for epsisode and level... as is on the tutorial. :(

                                          Although, my Raspberry Pi has a lot of faint static. I do have the audio forced out of the 3.5mm jack, as right now I have it hooked up to my monitor, not a television. I am using Creative A60 Speakers. The sound GREAT on my computer. The Pi, not so much. I suppose I should look up the fixing audio, eh?

                                          edmaul69E 1 Reply Last reply Reply Quote 0
                                          • S
                                            SpacedInvader
                                            last edited by

                                            @herb_fargus

                                            Stupid me... UPLOAD FILES, THEN RESTART THE SYSTEM! I HAVE MUSIC!!!!!!

                                            Stupid me, stupid me.... I tackle zdoom on Sunday!

                                            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.