Jump to content

X-Men Stern (2012) Weird Script Error On Launch.


Mbison

Recommended Posts

Posted

Im using VP 9.90a. I ran it fine on my laptop but when I transferred it to my cabinet I got the following script error:

 

Line 830: Variable is undefined: AnPlOldPos

 

seems to be something to do with the Plungers.  Any idea whats causing it? especially to happen on the cabinet and not the laptop?

Posted

Resolved ...

 

1 - Delete the scrip these lines .

2 - Save the table and run.

 

'PinWizard Plunger script
'Turn on the Plunger timer if analog plunger is detected
 
 
If Plunger.MotionDevice> 0 Then
    PBWPlunger.Enabled = 1
End If
 
Sub PBWPlunger_Timer()
    If Plunger.MotionDevice> 0 Then
'If Plunger.Position>24 then exit sub
        Plungers(AnPlOldPos).alpha = 0:Plungers(AnPlOldPos).alpha = 0
        AnPlNewPos = Plunger.Position \ 2
        Plungers(AnPlNewPos).alpha = 1:Plungers(AnPlNewPos).alpha = 1
        PRefresh.State = ABS(PRefresh.state -1)
        AnPlOldPos = AnPlNewPos
    End If
End Sub

Archived

This topic is now archived and is closed to further replies.

×
  • Create New...