Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. Thank you for your support. Tom Speirs

Patreon

run command before each game in MAME


pintris

Recommended Posts

Hi,

I bought an Ultimarc servostick that goes from 4 way to 8 way via a command file. I need to run this command file to let the joystick switch from 4 to 8 way BEFORE launching a game... Some games will need to run the command file to set the stick to 4ways, other games 8ways...

I can find an option in GameEx that would allow me to run command files on a per game basis... There don't seem to be options settings for every game...

Can this be done? perhaps through script or ini files?

So before the game would run, it would need to run "JoyTray.exe -servo joy8way" for 8way games, and "JoyTray.exe -servo joy4way" for 4 way games...

Thanks for any help on this

Patrick

Link to comment
Share on other sites

I would look into the run on launch section of the MAME Advanced settings. Here is a link. I would navigate to your .exe for joy tray

http://www.gameex.com/Support/SetupWizardconfigurationguide.aspx#mamesettings

As far as the command lingo. It may be possible for you to place the -servo joy8way into the mame options, which is depicted on the same above link. The link has "-nowindow -joy -skip_gameinfo" in their currently, which I believe is default. You may have to make it something like the below:

"-nowindow -joy -skip_gameinfo -servo joy8way -servo joy4way"

If you run the joytray.exe at mame startup, that may alleviate the having to put -servo .... information in the command line though, as the program would now be running in the background once MAME starts up and should run the same way it would if you were just playing MAME in MAME.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...