Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Daphne in Mamewah game options programming  (Read 3554 times)

0 Members and 1 Guest are viewing this topic.

killbill

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 290
  • Last login:June 13, 2025, 09:11:58 pm
  • When I die, I want to go to arcade heaven!
Daphne in Mamewah game options programming
« on: September 26, 2004, 04:02:31 pm »
Hi,

I have a question:

I'm running Daphne through Mamewah.  I would like to change Dragon's Lair and Space Ace's LD Latency to 150ms.

Also, Cliff Hanger is skipping the death "hanging" scene when I die.  Is there a way to get this option turned on?

I know how to do all of this in DaphneLoader, but I would assume in Mamewah, there needs to be a little programming.

Any help is truly appreciated.
Thanks.
« Last Edit: September 26, 2004, 04:02:55 pm by killbill »

killbill

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 290
  • Last login:June 13, 2025, 09:11:58 pm
  • When I die, I want to go to arcade heaven!
Re:Daphne in Mamewah game options programming
« Reply #1 on: September 27, 2004, 01:00:08 pm »
Anyone?

clanggedin

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1071
  • Last login:July 02, 2012, 11:08:55 pm
  • O'DOYLE RULES!!!
Re:Daphne in Mamewah game options programming
« Reply #2 on: September 27, 2004, 01:25:02 pm »
There shouldn'y be any progamming in Mamewah except the pointing the ini file to the daphne exe file. Everything else needs to be done in Daphneloader.

killbill

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 290
  • Last login:June 13, 2025, 09:11:58 pm
  • When I die, I want to go to arcade heaven!
Re:Daphne in Mamewah game options programming
« Reply #3 on: September 27, 2004, 01:46:00 pm »
Hi,

Thanks for the response.  It's my understanding that Mamewah bipasses DaphneLoader and loads straight from Daphne. exe

Therefore options selected in DaphneLoader don't show up when loading through Mamewah.

Am I incorrect?

btoddkelley

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 247
  • Last login:October 20, 2013, 04:52:05 pm
  • I want to Build My Own Arcade Controls!!
Re:Daphne in Mamewah game options programming
« Reply #4 on: September 27, 2004, 02:36:07 pm »
unfortunately Dpahne does not use a config file like many other emulators. You could a specific command with mamewah that would work for 1 game only.(EG alt launches a game with just like the 1 button but with an extra command). I don't think there is a way to set options for each game. (short of compiling your own version of daphne.) If you find a way, let me know!

Todd
For it is not enough to have a good mind, rather the main thing is to apply it well.

- Descartes

killbill

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 290
  • Last login:June 13, 2025, 09:11:58 pm
  • When I die, I want to go to arcade heaven!
Re:Daphne in Mamewah game options programming
« Reply #5 on: September 27, 2004, 05:48:13 pm »
Hey,

I found some info.  Turns out in the Daphne.bat file we create to launch Daphne from Mamewah, there is a possibility of using "if" commands to set certain game functions.

Not real batch code, but if you enter something like:

if %1 = lair then [launchwiththisswitch] etc.

it should work.  

Note, in Daphneloader in the advanced functions, there is a "display commandline before launching" option for each game.  If you select that and copy the command line info that displays when you run the game, all the pieces should be there to complete the "if" commands in the Daphne.bat file.

Here's the thing, does anyone know the proper BAT formatting code for an "if" command for this situation?

Let's put this mystery to bed Scooby Doo style. :)

« Last Edit: September 27, 2004, 05:49:19 pm by killbill »

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re:Daphne in Mamewah game options programming
« Reply #6 on: September 28, 2004, 12:10:42 pm »
Hey,

I found some info.  Turns out in the Daphne.bat file we create to launch Daphne from Mamewah, there is a possibility of using "if" commands to set certain game functions.

Not real batch code, but if you enter something like:

if %1 = lair then [launchwiththisswitch] etc.

it should work.  

Note, in Daphneloader in the advanced functions, there is a "display commandline before launching" option for each game.  If you select that and copy the command line info that displays when you run the game, all the pieces should be there to complete the "if" commands in the Daphne.bat file.

Here's the thing, does anyone know the proper BAT formatting code for an "if" command for this situation?

Let's put this mystery to bed Scooby Doo style. :)



If the batch file is called with

batch lair -framefile xxx.txt -vldp

that's 5 parameters. "lair" is the second parameter, or %2.

So your batch.bat would be:

@IF "%2" == "lair" daphne.exe %2 %3 %4 %5
@IF "%2" == "spaceace" etc....

The ampersand makes the command not print out. Remove it for debugging.

Then you can set MAMEWah to run the command to launch Dragon's Lair thusly:

batch lair -framefile xxx.txt -vldp >log.txt

The >log.txt redirects the output from the batch file to log.txt. Daphne creates its own log which will be more helpful.

What "certain game functions" are you trying to use?

HTH,
Buddabing
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

killbill

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 290
  • Last login:June 13, 2025, 09:11:58 pm
  • When I die, I want to go to arcade heaven!
