gStAv Posted September 15, 2022 Share Posted September 15, 2022 I have set LaunchBox to use LEDBlinky as this what I want for most of my games, but for some titles I don't want LaunchBox to activate LEDBlinky as this blocks full hooking by MAMEHooker and the LED functions is locked out. Is there any way to do this with a flag or checkbox? As if now I have to start a title with dynamic LEDs from MAMEHooker by launching it via ahk and start MAMEHooker just befor the emu exe o for the game, which isn't really is deal. Guess this is major overkill for most but it's damn cool having start buttons blink when you have inserted credits or having the control panel act as a police siren when playing Chase HQ and you reach the villain Inserted a clip which shows some games with normal LEDBlinky mapping via its xml then virtual cop 1 and 2 which is hooked by MAMEHooker and have dynamic LED on the start buttons and finnaly the ArcadePC title "Elevator Action Death Parade" in the service menu to show the elevator buttons which lists up during in-game action events. Understand if this is totally overkill from the normal user but a checkbox in the game menu to block LEDBlinky from hooking or the like would be awesome. received_1297677641062805.mp4 Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted September 15, 2022 Share Posted September 15, 2022 There is no per game option to turn it off, you could use a pre launch command in LB to turn off LEDBLinky.exe. You also know that LEDBlinky has built in support to respond to MAME Outputs as well? Some simple ones like flashing start buttons blinking when coins are inserted are enabled by default, but you can add more complex ones as well. I have my LEDs flashing between red and blue for police lights in Chase HQ without using MAME Hooker. Quote Link to comment Share on other sites More sharing options...
gStAv Posted September 15, 2022 Author Share Posted September 15, 2022 Yeah, but then you can't hook the outputs to a solenoid like for "Point Blank 2" to the light gun (GUN4IR) that's why I can't have LEDBlinky hook as this would block the light part of the outputs. For "Elevator Action death Parade" it's crucial to the game play, like you can see in my video here https://youtu.be/zO0byY-gguc&t=16m47s Quote Link to comment Share on other sites More sharing options...
gStAv Posted September 18, 2022 Author Share Posted September 18, 2022 if anyone find their way here, I actually did get around this whit a somewhat dirty ahk launcher for games that needs MAMEHooker + its LED functions even though having LEDBLinky set up in Launchbox/Big Box A sctipt for Virtua Cop / Sega Model 2 MAMEHooker vcop2.ini Spoiler [General] MameStart=cmo 1 baud=9600_parity=N_data=8_stop=1, cmo 2 baud=9600_parity=N_data=8_stop=1, cmw 1 S6M1x2M3x0x, cmw 2 S6M1x2M3x0x MameStop=cmw 1 M1x2M3x0E, cmw 2 M1x1M3x0E, cmc 1, cmc 2 StateChange= OnRotate= OnPause= [KeyStates] RefreshTime= [Output] P1_LmpStart=lws 01 13 %s% P2_LmpStart=lws 02 24 %s% P1_Ammo= P1_Clip= P1_Life= Credits= P2_Ammo= P2_Clip= P2_Life= P1_CtmRecoil=cmw 1 F0x%s%x1x P2_CtmRecoil=cmw 2 F0x%s%x1x P1_Damaged=cmw 1 F1x2x1x,lws 1 01 %s%,lws 1 13 %s%,lws 1 10 %s%,lws 1 22 %s%,lws 1 04 %s%,lws 1 16 %s%,lws 1 07 %s%,lws 1 19 %s% P2_Damaged=cmw 2 F1x2x1x,lws 2 01 %s%,lws 2 13 %s%,lws 2 10 %s%,lws 2 22 %s%,lws 2 04 %s%,lws 2 16 %s%,lws 2 07 %s%,lws 2 19 %s% * Player 1 button 4 and Player 2 button 8 lit up when credit * Vibration + Red flash on respective player side when damage * Recoil as long as you have bullets Launch AHK "Virtua Cop2.ahk" with refocus when exit and extre start buttons Spoiler #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. ; #Warn ; Enable warnings to assist with detecting common errors. SendMode Input ; Recommended for new scripts due to its superior speed and reliability. SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory. #SingleInstance force Process,Close,mamehook.exe Run,taskkill /im "mamehook.exe" /F Sleep 300 Run, \LaunchBox\ThirdParty\mamehooker\mamehook.exe Sleep 300 Run, \LaunchBox\ThirdParty\DemulShooter\DemulShooter.exe -target=model2 -rom=vcop2 Run, emulator_multicpu.exe vcop2 ;Extra start buttons for easy access on control panel (normally 1 and 2) z::1 k::2 Escape:: Process,Close,emulator_multicpu.exe Run,taskkill /im "emulator_multicpu.exe" /F Process,Close,Demulshooter.exe Run,taskkill /im "Demulshooter.exe" /F Sleep 300 if WinExist("LaunchBox Big Box") WinActivate ; Use the window found by WinExist. else if WinExist("LaunchBox") WinActivate ; Use the window found by WinExist. else Send !{ESC} ExitApp return A bit of work per title, but works damn great Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted September 18, 2022 Share Posted September 18, 2022 On 9/15/2022 at 6:58 AM, gStAv said: Yeah, but then you can't hook the outputs to a solenoid like for "Point Blank 2" to the light gun (GUN4IR) that's why I can't have LEDBlinky hook as this would block the light part of the outputs. For "Elevator Action death Parade" it's crucial to the game play, like you can see in my video here https://youtu.be/zO0byY-gguc&t=16m47s Good to know. I haven't got around to setting up the outputs for my Gun4IRs yet. MameHooker doesn't recognize my iPac4 Ultimate, so I was just using LEDBLinky for now as it worked just fine for LEDs. Is it not possible to run both apps and have them just react to the outputs they need to command different functions? I haven't look at it deeply yet but I thought MAME outputs used a broadcast system and that might work. Quote Link to comment Share on other sites More sharing options...
gStAv Posted September 18, 2022 Author Share Posted September 18, 2022 Yeah, I was also hoping for MAMEHooker to handle recoil effects and LEDBlinky to take care of LED functions, but I never got them to work side by side. Would have been awesome though as the handling would be much cleaner, but this works. So good for now I guess 😁 Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted September 18, 2022 Share Posted September 18, 2022 2 hours ago, gStAv said: Yeah, I was also hoping for MAMEHooker to handle recoil effects and LEDBlinky to take care of LED functions, but I never got them to work side by side. Would have been awesome though as the handling would be much cleaner, but this works. So good for now I guess 😁 I just tested and with both apps running LEDBlinky handled LEDs and I had MameHooker speaking. So it should be possible to have LEDBlinky handle the LEDs and MameHooker send COM outputs to control rumble in the Gun4IRs. Quote Link to comment Share on other sites More sharing options...
gStAv Posted September 19, 2022 Author Share Posted September 19, 2022 😃 Wow, that would be damn awesome if it would work. Can you test with pblank2 and set the start buttons to blink when credit and set the recoil in mamehooker for a test? Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted September 19, 2022 Share Posted September 19, 2022 18 hours ago, gStAv said: 😃 Wow, that would be damn awesome if it would work. Can you test with pblank2 and set the start buttons to blink when credit and set the recoil in mamehooker for a test? I'll just be adding the rumble to my Gun4IRs later this week, so can't do that specific action, but when I said MAMEHooker was speaking, I didn't mean just that it found outputs and was speaking them. It was a custom action for a specific MAME output that I added to speak my chosen phrase, so sending a COM port command shouldn't be any different. Quote Link to comment Share on other sites More sharing options...
gStAv Posted September 20, 2022 Author Share Posted September 20, 2022 Work Ah, I see. Hope you're right. I can't get the the both to play nice so please get back to me if it works for you Sir 🥰 Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted October 10, 2022 Share Posted October 10, 2022 On 9/20/2022 at 1:03 AM, gStAv said: Work Ah, I see. Hope you're right. I can't get the the both to play nice so please get back to me if it works for you Sir 🥰 Just haven't had time to add rumble to my Gun4IRs, but did some testing and finding the same issue as you. Although both MameHooker and MameOutputTester (from LEDBlinky) can run concurrently and both will see the MAME outputs, once you "consume" the event with one or the other it seems doesn't work. To test I used LEDs and the rumble feature of my XBOX 360 controllers. Even if I try to consume different outputs on each, it seems only one can consume events at a time. I'm really going to have to think about the best option moving forward. Short of LEDBlinky adding serial support to outputs or MAMEHooker seeing my Ultimarc Ultimate, there doesn't seem to be an easy or elegant solution. Quote Link to comment Share on other sites More sharing options...
gStAv Posted October 11, 2022 Author Share Posted October 11, 2022 Yeah, Its rather strange as they both should be able to coexist but as you say, only one can hold the candle it seems. My rather dirty script where it puts MAMEHooker up in the food chain just before launch works great, just that you need to do this per game and that its not that optimal having old killed icons down the right besides the clock for each operation killing and reopening the MAMEhooker app. Do you know how to remove a stray icon after you kill its process btw? just to keep things tidy Quote Link to comment Share on other sites More sharing options...
Headrush69 Posted October 11, 2022 Share Posted October 11, 2022 2 hours ago, gStAv said: Yeah, Its rather strange as they both should be able to coexist but as you say, only one can hold the candle it seems. My rather dirty script where it puts MAMEHooker up in the food chain just before launch works great, just that you need to do this per game and that its not that optimal having old killed icons down the right besides the clock for each operation killing and reopening the MAMEhooker app. Do you know how to remove a stray icon after you kill its process btw? just to keep things tidy I've found some scripts that do that by modifying the registry but iexplorer.exe needs to be restarted as well. Not sure that's a great solution but I can message you the script if you want to take a look. My issue with killing and restarting MameHooker as needed is MameHooker seems to take some time to start up and that's less than optimal then I want for my cabinet. Quote Link to comment Share on other sites More sharing options...
gStAv Posted October 12, 2022 Author Share Posted October 12, 2022 I only have a small sleep of 300 or 500 in my script which is enough for it to hook, so I don't notice at all Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.