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.2k 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.
    • ?
      A Former User
      last edited by

      I've updated the dependcies. Good catch.

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

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

        It seems XINIT doesnt work unless I modify the Xwrapper.config to allow all users permission (otherwise I get a connection refused error). Is this the correct way to do it?

        Not quite. X.org should work as regular user, granted you're running it from a regular terminal (like starting it via EmulationStation). There's no need for additional settings.

        I tried looking at the lincity-ng.sh build script which also uses XINIT but I dont see how it gets around this issue

        runcommand uses the XINIT marker to start the emulator via startx - see here. Same process is used for all emulators which have the running command prefixed by XINIT.

        If you have an error log, post it on pastebin.com and we can see how/where it fails.

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

          @mitu I restored the Xwrapper.config back to default to test and of course its still working properly. Im not sure why I was getting a connection refused error before. I have been testing on a fresh retropie install but maybe I need to wipe the card again and try from scratch to see if I can replicate the problem again.

          @gderber latest build script works great btw. Minus the issue with the x server not closing properly after quitting the game (though im not sure what can be done about that).

          ? 1 Reply Last reply Reply Quote 0
          • ?
            A Former User @quicksilver
            last edited by

            @quicksilver I do wonder if we can modify the .sh file to look more like

            runcommand.sh .... && kill xserver
            

            Although there needs to be an if. We don't want to kill the xserver for people who are running a desktop environment. It's probably more complicated than it's worth, and more likely to introduce more bugs

            A R 2 Replies Last reply Reply Quote 0
            • A
              aidy80's @A Former User
              last edited by aidy80's

              If I wanted to run a particular Doom 3 mod on Retro Pie (the one in question is Phantasm Beyond 2 The Never Dead) is it a simple case of installing dhewm3 and then placing the mod in the mods folder like on a PC?

              quicksilverQ 1 Reply Last reply Reply Quote 0
              • quicksilverQ
                quicksilver @aidy80's
                last edited by

                @aidy80-s it has to be a doom 3 mod that is compatible with the dhewm3 engine. You'll likely need to compile the dhewm3 SDK for it as well (assuming it's compatible in the first place).

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

                  I see this topic is old. I was trying to figure out where to put the killall xinit to shutdown the X server after dhewm3 is terminated. I ended up writing a monitor script that runs before dhewm3 and waits for the defunct process to appear and then shuts down the X server. Is there an easier way?

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

                    @russellb I'm not sure of the best way to solve the issue. Unfortunately it looks like the originator of the script has gone AWOL.

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

                      @quicksilver - the way I setup works, I just hate having a custom startup script but so be it. Bad code somewhere in dhewm3 preventing a proper shutdown.

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

                        @russellb as a work around I was using cntrl+alt+backspace to force close the x server after closing dhewm3.

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

                          @quicksilver I'm trying to see if I can get xboxdrv running with it so I can use a gamepad. Might be able to map that key sequence.

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

                            @quicksilver. So I didn't actually try playing it after it goes into the game. It's not recognizing the keyboard on the Pi4. Do you run it on the 4, and if so, can you share your executable?

                            Ugh, just did a test... with X server, it responds to keystrokes. With X server, it doesn't. Other games that use X work fine, e.g. Hurrican.

                            quicksilverQ 1 Reply Last reply Reply Quote 0
                            • 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
                                            • 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.