Author Topic: Mute the "Loading Bricks. Please Wait." "bricks created in" Add-On?  (Read 1063 times)

Does anyone know of an Add-On, or could someone create one that mutes the red text in chat that appears when loading, or when something has loaded.

Forgot to add, as well as removing the text regarding loading, would it be possible to remove the sound effects that occur during the process?

If you want to take out chat and other gui entirely, then get the http://rtb-archive.host22.com/add_ons/Script_FilmMode.zip . [From Swollow's RTB Addon Archive]

If you want to take out the sound, replace the actual sound files, found as uploadStart and uploadEnd in [blockland directory here]\base\data\sound .

He wants a server sided script that removes the message and the sound.

He wants a server sided script that removes the message and the sound.
Exactly this, surely it couldn't be too difficult to make?

There are two ways:

1: Re-write serverDirectSaveFileLoad and ServerLoadSaveFile_End to not send the message. This would break all add-ons that use these for something.

2: Package MessageAll to not call the parent for the two specific messages. That would be alot easier, and should not break anything.

You could do it like this:

package NoLoadMessages
{
   function MessageAll(%msgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10, %a11, %a12, %a13)
   {
      if(%msgType == 'MsgUploadStart' && (%msgString $= "Loading bricks. Please wait." || %msgString == '\c3%1\c0 Re-Loading bricks. Please wait.'))
         return;

      if(%msgType == 'MsgProcessComplete' && strPos(%msgString, ($Load_brickCount - $Load_failureCount @ " / " @ $Load_brickCount @ " bricks created in ")) == 0)
         return;

      return parent::MessageAll(%msgType, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10, %a11, %a12, %a13);
   }
};
activatePackage(NoLoadMessages);

1: Re-write serverDirectSaveFileLoad and ServerLoadSaveFile_End to not send the message. This would break all add-ons that use these for something.
Do not do this.
I'm not saying it'll break anything, but serverDirectSaveFileLoad already has a 'silent' arg. serverDirectSaveFileLoad("path/to/save.bls", something, something, something, silent);


If anything you could just package this, set the 5th arg to 1, call parent. (wont affect uploading though)

Do not do this.
I never said it would be a good idea to do it.

I'm not saying it'll break anything, but serverDirectSaveFileLoad already has a 'silent' arg. serverDirectSaveFileLoad("path/to/save.bls", something, something, something, silent);

If anything you could just package this, set the 5th arg to 1, call parent. (wont affect uploading though)
Right, forgot about that, that works too.
« Last Edit: May 19, 2014, 10:55:14 AM by Zeblote »

But for a different reason.