Help
Regional Flag5.4.7 changes to Battle.net® chat (Show MVP Posts)Source
avatar
Community Manager
Target Source
#1 - 2014/01/27 07:26:00 PM
We want to give User Interface Add-On authors a heads up about a change in upcoming patch 5.4.7 (release date: TBD).

In patch 5.4.7, BattleTag™ or Real ID friends will only be able to send 10 chat messages every 10 seconds over Battle.net® chat. We’re adding a new way for User Interface Add-Ons to send communications information via a new send function and receive event.

Send function:
    BNSendGameData (presenceID, addonPrefix, message)
  • Prefix must be <= 16 bytes and cannot include a colon.
  • The message should be <= 4078 bytes. This is 4095 bytes minus the 16 byte prefix and an added colon separator.

Receive event:
    BN_CHAT_MSG_ADDON - prefix, text, “WHISPER”, senderToonID

In addition, User Interface Add-Ons are now also able to send and receive friend invites with a note.

  • Send event: BNSendFriendInvite(<BattleTag™/account name>,<optional note>)
  • Receive event to see the note text: BNGetFriendInviteInfoByAddon(<index>)
    Edit: Updated total maximum message size to 4095 bytes (up from 255 bytes) in an upcoming PTR build.
    Edit 2: Added information for BNSendFriendInvite.

  • avatar
    Community Manager
    Target Source
    #21 - 2014/01/28 02:38:00 AM
    01/27/2014 04:51 PMPosted by Tinymasher
    is the message limited to 238 or is the combination of addonPrefix + message still limited to 255?

    You don't have to use all 4095 bytes.

    The message is [16 bytes used for the addonPrefix] + ":" + [4078 bytes remaining for message] = 4095 bytes max total.

    Edit: Updated total maximum message size to 4095 bytes (up from 255 bytes.)

    avatar
    Community Manager
    Target Source
    #26 - 2014/01/29 06:19:00 PM
    Hello. We're increasing the maximum message size to 4095 bytes in an upcoming PTR build.

    Send function:
      BNSendGameData (presenceID, addonPrefix, message)
    • Prefix must be <= 16 bytes and cannot include a colon.
    • The message should be <= 4078 bytes. This is 4095 bytes minus the 16 byte prefix and an added colon separator.

    Receive event:
      BN_CHAT_MSG_ADDON - prefix, text, “WHISPER”, senderToonID

    avatar
    Community Manager
    Target Source
    #28 - 2014/01/29 06:40:00 PM
  • The message should be <= 4095 bytes. This is 4078 bytes minus the 16 byte prefix and an added colon separator.


  • Just making sure, the 4078 and 4095 are backwards here right?

    Yeah. Fixed it.