
This package has been deprecated and may no longer be maintained. We recommend looking for an alternative.

A Valheim mod that introduces custom RPC (Remote Procedure Call) commands for server-side and client-side gameplay interactions.
Built to extend the game's multiplayer communication and provide mod developers and server admins new ways to interact with peers, ZDOs, and events.
This mod depends on the following libraries/mods:
Please install these before using this mod.
.dll for Valheim Custom RPC Commands..dll file into your BepInEx/plugins/ folder.[CustomRPC] Loaded.ZRpc or ZRoutedRpc hooks.ZRoutedRpc.instance.Register("MyCustomRPC", (long sender, ZPackage pkg) => {
var msg = pkg.ReadString();
ZLog.Log($"Received MyCustomRPC: {msg}");
});
ZRoutedRpc.instance.InvokeRoutedRPC(ZRoutedRpc.Everybody, "MyCustomRPC", "Hello world!");
Clone this repo and build against:
valheim_Data/Managed/assembly_valheim.dllBepInEx/core/0Harmony.dllExample .csproj reference snippet:
<ItemGroup>
<Reference Include="0Harmony" HintPath="..\BepInEx\core\0Harmony.dll" />
<Reference Include="Jotunn" HintPath="..\BepInEx\plugins\Jotunn.dll" />
<Reference Include="RCON" HintPath="..\BepInEx\plugins\RCON.dll" />
</ItemGroup>
This is an experimental mod for Valheim. Use at your own risk.
Back up your saves before installing, and do not use on official servers.
MIT License – feel free to fork, modify, and contribute.
Happy modding, and may Odin bless your server!