Re:Daphne in Mamewah game options programming
« Reply #7 on: September 28, 2004, 01:22:19 pm »
Hi,

I'm not sure I really get all that you're saying above.  Is all of that in the .BAT file, or are there supposed to be two different files?

I'm trying to get Dragon's Lair and Space Ace's LD latency to be 202,

and enable the hanging scenes in Cliff Hanger.

Thanks,
Jason

Buddabing

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1845
  • Last login:February 12, 2015, 02:51:45 pm
  • I'm a llama!
Re:Daphne in Mamewah game options programming
« Reply #8 on: September 28, 2004, 02:56:37 pm »
Hi,

I'm not sure I really get all that you're saying above.  Is all of that in the .BAT file, or are there supposed to be two different files?

I'm trying to get Dragon's Lair and Space Ace's LD latency to be 202,

and enable the hanging scenes in Cliff Hanger.

Thanks,
Jason

It would be one batch file with a bunch of ifs. But you could write a batch file for each game if you want. Just make sure that your call to daphne has the same number of % parameters that you actually want to supply.

FYI if you have more than 9 parameters we'll have to do something a bit more complex.
I have changed my nickname to "Cakemeister". Please do not PM the Buddabing account because I do not check it anymore.

Please read the wiki!

vincemash

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:March 02, 2009, 12:24:24 pm
Re:Daphne in Mamewah game options programming
« Reply #9 on: October 21, 2004, 01:59:40 pm »
Has anyone gotten this working?????

gap

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 48
  • Last login:November 02, 2004, 09:06:12 pm
  • Howdy!
    • MAMEGAP
Re:Daphne in Mamewah game options programming
« Reply #10 on: October 22, 2004, 02:02:29 pm »
Could you just make individual .bat files for each game and tell Mamewah that these .bat files are your ROMS?

Given the low number of Daphne games, this wouldn't be very difficult.

Breaker

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 206
  • Last login:December 10, 2024, 11:38:20 am
Re: Daphne in Mamewah game options programming
« Reply #11 on: March 09, 2005, 12:37:15 am »
Hey KillBill,

Did you ever figure out a way to pass extra command line parameters using 'IF' statements in the DAPHNE.bat file?

Breaker

Breaker

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 206
  • Last login:December 10, 2024, 11:38:20 am
Re: Daphne in Mamewah game options programming
« Reply #12 on: March 09, 2005, 01:24:50 am »
Hello again,

I was playing around with this feature and came up with this batch file - it seems to works:


@IF "%1" == "LAIR2" GOTO LAIR2
@IF "%1" == "DLE20" GOTO DLE20

:LAIR2
start/wait e:\daphne\Daphne.exe %1 vldp -framefile e:\daphne\framefile\%1.txt -fullscreen -version 6
GOTO END

:DLE20
start/wait e:\daphne\Daphne.exe %1 vldp -framefile e:\daphne\framefile\%1.txt -fullscreen -bank 0 11011011 -bank 1 01110111
GOTO END

start/wait
e:\daphne\Daphne.exe %1 vldp -framefile e:\daphne\framefile\%1.txt -fullscreen
GOTO END

:END
exit


The screen wrap on this message may make it look like the lines starting with 'start/wait' are on two separate lines on some folk's screens but the whole command line (including any additional switches) must be on the same line for thsi to work properly. You can add any switches you like to the end of the command line for specific games. For example, this file will run specific command lines for Dragon's Lair 2 (LAIR2) and Dragon's Lair Enhanced (DLE20); otherwise the regular command line is run. This way you don't have to create a separate "IF" statement for games which don't use additional switches.

As I mentioned, it seems to work well, but if I've made some programming errors which aren't obvious to me please let me know.

Breaker

Chris

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
Re:Daphne in Mamewah game options programming
« Reply #13 on: March 09, 2005, 12:39:56 pm »
Could you just make individual .bat files for each game and tell Mamewah that these .bat files are your ROMS?

Given the low number of Daphne games, this wouldn't be very difficult.

That's what I do.

I'd love it if MAMEWah had an option like the Names file to deal with this, so we could create a daphne.arg that had something like:

dle20|-fullscreen -bank 0 11011011 -bank 1 01110111
lair|-fullscreen -bank 0 11011011 -bank 1 01110000

etc.

--Chris


« Last Edit: March 09, 2005, 12:42:23 pm by Chris »
--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re:Daphne in Mamewah game options programming
« Reply #14 on: March 09, 2005, 01:18:32 pm »
I'd love it if MAMEWah had an option like the Names file to deal with this, so we could create a daphne.arg that had something like:

  It does. You can specify a commandline for each individual ROM if you like which will accomplish the same thing.  MAMEWAH Config can handle this, though I haven't tested it too much so it could be broken.

-Steve

Chris

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
Re:Daphne in Mamewah game options programming
« Reply #15 on: March 09, 2005, 01:29:50 pm »
I'd love it if MAMEWah had an option like the Names file to deal with this, so we could create a daphne.arg that had something like:

--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com

Breaker

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 206
  • Last login:December 10, 2024, 11:38:20 am
Re: Daphne in Mamewah game options programming
« Reply #16 on: March 09, 2005, 02:49:53 pm »

I haven't seen this mentioned in the MAMEWAH docs...but I could have easily missed it.
I'll take a look as well.
Please post back if you find something.

Breaker

screaming

  • Sweet! I'mma go make me some popovers!
  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2124
  • Last login:August 14, 2019, 03:15:34 pm
  • Registered lUser
    • shift eight (*) generation
Re: Daphne in Mamewah game options programming
« Reply #17 on: March 09, 2005, 03:50:03 pm »
  It's not really documented all that well, each emulator config has a game_specific_config_path parameter that you specify a folder for. In this folder make a text file for each rom and name it <romname>.cfg. In this file place the ROM-specific commandline. By default it's whatever's specified for commandline_format.

  Take a look at the whatsnew.txt. Minwah added it in 1.6b8.

  Oh, FYI, this probably won't work for PC Games but it's worth a shot!

-Steve
« Last Edit: March 24, 2005, 01:03:00 pm by screaming »

Chris

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com

jelwell

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 460
  • Last login:December 24, 2014, 03:47:21 pm
  • I'm a llama!
Re: Daphne in Mamewah game options programming
« Reply #19 on: March 10, 2005, 02:23:36 pm »
Here's what I do to solve this problem (because I toggle all sorts of switches like infinite lives):

I load the game in DaphneLoader with all the switches I want and tell DaphneLoader to display the Command line before launching the game.
Then I copy that Command Line into a bat file. One file for every Daphne game I want.
Then I Create a Shortcut to each Bat file. And name the Shortcut whatever I want to show up in MAMEwah. So like "Dragon's Lair" and "Dragon's Lair 2 : Time Warp".

Then in MAMEwah I create a new emulator and for the emulator executable I put "PC" and point the the directory of Shortcuts. Each shortcut will show up as a game.
Joseph Elwell.

Chris

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4574
  • Last login:September 21, 2019, 04:59:49 pm
    • Chris's MAME Cabinet
Re: Daphne in Mamewah game options programming
« Reply #20 on: March 10, 2005, 02:32:58 pm »
Then I Create a Shortcut to each Bat file. And name the Shortcut whatever I want to show up in MAMEwah. So like "Dragon's Lair" and "Dragon's Lair 2 : Time Warp".
Seems like the shortcut is an extra step.  I just set the ROM exxtension as BAT.  I did have to create a "launch.bat" that acts as the emulator, though, as MAMEWah didn't like me using the internal CALL command as an emulator.

I used the same techniques last night to set up my PC games and WinCab Jukebox, although I did need START /WAIT in some of the batch files to keep MAMEWah from intercepting keystrokes meant for that game...

MAMEWah is a lovely thing.

--Chris
--Chris
DOSCab/WinCab Jukebox: http://www.dwjukebox.com

jelwell

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 460
  • Last login:December 24, 2014, 03:47:21 pm
  • I'm a llama!
Re: Daphne in Mamewah game options programming
« Reply #21 on: March 10, 2005, 09:25:50 pm »
Then I Create a Shortcut to each Bat file. And name the Shortcut whatever I want to show up in MAMEwah. So like "Dragon's Lair" and "Dragon's Lair 2 : Time Warp".
Seems like the shortcut is an extra step.

killbill

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 290
  • Last login:June 13, 2025, 09:11:58 pm
  • When I die, I want to go to arcade heaven!
Re: Daphne in Mamewah game options programming
« Reply #22 on: March 11, 2005, 12:37:10 am »
Hi Guys,

Wow, this post has taken off again.  Basically, at this point I just created a separate emulator in Mamewah for each of the games i wanted to flip the switches on, and mapped to the created bat file.

I'd still love to change the switches within my master Daphne emulator where all of the games are listed.

killbill

vibez

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 411
  • Last login:February 09, 2011, 08:33:20 am
  • I want to build my own arcade controls!
Re: Daphne in Mamewah game options programming
« Reply #23 on: March 11, 2005, 06:47:27 am »
sorry to hijack this thread. But how do you get daphneloader to output to a batch file?

jelwell

  • Wiki Master
  • Trade Count: (0)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 460
  • Last login:December 24, 2014, 03:47:21 pm
  • I'm a llama!
Re: Daphne in Mamewah game options programming
« Reply #24 on: March 11, 2005, 02:10:05 pm »
sorry to hijack this thread. But how do you get daphneloader to output to a batch file?

you don't. What you can do is tell DaphneLoader to show the command line before launching the game. Then you can copy and paste that command line into a batch file.
Joseph Elwell.

vibez

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 411
  • Last login:February 09, 2011, 08:33:20 am
  • I want to build my own arcade controls!
Re: Daphne in Mamewah game options programming
« Reply #25 on: March 11, 2005, 03:33:05 pm »
Thanks! I totally missed that setting