Register    Login    Forum    FAQ    PinSimDB.org

Board index » Future Pinball » FAQ & Help




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Script help needed, segment display
 Post Posted: Thu Jan 10, 2019 1:52 am 
Offline
User avatar

Joined: Thu Jan 26, 2017 6:48 pm
Posts: 58
Location: Australia
I have an opto sensor on a habitrail that when 'hit" I want to display a short message on a display segment. The problem is thus:

there is a spinner at the ramp entrance, and if the spinner is still scoring when the ball hits the sensor, then the message is not displayed. the message is displayed if I use the manual ball roller and slowly push the ball past the spinner so it has stopped before it gets to sensor.

the display code is simple and in this subroutine:

Code:
Sub TriggerOpto3_Hit()

   FluxCapacitorOn()

   Sign = Sign + 1


Select Case Sign

Case 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29


   DispSegM.QueueText "   BACK TO 1955",  seBlink, 3000, 0, False, ""
   HudSegInfo.QueueText "   BACK TO 1955",  seBlink, 3000, 0, False, ""

   HillValleySign1955.Dropped = FALSE
   HillValleySign1985.Dropped = TRUE

Case 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30


   DispSegM.QueueText "   BACK TO 1985",  seBlink, 3000, 0, False, ""
   HudSegInfo.QueueText "   BACK TO 1985",  seBlink, 3000, 0, False, ""

   HillValleySign1955.Dropped = TRUE
   HillValleySign1985.Dropped = FALSE

End Select


End Sub



how do I force the display to show the message even if there is scoring in progress?


Top 
 Profile  
 
 Post subject: Re: Script help needed, segment display
 Post Posted: Thu Jan 10, 2019 3:04 pm 
Offline

Joined: Mon Jan 27, 2014 12:36 pm
Posts: 2319
Location: Ontario, Canada
SlipperyJimdiGris wrote:
I have an opto sensor on a habitrail that when 'hit" I want to display a short message on a display segment. The problem is thus:

there is a spinner at the ramp entrance, and if the spinner is still scoring when the ball hits the sensor, then the message is not displayed. the message is displayed if I use the manual ball roller and slowly push the ball past the spinner so it has stopped before it gets to sensor.

the display code is simple and in this subroutine:

Code:
Sub TriggerOpto3_Hit()

   FluxCapacitorOn()

   Sign = Sign + 1


Select Case Sign

Case 1,3,5,7,9,11,13,15,17,19,21,23,25,27,29


   DispSegM.QueueText "   BACK TO 1955",  seBlink, 3000, 0, False, ""
   HudSegInfo.QueueText "   BACK TO 1955",  seBlink, 3000, 0, False, ""

   HillValleySign1955.Dropped = FALSE
   HillValleySign1985.Dropped = TRUE

Case 2,4,6,8,10,12,14,16,18,20,22,24,26,28,30


   DispSegM.QueueText "   BACK TO 1985",  seBlink, 3000, 0, False, ""
   HudSegInfo.QueueText "   BACK TO 1985",  seBlink, 3000, 0, False, ""

   HillValleySign1955.Dropped = TRUE
   HillValleySign1985.Dropped = FALSE

End Select


End Sub



how do I force the display to show the message even if there is scoring in progress?


You can have flag
ScoreUpdate = true/false

So in your segment code for score preface that with:
If ScoreUpdate = true then .....

Then in opo trigger code
have
Flush queue code
ScoreUpdate = false

And then add a timer to turn it back on....
Scoretimer.set True, 2000

Sub Scoretimer_expired
Scoretimer.set False
ScoreUpdate =True
End Sub


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 2 posts ] 

Board index » Future Pinball » FAQ & Help


Who is online

Users browsing this forum: No registered users and 6 guests

 
 

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to: