Help syncing up on screen widgets with playfield lights.

50 views
Skip to first unread message

Bowman9

unread,
Oct 13, 2026, 10:12:03 PMOct 13
to MPF Users
I'm looking for helping syncing up lights with on screen widgets.
In my skill shot mode I have lights scanning/rotating back and forth to denote the winning shot. I then added widgets to mirror what is happening on the playfield.

The issue is the on screen widget is always delayed one second behind the playfield light.

I tried asking google AI and claude and they just kept spitting out idea after idea that didn't work.
I'm hoping someone here can help point me in the write direction.

For clarification I'm using Version 0.56.

Here is what I have going on. I'm using two timers to change the direction of the playfield lights.

timers:
  skillshot_right_direction_timer:
    start_value: 5
    end_value: 1
    tick_interval: 1s
    direction: down
    control_events:
      - event: mode_skill_shot_started
        action: start
      - event: timer_skillshot_left_direction_timer_complete
        action: start
      - event: timer_skillshot_left_direction_timer_complete
        action: reset
      - event: skill_lanes_lit_hit
        action: stop
      - event: skill_lanes_unlit_hit
        action: stop
      - event: sw_skill_shot_cancel_active
        action: stop


  skillshot_left_direction_timer:
    start_value: 5
    end_value: 1
    tick_interval: 1s
    direction: down
    control_events:
      - event: timer_skillshot_right_direction_timer_complete
        action: start
      - event: timer_skillshot_right_direction_timer_complete
        action: reset
      - event: skill_lanes_lit_hit
        action: stop
      - event: skill_lanes_unlit_hit
        action: stop
      - event: sw_skill_shot_cancel_active
        action: stop

I then have timer_tick setup in my shot group to move the light based on each tick.

shot_groups:
  skill_lanes:
    shots:
      - skill_01
      - skill_02
      - skill_03
      - skill_04
      - skill_05
    reset_events:
      - ball_started
      - mode_skill_shot_stopped
    rotate_right_events: timer_skillshot_right_direction_timer_tick
    rotate_left_events: timer_skillshot_left_direction_timer_tick

In my widget player I have the initial widget played on the start of the mode and then moved based on the ticks of the same timer as the lights.

widget_player:
  mode_skill_shot_started: ### trigger
    taunting_rabbit_widget:
      action: add
      slide: show_skillshot_timer
      key: taunting_rabbit
      widget_settings:
        x: 10%
        y: 10%
        z: 120

## --- SCANNING RIGHT: Move rabbit across layout based on timer ticks
 timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==5}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 10%
  timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==4}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 30%
  timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==3}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 50%
  timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==2}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 70%

 timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==1}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 90%

## --- SCANNING LEFT: Move rabbit across layout based on timer ticks
 timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==5}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 90%
  timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==4}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 70%
  timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==3}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 50%
  timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==2}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 30%
  timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==1}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 10%

Dan - aka BorgDog

unread,
Oct 14, 2026, 3:53:21 PMOct 14
to MPF Users
I'm not sure on the issue you are having, but I would suggest cleaning up a couple things... assuming it is in .56

in your timers you have 

     - event: timer_skillshot_left_direction_timer_complete
        action: start
      - event: timer_skillshot_left_direction_timer_complete
        action: reset

I could see that as a potential source of trouble.  replace those with action: restart which does both those things.

you could also replace the skill_lanes_lit_hit and skill_lanes_unlit_hit with just one skill_lanes_hit  it should not cause a problem the way you have it, just cleaner with only one.

it might be helpful if you could post a log showing this happening

Max Power

unread,
Oct 14, 2026, 9:09:03 PMOct 14
to mpf-...@googlegroups.com
As a sanity check, do text widgets get delayed as well?  Is there a delay on adding/removing the image widget?

What are the specs of the PC you're running the game on?

