Build 901 Problem with fadeout script

Hmm, just downloaded and testet b901. There seems something to be broken with GETPLAYERCONTROL
Doesn’t work anymore with the Carts and Players fadeout themselves.

I’m up since 4am and too tired to look deeper into this, maybe the doctor has a clue :wink:

On startup I get the following error message:
Fehler beim Laden des Benachrichtigungs-Scripts C:\MymAirListScripts\FadePlayers.mls: [Error] (17:35): Unknown identifier ‘GETPLAYERCONTROL’

and here’s the corresponding code.

regards:
-Serge-

[code]procedure OnCartPlayerStart(PlayerIndex: integer; Item: IPlaylistItem);

var
i: integer;

begin
//stop players
for i := 0 to Engine.GetPlayBackControl(0).GetPlayerCount - 1 do
if CurrentPlaybackControl.GetAutomation = false then begin
Engine.GetPlayBackControl(0).GetPlayer(i).Fadeout;
end;

//stop carts > 0
if PlayerIndex = 0 then begin
for i := 1 to Engine.GetCartwallControl.GetPlayerCount - 1 do
if CurrentPlaybackControl.GetAutomation = false then begin
Engine.GetCartwallControl.GetPlayerControl(i).FadeOut;
end;
end;

//stop cart 0 and cart > 1
if PlayerIndex = 1 then begin
Engine.GetCartwallControl.GetPlayerControl(0).FadeOut;
for i := 2 to Engine.GetCartwallControl.GetPlayerCount - 1 do
if CurrentPlaybackControl.GetAutomation = false then begin
Engine.GetCartwallControl.GetPlayerControl(i).FadeOut;
end
end;

//stop cart < 2 and cart >2
if PlayerIndex = 2 then begin
Engine.GetCartwallControl.GetPlayerControl(3).FadeOut;
for i := 0 to PlayerIndex - 1 do
if CurrentPlaybackControl.GetAutomation = false then begin
Engine.GetCartwallControl.GetPlayerControl(i).FadeOut;
end;
end;

//stop cart < 3
if PlayerIndex = 3 then begin
for i := 0 to PlayerIndex - 1 do
if CurrentPlaybackControl.GetAutomation = false then begin
Engine.GetCartwallControl.GetPlayerControl(i).FadeOut;
end;
end;

end;

procedure OnPlayerStart(PlaylistIndex: integer; PlayerIndex: integer; Item: IPlaylistItem);

var
i: integer;

begin
for i := 0 to Engine.GetCartwallControl.GetPlayerCount - 1 do
if CurrentPlaybackControl.GetAutomation = false then begin
Engine.GetCartwallControl.GetPlayerControl(i).FadeOut;
end;

if PlayerIndex = 0 then begin
if CurrentPlaybackControl.GetAutomation = false then begin
Engine.GetPlayBackControl(0).GetPlayer(1).Fadeout;
end;
end;

if PlayerIndex = 1 then begin
if CurrentPlaybackControl.GetAutomation = false then begin
Engine.GetPlayBackControl(0).GetPlayer(0).Fadeout;
end;
end;

end;

begin
end.[/code]

Use GetPlayer instead of GetPlayerControl. Sorry that I haven’t mentioned this in the change log. The new name is more user friendly (who cares that it is the control part of the player object you’re accessing), and the name GetPlayer is also used in the Playlist/PlaybackControl interfaces, so we have a similar syntax now.

Also, instead of “Engine.GetCartwallControl” you can now simply write “Cartwall”.

Thanks a lot, Torben, works like a charm!
I can go to bed now and continue the other tests tomorrow.

regards:
-Serge-

Looks like there are some more issues ;D

  • Somehow, standard.mlt got overwritten or cleared on program start. I was not able to create a new one. The file is empty.
    [EDIT] Looks like and section does not get stored. If I add them manually, everything looks fine after mAirList starts.

  • Encoder levelmeter behaves odd. Left channel looks like a progress bar (I know it is a progress bar element) Left channel has a slow response on meter and the bar itself is segmented.

regards:
-Serge-

I’m not aware of any recent changes that would affect desktop template files. Which build did you use before?

Also, mAirList will never overwrite the standard.mlt file on its own unless requested by the user through the menu. Have you checked your settings regarding the inclusion of cartwall and browser information into desktop template files?

I have been working on improving the scale and and return time of the level meter to make it feel more like a “proper” hardware level meter. The segmented bar is a left over from testing. I will upload a new build in a minute.

OK, you’re right Torben.

The problem is related to having unchecked the Browser save and Cartwall to template file as discussed in this thread:
http://forum.mairlist.com/index.php/topic,4975.msg35640.html#msg35640

However, I believe that when unchecking these options, the present and section should not be cleared/overwritten upon save?

regards:
-Serge-

Yes, they will be cleared.