The NEW Build Your Own Arcade Controls

Front End Support => Maximus Arcade => Tutorials => Topic started by: pj.maybe on January 29, 2018, 03:51:34 am

Title: Prelaunch file problems
Post by: pj.maybe on January 29, 2018, 03:51:34 am
Hi there,

I have set a batch file to run before I boot a MAME game.  (It essentially checks my controls are setup properly).

The problem I have is:

- the game starts booting (i.e:  mamep.exe is run) BEFORE the batch file has finished running.

- the batch file seems to "take the foreground".  So when it has finished running, I have a black screen - and need to ALT-TAB into the game/mame.

Can anyone help me with either of these problems?

Is there a better solution out there?

Don

 :cry:
Title: Re: Prelaunch file problems
Post by: ZoOl007 on January 29, 2018, 01:25:12 pm
why don't ypu pass the rom name to the bat file and launch mame from the bat in the end?
You can use cmdow to hide the bat completely although you're better of using vbscript. That at least looks a bit like programming language.
Title: Re: Prelaunch file problems
Post by: pj.maybe on January 30, 2018, 04:55:23 pm
why don't ypu pass the rom name to the bat file and launch mame from the bat in the end?
You can use cmdow to hide the bat completely although you're better of using vbscript. That at least looks a bit like programming language.
Hi there.

This is a bit similar to what I do with my Taito Type X games, I run them from a BAT, and run my stuff first.

However, running MAME, it is pointing to a ROM folder with 6000 or so .ZIP files.   Surely I wouldn't create 6000 new BAT files with my script at the start?   I can do it with a c# script, but it seems a bit extreme!

Maybe I could create a EXE/BAT file, and use this as a new emulator?

So wrap around mamep.exe?   Put my stuff at the start, before it is run?

(Again, seems a little extreme - I just wish I could use the 'Pre-Launch' functionality of Maximus properly.  I don't know why it is working like it is....)



Title: Re: Prelaunch file problems
Post by: pj.maybe on January 30, 2018, 04:55:57 pm
Also:
Am I posting this in the wrong Maximus forum?   Should it be in the main one?