Jump to content
LaunchBox Community Forums

Daphne - Different resolution per game


Light Sock

Recommended Posts

Hi fellow Launchboxers!

I've been setting up the Daphne emulator the way I wanted so far. I just want to customize the screen resolution and dip switch depending on the game.

All games use this resolution

-x 800 -y 600

 except for the Bluray remasters of Dragon's Lair, Dragon's Lair II and Space Ace which uses 

-x 1280 -y 720

I've found this post on the forums that seems to be the solution

Unfortunately I'm not able to have my parameters to save. Here's how I've setup my emulator batch file

@echo off


if "%1"=="ace" -x 1280 -y 720 set bank= -bank 0 00000010 -bank 1 00000001& goto :start

if "%1"=="astron" -x 800 -y 600 set bank= -bank 0 00000000 -bank 1 00000000& goto :start

if "%1"=="badlands" -x 800 -y 600 set bank= -bank 0 00000010 -bank 1 10000011& goto :start

if "%1"=="bega" -x 800 -y 600 set bank= -bank 0 00000000 -bank 1 00000111& goto :start

if "%1"=="cliff" -x 800 -y 600 -vertical_stretch 24 set bank= -bank 0 00000000 -bank 1 01000000 -bank 2 00000000 -bank 3 01111011& goto :start

if "%1"=="cobraab" -x 800 -y 600 set bank= -bank 0 00000000 -bank 1 01001000& goto :start

if "%1"=="esh" -x 800 -y 600 set bank=& goto :start

if "%1"=="galaxy" -x 800 -y 600 set bank= -bank 0 00000000 -bank 1 00000000& goto :start

if "%1"=="gpworld" -x 800 -y 600 set bank=& goto :start

if "%1"=="interstellar" -x 800 -y 600 set bank= -bank 0 00110001 -bank 1 00000000& goto :start

if "%1"=="dle21" -x 1280 -y 720 set bank= -bank 0 11011001 -bank 1 00100111& goto :start

if "%1"=="lair2" -x 1280 -y 720 set bank=& goto :start

if "%1"=="mach3" -x 800 -y 600 set bank= -bank 0 01000100& goto :start

if "%1"=="roadblaster" -x 800 -y 600 set bank= -bank 0 00000000 -bank 1 00000001& goto :start

if "%1"=="sdq" -x 800 -y 600 set bank= -bank 0 00100001 -bank 1 00000000& goto :start

if "%1"=="tq" -x 800 -y 600 set bank=& goto :start

if "%1"=="uvt" -x 800 -y 600 set bank= -bank 0 00000000& goto :start


set bank= -bank 0 11011001 -bank 1 00100111


:start


daphne.exe %1 vldp -blank_searches -fastboot -fullscreen_window -ignore_aspect_ratio -opengl -startsilent -framefile ..\..\Games\LaserDisc\%1\%1.txt -noissues -noserversend

I also can't get "-vertical_stretch 24" value to work with Cliff Hanger to remove black bars.

Thanks for helping me and I'm sure this will be great for many other LaserDisc users out there!

Edited by G22
Link to comment
Share on other sites

Try moving the command after the bank settings.  So for Cliff Hanger try and put stretch mode after the last bank entry and before the ampersand:

if "%1"=="cliff" set bank= -bank 0 00000000 -bank 1 01000000 -bank 2 00000000 -bank 3 01111011 -vertical_stretch 24& goto :start 

The above command will perform the stretch on my setup, but not if placed prior to the "set bank" entries.

Edited by sundogak
Link to comment
Share on other sites

Hi @sundogak and thank you for your reply! I was afraid no one would help me because it's an old emulator! Here's how I tried it and it's still not working.

 

@echo off


if "%1"=="ace" set bank= -bank 0 00000010 -bank 1 00000001 -x 1280 -y 720& goto :start

if "%1"=="astron" set bank= -bank 0 00000000 -bank 1 00000000 -x 800 -y 600& goto :start

if "%1"=="badlands" set bank= -bank 0 00000010 -bank 1 10000011 -x 800 -y 600& goto :start

if "%1"=="bega" set bank= -bank 0 00000000 -bank 1 00000111 -x 800 -y 600& goto :start

if "%1"=="cliff" set bank= -bank 0 00000000 -bank 1 01000000 -bank 2 00000000 -bank 3 01111011 -vertical_stretch 24& goto :start

if "%1"=="cobraab" set bank= -bank 0 00000000 -bank 1 01001000 -x 800 -y 600& goto :start

if "%1"=="esh" set bank= -x 800 -y 600& goto :start

if "%1"=="galaxy" set bank= -bank 0 00000000 -bank 1 00000000 -x 800 -y 600& goto :start

