Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Cooper on November 17, 2003, 10:31:28 am

Title: Batch files in MameWAH
Post by: Cooper on November 17, 2003, 10:31:28 am
I am trying to launch a few pc games from MameWAH using batch files but I'm having trouble.  First I'm not all that savvy to writing a batch file.  From my understanding you write it in something like notepad then rename it to .bat, is this correct?  Also, I'm not all that sure of what needs to go into this bat file.  Finally I am not sure if I have all the MameWAH settings right to launch a bat file.

I am using Windows 98 and the newest version of MameWAH.  So far I have the emulator page set up ok as it sees the game and puts it in a list.  But, when I try to launch it, the monitor flickers and nothing happens.  After looking around on the net this is what I put in the .bat file:

@echo off
cd "c:\Program Files\Point of View, Inc\Blitz"
start blitz3df.exe
cls

As I said, I know nothing about writing these, so any help would be greatly appreciated!  Thanks.   ;D
Title: Re:Batch files in MameWAH
Post by: Minwah on November 17, 2003, 11:09:48 am
You don't really need to use batch files.  Read the section in the readme regarding the launching of PC applications ;)
Title: Re:Batch files in MameWAH
Post by: Cooper on November 17, 2003, 11:20:57 am
You don't really need to use batch files.  Read the section in the readme regarding the launching of PC applications ;)

I saw someone else post this, but after going through the readme like 8 times I still didn't see anything about it!  Am I blind?!?  :P
Title: Re:Batch files in MameWAH
Post by: papaschtroumpf on November 17, 2003, 11:46:03 am
The problem with mamewah is that there are 2 readme files, one doc file and one text file, and they're NOT the same. (Edit: MinWah if you read this, you may want to rename one of the files in the next release)
If I remember right the explanations are in the DOC file. Also make sure you have the latest mamewah as this is a fairly recent addition to the documentation.

Basically (from memory) you set your emulator name to "PC" then you create shortcuts to your PC apps in a directory, then point the ROM PATH entry to that directory. Maybe you have to tell it the ROM extension is LNK although I think that might be the default. You set the list generation options to "ROM folder only" (i.e. the list of shortcuts in the directory becomes the list of games". That's about all there is to it. Doesn't work for pure DOS files because they create .PIF shortcuts instead of .LNK.
Title: Re:Batch files in MameWAH
Post by: Cooper on November 17, 2003, 12:06:27 pm
Thanks papa!  I'll look for that other readme, and I'll try your suggestions.   ;D
Title: Re:Batch files in MameWAH
Post by: Minwah on November 17, 2003, 01:56:55 pm
I see where the confusion could be papasch, the old MW Readme.txt is still there from before I made the 'new' readme.

I think I will do away with the 'update' system I currently operate, it seems more trouble than it's worth...