Mydayyy / Valheim-ServerSideMap

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

Plugin hangs on local, non dedicated server #4

Closed Mydayyy closed 3 years ago

Mydayyy commented 3 years ago

Hangup on local, non dedicated server

This was reported by a user on nexus mods:

Just tried this out, but the game just hung and wouldn't load. Loaded fine after removing this mod.

Local and Dedicated Servers act slightly different. If a server is hosted locally, there is GetServerRPC returns null. We need to check whether ZNet.IsServer returns true and just call the function locally which would otherwise be invoked via RPC