Skip to content

Communication system

Solanya edited this page Aug 22, 2022 · 3 revisions

Total RP 3 uses several communication protocols. Some are home made, some are standard used by other Addons (like the Mary Sue Protocol used by MyRoleplay and XRP).

Protocols

Here is the list of all protocols used by TRP3.

Total RP Peer to Peer Model

Total RP Peer to Peer Model is an open communication model, currently used only by Total RP 3.

It's the protocol used by TRP3 to exchange data between two TRP3 players. It allows to send any type of data, bound to a certain prefix.

Roleplay Broadcast Protocol

Roleplay Broadcast Protocol is an open protocol, currently used by Total RP 3 and Total RP 2.

It's a protocol allowing to send data to a maximum of connected players (also using the protocol). It's based on the connection to a common channel (typically xtensionxtooltip2).

For example, TRP 2 and 3 use it for the characters location on map feature.

Mary Sue Protocol

Mary Sue Protocol is an open peer-to-peer protocol, currently used by a wide range of roleplay addons like TRP 2 & 3, MyRoleplay, XRP, FlagRSP ...

The great advantage is that it allows communication with other roleplay addons that are widelly used.

Why not using MSP only ?

Because the Mary Sue Protocol is not an "extensible" exchange protocol.

  • You can only exchange string values. You can't exchange structure. (Not without serialize them yourself)
  • Each field must be prefixed with a two-characters long ID: the possibilities are very limited.
  • The public implementation does not work very well when exchanging huge amount of data.

While the idea of a common RP protocol was great, it was not conceived with the potential for other addons to further add to their profiles, and as such acts more as a compatibility protocol than a real data exchange protocol.

Clone this wiki locally