--
You received this message because you are subscribed to the Google Groups "MPF Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mpf-users+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/mpf-users/4dbc08ee-fd33-4803-84d0-d77e86a1642cn%40googlegroups.com.

Bowman9

unread,
Oct 14, 2026, 10:32:15 PMOct 14
to MPF Users
I replaced the image widget with a text widget as suggested, but the results were the same. The onscreen widget is one step behind the playfield light.
There are no delays in adding or removing the widgets from the screen. 

All testing is being done on my laptop virtual environment, no physical hardware yet.
HP Laptop running Windows 10 Home edition 64 bit
Processor AMD A9-9425 RADEON R5, 5 COMPUTE CORES 2C+3G      3.10 GHz
Installed RAM 24.0 GB (23.5 GB usable)

In the example image below you will see that the rotation is moving from the right side to the left side.
The number 2 on the playfield is lit (see red box), but the onscreen X widget is in the number 3 position, being constantly one step behind the playfield light.


example.jpg

Bowman9

unread,
Oct 14, 2026, 11:29:33 PMOct 14
to MPF Users
here is a portion of the log,  it looks like at  2026-10-14 23:08:00,905 the  player_shot_skill_01 light comes on, but the  taunting_rabbit_widget doesn't load until  2026-10-14 23:08:00,907

any ideas?

