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: My mame.cmd not working now?  (Read 1855 times)

0 Members and 1 Guest are viewing this topic.

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
My mame.cmd not working now?
« 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

nitz

  • Trade Count: (+2)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 507
  • Last login:November 24, 2015, 07:57:29 pm
Re: My mame.cmd not working now?
« Reply #1 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:

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: My mame.cmd not working now?
« Reply #2 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.  :)

Hoopz

  • Don't brand me a troublemaker!
  • Trade Count: (+8)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5285
  • Last login:June 13, 2025, 09:18:32 pm
  • Intellivision Rocks!
Re: My mame.cmd not working now?
« Reply #3 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.

sega_mad

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 284
  • Last login:July 09, 2015, 04:03:08 am
Re: My mame.cmd not working now?
« Reply #4 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