(solved) events_when_activated on a switch doesn't seem to work #24
-
Hi, part of my virtual config is
What works:
What doesn't work: Any ideas? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 5 replies
-
Does anything different happen if you fire the switch by clicking the switch in the MPF Monitor's Playfield window? There are some goofy things about the keyboard emulation of switches so I usually don't use it. |
Beta Was this translation helpful? Give feedback.
-
I have to admit I am very new to mpf and running through the tutorial (plus a bit left and right). I am not able to find a step in that tutorial (or elsewhere) how to create such a playfield. Is that missing or am I just not looking at the right places? Apart from that if they are goofy, if you can give me a hint where in the Python code I can find the relevant code snippet I could try to see if I can spot why it is not working for me. |
Beta Was this translation helpful? Give feedback.
-
Monitor is not in the tutorial. But there is a nice text introduction and video that Jan made. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the link, I read and watched it. In that video Jan just drags the elements onto the playfield to have them there. When I try to drag an item over from the device window onto the playfield window then nothing happens. Is there some prerequisite before I can do that? When I drag a switch over I see on the playfield window that my mouse pointer gets an overlay with a little red circle and a red line to indicate that this is not allowed/possible. |
Beta Was this translation helpful? Give feedback.
-
Hello, I received my Cobra board :-) now I wanted to test the same on the Cobra board. In short: same issue. My config
I see that my switch is being pressed in the monitor. I do not see any events in the event monitor. Am I completely on the wrong path here or is something really broken in mpf here? Can someone test the above config on their hardware? Thanks! |
Beta Was this translation helpful? Give feedback.
-
Thanks, problem solved for the physical and virtual switch. Would not have expected that. I will propose an update to mpf documentation later. |
Beta Was this translation helpful? Give feedback.
Thanks, problem solved for the physical and virtual switch. Would not have expected that. I will propose an update to mpf documentation later.