2026-10-14 23:08:00,900 : EventManager : Event: ======'player_skill_shot_skillshot_timer_tick'====== Args={'value': 9, 'prev_value': 0, 'change': 9, 'player_num': 1}
2026-10-14 23:08:00,900 : EventManager : Event: ======'player_skill_shot_skillshot_right_direction_timer_tick'====== Args={'value': 5, 'prev_value': 0, 'change': 5, 'player_num': 1}
2026-10-14 23:08:00,900 : EventManager : Event: ======'player_skill_shot_skillshot_left_direction_timer_tick'====== Args={'value': 5, 'prev_value': 0, 'change': 5, 'player_num': 1}
2026-10-14 23:08:00,900 : EventManager : Event: ======'player_shot_skill_01_enabled'====== Args={'value': True, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:00,901 : EventManager : Event: ======'player_shot_skill_02_enabled'====== Args={'value': True, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:00,901 : EventManager : Event: ======'player_shot_skill_03_enabled'====== Args={'value': True, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:00,901 : EventManager : Event: ======'player_shot_skill_04_enabled'====== Args={'value': True, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:00,901 : EventManager : Event: ======'player_shot_skill_05_enabled'====== Args={'value': True, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:00,905 : EventManager : Event: ======'player_shot_skill_01'====== Args={'value': 1, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:00,906 : EventManager : Event: ======'player_skillshot_timer_display'====== Args={'value': 10, 'prev_value': 0, 'change': 10, 'player_num': 1}
2026-10-14 23:08:00,906 : EventManager : Event: ======'slides_play'====== Args={'settings': {'show_skillshot_timer': {'action': 'play', 'target': None, 'background_color': [0.0, 0.0, 0.0, 1.0], 'priority': None, 'show': True, 'force': False, 'expire': None, 'slide': None, 'tokens': {}}}, 'context': 'skill_shot', 'calling_context': 'mode_skill_shot_started', 'priority': 400, 'player': 1, 'ball': 1, 'balls_remaining': 2, 'is_extra_ball': False}
2026-10-14 23:08:00,907 : EventManager : Event: ======'widgets_play'====== Args={'settings': {'shoot_skillshot_widget': {'slide': 'show_skillshot_timer', 'action': 'add', 'widget_settings': {'z': 100}, 'priority': 0, 'key': None, 'target': None}, 'taunting_rabbit_widget': {'action': 'add', 'slide': 'show_skillshot_timer', 'key': 'taunting_rabbit', 'widget_settings': {'x': '10%', 'y': '10%', 'z': 120}, 'priority': 0, 'target': None}}, 'context': 'skill_shot', 'calling_context': 'mode_skill_shot_started', 'priority': 400, 'player': 1, 'ball': 1, 'balls_remaining': 2, 'is_extra_ball': False}
2026-10-14 23:08:00,907 : EventManager : Event: ======'player_shot_skill_01'====== Args={'value': 0, 'prev_value': 1, 'change': -1, 'player_num': 1}
2026-10-14 23:08:00,907 : EventManager : Event: ======'player_shot_skill_02'====== Args={'value': 1, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:00,907 : EventManager : Event: ======'widgets_play'====== Args={'settings': {'taunting_rabbit_widget': {'action': 'update', 'key': 'taunting_rabbit', 'widget_settings': {'x': '10%'}, 'priority': 0, 'slide': None, 'target': None}}, 'context': 'skill_shot', 'calling_context': 'timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==5}', 'priority': 400, 'ticks': 5, 'ticks_remaining': 4}
2026-10-14 23:08:00,908 : mpfmc : SlidePlayer: Play called with settings={'show_skillshot_timer': {'action': 'play', 'target': None, 'background_color': [0.0, 0.0, 0.0, 1.0], 'priority': None, 'show': True, 'force': False, 'expire': None, 'slide': None, 'tokens': {}}}
2026-10-14 23:08:00,921 : EventManager : Event: ======'slide_show_skillshot_timer_created'====== Args={}
2026-10-14 23:08:00,938 : EventManager : Unordered handler for class McConfigPlayer.widgets on event slide_show_skillshot_timer_created with priority 0. Handlers: [RegisteredHandler(callback=<bound method McWidgetPlayer._add_widget_to_slide_when_active of McConfigPlayer.widgets>, priority=0, kwargs={'slide_name': 'show_skillshot_timer', 'widget': 'shoot_skillshot_widget', 's': {'slide': 'show_skillshot_timer', 'widget_settings': {'z': 100}, 'key': 'skill_shot-shoot_skillshot_widget', 'target': None}, 'play_kwargs': {'player': 1, 'ball': 1, 'balls_remaining': 2, 'is_extra_ball': False}}, key=UUID('1d17b610-5b8d-49fa-88d4-0b6366702976'), condition=None, blocking_facility=None), RegisteredHandler(callback=<bound method McWidgetPlayer._add_widget_to_slide_when_active of McConfigPlayer.widgets>, priority=0, kwargs={'slide_name': 'show_skillshot_timer', 'widget': 'taunting_rabbit_widget', 's': {'slide': 'show_skillshot_timer', 'key': 'taunting_rabbit', 'widget_settings': {'x': '10%', 'y': '10%', 'z': 120}, 'target': None}, 'play_kwargs': {'player': 1, 'ball': 1, 'balls_remaining': 2, 'is_extra_ball': False}}, key=UUID('c50ea8f0-cb3e-410e-b4c0-960d4375a961'), condition=None, blocking_facility=None)]. The order of those handlers is not defined and they will be executed in random order. This might lead to race conditions and potential bugs.
2026-10-14 23:08:00,948 : EventManager : Event: ======'slide_show_skillshot_timer_active'====== Args={}
2026-10-14 23:08:01,166 : EventManager : Event: ======'machine_var_audits_switches_s_plunger_lane'====== Args={'value': 2556, 'prev_value': 2555, 'change': 1}
2026-10-14 23:08:01,934 : EventManager : Event: ======'player_skill_shot_skillshot_right_direction_timer_tick'====== Args={'value': 4, 'prev_value': 5, 'change': -1, 'player_num': 1}
2026-10-14 23:08:01,974 : EventManager : Event: ======'player_shot_skill_02'====== Args={'value': 0, 'prev_value': 1, 'change': -1, 'player_num': 1}
2026-10-14 23:08:01,975 : EventManager : Event: ======'player_shot_skill_03'====== Args={'value': 1, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:01,975 : EventManager : Event: ======'widgets_play'====== Args={'settings': {'taunting_rabbit_widget': {'action': 'update', 'key': 'taunting_rabbit', 'widget_settings': {'x': '30%'}, 'priority': 0, 'slide': None, 'target': None}}, 'context': 'skill_shot', 'calling_context': 'timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==4}', 'priority': 400, 'ticks': 4, 'ticks_remaining': 3}
2026-10-14 23:08:02,895 : EventManager : Event: ======'player_skill_shot_skillshot_right_direction_timer_tick'====== Args={'value': 3, 'prev_value': 4, 'change': -1, 'player_num': 1}
2026-10-14 23:08:02,908 : EventManager : Event: ======'player_shot_skill_03'====== Args={'value': 0, 'prev_value': 1, 'change': -1, 'player_num': 1}
2026-10-14 23:08:02,909 : EventManager : Event: ======'player_shot_skill_04'====== Args={'value': 1, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:02,909 : EventManager : Event: ======'widgets_play'====== Args={'settings': {'taunting_rabbit_widget': {'action': 'update', 'key': 'taunting_rabbit', 'widget_settings': {'x': '50%'}, 'priority': 0, 'slide': None, 'target': None}}, 'context': 'skill_shot', 'calling_context': 'timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==3}', 'priority': 400, 'ticks': 3, 'ticks_remaining': 2}
2026-10-14 23:08:03,915 : EventManager : Event: ======'player_skill_shot_skillshot_right_direction_timer_tick'====== Args={'value': 2, 'prev_value': 3, 'change': -1, 'player_num': 1}
2026-10-14 23:08:03,916 : EventManager : Event: ======'player_shot_skill_04'====== Args={'value': 0, 'prev_value': 1, 'change': -1, 'player_num': 1}
2026-10-14 23:08:03,916 : EventManager : Event: ======'player_shot_skill_05'====== Args={'value': 1, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:03,917 : EventManager : Event: ======'widgets_play'====== Args={'settings': {'taunting_rabbit_widget': {'action': 'update', 'key': 'taunting_rabbit', 'widget_settings': {'x': '70%'}, 'priority': 0, 'slide': None, 'target': None}}, 'context': 'skill_shot', 'calling_context': 'timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==2}', 'priority': 400, 'ticks': 2, 'ticks_remaining': 1}
2026-10-14 23:08:04,907 : EventManager : Event: ======'player_skill_shot_skillshot_right_direction_timer_tick'====== Args={'value': 1, 'prev_value': 2, 'change': -1, 'player_num': 1}
2026-10-14 23:08:04,921 : EventManager : Event: ======'player_shot_skill_04'====== Args={'value': 1, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:04,921 : EventManager : Event: ======'player_shot_skill_05'====== Args={'value': 0, 'prev_value': 1, 'change': -1, 'player_num': 1}
2026-10-14 23:08:04,922 : EventManager : Event: ======'widgets_play'====== Args={'settings': {'taunting_rabbit_widget': {'action': 'update', 'key': 'taunting_rabbit', 'widget_settings': {'x': '90%'}, 'priority': 0, 'slide': None, 'target': None}}, 'context': 'skill_shot', 'calling_context': 'timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==5}', 'priority': 400, 'ticks': 5, 'ticks_remaining': 4}
2026-10-14 23:08:05,922 : EventManager : Event: ======'player_skill_shot_skillshot_left_direction_timer_tick'====== Args={'value': 4, 'prev_value': 5, 'change': -1, 'player_num': 1}
2026-10-14 23:08:05,923 : EventManager : Event: ======'player_shot_skill_03'====== Args={'value': 1, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:05,923 : EventManager : Event: ======'player_shot_skill_04'====== Args={'value': 0, 'prev_value': 1, 'change': -1, 'player_num': 1}
2026-10-14 23:08:05,923 : EventManager : Event: ======'widgets_play'====== Args={'settings': {'taunting_rabbit_widget': {'action': 'update', 'key': 'taunting_rabbit', 'widget_settings': {'x': '70%'}, 'priority': 0, 'slide': None, 'target': None}}, 'context': 'skill_shot', 'calling_context': 'timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==4}', 'priority': 400, 'ticks': 4, 'ticks_remaining': 3}
2026-10-14 23:08:06,891 : EventManager : Event: ======'player_skill_shot_skillshot_left_direction_timer_tick'====== Args={'value': 3, 'prev_value': 4, 'change': -1, 'player_num': 1}
2026-10-14 23:08:06,892 : EventManager : Event: ======'player_shot_skill_02'====== Args={'value': 1, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:06,892 : EventManager : Event: ======'player_shot_skill_03'====== Args={'value': 0, 'prev_value': 1, 'change': -1, 'player_num': 1}
2026-10-14 23:08:06,893 : EventManager : Event: ======'widgets_play'====== Args={'settings': {'taunting_rabbit_widget': {'action': 'update', 'key': 'taunting_rabbit', 'widget_settings': {'x': '50%'}, 'priority': 0, 'slide': None, 'target': None}}, 'context': 'skill_shot', 'calling_context': 'timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==3}', 'priority': 400, 'ticks': 3, 'ticks_remaining': 2}
2026-10-14 23:08:07,907 : EventManager : Event: ======'player_skill_shot_skillshot_left_direction_timer_tick'====== Args={'value': 2, 'prev_value': 3, 'change': -1, 'player_num': 1}
2026-10-14 23:08:07,908 : EventManager : Event: ======'player_shot_skill_01'====== Args={'value': 1, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:07,908 : EventManager : Event: ======'player_shot_skill_02'====== Args={'value': 0, 'prev_value': 1, 'change': -1, 'player_num': 1}
2026-10-14 23:08:07,908 : EventManager : Event: ======'widgets_play'====== Args={'settings': {'taunting_rabbit_widget': {'action': 'update', 'key': 'taunting_rabbit', 'widget_settings': {'x': '30%'}, 'priority': 0, 'slide': None, 'target': None}}, 'context': 'skill_shot', 'calling_context': 'timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==2}', 'priority': 400, 'ticks': 2, 'ticks_remaining': 1}
2026-10-14 23:08:08,904 : EventManager : Event: ======'player_skill_shot_skillshot_left_direction_timer_tick'====== Args={'value': 1, 'prev_value': 2, 'change': -1, 'player_num': 1}
2026-10-14 23:08:08,922 : EventManager : Event: ======'player_skill_shot_skillshot_right_direction_timer_tick'====== Args={'value': 5, 'prev_value': 1, 'change': 4, 'player_num': 1}
2026-10-14 23:08:08,923 : EventManager : Event: ======'player_shot_skill_01'====== Args={'value': 0, 'prev_value': 1, 'change': -1, 'player_num': 1}
2026-10-14 23:08:08,923 : EventManager : Event: ======'player_shot_skill_02'====== Args={'value': 1, 'prev_value': 0, 'change': 1, 'player_num': 1}
2026-10-14 23:08:08,924 : EventManager : Event: ======'widgets_play'====== Args={'settings': {'taunting_rabbit_widget': {'action': 'update', 'key': 'taunting_rabbit', 'widget_settings': {'x': '10%'}, 'priority': 0, 'slide': None, 'target': None}}, 'context': 'skill_shot', 'calling_context': 'timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==5}', 'priority': 400, 'ticks': 5, 'ticks_remaining': 4}
2026-10-14 23:08:09,927 : EventManager : Event: ======'player_skill_shot_skillshot_right_direction_timer_tick'====== Args={'value': 4, 'prev_value': 5, 'change': -1, 'player_num': 1}

Bowman9

unread,
Oct 14, 2026, 11:37:10 PMOct 14
to MPF Users
and here is my current yaml file for reference

#config_version=5
##! mode: skillshot

mode:
  start_events:
    - ball_started
    - mode_bonus_stopped
  stop_events:
    - skill_success
    - skill_failed
  priority: 400

event_player:
  s_start_active: sw_add_player
  timer_skillshot_timer_stopped: skill_failed|2s
  skill_lanes_lit_hit: skill_success|2s
  skill_lanes_unlit_hit: skill_failed|2s
  sw_skill_shot_cancel_active: skill_failed|2s
  s_drain_active: skill_failed|2s

variable_player:
  skill_lanes_lit_hit:  ## shot group - trigger event
    score: 10000
  mode_skill_shot_started: # Explicitly to reset the visual number on screen at start of mode
    skillshot_timer_display:
      int: 10
      action: set
  timer_skillshot_timer_tick: ## event
    skillshot_timer_display:
      int: device.timers.skillshot_timer.ticks
      action: set  

sound_player:
  skill_lanes_lit_hit:  ## shot group
    attract_voice: # pulling from a sound pool
      action: play
      loops: 0 # -1 will make the sound loop not need here
      volume: 0.5

  s_plunger_lane_inactive:
    tick_tock:  
      action: play
      loops: 0 # -1 will make the sound loop not need here
      volume: 0.5
      mode_end_action: stop

show_player:
  skill_lanes_lit_hit:  ## trigger
    test-rollover-flash:
      speed: 10
      loops: 5
      priority: 1
 
timers:
  skillshot_timer: # name of the timer that can be used to trigger other events
    start_value: 9
    end_value: -1
    tick_interval: 1s # tick intervals can 0.5s, 1s, 1.5s whatever is needed for your specific mode
    direction: down
    control_events:
      - event: mode_skill_shot_started
        action: reset
      - event: s_plunger_lane_inactive
        action: start
      - event: skill_lanes_lit_hit
        action: stop
      - event: skill_lanes_unlit_hit
        action: stop
      - event: sw_skill_shot_cancel_active
        action: stop        

  skillshot_right_direction_timer:
    start_value: 5
    end_value: 1
    tick_interval: 1s
    direction: down
    control_events:
      - event: mode_skill_shot_started
        action: start
      - event: timer_skillshot_left_direction_timer_complete
        action: restart ## start
#      - event: timer_skillshot_left_direction_timer_complete
#        action: reset
      - event: skill_lanes_lit_hit
        action: stop
      - event: skill_lanes_unlit_hit
        action: stop
      - event: sw_skill_shot_cancel_active
        action: stop
      - event: timer_skillshot_timer_complete
        action: stop

  skillshot_left_direction_timer:
    start_value: 5
    end_value: 1
    tick_interval: 1s
    direction: down
    control_events:
      - event: timer_skillshot_right_direction_timer_complete    # Event that triggers the action
        action: restart ## start
#      - event: timer_skillshot_right_direction_timer_complete
#        action: reset
      - event: skill_lanes_lit_hit
        action: stop
      - event: skill_lanes_unlit_hit
        action: stop
      - event: sw_skill_shot_cancel_active
        action: stop
      - event: timer_skillshot_timer_complete
        action: stop

shot_profiles:
  skillshot_profile:
    loop: true
    advance_on_hit: false
    states:
      - name: unlit
        show: off
      - name: lit
        show: on      

shot_groups:
  skill_lanes:
    shots:
      - skill_01
      - skill_02
      - skill_03
      - skill_04
      - skill_05
    reset_events:
      - ball_started
      - mode_skill_shot_stopped
    rotate_right_events: timer_skillshot_right_direction_timer_tick{ticks==5}, timer_skillshot_right_direction_timer_tick{ticks==4}, timer_skillshot_right_direction_timer_tick{ticks==3}, timer_skillshot_right_direction_timer_tick{ticks==2}, timer_skillshot_right_direction_timer_tick{ticks==1} ## timer_skillshot_right_direction_timer_tick
    rotate_left_events: timer_skillshot_left_direction_timer_tick{ticks==5}, timer_skillshot_left_direction_timer_tick{ticks==4}, timer_skillshot_left_direction_timer_tick{ticks==3}, timer_skillshot_left_direction_timer_tick{ticks==2}, timer_skillshot_left_direction_timer_tick{ticks==1} ## timer_skillshot_left_direction_timer_tick

shots:
  skill_01:
    switch: s_rollover_01
    profile: skillshot_profile
    show_tokens:
      light: l_top_rollover_light_1
    advance_events: mode_skill_shot_started
    reset_events:
      - ball_started
      - mode_skill_shot_stopped    
  skill_02:
    switch: s_rollover_02
    profile: skillshot_profile
    show_tokens:
      light: l_top_rollover_light_2
    reset_events: ball_started      
  skill_03:
    switch: s_rollover_03
    profile: skillshot_profile
    show_tokens:
      light: l_top_rollover_light_3
    reset_events: ball_started
  skill_04:
    switch: s_rollover_04
    profile: skillshot_profile
    show_tokens:
      light: l_top_rollover_light_4
    reset_events: ball_started      
  skill_05:
    switch: s_rollover_05
    profile: skillshot_profile
    show_tokens:
      light: l_top_rollover_light_5
    reset_events: ball_started      

slides:
  show_skillshot_timer:
    widgets:
      - type: text
        text: (player|skillshot_timer_display)
        font_size: 50
        font_name: showg
        bold: no
        italic: no
        color: ffaa00
        outline_color: b04300
        outline_width: 1
        x: 50%
        y: 35%
        z: 100
      - type: image
        image: blank-bg ## boot-image
        x: 50%
        y: 50%
        z: 1

slide_player:
  mode_skill_shot_started: ### trigger
    show_skillshot_timer: ### name of slide
      action: play    

widget_player:
  mode_skill_shot_started: ### trigger
    shoot_skillshot_widget: ### widget defined on widgets yaml
      slide: show_skillshot_timer
      action: add
      widget_settings:
        z: 100 ### -1 would place this widget above all other slides  
## --- INDIVIDUAL TARGET IMPACT INTERCEPTS ---

  skill_01_lit_hit:
    taunting_rabbit_widget:
      action: remove
      key: taunting_rabbit
    hit_rabbit_widget:
      slide: show_skillshot_timer
      action: add
      widget_settings:
        x: 10%
        y: 10%
        z: 120        
#        expire: 2s
        loops: 0 ### -1 loops forever

  skill_02_lit_hit:
    taunting_rabbit_widget:
      action: remove
      key: taunting_rabbit
    hit_rabbit_widget:
      slide: show_skillshot_timer
      action: add
      widget_settings:
        x: 30%
        y: 10%
        z: 120        
#        expire: 2s
        loops: 0 ### -1 loops forever

  skill_03_lit_hit:
    taunting_rabbit_widget:
      action: remove
      key: taunting_rabbit
    hit_rabbit_widget:
      slide: show_skillshot_timer
      action: add
      widget_settings:
        x: 50%
        y: 10%
        z: 120        
#        expire: 2s
        loops: 0 ### -1 loops forever

  skill_04_lit_hit:
    taunting_rabbit_widget:
      action: remove
      key: taunting_rabbit
    hit_rabbit_widget:
      slide: show_skillshot_timer
      action: add
      widget_settings:
        x: 70%
        y: 10%
        z: 120        
#        expire: 2s
        loops: 0 ### -1 loops forever

  skill_05_lit_hit:
    taunting_rabbit_widget:
      action: remove
      key: taunting_rabbit
    hit_rabbit_widget:
      slide: show_skillshot_timer
      action: add
      widget_settings:
        x: 90%
        y: 10%
        z: 120        
#        expire: 2s
        loops: 0 ### -1 loops forever          

  skill_lanes_lit_hit:  ### trigger shot group
    shoot_skillshot_widget:
      action: remove    
    award_skillshot_widget: ### widget defined on widgets yaml
      slide: show_skillshot_timer
      action: add
      widget_settings:
        z: 100 ### -1 would place this widget above all other slides

  timer_skillshot_timer_complete:  ### trigger
    shoot_skillshot_widget:
      action: remove
    timesup_skillshot_widget: ### widget defined on widgets yaml
      slide: show_skillshot_timer
      action: add
      widget_settings:
        z: 100 ### -1 would place this widget above all other slides

  sw_skill_shot_cancel_active: ### trigger
    shoot_skillshot_widget:
      action: remove
    missed_skillshot_widget: ### widget defined on widgets yaml
      slide: show_skillshot_timer
      action: add
      widget_settings:
        z: 50 ### -1 would place this widget above all other slides

  skill_lanes_unlit_hit: ### trigger
    shoot_skillshot_widget:
      action: remove
    missed_skillshot_widget: ### widget defined on widgets yaml
      slide: show_skillshot_timer
      action: add
      widget_settings:
        z: 50 ### -1 would place this widget above all other slides    

Dan - aka BorgDog

unread,
Oct 15, 2026, 7:18:06 PMOct 15
to MPF Users
I don't see where in the code  taunting_rabbit_widget is started? based on widgets_play but don't see that in there either.

so does it follow along both directions just fine, but behind by one?

Greg Blythe

unread,
Oct 15, 2026, 7:20:51 PMOct 15
to mpf-...@googlegroups.com
any chance for a meetup at Pinball Expo?  cheers!  Greg

Bowman9

unread,
Oct 17, 2026, 3:58:10 PMOct 17
to MPF Users
So, I added a two second delay timer before the start of the skillshot_right_direction_timer.
And shifted the taunting_rabbit_widgets over into their next positions.
This fixed the out of sync delay I was seeing.

here is the updated yaml if anyone is interested
  skillshot_delay_timer: ## used to sync lights with widgets
    start_value: 2

    end_value: 1
    tick_interval: 1s
    direction: down
    control_events:
      - event: mode_skill_shot_started
        action: start

  skillshot_right_direction_timer:
    start_value: 5
    end_value: 1
    tick_interval: 1s
    direction: down
    control_events:
      - event: timer_skillshot_delay_timer_complete

        action: start
      - event: timer_skillshot_left_direction_timer_complete
        action: restart
      - event: skill_lanes_lit_hit
        action: stop
      - event: skill_lanes_unlit_hit
        action: stop
      - event: sw_skill_shot_cancel_active
        action: stop
      - event: timer_skillshot_timer_complete
        action: stop

  skillshot_left_direction_timer:
    start_value: 5
    end_value: 1
    tick_interval: 1s
    direction: down
    control_events:
      - event: timer_skillshot_right_direction_timer_complete  
        action: restart
    rotate_left_events: timer_skillshot_left_direction_timer_tick
    taunting_rabbit_widget: ## places widget in first position

      action: add
      slide: show_skillshot_timer
      key: taunting_rabbit
      widget_settings:
        x: 10%
        y: 10%
        z: 120

## --- SCANNING RIGHT: Move rabbit across layout based on timer ticks

  timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==5}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 30%


  timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==4}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 50%


  timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==3}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 70%


  timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==2}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 90%

## --- SCANNING LEFT: Move rabbit across layout based on timer ticks

  timer_skillshot_right_direction_timer_tick{device.timers.skillshot_right_direction_timer.ticks==1}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 70%

  timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==5}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 70%


  timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==4}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 50%


  timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==3}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 30%


  timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==2}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 10%


## --- SCANNING RIGHT: Move rabbit across layout based on timer ticks

  timer_skillshot_left_direction_timer_tick{device.timers.skillshot_left_direction_timer.ticks==1}:
    taunting_rabbit_widget:
      action: update
      key: taunting_rabbit
      widget_settings:
        x: 30%
Reply all
Reply to author
Forward
0 new messages