small update around DOF,
i make center ramp triggered by script instead of the solenoid, this fixesthat the gear is activating forever sometimes, and you can hear it now when it goes down.
to do that, you need
Const DB2SOn = True
then
If DB2SOn = True then
Set Controller = CreateObject("B2S.Server")
Else
Set Controller = CreateObject("VPinMAME.Controller")
End If
so the variable enables b2s.server when set to true otherwise set vpinmame.controller
on top of the script, then my method, before table init is fine, if db2son = false, ignores the dof command
Sub DOFFeedback(dofevent, dofstate)
If DB2SOn=True Then
If dofstate = 2 Then
Controller.B2SSetData dofevent, 1:Controller.B2SSetData dofevent, 0
Else
Controller.B2SSetData dofevent, dofstate
End If
End If
End Sub
then on the cramptimer
Sub CRampTimer_Timer()
DOFFeedback 101, 1
CRPos = CRPos + CRDir
If CRPos > 0 then CRPos = 0
If CRPos < -30 then LRPos = -30
Ladder.ObjRotx = CRPos
If CRPos = -30 then
Controller.Switch(63)=1
Controller.Switch(59)=0
CRampTimer.Enabled = 0
end If
If CRPos = 0 then
Controller.Switch(63)=0
Controller.Switch(59)=1
CRampTimer.Enabled = 0
end If
DOFFeedback 101, 0
End Sub
works much better like this, just updated the DOF config