Renaming cartwall players

Long time ago there was a script on the site, that enabled me to rename the standard “1,2,3” names of players in the cartwall to whatever I wanted. Worked like a charm, but I can’t seem to find it anymore. Does anybody still have it available?

Thanks!

Yep, it is/was a v2 Notification script…

[code]procedure OnStartup;
begin
Engine.GetCartwallControl.GetPlayerControl(1).SetCaption(‘FM’);
Engine.GetCartwallControl.GetPlayerControl(2).SetCaption(‘AM’);
Engine.GetCartwallControl.GetPlayerControl(3).SetCaption(‘FM’);
Engine.GetCartwallControl.GetPlayerControl(4).SetCaption(‘AM’);
Engine.GetCartwallControl.GetPlayerControl(5).SetCaption(‘FM’);
end;

begin
end.
[/code]

…and so on :slight_smile:

That was it! Thanks, Charlie! :slight_smile:

Don’t forget that in V3.1 (if you’re using it), OnStartup has changed to OnLoad. :wink:

BFN
CAD

[quote=“Cad, post:4, topic:6645”]Don’t forget that in V3.1 (if you’re using it), OnStartup has changed to OnLoad. :wink:

BFN
CAD[/quote]

I have just installed V3.1, changed the OnStartup to OnLoad and added the notification script to the notification list in the mAirlist config. But it’s not working at all. Has things changed again?

procedure OnLoad;
begin
  Engine.GetCartwallControl.GetPlayerControl(1).SetCaption('FM');
  Engine.GetCartwallControl.GetPlayerControl(2).SetCaption('AM');
  Engine.GetCartwallControl.GetPlayerControl(3).SetCaption('FM');
  Engine.GetCartwallControl.GetPlayerControl(4).SetCaption('AM');
  Engine.GetCartwallControl.GetPlayerControl(5).SetCaption('FM');
end;

begin
end.

Works fine here.

Another option is to rewrite the script like this

begin
  Engine.GetCartwallControl.GetPlayerControl(1).SetCaption('FM');
  Engine.GetCartwallControl.GetPlayerControl(2).SetCaption('AM');
  Engine.GetCartwallControl.GetPlayerControl(3).SetCaption('FM');
  Engine.GetCartwallControl.GetPlayerControl(4).SetCaption('AM');
  Engine.GetCartwallControl.GetPlayerControl(5).SetCaption('FM');
end.

and then add a new “Run script” action on the Actions tab in mAirListConfig in the “Actions after startup” category, referencing this script.

That is strange. This is the script as I have it:

[code]procedure OnLoad;
begin
Engine.GetCartwallControl.GetPlayerControl(0).SetCaption(‘Q’);
Engine.GetCartwallControl.GetPlayerControl(1).SetCaption(‘W’);
Engine.GetCartwallControl.GetPlayerControl(2).SetCaption(‘E’);
Engine.GetCartwallControl.GetPlayerControl(3).SetCaption(‘R’);
Engine.GetCartwallControl.GetPlayerControl(4).SetCaption(‘T’);
Engine.GetCartwallControl.GetPlayerControl(5).SetCaption(‘Y’);
Engine.GetCartwallControl.GetPlayerControl(6).SetCaption(‘U’);
Engine.GetCartwallControl.GetPlayerControl(7).SetCaption(‘I’);
Engine.GetCartwallControl.GetPlayerControl(8).SetCaption(‘O’);
Engine.GetCartwallControl.GetPlayerControl(9).SetCaption(‘P’);
Engine.GetCartwallControl.GetPlayerControl(10).SetCaption(‘A’);
Engine.GetCartwallControl.GetPlayerControl(11).SetCaption(‘S’);
Engine.GetCartwallControl.GetPlayerControl(12).SetCaption(‘D’);
Engine.GetCartwallControl.GetPlayerControl(13).SetCaption(‘F’);
Engine.GetCartwallControl.GetPlayerControl(14).SetCaption(‘G’);
Engine.GetCartwallControl.GetPlayerControl(15).SetCaption(‘H’);
Engine.GetCartwallControl.GetPlayerControl(16).SetCaption(‘J’);
Engine.GetCartwallControl.GetPlayerControl(17).SetCaption(‘K’);
Engine.GetCartwallControl.GetPlayerControl(18).SetCaption(‘L’);
Engine.GetCartwallControl.GetPlayerControl(19).SetCaption(‘Z’);
Engine.GetCartwallControl.GetPlayerControl(20).SetCaption(‘X’);
Engine.GetCartwallControl.GetPlayerControl(21).SetCaption(‘C’);
Engine.GetCartwallControl.GetPlayerControl(22).SetCaption(‘V’);
Engine.GetCartwallControl.GetPlayerControl(23).SetCaption(‘B’);
end;

begin
end.[/code]

And, like i said, I’ve obviously added it to the notifications in the config. But it’s not renaming the players… Can you see anything wrong in this script?

Never mind… I’ve fixed it. Turns out I was trying to load the script from v3.0, instead of the adapted v3.1… Bit of a d’oh moment there… :-[