Skip to content

Latest commit

 

History

History
46 lines (39 loc) · 1.99 KB

File metadata and controls

46 lines (39 loc) · 1.99 KB

Dimension Packet Update Types

If you use packet 67 with Dimensions, make sure the first data is an Int16 with a message type not already used to avoid it being misread as one of the below. If you publish a plugin or tool which uses this packet and that is used with Dimensions, add the type and information to this file.

[0] Real IP Address

Dimensions sends this to a Terraria Server to update the client's IP address from the IP of the machine Dimensions is running on to the real IP of the client.

Info Size Datatype
Type 2 Int16
IP ? String

[1] Gamemodes Join Mode

Gamemodes uses this to specify what mode the user has joined for.

Info Size Datatype
Type 2 Int16

[2] Switch Server

Terraria Servers use this to tell Dimensions to switch the clients Dimension

Info Size Datatype
Type 2 Int16
Dimension Name ? String

[3] Switch Server Manual

Info Size Datatype
Type 2 Int16
Server IP ? String
Server Port 2 UInt16
Server Name ? String
Terraria Servers use this to tell Dimension to switch the client to a specific ip/port that is not in the Dimensions config.

Server Name is optional and only present when bytes remain after Server Port.

[6] RTT Update

Dimensions sends this to a Terraria Server to report the current TCP RTT values measured by the proxy. Unavailable RTT values are encoded as -1.

Info Size Datatype
Type 2 Int16
Player ID 1 Byte
Client RTT Micros 4 Int32
Server RTT Micros 4 Int32
Overall RTT Micros 4 Int32
Updated At 8 UInt64