tabascoman77 Posted August 1, 2022 Share Posted August 1, 2022 I am working on a table with another author and I am trying to figure out what happened. He initially had ScottyWic's PUP stuff programmed so that everything was running off the backglass. I changed it because I am not a fan of Active Backglass PUP coding. I made a backglass PNG file and that works. I created a video DMD and that runs my Attract video. The issue is that when I start a game, the Attract Mode doesn't stop and the attract video keeps playing no matter what happens on the table. I didn't change anything except the video file and PUP coding a bit to fit the new stuff. The StopAttractMode sub should be able to stop everything, yet it doesn't do its job. I have looked over this code a million times and I cannot find what could possibly be the issue. OLD CODE: Sub StartAttractMode() DOF 323, DOFOn 'DOF MX - Attract Mode ON bAttractMode = True UltraDMDTimer.Enabled = 1 StartLightSeq 'ShowTableInfo DMDintroloop DMDattract.Enabled = 1 intromover.enabled = true ruleshelperoff PuPlayer.playlistplayex pBackglass, "videoattract","videoattract.mp4",100,1 PuPlayer.playlistplayex pTopper, "topper","topper.mp4",100,1 NEW CODE: Sub StartAttractMode() DOF 323, DOFOn 'DOF MX - Attract Mode ON bAttractMode = True UltraDMDTimer.Enabled = 1 StartLightSeq 'ShowTableInfo DMDintroloop DMDattract.Enabled = 1 intromover.enabled = true ruleshelperoff PuPlayer.playlistplayex pVids, "videoattract","videoattract1.mp4",100,1 PuPlayer.playlistplayex pTopper, "topper","topper.mp4",100,1 STOP ATTRACT SUB ON BOTH VERSIONS: Sub StopAttractMode DOF 323, DOFOff 'DOF MX - Attract Mode Off bAttractMode = False DMDScoreNow LightSeq001.StopPlay LightSeqAttract2.StopPlay DMDattract.Enabled = 0 intromover.enabled = false End Sub Sub ResetForNewGame() Dim i bGameInPLay = True StopAttractMode GiOff TotalGamesPlayed = TotalGamesPlayed + 1 savegp CurrentPlayer = 1 PlayersPlayingGame = 1 bOnTheFirstBall = True For i = 1 To MaxPlayers Score(i) = 0 BonusPoints(i) = 0 BonusHeldPoints(i) = 0 BonusMultiplier(i) = 1 BallsRemaining(i) = 3 ExtraBallsAwards(i) = 0 Boards(i) = 0 spotmastered(i) = 0 bumpercount = 0 waxcount (i) = 0 endlesssummerbonus = 0 endlesssummerbonuspre = 0 Skeetbonus = 0 Skeetbonuspre = 0 Sexwaxfrenzybonus = 0 Sexwaxfrenzybonuspre = 0 loopbonus = 0 loopbonuspre = 0 offthelipbonus = 0 offthelipbonuspre = 0 aerialbonus = 0 aerialbonuspre = 0 diversitymultiplier = 0 AwardPoints = 0 TotalBonus = 0 waxcountleft = 0 progress(i) = 0 modecount = 0 kickerticket.enabled=false:light_ticketarrow.state=0:light_planearrow.state=0:Light_plane.state=0:Kickerflight.enabled=false:ripcurl.enabled=true Next surfmusic1.enabled=false:surfmusic2.enabled=false:surfmusic3.enabled=false:surfmusic4.enabled=false:surfmusic5.enabled=false gateleft.open=false:gateright.open=false triggerloop.enabled=false triggeroffthelip.enabled=false triggeraerial.enabled=false kickerleft.enabled=false waxcount10.visible=false lightSurfMode1.state=0:lightSurfMode2.state=0:lightSurfMode3.state=0:lightSurfMode4.state=0 lightSharkMode1.state=0:lightSharkMode2.state=0:lightSharkMode3.state=0:lightSharkMode4.state=0 outro.enabled=false Sharkwall002.visible=false DOF 105, DOFOn GiOff For each a in GI a.State = 0 a.Intensity=2 a.fadespeedup=0.1 a.fadespeeddown=0.1 Next TimerBoardwall3down.Enabled = true l21.state=2:l22.state=2:l23.state=2 l1.state=0:l2.state=0:l3.state=0:l4.state=0:light_kickback.state=0 l31.state=2:l32.state=2:l33.state=2 l11.state=2:l12.state=0:l13.state=0:l14.state=0:l15.state=0:l16.state=0:l17.state=0 Light_Tubearrow1.state=0:Light_Tubearrow2.state=0:Light_Tubearrow3.state=0 Light_Tubewave1.state=0:Light_Tubewave2.state=0:Light_Tubewave3.state=0 Light_Ticketarrow.state=0:Light_ticket.state=0:Light_Triggershot_right.state=0:Light_plane.state=0:Light_planearrow.state=0 Light_waxbowl.state=0 For each xx in aTargetsES:xx.isdropped = false : Next For each xx in aLightsES:xx.state=2 : Next For each xx in aTargetsSKEET:xx.isdropped = false : Next For each xx in aLightsSKEET:xx.state=2 : Next Boardwall1.transY = 0:boardwall1.collidable=true:boardwall1.visible=true Boardwall2.transY = 0:boardwall2.collidable=true:boardwall2.visible=true DOF 105,DOFOff Tilt = 0 Game_Init() vpmtimer.addtimer 1500, "FirstBall '" End Sub I am at my wit's end with this... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now