The NEW Build Your Own Arcade Controls
Main => Driving & Racing Cabinets => Topic started by: Marcoqwerty on November 02, 2017, 05:19:12 am
-
Hi Howard, sorry if i wrote here, but im interest to understand how use the MAMESTART and MAMESTOP funcion, in global and for specificgame.
I used a lot MH on these days for my project of a MAME DRIVING CAB, and everythime happens the same thing.
-Emulator MAME
-I use a script for light play with MAMESTART(stop light play) and MAMESTOP(the light play again): this file is a DEFAULT.INI file inside roms ini folder of MH; i would create a sort of lights game (for frontend) (this step works flawless)
If i use a specific MAMEROM.INI and i write in the MAMESTART section, to have another light play (for example light the VIEW CHANGE button in same games), MH cant read this command and continue with the first GLOBAL MAMESTART COMMAND (light play)
basically i would like MH cicle works like this:
enter in a game (global MAMESTART (stop advertise light play, first time no light)) ------>
enter in a game (roms ini MAMESTART (begin another light play)) -------->
exit game (roms ini MAMESTOP stop light in game) --------->
global MAMESTOP (play game light like and advertise) ----->
again
-
We have a language barrier problem but I'll try to help.
It sounds like you are wanting something to happen in the default mamestart entry and then again in the rom mamestart entry. It doesn't work that way. Nested ini files override each other, with the most specific ini getting priority over the others. This is so default.ini acts as an "if not found, do this" sort of case statement. If you need to do multiple things in mamestart you can separate multiple commands with a comma.
-
We have a language barrier problem but I'll try to help.
Ops sorry...btw its hard to explain the situation
It sounds like you are wanting something to happen in the default mamestart entry and then again in the rom mamestart entry.
...but you understand correctly! :notworthy:
Yes im interested to use the default.ini to launch one script (and stop), and use the same command in the rom ini.
And if i will use the rom ini on this way? (only rom.ini i left blank the default)
MAMESTART="running STOP SCRIPT for attract mode", "running script light for this game"
MAMESTOP="running STOP SCRIPT for THIS GAME", "running START SCRIPT for attract mode"
I can use a sort of sequential command on the same istruction line?
-
IT WORKS.
- removing default.ini
- add a ARKANOID script (ArkanoidSmartASD)
- run in the ARKANOID.INI:
[General]
MameStart=kls 1,rfs HyperspinAllOFF 1 %s%,rfs ArkanoidSmartASD 1 %s%
MameStop=lfs HyperspinLuciON 1 %s%
StateChange=
OnRotate=
OnPause=
and everytime i running this ini, kill the previous script and start the Arkanoid script. :cheers: