Hi again,
Hopefully this one is a touch easier than my usual post... On MPF 0.57.3, MPF-MC 0.57.1. I'm trying a simpler approach to how I've done things in the past and, while in attract, I want to write the last game's scores to the segment_display_player. I've tried all of the following:
segment_display_player:
timer_display_loop_timer_tick{ticks==0}:
display1:
text: "{player1_score:d}"
segment_display_player:
timer_display_loop_timer_tick{ticks==0}:
display1:
text: "{machine|player1_score:d}"
segment_display_player:
timer_display_loop_timer_tick{ticks==0}:
display1:
text: (player1_score)
segment_display_player:
timer_display_loop_timer_tick{ticks==0}:
display1:
text: (machine|player1_score)
I have confirmed that the variable is available and populated in the machine_vars file by that name, and I also see it listed on the terminal screen under machine variables when the game is running, and I can see the expected value.
When using the () formats, it just writes the literal string "score)" to the displays. When I use the {} formats, it crashes and the log reports the following:
ValueError: Missing variable player1_score
In other places, I do things like the following and it works great:
player_score{player_num==1}:
display1:
text: "{players[0].score:d}"
So I'm not sure what I'm missing here. I'm clearly not calling out the variable the way it wants me to.
Thanks in advance,
Kaydee