Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: arcadealex on December 19, 2003, 07:41:54 am

Title: HELP with Daphne batch file for MW
Post by: arcadealex on December 19, 2003, 07:41:54 am
hey folks, tried with no luck or success in getting a wrapper working to send specific command line details to launch Daphne from MameWah.

I have gone back to trying the batch file method. Logically a batch file in XP should work?  I've looked up a few batch sites on the net to try and get syntax right - but this batch still doesn't run correctly.

It ignores the IF statements and run's any game from MW (with Daphne menu) using the first command line settings in the batch file.


IF %1==astron GOTO :AST
IF %1==badlands GOTO :BAD

:AST
start /wait d:\daphne\daphne.exe %1 vldp -framefile d:\daphne\framefile\%1.txt -fullscreen -nohwaccel
GOTO END

:BAD
start /wait d:\daphne\daphne.exe %1 vldp -framefile d:\daphne\framefile\%1.txt -fullscreen -preset 2 -bank 0 00000000 -bank 1 10000011 -nohwaccel -latency 150
GOTO END

:END
exit

Now, I'm no programmer, but I have written batch files before (simple backup batch to copy files each night).

I can't figure out why this batch just skips and runs each and every game with the settings in the :AST label.
I've tried putting the inverted commas in the -
IF %1=="astron" conditions, but no change.

Can anyone help with this? I would have thought someone may have used this out there before?

Thanks again
Alex
Title: Re:HELP with Daphne batch file for MW
Post by: Rocky on December 19, 2003, 04:10:06 pm
IF %1==astron GOTO :AST
IF %1==badlands GOTO :BAD

:AST
start /wait d:\daphne\daphne.exe %1 vldp -framefile d:\daphne\framefile\%1.txt -fullscreen -nohwaccel
GOTO END

:BAD
start /wait d:\daphne\daphne.exe %1 vldp -framefile d:\daphne\framefile\%1.txt -fullscreen -preset 2 -bank 0 00000000 -bank 1 10000011 -nohwaccel -latency 150
GOTO END

:END
exit

If %1 <> astron or badlands, then AST: will get executed. Are you sure you're sending the bat file the parameter you intended?  Try inserting a 'GOTO END' after the second IF statement and see if it still runs AST:


Good luck,

Rocky

Title: Re:HELP with Daphne batch file for MW
Post by: arcadealex on December 19, 2003, 09:49:47 pm
Rocky.. tried that too. Still no good. I tested it some more and it looks like it's not using the IF statements at all.
I changed the name of the label :BAD to :STUFF and chose Badlands from MW. It ran Badlands but just used the settings after the :AST label in the batch. It's definitely not using the IF statements.

Anybody else out there that can help?
Thanks
Title: Re:HELP with Daphne batch file for MW
Post by: arcadealex on December 20, 2003, 06:32:50 am
got it working.. just before my HDD died.. NEVER buy Fujitsu HDDs!! I've learned my lesson - they might be good at making air conditioners, but not HDD. I did a google search and found lots of people with problems with them.

Anyway - Batch file worked when it was like this:
(i didn't have the ":" before the END Label last time)

If %1==BADLANDS GOTO :BAD
If %1==ASTRON GOTO :AST
GOTO :END

AST:
(specific commands for Astron)

BAD:
Specic commands for Badlands

END:
Exit

Worked like a charm. Now - to buy a new HDD, and start re-loading EVERYTHING again.. *sigh* I guess the consolation is I had all programs on DVDs - just not looking forward to manually installing everything again!!
Title: Re:HELP with Daphne batch file for MW
Post by: Howard_Casto on December 21, 2003, 02:13:49 am
just out of curiosity what problems are you having with the wrapper?  I'm working on a new version... so if it's a glitch I may be able to help.  

Batch files are generally a last resort as The emulator your using may not freeze itself while you are playing a game, thus taking up more ram and processor ticks.