This package has been deprecated and may no longer be maintained. We recommend looking for an alternative.
Polyhydra Games Valheim Mod
Integrats with RCON addon to enable some new features like throwing audio into the game and effects on playersValheim Custom RPC Commands
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.
✨ Features
- Define and register your own RPC commands.
- Extend existing Valheim mechanics with new multiplayer calls.
- Integration with RCON Mods for remote management.
- Compatible with other Jotunn and Harmony mods.
- Useful for building gameplay automation, custom commands, and enhanced server administration.
📦 Dependencies
This mod depends on the following libraries/mods:
Please install these before using this mod.
🔧 Installation
- Install BepInEx into your Valheim directory if you haven’t already.
- Download the release
.dllfor Valheim Custom RPC Commands. - Place the
.dllfile into yourBepInEx/plugins/folder. - Ensure Jotunn, Harmony, and RCON Mod are installed and in the correct load order.
- Launch Valheim and check the console log for
[CustomRPC] Loaded.
▶️ Usage
- RPC commands can be registered via
ZRpcorZRoutedRpchooks. - Example:
ZRoutedRpc.instance.Register("MyCustomRPC", (long sender, ZPackage pkg) => { var msg = pkg.ReadString(); ZLog.Log($"Received MyCustomRPC: {msg}"); }); - Invoke your custom RPC from a peer:
ZRoutedRpc.instance.InvokeRoutedRPC(ZRoutedRpc.Everybody, "MyCustomRPC", "Hello world!");
🧩 Development
Clone this repo and build against:
valheim_Data/Managed/assembly_valheim.dllBepInEx/core/0Harmony.dll- Jotunn, HarmonyX, and RCON references.
Example .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>
⚠️ Disclaimer
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.
📜 License
MIT License – feel free to fork, modify, and contribute.
🙌 Credits
Happy modding, and may Odin bless your server!
