Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Script Error] patch: Wheel of Fortune (Stern 2007) 1.0 #247

Closed
zognic opened this issue Feb 4, 2024 · 5 comments · Fixed by #251
Closed

[Script Error] patch: Wheel of Fortune (Stern 2007) 1.0 #247

zognic opened this issue Feb 4, 2024 · 5 comments · Fixed by #251

Comments

@zognic
Copy link

zognic commented Feb 4, 2024

There is still a script issue with this table
#77

ERROR [3487] [CodeViewer::OnScriptError@1180] Script Error at line 584 : VBSE_OUT_OF_BOUNDS

Sub LampTimer_Timer()
    Dim chgLamp, num, chg, ii
    chgLamp = Controller.ChangedLamps
    If Not IsEmpty(chgLamp) Then
        For ii = 0 To UBound(chgLamp)
            LampState(chgLamp(ii, 0) ) = chgLamp(ii, 1)       'keep the real state in an array
            FadingLevel(chgLamp(ii, 0) ) = chgLamp(ii, 1) + 4 'actual fading step
        Next
    End If
	UpdateLamps
End Sub

lines 584 & 585

             LampState(chgLamp(ii, 0) ) = chgLamp(ii, 1)       'keep the real state in an array
             FadingLevel(chgLamp(ii, 0) ) = chgLamp(ii, 1) + 4 'actual fading step
@francisdb
Copy link
Contributor

At a first glance this might have something to do with the recent pinmame pwm changes.

@francisdb
Copy link
Contributor

@zognic how do I reproduce this error?

I seem to have other strange issues where flippers don't react or are stuck.

@francisdb
Copy link
Contributor

francisdb commented Feb 5, 2024

What vpinball version are you using?

@zognic
Copy link
Author

zognic commented Feb 5, 2024

are

Visual Pinball v10.8.0 Beta (Rev. 1880 (c4e2ac8), linux OpenGL 64bits)
I fixed the issue by removing theses lines

@francisdb
Copy link
Contributor

Aha yes now this rings a bell, I previously reported this on pinmame
vpinball/pinmame#196

Let me submit my current patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants