Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: shinejinx on March 25, 2014, 06:35:21 pm

Title: How to create a batch file to boot from Rom after Windows startup??
Post by: shinejinx on March 25, 2014, 06:35:21 pm
How to create a batch file to boot from Rom after Windows startup??

cheers
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: jdbailey1206 on March 26, 2014, 09:18:34 am
---steaming pile of meadow muffin---.  Wish I would have seen this last night.  I'll put a reminder in my phone to show you how I did it my SW Trilogy cab I'm working on.  Expect it later tonight. 
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: shinejinx on March 26, 2014, 09:59:26 am
thank you...

my roms are in c:\mame\roms

as i would like to boot from 1 particular game street fighter 3, then press the exit button on the cab to see the game list menu

or

may want to somehow lock it to 1 game. ( just want the option)

cheers
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: severdhed on March 26, 2014, 04:46:55 pm
which front end are you using?  Creating a simple batch file to launch a specific game is quite easy, but if you want to go back to your game list on exit, then that complicates things slightly.  If you are using mala, it has the option to start a specific game when it first loads, which would be a good option. 

a simple batch file to launch that game only would contain the following lines:

cd c:\mame
mame.exe sfiii 



(adjust the rom name as necessary to load the specific version you wish to play)

but that will not take you to a game list on exit because you are not launching a front end.  you could add a line at the end to launch your front end, but like i said earler, it may be better to use the front end to launch a game intead.

this would launch mame and play SFIII then when closed, launch Mala (assuming mame is at c:\mame and mala is at c:\mala)


cd c:\mame
mame.exe sfiii

c:\mala\mala.exe 


Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: shinejinx on March 26, 2014, 05:50:42 pm
I'm using Mamewah sorry,

Please provide step by step..

Thank you
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: DeLuSioNal29 on March 26, 2014, 06:48:20 pm
What you seek is here:
http://forum.arcadecontrols.com/index.php?topic=13553.0 (http://forum.arcadecontrols.com/index.php?topic=13553.0)

As quoted by forum user Rocky:
create a batch file to run on start up.

c:
cd\mame
start /wait c:\mame\mame.exe -pacman
cd\mamewah
mamewah.exe

Change any necessary drive / directory commands.

DeLuSioNaL29
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: EMDB on March 26, 2014, 06:53:36 pm
Why did you ask the same question as in this topic http://forum.arcadecontrols.com/index.php/topic,138390.0.html (http://forum.arcadecontrols.com/index.php/topic,138390.0.html)

after getting exactly the same answer as over here?   :dunno  (at least is "proves" its the right answer  >:D )
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: shinejinx on March 26, 2014, 07:17:00 pm
Got the answer, but confusing..

Batch files or start up, needed a how to guide..

Thanks Guys..

I'll try it .. Cheers
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: shinejinx on March 26, 2014, 10:29:39 pm
Ok after some time got the batch file working, and pressing left or right on the joypad starts the game,
 
Rom:  sfiii3n

Now problem: another game for some reason starts, and slows down ???


I have changed the batch rom file to another sf3 and works fine, but sfiii3n some how starts another basketball game???

I did a search of roms, there's only 1 sfiii3n,

Confusing any other ideas, why it's fine with other roms, but not with sfiii3n

Than you for putting up with me
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: shinejinx on March 27, 2014, 08:08:54 am
After powering it off from the mains, is does it to all games???

Goes and starts the game fine, inializes.. Move game pad left and right fine.

Add credits, then on pressing 1 button on joypad.. Another game loads too in the games list??

You can hear both games sounds..and slows down..

My batch files contains the below

Cd c:\mame
Mame.exe sfiiian
C\mame\mame.exe.  Tried removing this line to no avail.. Same problem occurs


Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: EMDB on March 27, 2014, 08:15:20 am
After powering it off from the mains, is does it to all games???

Goes and starts the game fine, inializes.. Move game pad left and right fine.

Add credits, then on pressing 1 button on joypad.. Another game loads too in the games list??

You can hear both games sounds..and slows down..

My batch files contains the below

Cd c:\mame
Mame.exe sfiiian
C\mame\mame.exe.  Tried removing this line to no avail.. Same problem occurs
You launch MAME 2 times, you get MAME 2 times...  :dunno

a) you don't launch a front end.
b) you don't let the batch file wait for the first MAME to exit.
c) you did not read the advice you were given about a) and b).
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: shinejinx on March 27, 2014, 09:12:12 am
Apologies just spent a few days on it, still confused...

Do you have an example of  script, to explain, as I can't see we're it's launching twice..

Thank you
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: EMDB on March 27, 2014, 09:48:39 am
Apologies just spent a few days on it, still confused...

Do you have an example of  script, to explain, as I can't see we're it's launching twice..

Thank you
Cd c:\mame
Mame.exe sfiiian
C\mame\mame.exe.

DeLuSioNal29 already did in the 6th post of this topic...
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: shinejinx on March 27, 2014, 10:22:45 am
Thank you,

But somehow mameware loads 2 times.

When pressing 1 on joypad, and loads another game on the game list..

I don't know how to stop this.

Cheers
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: shinejinx on March 30, 2014, 01:48:48 pm
Right..

Mamewah launches once in startup..

So I removed this.. And still launches twice..

Weird..

Any other suggestions
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: Howard_Casto on March 30, 2014, 03:25:02 pm
ugh... Ok, I've stood all I can stands, and I cants stands no more.

Your batch file to load ONE rom

cd\
cd c:\mame
mame.exe sf2.

Note that if you do this you can NOT launch a front-end via adding it to startup.. EVER.  If you add a shortcut to a FE in startup it will NOT wait until the batch file finishes.  That is NOT how windows works.  It loads everything in startup as it goes, not one at a time and even if it did, the way a standard batch file is written, it closes as soon as mame is launched.  Mame might still be around, but the batch file is long gone. 

If you want to launch a rom and startup AND launch a fe afterwards, which is the only possible way that the batch people have suggested wouldn't work (unless you still haven't removed that last line like the others suggested, in which case there is no hope for you), you do this.

cd\
cd c:\mame
start /wait mame.exe sf2
cd\
cd c:\mala
mala.exe

Again, you do NOT do anything like add a shortcut to your front-end at startup, or add it to the registry list of starting programs or anything..... that method will NOT work.  Batch files don't halt and other programs don't wait for them, unless you code them to do so.
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: EMDB on March 30, 2014, 04:20:19 pm
Now let's see if he actually can and will read...
Title: Re: How to create a batch file to boot from Rom after Windows startup??
Post by: shinejinx on March 31, 2014, 06:17:51 am
Thank you for the clarification, makes sense now,

i'll double check my batch files and start up folder and registry to remove FE shortcut on start up.

Ill give another try.

cheers guys