multiball_locks (example config files)

Machine config examples

Here are some example machine-wide config files that show real-world examples of how these configs are used.

Note that there are multiple machine config examples here. They’re just included to show different options. You wouldn’t actually use more than one.

#config_version=5
config: config.yaml

modes:
    - no_virtual
#config_version=5
config: config.yaml

modes:
    - min_virtual_physical
#config_version=5
config: config.yaml

modes:
    - physical_only
#config_version=5
config: config.yaml

modes:
    - virtual_only
#config_version=5

game:
    balls_per_game: 2

coils:
    eject_coil1:
        number:
    eject_coil2:
        number:

switches:
    s_ball_switch1:
        number:
    s_ball_switch2:
        number:
    s_ball_switch3:
        number:
    s_ball_switch4:
        number:
    s_ball_switch5:
        number:
    s_ball_switch6:
        number:
    s_lock1:
        number:
    s_lock2:
        number:

playfields:
    playfield:
        default_source_device: bd_trough
        tags: default

ball_devices:
    bd_trough:
        eject_coil: eject_coil1
        ball_switches: s_ball_switch1, s_ball_switch2, s_ball_switch3, s_ball_switch4, s_ball_switch5, s_ball_switch6
        tags: trough, drain, home
        eject_timeouts: 2s
    bd_lock:
        eject_coil: eject_coil2
        ball_switches: s_lock1, s_lock2
        eject_timeouts: 2s

multiballs:
    mb:
        ball_count: 2
        shoot_again: 0
        start_events: mb_start
        ball_locks: bd_lock

Mode config examples

Here are some example mode config files that go along with the machine-wide config above.

Note that there are multiple mode config examples here. You might not necessarily use more than one in your machine.

#config_version=5
mode:
  start_events: start_physical_only

multiball_locks:
    lock_physical_only:
        lock_devices: bd_lock
        balls_to_lock: 2
        locked_ball_counting_strategy: physical_only
#config_version=5
mode:
  start_events: start_virtual_only

multiball_locks:
    lock_virtual_only:
        lock_devices: bd_lock
        balls_to_lock: 2
        locked_ball_counting_strategy: virtual_only
#config_version=5
mode:
  start_events: start_min_virtual_physical

multiball_locks:
    lock_min_virtual_physical:
        lock_devices: bd_lock
        balls_to_lock: 2
        locked_ball_counting_strategy: min_virtual_physical
#config_version=5
mode:
  start_events: start_no_virtual

multiball_locks:
    lock_no_virtual:
        lock_devices: bd_lock
        balls_to_lock: 2
        locked_ball_counting_strategy: no_virtual