Hi,
I'm starting this topic to gather information from any of our "LedWizards" out there about the best approaches to get contactors and LEDs to fire during games that are just not ready for it.
In the future, this topic might serve as a good resource for anyone looking for this kind of info, similarly to this topic I started months ago that is now helping many people to have their plasma DMDs running in their cabs, thanks to the incredible info posted by some very smart people in this forum:
http://www.vpforums.org/index.php?showtopic=23249 Here's the info I gathered so far:
LIGHTS:For PC games (Pinball FX2 and Pinball Arcade, also any VP or FP table that doesn't support it yet), a nice way to fire the RGBs is by using the ability to translate sounds into light pulses, similarly to what Winamp does.
The options we have to do so are:
a) LEDBlinky -
http://www.ledblinky.net/ledblinky.htmor
b) LuminAudio Engine (
http://forum.arcadecontrols.com/index.php?topic=69607.msg711032#msg711032 )
Either can be used to translate the game sounds into a light show. It works very nicely if you set them well. They are not linked to events, but rather sound frequencies. Naturally, different sounds will cause different lights to turn on and off, but not only that, the music itself will be taken into consideration (I wished there was a way to drive everything by sound FX only, separated from the music, but this is just wishful thinking).
Using those programs you can actually select other toys to be included to the light show. You can set a wiper motor or a shaker to go off at certain frequency, for example, which can be cool, but can also get a little "messy" .
FLIPPER CONTACTORS:I'm still looking for a solution for it. I really don't want to go the route of wiring things with optos, because I believe there's a simpler (and more controllable) solution out there using software only.
I know that VBScript used by VP works wonders, firing all kinds of lights and toys simultaneously, flippers hold as you hold the push buttons etc.
For this reason alone I believe that any programmer here could come up with a little stand alone app that could be used to fire the flippers exactly the way it happens while playing VP or FP,for example.
The advantage is that this little app could be launched at the start of any system that doesn't support ledwiz, like the PC games mentioned above. The lack of mechanical sounds and force feedback really kills the whole experience, unfortunately.
Since I'm not a programmer, I tried different approaches, but always hit a wall.
I tried calling VBScripts using cscript.exe from an ahk script for example. That resulted in incredible lag and also limitations when it comes to pressing and holding the push buttons, since the KeyWait command in ahk works only for one button at the time. So, if I press both push buttons, only one flipper will fire and hold, while the other will have to wait in order to proceed to the next command.
Randy from LedWiz told me to use the clipboard method, called from an ahk script. I tried it and although it works quite fast, with almost no lag at all (much faster than using cscript+vbs file), the clipboard itself, depending on the speed you press the push button, starts missing commands and gives errors about not being able to retrieve the clipboard information. I tried ledwiz87.exe set to monitor the clipboard for that and sent the commands to the clipboard (^c). The problem was again getting ahk to send two commands at same time, with the ability to press and hold buttons. No luck.
I also tried using LWSend.exe to turn on the contactors as well, but turns out that under the hood seems like LWSend uses the exact same clipboard method, because the behavior and error messages were exactly the same. Also, the whole things about pressing and holding the pushbutton to keep the contactor on needs something like GetKeyState or KeyWait (ahk) and seems like neither handle two inputs at same time, as they only recognize the first pressed button and only execute the rest of the command on its release.
My question here is: how difficult would it really be to create a little app (or a compiled ahk that actually worked), that could send simultaneous commands to the ledwiz, supporting press and hold of multiple buttons?
I'm so surprised that after researching all the different related forums I wasn't able to find a solution for it yet, other than "use optos and wire directly to the push buttons" or "use (the not so ideal) the clipboard method driven by ahk".
What do you guys think? Any directions?
Thanks!
-Kris