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: how to autostart a specific rom  (Read 6417 times)

0 Members and 1 Guest are viewing this topic.

pakitt1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:January 07, 2016, 04:08:14 pm
  • I want to build my own arcade controls!
how to autostart a specific rom
« on: December 19, 2015, 08:10:48 am »
I've been trying to no avail to write a command line to auto start a specific game once name is started.... Any help would be greatly appreciate as I am not very good with computers.....  I am running mame0140b   and trying to start the Rom spacduel.zip.   thanks in advance

baritonomarchetto

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 822
  • Last login:July 02, 2025, 12:52:26 pm
Re: how to autostart a specific rom
« Reply #1 on: December 19, 2015, 08:53:19 am »
You could compile a batch file that launches the game: by putting the file in autostart will launch it as soon as the OS is loaded; or use a frontend like FEEL which let you autorun a specific game OR the last game played OR the last game highlighted
« Last Edit: December 19, 2015, 12:28:39 pm by baritonomarchetto »

Thenasty

  • Trade Count: (+17)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 4419
  • Last login:Yesterday at 04:49:58 pm
    • Thenasty's Arcademania Horizontal/Vertical monitor setup.
Re: how to autostart a specific rom
« Reply #2 on: December 19, 2015, 10:46:34 am »
Mame spacduel
Thenasty's Arcademania Horizontal/Vertical setup.
http://forum.arcadecontrols.com/index.php?topic=26696.0

Free VGA Breakout Cable
http://forum.arcadecontrols.com/index.php?topic=38228.0

Ultimate All in One Coin Mech write up (Make your own)
http://forum.arcadecontrols.com/index.php?topic=19200.0

Osirus23

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 849
  • Last login:August 23, 2021, 01:33:52 pm
Re: how to autostart a specific rom
« Reply #3 on: December 19, 2015, 11:46:54 am »
Yep, either with a MAME command line batch file in the shell:Startup directory or configure your front end to auto-start a game on launch and put the front end .exe in the Startup folder.

pakitt1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:January 07, 2016, 04:08:14 pm
  • I want to build my own arcade controls!
Re: how to autostart a specific rom
« Reply #4 on: December 19, 2015, 03:01:52 pm »
Ok and how do I create a batch file? I'm a computer complete dummy...thanks

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: how to autostart a specific rom
« Reply #5 on: December 19, 2015, 03:41:08 pm »
Ok and how do I create a batch file? I'm a computer complete dummy...thanks

open Notepad

create the batch file and save as startGame.bat (change to all files not .txt in the save dialog so it saves the file as startgame.bat not startgame.bat.txt !! )

for the batch file you will need something similar to

Quote
d:
cd d:\Gamess\Roms.mame.v0.139
mame64.exe  spacduel

TO explain what this will do when run -

FIrst line (d:) --- changes to the d: drive  (if you are starting from your C: drive will not need or will need to specify the drive letter your mame.exe is in ! )

Second LIne (cd d:\Gamess\Roms.mame.v0.139) ---- CHanges active folder to the path listed (on my system Mame is in the Gamess\Roms.mame.v0.139 folder (you will want to change it to the folder you use for mame !!)

Third Line (mame64.exe  spacduel) --- runs the Mame64.exe file (change to mame.exe if using 32 bit version) in the active folder ( d:\Gamess\Roms.mame.v0.139 ) and opens the spacduel rom.

Once saved as startGame.bat (or whatever name you use) either double click the file to run it or place the bat file into the startup folder and it should run startGame.bat on boot which will change to the proper hard drive and change to the mame folder and run mame64.exe loading the spacduel rom.
« Last Edit: December 19, 2015, 03:43:32 pm by JDFan »

pakitt1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:January 07, 2016, 04:08:14 pm
  • I want to build my own arcade controls!
Re: how to autostart a specific rom
« Reply #6 on: December 19, 2015, 03:44:58 pm »
Ok great thanks I'll give that a shot after lunch 👍👍👍👍. Thanks again for you patience and time

pakitt1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:January 07, 2016, 04:08:14 pm
  • I want to build my own arcade controls!
Re: how to autostart a specific rom
« Reply #7 on: December 19, 2015, 04:58:53 pm »
This is what I tried didn't work .Edit it if you can
C
cd c:\MAME\roms.Mame32
Mame32.exe spacduel


MAME is the name of the folder.  And Mame32 is the exe .  It won't do anything

pakitt1

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 11
  • Last login:January 07, 2016, 04:08:14 pm
  • I want to build my own arcade controls!
Re: how to autostart a specific rom
« Reply #8 on: December 19, 2015, 05:13:42 pm »
I got it to work.... Now is there a way for it to exit to mame when I hit esc button instead of it just only closing the game....thanks again
« Last Edit: December 19, 2015, 08:11:59 pm by pakitt1 »

JDFan

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3448
  • Last login:March 03, 2025, 10:29:54 am
  • I want to build my own arcade controls!
Re: how to autostart a specific rom
« Reply #9 on: December 19, 2015, 08:46:28 pm »
I got it to work.... Now is there a way for it to exit to mame when I hit esc button instead of it just only closing the game....thanks again

Should be able to just add another line at the end with just Mame32.exe -- that will only run once you exit from space duel  and then will reopen mame32.exe without a specific rom loaded.

ie.

Quote
cd c:\MAME
Mame32.exe spacduel
Mame32.exe

Don't really need the first line since you will already be at the C: drive when the file runs ( I needed it because my install is on d: not C:, then if the folder is Mame you don't need the \roms.Mame32 as that isn't the folder Mame32.exe is located in so just c:\Mame should be line 2 (or now line 1 since you don't need the old line 1) then the first mame32.exe spacduel line will start and run space duel until you exit from it at which time the batch file will continue to the next line which will reopen Mame32.exe without a specific rom loaded.

EDIT : OR use the tab menu from in game and select Select New Game to go to the menu rather than exiting space duel.
« Last Edit: December 19, 2015, 08:54:41 pm by JDFan »