Jump to content

Ac/dc And Csi Error Message


heberts811

Recommended Posts

When I try to start AC/DC and CSI in Physmod 5, I get an error message in the script. Line 1588, the Set CurrentBall after the Else, is highlighted with the message variable is undefined 'bsize'. Indiana Jones works fine but I get this for both of these tables.

 

  
'******************************
' Destruk's alternative vpmCreateBall for use with B2B Enabled tables
' Core.vbs calls vpmCreateBall when a ball is created from a ball stack
'******************************
 Set vpmCreateBall = GetRef("B2BvpmCreateBall")        ' Override the core.vbs and redefine vpmCreateBall

 Function B2BvpmCreateBall(aKicker)
    For cnt = 1 to ubound(ballStatus)                ' Loop through all possible ball IDs
        If ballStatus(cnt) = 0 Then                    ' If ball ID is available...
            If Not IsEmpty(vpmBallImage) Then        ' Set ball object with the first available ID
                Set CurrentBall(cnt) = aKicker.Createsizedball(bsize).Image
            Else
                Set CurrentBall(cnt) = aKicker.Createsizedball(bsize)
            End If

 

I would appreciate any help you can give me.

 

Gary
 

Link to comment
Share on other sites

  • 2 weeks later...

Archived

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

×
  • Create New...