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:
- physical_only
#config_version=5
config: config.yaml
modes:
- source_devices
#config_version=5
config: config.yaml
modes:
- min_virtual_physical
#config_version=5
config: config.yaml
modes:
- default
#config_version=5
config: config.yaml
modes:
- virtual_only
#config_version=5
game:
balls_per_game: 2
coils:
eject_coil1:
number:
eject_coil2:
number:
eject_coil3:
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:
s_lockt1:
number:
s_lockt2:
number:
s_lockt3:
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
bd_lock_triple:
eject_coil: eject_coil3
ball_switches: s_lockt1, s_lockt2, s_lockt3
eject_timeouts: 2s
multiballs:
mb:
ball_count: 2
shoot_again: 0
start_events: mb_start
ball_locks: bd_lock
#config_version=5
config: config.yaml
modes:
- no_virtual
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_no_virtual
multiball_locks:
lock_no_virtual:
lock_devices: bd_lock
balls_to_lock: 2
locked_ball_counting_strategy: no_virtual
debug: True
#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
debug: True
#config_version=5
mode:
start_events: start_default
event_player:
test_event_when_enabled:
- should_post_when_enabled{device.multiball_locks.lock_default.enabled}
- should_not_post_when_enabled{not device.multiball_locks.lock_default.enabled}
test_event_when_disabled:
- should_post_when_disabled{not device.multiball_locks.lock_default.enabled}
- should_not_post_when_disabled{device.multiball_locks.lock_default.enabled}
multiball_locks:
lock_default:
lock_devices: bd_lock
balls_to_lock: 2
locked_ball_counting_strategy: virtual_only
lock_triple:
lock_devices: bd_lock_triple
balls_to_lock: 3
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
debug: True
#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
debug: True
#config_version=5
mode:
start_events: start_source_devices
multiball_locks:
lock2:
lock_devices: bd_lock
source_devices: bd_lock_triple
balls_to_lock: 2
locked_ball_counting_strategy: virtual_only
lock1:
lock_devices: bd_lock_triple
balls_to_lock: 2
locked_ball_counting_strategy: virtual_only