Light issues

22 views
Skip to first unread message

Lisa Sue Jones

unread,
Jul 12, 2024, 8:18:59 PMJul 12
to MPF Users
Issue number 1:
I have several modes on my machine with lights that I need to come on a stay on until game end.

For instance, I have a light show for my pop bumpers challenge mode that works great.  But at the start of the mode, I would just like one light that indicates the challenge is completed to come on and stay on until game end.  

I have tried the following  with no luck:

achievements:
  pop_bumpers:
    show_tokens:
      lights: challenges_e
    show_when_started: flash
    show_when_completed: on
    events_when_started: mode_pop_bumpers_started
    enable_events: initialize_pop_bumpers, reset_pop_bumpers
    complete_events: mode_pop_bumpers
    reset_events: reset_pop_bumpers_started

I tried putting it in its own mode called challenges and no difference.  I will have many more of these to add so a mode to keep them together makes sense.  

Here's the code for the pop_bumpers_mode in case you can see I'm just wording something wrong:

#config_version=6
mode:
  start_events: start_mode_pop_bumpers
  stop_events: timer_pop_bumpers_timer_complete
  priority: 200
event_player:
  pop_bumpers_complete: start_mode_pop_bumpers

timers:
  pop_bumpers_timer:
    start_value: 20
    end_value: 0
    direction: down
    tick_interval: 1s
    control_events:
      - action: start
        event: mode_pop_bumpers_started
    start_running: false

show_player:
  mode_pop_bumpers_started:
    pop_bumpers_show:
      speed: 1
    pop_bumpers_lights:
      speed: 10


sound_player:
  mode_pop_bumpers_started:
    Pop_bumper_challenge_completed:
      action: play

variable_player:
  top_pop_bumpers_top_pop_bumpers_hit:
    score: 1000
  top_pop_bumpers_bottom_pop_bumpers_hit:
    score: 1000
  top_pop_bumpers_left_pop_bumpers_hit:
    score: 1000
  left_pop_bumpers_top_pop_bumpers_hit:
    score: 1000
  left_pop_bumpers_right_pop_bumpers_hit:
    score: 1000
  left_pop_bumpers_left_pop_bumpers_hit:
    score: 1000
  timer_pop_bumpers_timer_tick:
    pop_bumpers_timer_seconds:
      int: device.timers.pop_bumpers_timer.ticks % 60
      action: set

shots:
  top_pop_bumpers_top_pop_bumpers:
    switch: s_top_pop_bumpers_top
    profile: pop_bumpers
  top_pop_bumpers_bottom_pop_bumpers:
    switch: s_top_pop_bumpers_bottom
    profile: pop_bumpers
  top_pop_bumpers_left_pop_bumpers:
    switch: s_top_pop_bumpers_left
    profile: pop_bumpers
  left_pop_bumpers_top_pop_bumpers:
    switch: s_left_pop_bumpers_top
    profile: pop_bumpers
  left_pop_bumpers_right_pop_bumpers:
    switch: s_left_pop_bumpers_right
    profile: pop_bumpers
  left_pop_bumpers_left_pop_bumpers:
    switch: s_left_pop_bumpers_left
    profile: pop_bumpers

shot_profiles:
  pop_bumpers:
    states:
    - name: flashing
      show: flash
    loop: false
    block: true


  

Issue number 2:
I set up my orbits.  My inner orbit has only 1 rollover switch, so no problem with that light. 

shots:
  inner_orbit_enter:
    switch: s_inner_orbit_enter
    show_tokens:
      lights: arrow_left_inner_orbit
    profile: inner_orbit_enter_profile

shot_profiles:
  inner_orbit_enter_profile:
    states:
      - name: flashing
        show: flash

My other orbits are sequence shots:

sequence_shots:
  left_orbit:
    switch_sequence: s_left_orbit_bottom, s_left_orbit_top
    sequence_timeout: 3s
  right_orbit:
    switch_sequence: s_right_orbit_bottom, s_right_orbit_top
    sequence_timeout: 3s

I tried adding show tokens here as well as a shot profile and it won't work and says it is a config error.  

Issue number 3:
How do I make a shot flash just once each time a target is hit?  Like a pop bumper?

I hope this isn't too much to ask at once.

Thank you!


Reply all
Reply to author
Forward
0 new messages