You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm running into an issue and I don't seem to be able to fix it. My Pinn game is very procedural and because of this I do most of the coding in Python itself.
In this particular case I'm trying to get the show player to play a light show. but pending on a selection in the game it is using a different light or color. I want to do it in python because otherwise I need to add hundreds of events, which I wonder what that will do to the performance.
Most of the objects I have been able to trace back and I'm able to launch my lightshows via python. However I'm not able to stop them. and I do get this warning
2023-08-26 18:25:16,465 : WARNING : show_player : Config player show_player is missing context effect_controlled_friend
In the attachment I added a video, the purple blinking light should be turned off when moving to the next light. but that doesn't happen.
The problem is that I can't trace back the issue, I gave it a key, and gave it context, but for some reason it still doesn't have context when I try.
I made a version (not procedural) in YAML to check if there is a difference between the context and key. compared to calling it manually via python. but everything that I print looks exactly the same.
If any of the developers has any idea where I'm going wrong I would gladly hear it.
I have done similar things with widgets and that works perfectly, especially since that works with the given key. Which doesn't seem to be the case with shows...
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi All,
I'm running into an issue and I don't seem to be able to fix it. My Pinn game is very procedural and because of this I do most of the coding in Python itself.
In this particular case I'm trying to get the show player to play a light show. but pending on a selection in the game it is using a different light or color. I want to do it in python because otherwise I need to add hundreds of events, which I wonder what that will do to the performance.
Most of the objects I have been able to trace back and I'm able to launch my lightshows via python. However I'm not able to stop them. and I do get this warning
2023-08-26 18:25:16,465 : WARNING : show_player : Config player show_player is missing context effect_controlled_friend
In the attachment I added a video, the purple blinking light should be turned off when moving to the next light. but that doesn't happen.
The problem is that I can't trace back the issue, I gave it a key, and gave it context, but for some reason it still doesn't have context when I try.
Code looks like this:
I made a version (not procedural) in YAML to check if there is a difference between the context and key. compared to calling it manually via python. but everything that I print looks exactly the same.
If any of the developers has any idea where I'm going wrong I would gladly hear it.
I have done similar things with widgets and that works perfectly, especially since that works with the given key. Which doesn't seem to be the case with shows...
2023-08-26.18-45-37.mp4
Best regards,
Jordy de Lat
Beta Was this translation helpful? Give feedback.
All reactions