if "%1"=="gpworld" set bank= -x 800 -y 600& goto :start

if "%1"=="interstellar" set bank= -bank 0 00110001 -bank 1 00000000 -x 800 -y 600& goto :start

if "%1"=="dle21" set bank= -bank 0 11011001 -bank 1 00100111 -x 1280 -y 720& goto :start

if "%1"=="lair2" set bank= -x 1280 -y 720& goto :start

if "%1"=="mach3" set bank= -bank 0 01000100 -x 800 -y 600& goto :start

if "%1"=="roadblaster" set bank= -bank 0 00000000 -bank 1 00000001 -x 800 -y 600& goto :start

if "%1"=="sdq" set bank= -bank 0 00100001 -bank 1 00000000 -x 800 -y 600& goto :start

if "%1"=="tq" set bank= -x 800 -y 600& goto :start

if "%1"=="uvt" set bank= -bank 0 00000000 -x 800 -y 600& goto :start


set bank= -bank 0 11011001 -bank 1 00100111


:start


daphne.exe %1 vldp -blank_searches -fastboot -fullscreen_window -opengl -startsilent -ignore_aspect_ratio -framefile ..\..\Games\LaserDisc\%1\%1.txt -noissues -noserversend

Could it be that part of the code?

set bank= -bank 0 11011001 -bank 1 00100111

Thanks for helping!

Link to comment
Share on other sites

When you say "not working", clarify what isn't working. Is it not working at the resolution you want or is it not working at all?  Did it work before you started adding in the -x and -y parameters?  If not working at all then typically that is path setup issue along with framefile problem. One thing I did notice later is your batch command is missing a variable for the dip switch bank settings:

In your batch file you should have something like this since otherwise the bank settings are not getting passed when called in the batch. So add this to your last line in your batch file replacing your existing -fastboot entry:

-fastboot%bank%

Other things to try.  When working with Daphne and its goofy setup, you are best to make sure your command line that is being sent is working outside LB. Once you know works, can work backward that the script is working with substitute variables like in the batch file.  So open up a command line (easiest to do in text editor and paste in) and insert the command line (with the % variables substituted in) to test it and see if it works. If not it is an error in your setup somewhere. 

So for example this is what I have in my batch command (attached entire file to this post):

daphne.exe %1 vldp -framefile G:\Emulators\Daphne\roms\vldp\%1\%1.txt -blend -blank_searches -min_seek_delay 1000 -seek_frames_per_ms 20 -homedir G:\Emulators\Daphne -fastboot%bank% -fullscreen -nocrc -noissues -noserversend -sound_buffer 2048  -useoverlaysb 1

