The NEW Build Your Own Arcade Controls
Main => Software Forum => Topic started by: pakitt1 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
-
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
-
Mame spacduel
-
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.
-
Ok and how do I create a batch file? I'm a computer complete dummy...thanks
-
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
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.
-
Ok great thanks I'll give that a shot after lunch 👍👍👍👍. Thanks again for you patience and time
-
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
-
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
-
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.
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.