I really didn't want to add that line to every table. since tables are constantly being updated it would be a pain in the ass.
so I added the line to each tables key handling script i.e. atari1.vbs, wpc.vbs, de.vbs etc....
even though it's still a lot of modifying it's better then modifying 200+ scripts.
they all look pretty similar some a little different, still not sure about bally games though can't seem to get those to work. I've gone through several tables and it seems like it works ok so...
at this point:
Function vpmKeyUp (ByVal keycode)
On Error Resume Next
vpmKeyUp = True ' Assume we handle the key
With Controller
If Keycode = MechanicalTilt Then vpmTimer.PulseSw vpmNudge.TiltSwitch <<<<<<<<<<<<<<HERE
If keycode = RightFlipperKey Then.Switch (swLRFlip) = False : If cSingleRFlip Or Err Then .Switch(swURFlip) = False
I was trying to find a way to modify the core.vbs or by adding GlobalPlugIn.vbs and adding a function that would then be called by all the table scripts. Since the tables handle keys different ways, it's impossible to add that vpmKeyUp function in the core.vbs script. I'm not familiar enough with programming to come up with a better solution but.... I know the majority of the people don't have cabinets for their virtual machine and the ones that do probably don't care about a real plumb bob. but I'm surprised this wasn't written in as an option somewhere. If anyone has a more elegant solution please let me know.
and yes you can either rename the script called NudgePlugIn_blur2NoAccel to NudgePlugIn or just copy the appropriate parts over to core.vbs and comment out the rest.
as far the EM tables, from what I have seen all the tilt's subs are named something different so there is no fix one solution as far as I know.
example this is what I did with flying carpet
added a subroutine
Sub mechTilt
' If Tilttimer.Enabled = True Then
' TiltSens = TiltSens + 1
' if TiltSens = 1 Then
Tilt = True
tilttxt.text = "TILT"
if B2SOn Then Controller.B2SSetTilt 33,1
If B2SOn Then Controller.B2SSetdata 1, 0
playsound "Tilt"
turnoff
' End if
' Else
' TiltSens = 0
' Tilttimer.Enabled = True
' End If
end Sub
**** Then I added a statement calling the sub under another sub
Sub Flying_Carpet_Keydown(ByVal keycode) ** after this
If Keycode = MechanicalTilt then mechTilt <<< HERE
if you want more then a one hit tilt like a two hit uncomment out the 8 lines and adjust the "if TiltSens = 1 Then" to another number.
I'm sure there is a way to modify all the more current EM tables using controller.vbs but I'm still really new to VBS and programming in general.
seems like the slamtilt switch key is on almost all the tables, but not tilt.
maybe some day
Edited by hocuslocus, 23 May 2016 - 12:27 AM.