Should a disabled "shot_group" fire off events such as _hit, _complete, etc? #148
-
I have multiple shot groups defined (with only one active at any one time) containing one or more shots. My expectation is that when a shot group is disabled (i.e. not active), that it should not be firing off events such as _hit or _complete. Could you confirm that is the expected behavior? As an example, all my shot groups are defined (with one or more shots defined - one in this example)
If it is not expected, I am seeing an issue that when I have 4 shot groups defined (all disabled except one), the disabled shot groups are still firing off events causing issues. I am seeing (which may be contributing to this problem) is when the mode starts the following log entries occur (which I expect this to be in a disabled state from the start):
I can post log files if needed but first wanted to make sure this was undesirable behavior and something that it shouldn't be happening, I'll then get it logged with all the information for troubleshooting. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
There is some nuance here in that shot groups themselves are not truly disabled or enabled, they are merely a collection of shots and post additional events for those shots. Calling enable on a shot group just enables all of the shots in that group, while disable disables the shots in that group. If you had a shot present in multiple shot groups, and enabled one of the groups, hitting the shot would indeed trigger hit events for all the shot groups that shot is in. And when the shot group initializes, it will always post its current state so mode startups and lights can correctly configure themselves. So that's all expected. However if you have a shot that's exclusive to a shot group, and that shot is disabled, and the shot group still posts a hit event... that's a bug to investigate. |
Beta Was this translation helpful? Give feedback.
There is some nuance here in that shot groups themselves are not truly disabled or enabled, they are merely a collection of shots and post additional events for those shots. Calling enable on a shot group just enables all of the shots in that group, while disable disables the shots in that group.
If you had a shot present in multiple shot groups, and enabled one of the groups, hitting the shot would indeed trigger hit events for all the shot groups that shot is in. And when the shot group initializes, it will always post its current state so mode startups and lights can correctly configure themselves.
So that's all expected. However if you have a shot that's exclusive to a shot group, and…