score_queue_player night mode

28 views
Skip to first unread message

Dan - aka BorgDog

unread,
Aug 22, 2025, 1:03:44 PMAug 22
to MPF Users
I have my game configured with chimes and a score_queue_player.  I'm in the process of setting up a service menu, because why not, and one of things I wanted to put in is a night mode where it does not play the chimes, but I see no way to either disable a coil (disable on coils just turns it off if it's active) nor tell score_queue_player to do the scoring but not play the chimes.

any ideas?  new feature?  I'm on .57.4.dev1

Alex L

unread,
Aug 22, 2025, 6:40:07 PMAug 22
to MPF Users
It looks like the crucial line is in score_queue.py:72 where it does a chime pulse.

If you wrap that (and its log) in a conditional, you could add a dynamic conditional to the definition of score_queue (config_spec etc, see playfields:enable_ball_search using template_bool). Then you just need a setting or other machine var and you should be able to control the pulse behavior. Since it's unlikely that this value will change _during active scoring_, you might evaluate it earlier in _handle_score_queue rather than forcing a template evaluation on every iteration of the while loop.

Alex L

unread,
Aug 22, 2025, 6:44:52 PMAug 22
to MPF Users

Dan - aka BorgDog

unread,
Aug 23, 2025, 4:54:32 PMAug 23
to MPF Users
thanks Alex
Reply all
Reply to author
Forward
0 new messages