Build Your Own Arcade Controls Forum
Main => Software Forum => Topic started by: killbill 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.
-
Anyone?
-
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.
-
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?
-
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
-
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. :)
-
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
-
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
-
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.
-
Has anyone gotten this working?????
-
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.
-
Hey KillBill,
Did you ever figure out a way to pass extra command line parameters using 'IF' statements in the DAPHNE.bat file?
Breaker
-
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
-
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
-
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
-
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:
-
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
-
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
-
-
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.
-
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
-
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.
-
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
-
sorry to hijack this thread. But how do you get daphneloader to output to a batch file?
-
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.
-
Thanks! I totally missed that setting