This plugin completely moves the explored map and created pins to the server. As clients explore, they will send their explored areas to the server who will then distribute it to all connected clients. When a client joins, the server will synchronize the currently explored areas to the client. Pins are shared as well but default to false and need to be enabled. When pin sharing is used, all newly created pins are send to the server who saves them along with the explored area.
38
stars
1
forks
source link
Valheim Update: Mod crashes due to newly introduced network requirements #12
The main change is switching from SendP2PPacket to SendMessageToConnection.
SendMessageToConnection has a limit on package size which we slighty exceed:
Reliable message send. Can send up to k_cbMaxSteamNetworkingSocketsMessageSizeSend bytes in a single message.
Does fragmentation/re-assembly of messages under the hood, as well as a
sliding window for efficient sends of large chunks of data.
Where k_cbMaxSteamNetworkingSocketsMessageSizeSend is defined as:
const int k_cbMaxSteamNetworkingSocketsMessageSizeSend = 512 * 1024;
The fix for this is to implement chunking for sending the map data
The latest Valheim update fixed a new things, one of which is switching to another method of sending data via steam.
Prior to the update:
After the update:
The main change is switching from
SendP2PPacket
toSendMessageToConnection
.SendMessageToConnection
has a limit on package size which we slighty exceed:Where k_cbMaxSteamNetworkingSocketsMessageSizeSend is defined as:
const int k_cbMaxSteamNetworkingSocketsMessageSizeSend = 512 * 1024;
The fix for this is to implement chunking for sending the map data