Extra Ball oddity / error ?

38 views
Skip to first unread message

Bowman9

unread,
Aug 11, 2026, 9:50:55 PM (13 days ago) Aug 11
to MPF Users
I am currently working on my extra ball mode and have it working, however when if I pull up a widget (to coincide with the hit) that just happens to contain the text/word "awarded" or "rewarded" in the widget the game will crash.

If I just have "extra ball" or "testing" or something similar it will work fine.
But, if I use "extra ball awarded" or "extra ball rewarded" it will crash the game.

I tried coping and pasting the text out of visual studio and into note pad and back to visual studio to get rid of any possible hidden characters with no luck.

Is there something baked into MPF that I'm conflicting with?

Here is the widget in question.
This is found in my widget.yaml

widgets:
  eball_hit_widget:
    - type: text
      text: "EXTRA BALL AWARDED"
      font_size: 72 ## it appears 72 is the highest size limit
      font_name: showg
      bold: no
      italic: no
      color: ffaa00
      outline_color: b04300
      outline_width: 1
      x: 50%
      y: 25%
      animations:
        add_to_slide: # slides_play: ## show_slide:
          - property: opacity
            value: 1
            duration: .125s
          - property: opacity
            value: 0
            duration: .125s
            repeat: true

-----------------------------------------------
-----------------------------------------------

Here is the extra ball stuff in my base.yaml

### extra ball stuff
accruals:
  # Extra Ball lit event will be created after completing these shots
  lb_extra_ball:
    events:
      - standup_targets_complete
#      - right_acme_complete
#      - left_acme_complete
    events_when_complete: extra_ball_event ### event created by completing accruals - used in extra_ball yaml
    persist_state: true

show_player: ### light show player
  extra_ball_eb_awarded: ## triggering event from extra_ball.yaml
    same-player-shoots-again: ### name of show that will play
      priority: 1

    extra-ball-flash: ### name of show that will play
      speed: 10
      loops: 5
      priority: 1

    left-acme-flash: ### name of show that will play
      speed: 10
      loops: 5
      priority: 1

    right-acme-flash: ### name of show that will play
      speed: 10
      loops: 5
      priority: 1

widget_player:
  extra_ball_eb_awarded: ## triggering event from extra_ball.yaml
    eball_hit_widget: ### widget defined on widgets yaml
      slide: base_slide
      action: add
      widget_settings:
        expire: 2s
        z: 100 ### -1 would place this widget above all other slides

---------------------------------------------------------------
---------------------------------------------------------------

And here is what is in my extra_ball mode yaml

#config_version=5
### extra_ball mode

mode:
  start_events: extra_ball_event ##{current_player.extra_ball_awarded==0} ## extra_ball_event
  stop_events: extra_ball_shot_hit, tilt
  priority: 200

extra_balls: ## when the extra_ball_shot is hit the extra ball is awarded
  eb:
    award_events: extra_ball_shot_hit ## name of shot
    max_per_game: 1 ## maximum number of extra balls per game

shot_profiles:
  sp_extra_ball:
    states:
      - name: lit
        show: extra-ball-flash
      - name: hit
        show: on

shots:
  extra_ball_shot:
    switch: s_bullseye_target
    reset_events: extra_ball_eb_awarded ## mode_extra_ball_started ## extra_ball_eb_awarded
    profile: sp_extra_ball
    show_tokens:
      light: l_extra_ball_light

widget_player:
  mode_extra_ball_started: ### trigger
    eball_lit_widget: ### widget defined on widgets yaml
      slide: base_slide
      action: add
      widget_settings:
        z: 100 ### -1 would place this widget above all other slides  

Max Power

unread,
Aug 12, 2026, 11:50:05 AM (12 days ago) Aug 12
to mpf-...@googlegroups.com
MPF-MC will silently crash if it has problems rendering text.  Usually it's a problem with very large fonts or fonts with atypical spacing.  I once fought an issue where entering certain initials would crash the high score mode, believe I fixed it by changing the font size.

My advice is to remove the font and see if it still crashes, then try the original font at 1/4 the size and see if it works.  Trial and error here, unfortunately.

--
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/d29a0123-5dcf-4133-8e71-55c969da66e0n%40googlegroups.com.

Bowman9

unread,
Aug 12, 2026, 8:39:41 PM (12 days ago) Aug 12
to MPF Users
Thanks Maxxxpower420.

I decreased the font size and now it works.
Which is odd because I have other widgets with the larger font size that work.

Thanks again.
Reply all
Reply to author
Forward
0 new messages