RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login

    New port Doom 3 (dhewm3)

    Scheduled Pinned Locked Moved Ideas and Development
    ports
    46 Posts 7 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.
    • quicksilverQ
      quicksilver @RussellB
      last edited by quicksilver

      @russellb said in New port Doom 3 (dhewm3):

      Ugh, just did a test... with X server, it responds to keystrokes. With X server, it doesn't.

      Wait, do you mean with or without? Dhewm3 needs an x server to run without issues as it uses desktop opengl.

      Does the script in the original post not work anymore?

      R 2 Replies Last reply Reply Quote 0
      • R
        RussellB @quicksilver
        last edited by

        @quicksilver - I kept running into issues compiling it due to 32/64-bit during cmake.

        I compiled it on another machine and installed it by hand.

        1 Reply Last reply Reply Quote 0
        • R
          RussellB @quicksilver
          last edited by RussellB

          @quicksilver said in New port Doom 3 (dhewm3):

          @russellb said in New port Doom 3 (dhewm3):

          Ugh, just did a test... with X server, it responds to keystrokes. With X server, it doesn't.

          Wait, do you mean with or without? Dhewm3 needs an x server to run without issues as it uses desktop opengl.

          Does the script in the original post not work anymore?

          Running it with X Server it does not respond to keyboard strokes. Graphics look great, but can't play.

          I take it back... when I run it from Pixel Desktop it works. Running it from EmulationStation has the keyboard problem.

          I tried on a different RetroPie install and it works, so I'm going to debug it any further.

          ExarKunIvE 1 Reply Last reply Reply Quote 0
          • ExarKunIvE
            ExarKunIv @RussellB
            last edited by

            @russellb i have come across the keyboard problem as well. i have it fixed i think...but im not totally sure. i still need to test

            as for killing XINIT. i just made a bash script that i used mapped keys with xboxdrv that will kill it for me, so i can exit just like all the ir- core systems.

            i will test later to see if my keyboard works or not

            RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
            RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
            Maintainer of RetroPie-Extra .

            R 1 Reply Last reply Reply Quote 0
            • R
              RussellB @ExarKunIv
              last edited by

              @exarkuniv I have to try that... I think I found the problem... when I startup dhewm3 there is an entry in runcommand.log:

              dhewm3 1.5.1rc3.1305 linux-armv7l Mar 7 2021 17:39:00 using SDL v2.0.10
              Running in background, disabling terminal support.

              This is causing the keyboard to not be recognized!

              Have to figure out now how my X is configured and fix that.

              ExarKunIvE R 2 Replies Last reply Reply Quote 0
              • ExarKunIvE
                ExarKunIv @RussellB
                last edited by

                @russellb i did test mine and right now my keys work just fine.
                i have Pi updated to the latest update that the devs have right now.

                other then that i dont know

                i use this postfor the kill script

                RPi3B+ / 200GB/ RetroPie v4.5.14, RPi4 Model B 4gb / 256gb / RetroPie 4.8.2
                RPi5 4gb / 512gb / RetroPie 4.8.9 -Basic
                Maintainer of RetroPie-Extra .

                R 1 Reply Last reply Reply Quote 0
                • R
                  RussellB @ExarKunIv
                  last edited by

                  @exarkuniv said in New port Doom 3 (dhewm3):

                  @russellb i did test mine and right now my keys work just fine.
                  i have Pi updated to the latest update that the devs have right now.

                  other then that i dont know

                  i use this postfor the kill script

                  Nice! For shutting it down afterwards.

                  1 Reply Last reply Reply Quote 1
                  • R
                    RussellB @RussellB
                    last edited by RussellB

                    @russellb Nope, that's not it... when I run it on my Pi image that works it also shows that message but the keyboard works.

                    Ok, so I got the keyboard to work by:

                    1. Fullscreen = No
                    2. Screen Size = 1920x1080

                    Couldn't figure out why it didn't work... something to do with the application not getting the keyboard focus fullscreen. Works great now! My OCD is appeased.

                    R 1 Reply Last reply Reply Quote 1
                    • R
                      RussellB @RussellB
                      last edited by

                      @russellb If you are OCD as me and want another entry in EmulationStation you can execute dhewm3 +set fs_game d3xp and this will run the RoE mod without having to select it within Doom 3.

                      I modified my install to support one configuration being used for all mods. Let me know if someone wants details.

                      R 1 Reply Last reply Reply Quote 0
                      • R
                        RussellB @RussellB
                        last edited by

                        @russellb So I've got Doom 3 and Doom 3 RoE running well. I recompiled the cdoom.so on the RPi 4 and when I try to startup that mod it gets to the selection screen for skill level then crashes. Has anyone had success getting that to work. I can provide my cdoom.so if need be.

                        1 Reply Last reply Reply Quote 0
                        • quicksilverQ
                          quicksilver
                          last edited by

                          @russellb which mod are you trying to run? Only certain ones work with dhewm3. See here: https://dhewm3.org/mods.html

                          R 1 Reply Last reply Reply Quote 0
                          • R
                            RussellB @quicksilver
                            last edited by

                            @quicksilver I just wanted to get Classic Doom 3 running. I compiled the custom 'dll' (cdoom.so) and copied the files as instructed. Maybe I did it wrong?

                            I copied the cdoom files into their own directory called cdoom, following the instructions on the dhewm3 site.

                            1 Reply Last reply Reply Quote 0
                            • quicksilverQ
                              quicksilver
                              last edited by quicksilver

                              @russellb iirc you'll also need to compile the custom SDK in order for the mod to work https://github.com/dhewm/dhewm3-sdk/tree/cdoom

                              I have cdoom running as well as a few of the other mods listed on the site. It's been a while since I compiled them so I'm a little fuzzy on the details. I do remember that when I first added cdoom mod to the game that there were some visual glitches because I didn't compile the SDK for it at first. But I never had crashing issues.

                              R 1 Reply Last reply Reply Quote 0
                              • R
                                RussellB @quicksilver
                                last edited by

                                @quicksilver Are you running ona Pi4 or Pi3?

                                1 Reply Last reply Reply Quote 0
                                • quicksilverQ
                                  quicksilver
                                  last edited by quicksilver

                                  @russellb I use it on a pi 4. Dhewm3 won't work on a standard retropie install on prior pi models because they don't support desktop OpenGL. This requirement is also why we have to run dhewm3 using X on the pi 4.

                                  Even if you could get the game to run on a pi 3 I shudder to think of how poor the performance would be. To have any kind of performance on even an overclocked pi 4 you still need to run the game at the lowest resolution and graphics settings.

                                  1 Reply Last reply Reply Quote 0
                                  • R
                                    RussellB
                                    last edited by

                                    @quicksilver I'm running it on an overclocked Pi4 and the performance is good enough to play, now that I've programmed xboxdrv to support it. I'll spend a little time debugging the crash this weekend to see what i come up with.

                                    quicksilverQ 1 Reply Last reply Reply Quote 0
                                    • quicksilverQ
                                      quicksilver @RussellB
                                      last edited by

                                      @russellb have you played doom 3 before? This is my first time playing it and it seems the developers were really obsessed with jump scares. The game plays a bit like a haunted theme park ride.

                                      R 1 Reply Last reply Reply Quote 0
                                      • R
                                        RussellB @quicksilver
                                        last edited by

                                        @quicksilver I started playing it again on the Nintendo Switch and wanted to see if it was available for my Pi build. Here's a weird one... After it got past the Intro it did an autosave. When I load the autosave, the game starts. If I try to start it with a new game, it crashes.

                                        1 Reply Last reply Reply Quote 0
                                        • E
                                          Evan
                                          last edited by

                                          Trying to install this on an rpi4 with aarch64 kernel, but it fails with the following in the log: -

                                          -- Setting -DD3_ARCH="aarch64" -DD3_SIZEOFPTR=4 -DD3_OSTYPE="linux"
                                          CMake Error at CMakeLists.txt:118 (message):
                                          CMake thinks sizeof(void*) == 4, but the target CPU looks like a 64bit CPU!

                                          CMake Error at CMakeLists.txt:119 (message):
                                          If you're building in a 32bit chroot on a 64bit host, switch to it with
                                          'linux32 chroot' or at least call cmake with linux32 (or your OSs
                                          equivalent)!

                                          -- Configuring incomplete, errors occurred!

                                          Has anyone any idea how to set the cmake flags to 32bit in the dhewm3.sh script?

                                          R 1 Reply Last reply Reply Quote 0
                                          • R
                                            RussellB @Evan
                                            last edited by

                                            @evan I ran into the same thing. I ended up compiling it on a different Pi image and then copying it over. You could also go into the make file and remove that warning and then recompile to see if that works.

                                            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.