Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: sega_mad on February 10, 2012, 02:44:46 am

Title: My mame.cmd not working now?
Post by: sega_mad on February 10, 2012, 02:44:46 am
Ok,

Hoping someone can help

Everything was running fine.....then I upgraded my computer to a Z68 + 2500K CPU + HD4890 OC to run the "Supermodel" Emu.

Got the emu running fine.....but what I can't sort out is way my mame.cmd is not function correctly.

All I did was cut and paste the files from my old computer to my new one.

The cmd file is working......just the sleep 2 function wont work!!

Oddly.....it does work for the games that run mame98 (cruising USA series)

I use the sleep 2 function to show the Mala "game starting" for longer, otherwise it only flashes for a micro second...but like I said, works for the mame98 script.

Thanks in advance

Sega_mad
Title: Re: My mame.cmd not working now?
Post by: nitz on February 11, 2012, 06:51:34 pm
One thing that immediately jumps out at me in your mame.cmd is that some of those sleep commands will never actually be executed because they are right after an exit command. Try changing your mame.cmd to this and see if it helps.

Quote
if "%2" == "C:\emulators\other_emus\m2" goto model2

if "%2" == "C:\emulators\other_emus\mame98" goto mame98

if "%2" == "C:\emulators\other_emus\racerMAME" goto racer MAME

if "%2" == "C:\emulators\other_emus\supermodel" supermodel

sleep 2
mame %1
exit

:supermodel
sleep 2
C:
cd \supermodel
supermodel scud.zip
exit

:model2
sleep 2
cd C:\Program Files (x86)\AutoHotkey
autohotkey.exe C:\emulators\m2.ahk %1
exit

:mame98
sleep 2
C:
cd \emulators\mame98
mame.exe %1
exit

:racerMAME
sleep 2
C:
cd \emulators\racer MAME
mame.exe %1
exit

 :cheers:
Title: Re: My mame.cmd not working now?
Post by: sega_mad on February 11, 2012, 07:23:56 pm
Hi Nitz

Thanks for looking into my issue.

I've got a feeling I've tried that already, but will try it when I get back home from this business trip.

Odd that it works on the original HDD.

Will report back soon.

Thanks again.  :)
Title: Re: My mame.cmd not working now?
Post by: Hoopz on February 12, 2012, 09:28:40 am
Windows has an issue sometimes when folders are copied from one hard drive to another.  Windows will make the new folder read only.  You may double check to see it's not read only.  Not sure if that would cause this issue or not but it's something to look at.
Title: Re: My mame.cmd not working now?
Post by: sega_mad on February 13, 2012, 04:34:02 am
Thanks guys for helping out.

I copied the folder once more, and it worked this time!!

Only thing I can think of, is I might not have copied the folder, only the folder contents.

There may have been some hidden files that didn't go across.

Anyway..... All good now ;D