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: HELP with Daphne batch file for MW  (Read 1187 times)

0 Members and 1 Guest are viewing this topic.

arcadealex

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:December 17, 2004, 09:00:08 am
HELP with Daphne batch file for MW
« 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

Rocky

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 562
  • Last login:December 30, 2009, 12:38:41 pm
  • I want to finish my cab before I retire!!
Re:HELP with Daphne batch file for MW
« Reply #1 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


arcadealex

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:December 17, 2004, 09:00:08 am
Re:HELP with Daphne batch file for MW
« Reply #2 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

arcadealex

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 39
  • Last login:December 17, 2004, 09:00:08 am
Re:HELP with Daphne batch file for MW
« Reply #3 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!!

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19428
  • Last login:Today at 11:06:50 am
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re:HELP with Daphne batch file for MW
« Reply #4 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.