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
dle21.daphne ONLY has a framefile in it named dle21.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 dle21.txt:
../lair.daphne/
So, don't be a blonde (as you say) and duplicate video files unnecessarily. :P
Enjoy the tip. -
@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
-
@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.
-
@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!
-
@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.
-
@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.
-
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.
-
@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.
-
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?
-
@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?
-
@roslof No. That's not it. I have the correct framefile for the videos in question.
-
@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.
-
@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?
-
@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.
-
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.
-
@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.
-
@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?
-
@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''' -
@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.
-
@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.
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.