Amerio.Stephane Posted June 3, 2020 Posted June 3, 2020 Hello, - Is there a callback for when a slave has connected/disconnected? - How can we get the "name" the slave was set up with (through the command line -sync_slave_name)? Thanks!
morbid Posted June 4, 2020 Posted June 4, 2020 Hello Stephane, You're working with 2.11, right? In the latest version all of these features are available. 15 hours ago, Amerio.Stephane said: - Is there a callback for when a slave has connected/disconnected? Master has SLAVE_CONNECTED, SLAVE_DISCONNECTED And slave: MASTER_CONNECTED, MASTER_DISCONNECTED Here you'll find the detailed description: https://developer.unigine.com/en/docs/2.11/api/library/plugins/syncker/class.masterinterface?rlang=cpp 17 hours ago, Amerio.Stephane said: - How can we get the "name" the slave was set up with (through the command line -sync_slave_name)? Name was removed and changed to an ID. You can use getSlaveID or getSlaveAddress and getSlavePort. Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Amerio.Stephane Posted June 4, 2020 Author Posted June 4, 2020 Actually, we're still on 2.10 (and looking into the effort of moving to 2.11). The callbacks you mentioned exist only starting from 2.11, so I guess this is one more reason to make the shift :) About sync_slave_name: I guess we should use sync_view instead, but I'm wondering if the behavior would be the same, as we are not using any wall/projector/multiscreen config file, so the name we use are simply "made up". Would it still be ok? The objective: each slave should announce at connection time the name of the player it wants to be attached to, through the command line (this player can later be changed through a custom menu).
morbid Posted June 16, 2020 Posted June 16, 2020 Here you can use sync_view and use the view name to identify a channel. In 2.12 setSlavePlayer(view_name, player) will work right after new slave channel connection. Should be even easier than before, right? How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts