I found out where to put the background scripting…
But the sensors are not visible in Axum/mambanet.
I guess they need to be created/addressed by mAirlist the same way the actuators are addressed.
Somewhere mairlist tells there are 64 actuators. At the same way mairlist should tell there are 64 sensors I guess.
I’m sure a d&r technical genius can tell you more.
But at this moment axum/mambanet isnt aware that a script van send sensor signals. So nothing can be set at the Axum side.
Got an error:
Runtime error “List index out of bounds (5198049)” in background script D:(…)\mambanet-stopplayers.mls, handling message: PLAYERCONTROL_STOP 7CD1F4A2735A1531 00 00000000 00000001 244,875 ?
Long story short: it doesn’t work yet. Torben will test it, and debug But he needs the hardware to do a proper test. D&R is also supporting, so it’s a matter of time now.
That’s what we wait for. Would be a delight when it works… I’ll keep you posted.
Ok, invested some time to check this again. I originally implemented the sensors as parts of the existing actuator objects, e.g. combined actuator/sensor objects. Which is allowed according to the documentation, there is even an example for it
Anyway, I changed it now so that the sensors are separate objects. There should now be a total of 128 objects, 64 actutators and 64 sensors.
This is in the latest snapshot 4459, can you please have a look?
Disclaimer: I had to change the code quite a bit, hope I didn’t break anything regarding the (working) actuators, so be prepared to downgrade if there is an issue. As you know, I am unable to test it here.
Do you have any instructions? Should I reload or do anything?
I installed the snapshot. And can’t see sensors yet. Not in mairlist remote settings, nor in axum node.
Do I need te reinstall the remote?
Maybe a restart of the axum?
I’ll try. (But its an active studio).
Yes! now I see the sensors in het mairlist node in axum!
I guess I now need to send signals by a script. I tweaked a code I have found.
Do You think this should work to send a signal when the player stops ?
procedure OnPlayerStop(PlaylistIndex: integer; PlayerIndex: integer; Duration: TTimeValue);
var
i : integer;
begin
if (PlaylistIndex= 0) and (PlayerIndex= 1) and (CurrentPlaybackControl.GetAutomation = false) then begin
MambaNetRemote(0).SetSensor(1, false);
end;
if (PlaylistIndex= 0) and (PlayerIndex= 2) and (CurrentPlaybackControl.GetAutomation = false) then begin
MambaNetRemote(0).SetSensor(2, false);
end;