Cannot store timer as player variable (to display timer)

22 views
Skip to first unread message

Ryan McQuaid

unread,
Feb 25, 2020, 4:49:17 PM2/25/20
to MPF Users
Using method outlined here: http://docs.missionpinball.org/en/latest/game_logic/timers/

example code given:
variable_player:
   
timer_your_timer_tick:
     
your_timer_variable_times_100:
         
int: device.your_timer.ticks * 100
         
action: set

my code:
variable_player:
    timer_speed_breakthrough_timeout_tick
:
      breakthrough_time_remaining
:
       
int: device.speed_breakthrough_timeout.ticks
        action
: set

results in the following error:

AssertionError: Device Collection speed_breakthrough_timeout not usable in placeholders.

jabdoa

unread,
Feb 26, 2020, 3:25:29 PM2/26/20
to MPF Users
Try the version from dev: http://docs.missionpinball.org/en/dev/game_logic/timers/. I think I fixed it there. Let me know if it does not work.

Jan

Ryan McQuaid

unread,
Feb 27, 2020, 1:37:21 PM2/27/20
to MPF Users
This example is confirmed working. Thanks :)
Reply all
Reply to author
Forward
0 new messages