Note that your paths will differ depending on where the frame files are located.  If testing this is what I use in a DOS command, say for Cliffhanger substituting in the variables the batch command will insert.  If you do similar for your directories, you should get a working window open up with it stretched (didn't bother with the bank settings here).

daphne.exe cliff vldp -framefile G:\Emulators\Daphne\roms\vldp\cliff\cliff.txt -blend -blank_searches -min_seek_delay 1000 -seek_frames_per_ms 20 -homedir G:\Emulators\Daphne -fastboot -fullscreen -nocrc -noissues -noserversend -sound_buffer 2048 -useoverlaysb 1 -vertical_stretch 24 

Using non-full screen, at the res you are trying to use and I do the same as above, I get this entry which opens up a window at 800x600 and runs:

daphne.exe cliff vldp -framefile G:\Emulators\Daphne\roms\vldp\cliff\cliff.txt -blend -blank_searches -min_seek_delay 1000 -seek_frames_per_ms 20 -homedir G:\Emulators\Daphne -fastboot -nocrc -noissues -noserversend -sound_buffer 2048 -useoverlaysb 1 -vertical_stretch 24 -x 800 -y 600

If all working with the command then something is off with the batch file.

This link here helps with what is what on the command lines

Lastly, not sure about the comment about the 800x600 resolution.  The VLDP files I have are either 512x480, 640x480, or 720x480 (lair, space ace).  So I would double check your VLDP file resolutions and confirm 800x600.  If your goal is to have no-stretch then wouldn't be the case with that setting.  The fullscreen command does okay job managing all that or you can use multiples of whatever resolution you have relative to your monitor.  

 

 

daphnebatch - Copy.bat

Edited by sundogak
removed -ignore_aspect_ratio flag since want to original aspect
Link to comment
Share on other sites

Thanks a lot for your help, I've finally figured this out with your tips. I hope this will help others in future in case they're also using the 16/9 bluray videos. BTW the videos needs to be converted to 1280x720 otherwise Daphne won't work with the videos. Someone already converted them if you search on the internet as it's not authorized to put the link here.

Basically this "-fullscreen_window" would make my video resolution parameters to be ignored. So I've set only "-fullscreen" instead and my parameters now registers.

Also "800x600" and "640x480" resolutions gets ignored for some reasons. So for all 4/3 games I've wrote "-x 512 -y 480" and the parameter registers correctly.

For 16/9 resolutions "-x 1280 -y 720" registers correctly.

Here's a copy of my batch file if it can help anyone. Your games needs to be in Launchbox/Games/LaserDisc folder. Emulator needs to be in Launchbox/Emulator/Daphne folder.

@echo off

if "%1"=="ace" set bank= -bank 0 00000010 -bank 1 00000001 -x 1280 -y 720& goto :start

if "%1"=="astron" set bank= -bank 0 00000000 -bank 1 00000000 -x 512 -y 480& goto :start

if "%1"=="badlands" set bank= -bank 0 00000010 -bank 1 10000011 -x 512 -y 480& goto :start

if "%1"=="bega" set bank= -bank 0 00000000 -bank 1 00000111 -x 512 -y 480& goto :start

if "%1"=="cliff" set bank= -bank 0 00000000 -bank 1 01000000 -bank 2 00000000 -bank 3 01111011& goto :start

if "%1"=="esh" set bank= -x 512 -y 480& goto :start

if "%1"=="galaxy" set bank= -bank 0 00000000 -bank 1 00000000 -x 512 -y 480& goto :start

if "%1"=="gpworld" set bank= -x 512 -y 480& goto :start

if "%1"=="interstellar" set bank= -bank 0 00110001 -bank 1 00000000 -x 512 -y 480& goto :start

if "%1"=="dle21" set bank= -bank 0 11011001 -bank 1 00100111 -x 1280 -y 720& goto :start

if "%1"=="lair2" set bank= -x 1280 -y 720& goto :start

if "%1"=="roadblaster" set bank= -bank 0 00000000 -bank 1 00000001 -x 512 -y 480& goto :start

if "%1"=="sdq" set bank= -bank 0 00100001 -bank 1 00000000 -x 512 -y 480& goto :start

if "%1"=="tq" set bank= -x 512 -y 480& goto :start

set bank= -bank 0 11011001 -bank 1 00100111

:start

daphne.exe %1 vldp -framefile ..\..\Games\LaserDisc\%1\%1.txt -opengl -fullscreen -ignore_aspect_ratio -blank_searches -fastboot%bank% -startsilent -noissues -noserversend

The only thing I can't get to work is Cliff Hanger that no matter what parameters I write it gets ignored. It looks like even if not written the "-vertical_stretch 24" parameter is automatically done. I just can't explain that.

Thanks a lot for the help, much appreciated!

Edited by G22
Link to comment
Share on other sites

Glad you got it working. 

With the fullscreen and ignore aspect switches it makes redundant any resolution settings in -x and -y switches since it will just blow up the screen to fit.  Won't hurt anything though. 

Odd on the Cliff Hanger issue.  Only thing is the -opengl switch but tried that and mine still works with that on or off, but maybe different driver.  Daphne is always a bit of dark art to get it working and with no improvements in the emulator it is stuck in time on support. Plus, Daphne definitely doesn't like the LB Pause screen feature, which is a bummer.  Sadly the Retroarch core is also non-operational (even if jump through the hoops, will get no sound) so that isn't an option either.   

Link to comment
Share on other sites

Hi sundodak! I've tested more and I can confirm that using "-opengl" make the "-vertical_stretch 24" parameter ignored.

At first removing ""-opengl" didn't changed anything for obscure reasons. But after playing with other values, trial and error, I finally got a consistent result adding and removing "-opengl".

I don't really know how using openGL is that much better. I've removed it and now Cliff Hanger is displaying like I want. 

Let me know if I should really use openGL and why! I'll edit my batch file accordingly!

Link to comment
Share on other sites

I didn’t have the OpenGL switch in my setup. I gave it a whirl when I saw in your file but didn’t notice any difference either way.   So at least for me, will go without it.  Slowly learning to not fiddle if things are working fine.  The wiki notes it may be buggy but “faster” with OpenGL, but hard to say if they were meaning the feature or OpenGL drivers at that time (+10 years now).  Plus, not sure what sort of speed needed, not talking 3D emulation with Daphne.  If you wanted to have it for all but Cliff Hanger could add the -OpenGL switch to the top command lines individually and leave off for Cliff Hanger if want no bands.  

Link to comment
Share on other sites

43 minutes ago, sundogak said:

I didn’t have the OpenGL switch in my setup. I gave it a whirl when I saw in your file but didn’t notice any difference either way.   So at least for me, will go without it.  Slowly learning to not fiddle if things are working fine.  The wiki notes it may be buggy but “faster” with OpenGL, but hard to say if they were meaning the feature or OpenGL drivers at that time (+10 years now).  Plus, not sure what sort of speed needed, not talking 3D emulation with Daphne.  If you wanted to have it for all but Cliff Hanger could add the -OpenGL switch to the top command lines individually and leave off for Cliff Hanger if want no bands.  

Exactly what I would have done but honestly I'm thinking just like you as I can see no difference. OpenGL was probably a great alternative back then with slower spu.

Link to comment
Share on other sites

  • 1 year later...
  • 1 year later...
7 hours ago, SLUGIE79 said:

Hi There 

i’m trying to set up Daphne and I cannot get it to work properly I’m struggling.

Is there a way to Make Daphne fullscreen 16:9 in 4k on launch box

I have the game is working on Daphne emulator fine and I’ve looked at the different resolutions but there’s none for 3840x2160

is there a workaround for this and maybe a bat file that i could use thanks in advance

The fullscreen and ignore aspect commands will make game full screen and stretch no matter the original resolution of the media and is discussed above in relation to the batch file command:

-fullscreen -ignore_aspect_ratio 

Keep in mind this just blows up the video and stretches it.  There is no "upscaling" within Daphne and most definitely not at 4K. There are some enhanced Dragon's Lair and Space Ace video files that are actually upscaled using AI at 1920x1080. But in most cases these are 480p generation games, so none are truly wide screen. If not using full screen option, then the screenres command tells Daphne what resolution to use via command line or batch file. You can see examples above.   

In theory, you could set the resolution command like below, but you will get an error within Daphne since it will not recognize that high of resolution:

-x 3840 -y 2160 -fullscreen

Daphne is an old emulator so 4K isn't going to be option.  So best you are going to do is use wide screen resolution like:

-x 1920 -y 1080 -fullscreen

But again, this will stretch almost all the Laser Disc based games.  The easiest is just to use the fullscreen command (without any specific screenres setting) and let the emulator size realizing it will have black bars on the sides.  

Edited by sundogak
Link to comment
Share on other sites

4 hours ago, SLUGIE79 said:

Hi sundogak

so if I use the above resolution on a 4k tv with the resolution on pc 3840 x 2160

Will it fill the whole screen?? 

Answered above saying that that resolution won't work for Daphne.  You will get an error. 

Also noted above:

The fullscreen and ignore aspect commands will make game full screen and stretch no matter the original resolution of the media and is discussed above in relation to the batch file command:

-fullscreen -ignore_aspect_ratio 
Edited by sundogak
Link to comment
Share on other sites

18 hours ago, SLUGIE79 said:

Hi sundogak

Apologies if im repeating myself 

I haven’t been trying to do the 4K resolution

I was going yo use 1920x1080 and have fullscreen and add ignore aspect ratio.

I’m using the batchfiles off the video from the person on the image that I’ve added I’m using the batchfiles off the video from the person on the image that I’ve added

So basically all the boxes that I tix in Daphne will be there already and all I need to do is change the resolution to 1920x1080 in the batch file?

I did try one of the resolutions on the Daphne emulator which fitted my screen perfect but it was 4:3 ratio and i would like 16:9 ratio 

This video utube was out in 2019 And maybe this is outdated and there is an easier way to do it And maybe this is outdated and there is an easier way to do it, What the guy does in the video is enables command line within Daphne and then copy and paste it to the batch file for each game.

Then use his dummy files to act as loaders for when you want to start a game in lunchbox

Then use his dummy files to act as loaders for when you want to start a game in lunchbox

The way that ETA prime has done it is by using the text files for each rom and added Into launch box that way and supplies a batch file with that video the only issue with that is you are unable to download that batch file now

into launch box that way and supplies a batch file with that video the only issue with that is you are unable to download that batch far now I’m also assuming the line that you put above is what you put in to the batch file??

 I’m also assuming the line that you put above is what you put in to the batch file

Also do you need a default command line for Daphne emulator in launch box

are you able to add screen shots of your batch file contents or upload them to make it easier for me possibly and also of the importation to launch box screen shots 

thanks in advance I’m quite used to the way launch box works now but this one is a pain.

 

B0A4C51E-D084-4EE3-B206-CA8193543749.jpeg

EF23A753-9664-4F09-98E3-98A0FCC689A7.png

D7801D57-FF93-41ED-9F71-F26BE8E598C4.png

See this thread on setup. If using ignore aspect and full screen commands, then you don't need the resolution since it will be overridden.  

 

 

Edited by sundogak
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...