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

    Daphne Dragon's Lair Enhancement Tutorial?

    Scheduled Pinned Locked Moved Help and Support
    daphnedragons lair
    57 Posts 5 Posters 9.0k 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.
    • jamrom2J
      jamrom2 @roslof
      last edited by jamrom2

      @roslof said in Daphne Dragon's Lair Enhancement Tutorial?:

      @jamrom2 said in Daphne Dragon's Lair Enhancement Tutorial?:

      If there is a location written there... Daphne will be blonde and do blonde things... lol.
      The downside of Dragon's Lair and Space Ace is that if you want to run the other versions, you need to have copies of each movie set separately. You can't point several at the same location.

      The location is useful. It doesn't have to be a period. Changing it correctly will allow you to use a single set of movies.

      My directories, as an example:

      lair.daphne has all the stuff in it, including movies and framefile named lair.txt, which is using a period for its directory

      dle12.daphne ONLY has a framefile in it named dle12.txt. Nothing else. The top line is not a period. It simply uses the correct path to lair.daphne, which already has all of the required video and sound files.

      Top line for dle12.txt: ../lair.daphne/

      So, don't be a blonde (as you say) and duplicate video files unnecessarily. :P
      Enjoy the tip.

      LOL! Got me there. I always wondered if there was a way to allow more than one rom file accessing the same set of video files.

      I will try this as well.

      @Agrajag As far as everything else related to daphne and config files... all I did was load it from the Retropie menu and let it do it's own build. After that, it was just a matter of fiddling with the framefile, rom and folder names. They have to be exact and match each other. Otherwise it will never work. That's the only key to Daphne. It's finicky.

      Yes. dainput.ini is where it needs to be, and you edit it as stated. You have to run jtest /dev/input/js0 and find out what your input assignments are. Then put them into the dainput.ini file where needed.

      Follow this thread for more info.

      https://retropie.org.uk/forum/topic/16588/daphne-control-help/4

      The layout of the video files is whatever it was recorded in. I used the HD 780 size. I think they worked the best. Any high res on my Pi3b+ caused too many slowdowns. It's fine the way it looks. Very crisp. I get what you're saying about keeping the old video files... but once you use the new ones... you'll never go back. It kills your eyes. LOL. They did a very nice job converting them to HD.

      I did not experience any playback issues other than the usual Daphne performance. Daphne is excellent, but I find the death scenes to be a little shorter than I remember them being in the actual arcade. That's my only beef about the emulator... but you know what, who cares. It's great to have such a fun classic and other right at our fingertips.

      JR

      1 Reply Last reply Reply Quote 0
      • jamrom2J
        jamrom2 @Agrajag
        last edited by jamrom2

        @agrajag I pulled down the new set you did... for whatever reason, the last .rar file was corrupted and I blew the limit for today. These files are huge... and wow do the screenshots look incredible.

        I just wonder if I can play it on a Pi3b+ . The 1080 format really beats up the GPU. But I'll try.

        sirdrak did an amazing job on these and I can see them being the baseline for anyone running the DL & SA series of games.

        JR

        Here's the link if anyone else wants it.. but you have to create an account with Emuline in order to see the links.

        http://www.emuline.org/topic/1930-arcade-pc-dragons-lair-1-2-space-ace-remastered-using-deep-learning-1080p-169-43-formats/?_fromLogin=1

        A A 2 Replies Last reply Reply Quote 1
        • A
          AdamBeGood @jamrom2
          last edited by

          @jamrom2 I am still not sure about whether I want to move to HD files. Isn't the poor quality more retro and fitting anyway? 🤔

          But it's good to have the option to consider, so thanks for the link!

          jamrom2J 1 Reply Last reply Reply Quote 0
          • jamrom2J
            jamrom2 @AdamBeGood
            last edited by jamrom2

            @adambegood No it's not.

            The quality on the original laser discs was outstanding, especially for back then. What we got from the first gen CD's and DVD's were "best possible" rips of whatever laserdiscs or whatever they did to make them available for the general public. The original Digital Leisure DVD's don't compare at all to these cleaned-up versions. This is what DL should look like.

            There is no harm in using these HD files. I say preserve these old classics in their best form. You can always downgrade them with software if you want.

            I've used both. I've had DL running on Daphne in on of my MAME cabinets for well over 18 years. The cabinet is actually 20 years old now (well... it's really an original 1982 Stern Frenzy cabinet converted to a BerZerk MAME cabinet I restored 20 years ago) and I recently upgraded it to a new, smaller and faster PC with a 20" Dell LCD from an old 19" CRT.

            The difference is stunning. DL and all the Daphne games I have look incredible, as they should.

            1 Reply Last reply Reply Quote 0
            • A
              Agrajag @roslof
              last edited by

              @roslof So are you using the HD art version?

              My dle21.daphne is set up like yours where the location just points to the m2v file of lair.daphne.

              My dle.daphne has the following:

              dl21.ogg (which I don't think is being used since the frame file directs to lair.daphne and thus it would use the ogg(s) that are there.

              dle21.commands which contains just this:
              -bank 0 11001000 -bank 1 00100111 -useoverlaysb 2
              That tells the game how to set options for two banks of dip switches and to turn on score overlay 2 (which I'm just testing out).

              dle21.dat which I think is required.

              dle21.txt which is the framefile and has this in it:

              ../lair.daphne/
              
              151	lair.m2v
              

              Very simple and it works.

              The challenge is how to make it all work with the myriad of HD files.

              roslofR 1 Reply Last reply Reply Quote 0
              • A
                Agrajag @jamrom2
                last edited by

                @jamrom2

                Let me know if you get this working. I'd love to know your setup if you do. I've spent the entire day on it so far and somehow haven't gotten the combination lock picked yet to have it work.

                I mainly started by taking the lair.daphne, copying it (on the SD card) and then just replacing the M2V stuff and Ogg stuff, then the framefile and that just didn't want to run. I have to think my 4b can run 4:3 HD. I have his stuff running in PC-based Daphne with no problem, so I've seen it. Incredible. Now I have to have it.

                jamrom2J 1 Reply Last reply Reply Quote 0
                • roslofR
                  roslof @Agrajag
                  last edited by roslof

                  @agrajag said in Daphne Dragon's Lair Enhancement Tutorial?:

                  Very simple and it works.
                  The challenge is how to make it all work with the myriad of HD files.

                  Let's use Dragon's Lair as an example again. Use your favorite video set. Doesn't matter which set, provided it has matching ogg(s) and matching framefile named lair.txt. Exactly one full, complete set. It should all live in lair.daphne. This framefile should have just a period on its first line and only m2v/ogg data after that. The various DL ROMs should be in their separate place. You don't need anything else, except the optional .commands file for your settings. DAT files will generate automatically when Daphne runs with the correct framefile.

                  Once lair is tested and working, COPY the lair.txt framefile all by itself into the other Dragon's Lair directories, like dle21.daphne. You don't need any dle21 video files or ogg files or dat files. Optionally, you could use .command files. Then, you only need to rename your copied framefile as the same name as the romname (so in the dle21.daphne directory, rename lair.txt to dle21.txt). Then, just edit the framefile topline to point to the folder with the original videos, which should be '''../lair.daphne'''

                  That should get you squared.

                  roslofR A 2 Replies Last reply Reply Quote 0
                  • roslofR
                    roslof @roslof
                    last edited by

                    Oh, perhaps I misunderstood. Do you mean that you have a bunch of new videos, but you don't have a corresponding framefile that references them? The author should provide this. If not, you could TRY using one that already exists, and with a text editor search/replace or manually change so the references in the framefile match your videos. No guarantees this will work. Being off a few frames could cause issues, especially with the slates.

                    Sounds like your HD videos were derived from the 720P videos, so last resort, maybe check there?

                    A 2 Replies Last reply Reply Quote 0
                    • A
                      Agrajag @roslof
                      last edited by

                      @roslof I was just tripping over this issue now. I had created a folder on daphne called lair43hd and had everything named that assuming it wasn't important to DAPHNE, but then I noticed the runcommand error:

                      Parameters: 
                      Executing: SDL1_VIDEODRIVER=dispmanx SDL_DISPMANX_WIDTH=1920 SDL_DISPMANX_HEIGHT=1080 /opt/retropie/emulators/daphne/daphne.sh "/home/pi/RetroPie/roms/daphne/lair43hd.daphne"
                      ls: cannot access '/proc/kcore': No such file or directory
                      --DAPHNE version 1.0.13
                      --Command line is: /opt/retropie/emulators/daphne/daphne.bin lair43hd vldp -nohwaccel -framefile /home/pi/RetroPie/roms/daphne/lair43hd.daphne/lair43hd.txt -homedir /opt/retropie/emulators/daphne -fullscreen dle21 -useoverlaysb 2 
                      --CPU : UnknownCPU 0 MHz || Mem : 0 megs
                      --OS : Linux 5.4 || Video : Unknown video
                      --OpenGL: Compiled In
                      --RGB2YUV Function: C
                      --Line Blending Function: C
                      --Audio Mixing Function: C
                      Setting alternate home dir:
                      /opt/retropie/emulators/daphne
                      ERROR: Unknown game type specified : lair43hd
                      Bad command line or initialization problem (see daphne_log.txt for details). 
                      To run DAPHNE, you must specify which game to run and which laserdisc player you are using. 
                      For example, try 'daphne lair noldp' to run Dragon's Lair in testing mode.
                      

                      ERROR: Unknown game type specified: lair43hd

                      AHA. But WHY is it calling for that game TYPE? I even try to reset it in the commands file to call a valid game type (dle21, dle11, lair, etc.) but it sticks to this which suggests that it'd be really hard to have BOTH the HD version AND the non-HD version on the same system, no?

                      roslofR 1 Reply Last reply Reply Quote 0
                      • A
                        Agrajag @roslof
                        last edited by

                        @roslof No. That's not it. I have the correct framefile for the videos in question.

                        1 Reply Last reply Reply Quote 0
                        • roslofR
                          roslof @Agrajag
                          last edited by roslof

                          @agrajag said in Daphne Dragon's Lair Enhancement Tutorial?:

                          I had created a folder on daphne called lair43hd

                          The script that is launching Daphne assumes that the directory name matches the ROM name, so since you're using the script, folder names must match a strict criteria.

                          One option is that you could opt to create a different emulator line in ../configs/daphne/emulators.cfg that doesn't use the script and calls the daphne executable directly and force command-lines, and then only use it for a single game... But a bit of a pain. But it is possible.

                          Another option, if you just want the novelty of having two video sets is to maybe use the classic videos for lair, and use the newer enhanced videos for dle21. Here, if course, you would need dle21.daphne to contain a full m2v/ogg set and change the top of the dle21.txt framefile to a period.

                          The script itself could also be modified, but that'll take some knowledge.

                          A 1 Reply Last reply Reply Quote 0
                          • A
                            Agrajag @roslof
                            last edited by Agrajag

                            @roslog

                            Okay, that got it working, mainly.

                            My issue was the command file. I was trying to call a specific rom version within it and RP Daphne doesn't seem to like that. PC-based Daphne uses this to determine which rom version to apply. The valid commands list is here:

                            http://www.daphne-emu.com/mediawiki/index.php/CmdLine

                            Now mine just says:

                            -fastboot -useoverlaysb 2

                            This skips the long diagnostic load and puts up a score overlay (just testing this).

                            The video was stunning, BUT I think I might need something else in commands due to performance. I kept getting errors between scenes that said, "Video parsing" and it would list a percentage of it getting through the parsing. Perhaps this video is just too much for the Pi4b as well?

                            1 Reply Last reply Reply Quote 0
                            • A
                              Agrajag @roslof
                              last edited by Agrajag

                              @roslof I suspect the script is making things a bit harder:

                              #!/bin/bash
                              dir="$1"
                              name="${dir##*/}"
                              name="${name%.*}"
                              
                              if [[ -f "$dir/$name.commands" ]]; then
                                  params=$(<"$dir/$name.commands")
                              fi
                              
                              "/opt/retropie/emulators/daphne/daphne.bin" "$name" vldp -nohwaccel -framefile "$dir/$name.txt" -homedir "/opt/retropie/emulators/daphne" -fullscreen $params
                              

                              My scripting days are long behind me, but it's clear this script is hard-coding a number of things like the $name right before the vldp (which says use a virtual laser disc player) which is forcing "lair" to be the name of the version being run. If this were removed and you then just put the correct version in the commands file then you could run lair, dle11, dle22, etc. This is also a shame as the lair roms have a bug that doesn't support the opening bridge scene.

                              However, all that said, given the video parsing issues I'm seeing, I have doubts now that this version is even possible on Retropie on a pi4. It was nearly unplayable. Lost two lives when "Video parsing" popped up in the middle of a scene.

                              A roslofR 3 Replies Last reply Reply Quote 0
                              • A
                                Agrajag @Agrajag
                                last edited by Agrajag

                                Got a bit better.

                                I now have this as my lair.command file:

                                -fastboot -min_seek_delay 1000 -seek_frames_per_ms 20 -blank_searches -noissues

                                That did not eliminate the video parsing issues, but it did reduce them dramatically. Perhaps tweaking that some more might do it. I wonder if there's any changes we can make to the pi itself to help with this. It sounds like a video loading performance issue. Perhaps there's an option to increase video caching? I have no idea.

                                roslofR 1 Reply Last reply Reply Quote 0
                                • roslofR
                                  roslof @Agrajag
                                  last edited by

                                  @agrajag said in Daphne Dragon's Lair Enhancement Tutorial?:

                                  Got a bit better.

                                  I now have this as my lair.command file:

                                  -fastboot -min_seek_delay 1000 -seek_frames_per_ms 20 -blank_searches -noissues

                                  That did not eliminate the video parsing issues, but it did reduce them dramatically. Perhaps tweaking that some more might do it. I wonder if there's any changes we can make to the pi itself to help with this. It sounds like a video loading performance issue. Perhaps there's an option to increase video caching? I have no idea.

                                  It shouldn't parse during play. Might consider removing/deleting all of the DAT files and letting Daphne rebuild them. Then try playing again.

                                  A 1 Reply Last reply Reply Quote 0
                                  • A
                                    Agrajag @roslof
                                    last edited by Agrajag

                                    @roslof So you have the HD files playing on your pi without the video parsing?

                                    What's your command file look like?

                                    Also, which version? 4:3? 16:9?

                                    roslofR 1 Reply Last reply Reply Quote 0
                                    • roslofR
                                      roslof @Agrajag
                                      last edited by

                                      @agrajag said in Daphne Dragon's Lair Enhancement Tutorial?:

                                      which is forcing "lair" to be the name of the version being run.

                                      That's not what the script is doing.
                                      "name" is the prefix of the directory name, so in EmulationStation when you launch '''ace.daphne''', name becomes '''ace'''

                                      1 Reply Last reply Reply Quote 0
                                      • roslofR
                                        roslof @Agrajag
                                        last edited by

                                        @agrajag said in Daphne Dragon's Lair Enhancement Tutorial?:

                                        @roslof So you have the HD files playing on your pi without the video parsing?

                                        What's your command file look like?

                                        Also, which version? 4:3? 16:9?

                                        I'm not using the HD videos.

                                        1 Reply Last reply Reply Quote 0
                                        • roslofR
                                          roslof @Agrajag
                                          last edited by roslof

                                          @agrajag said in Daphne Dragon's Lair Enhancement Tutorial?:

                                          the lair roms have a bug that doesn't support the opening bridge scene.

                                          The original Dragon's Lair arcade game never had a playable bridge scene. dle21 does support the bridge scene correctly and there is no bug in the roms.

                                          A 1 Reply Last reply Reply Quote 0
                                          • A
                                            Agrajag @roslof
                                            last edited by

                                            @roslof

                                            A couple things, I believe we're saying the same thing on $name, but the problem is the PC version of Daphne uses the commands file (or command line) to determine which rom version to load. If you try to do that with the commands file here, it's pre-empted by what this script is doing. It only allows the items in the command file to be read as extra parameters beyond what the script is setting up.

                                            On the HD thing, sorry, I just assumed you were running those. So you don't think their large size should have any impact? I just re-created all the .dat files so we'll see. So far, it looks like it's a winner. I just played a game and had zero parsing issues.

                                            I also can't thank you enough for the back-and-forth. It's really cleared up a ton. I now have dle11, dle21 and lair versions all running.

                                            Thanks also for the update on the arcade version. It's been literally decades since I played it on a machine. I think I recall the bridge scene from from earlier version like an actual DVD version or maybe on some game system version.

                                            Lastly, you mentioned dle12. I'm not familiar with that version.

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