FiberLib
FiberLib is a library mod for sending and receiving packets from a Bopl Battle Mod. It is currently in a bare bones state and only includes necessary tools, but will soon include more utilities for ma
Screenshots 1 screenshots
About this mod Author’s original text
.svg)
FiberLib
FiberLib is a library mod for sending and receiving packets from a Bopl Battle Mod. It is currently in a bare bones state and only includes necessary tools, but will soon include more utilities for making the developer experience simpler.
Documentation
(This project still under development, so API can change)
- First make a global static variable for signature to send/recive packets
public static Signature signature;
- Register a packet recive handler
public class MyMod: BaseUnityPlugin
{
private void ReciveHandler(Packet packet, Connection connection, NetIdentity identity)
{
byte data = packet.data;
Console.WriteLine($"recived {data.length} bytes");
}
private void Awake()
{
signature = PacketManager.RegisterPacketReciveHandler(ReciveHandler);
}
}
- Send Packet
public class MyMod: BaseUnityPlugin
{
private void OnGUI()
{
if (GUI.Button(new Rect(0, 50, 170f, 30f), "Send Packet"))
{
Console.WriteLine("Sending packet!");
Packet packet = new Packet(signature, Encoding.UTF8.GetBytes("Hello, World!"))
PacketManager.SendPacket(packet);
}
}
}
Install & use Install: follow the bundled instructions
- Unzip the archive from playbuff and read the bundled readme / instructions first.
- Most mods rely on the game's mod loader — the usual route is a community mod manager (such as r2modman): pick this game, install, and it handles the loader and dependencies.
- For a manual install, put the mod files into the matching Mod / plugins folder inside the game directory.
- Launch the game to confirm it loaded; mods with listed dependencies need those installed as well.
Install locations vary a lot between mods — the bundled readme is the most reliable guide.
Install these first, or the mod will not work: