-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Settings command is sent along with machine variables #1847
Comments
If this is missing from the documentation that's an oversight, but settings are a subset of machine variables that can be adjusted by the operator so (1) they are stored and tracked with machine variables internally and (2) they should be exposed to the media controller for service menu purposes. There's a case to be made for sending them separately, but the media controller will need to know them all regardless so this is just a shortcut. |
Why aren't the settings sent with the |
The data structure of settings is different than machine variables, so it's sent in a separate payload which includes the various settings options, default values, current values, et cetera. Machine variables are simple key/value pairs without the additional settings options. When a BCP client connects to MPF and requests all of the machine variables, the settings are sent as well because functionally both settings and machine variables are necessary to properly configure the game's state. So when a BCP client asks for variables it gets both, but in separate responses due to the different data shapes. Hope that helps! If you'd like to update the documentation to include information about the settings, all contributions are most welcome! :D |
Machine variables are not always simple key/value pairs. Two examples:
I think a message like this for settings would be more reasonable, especially if the settings are technically a machine variable, as you say: It's not really important though, so if you think it's just not worth making this change for the sake of backwards compatibility, that's fine by me. |
I created a separate issue (#1850 ) to talk about documenting the |
The updated fixes have been merged into dev, for parity between 0.57 and 0.80. Are you building your own custom BCP client? Is it going to be a media controller? If so, I'd recommend working off 0.80 rather than 0.57, the latter being the legacy version to support the old MC and the former being the new forward-looking version. There are a lot of entanglements between MPF and the MC baked into 0.57, and 0.80 attempts to clean up and separate the BCP logic (by necessity, because the Godot MC doesn't use python so must be wholly independent). |
When machine variables are monitored via BCP, MPF will send a message with the command
settings
and a JSON string.The
settings
command is not described in the BCP specification. I am not sure it this is intended, but undocumented behavior or a bug. Maybe it was meant to be a machine variable that is sent withsettings
as the message command instead of thename
parameter? It definitely doesn't seem right to send asettings
message, whenmachine_variable
messages were requested by the server.The text was updated successfully, but these errors were encountered: