CodeYapper

版本 v2.2.2·更新於 2026-01-27

A simple library to abstract away networking

模組介紹 作者原文

CodeYapper

CodeYapper is a lightweight C# networking library designed to simplify sending and receiving custom packets in Atlyss. It allows you to create your own packet types and register callbacks that are automatically invoked when matching packets are received.

  • Fork of CodeTalker originaly made by Robyn.

Special Thanks: ButteredLilly for initial inspiration for the delivery method, thanks!

Warning

Whenever a packet version update is applied you will be unable to communicate with clients not running the same version as you. If you are not seeing other user's packets then ensure you are running the latest version of CodeTalker!

Features

  • Define custom packet classes by inheriting from PacketBase or BinaryPacketBase.
  • Easily register listeners for specific packet types.
  • Deserialize incoming messages and dispatch them to the appropriate listener.
  • Packets are serialized into Steam lobby chat messages, avoiding the need for new RPCs that could disrupt multiplayer or clutter the in-game chat.

How it works

Json Packets

  • Create your packet classes by inheriting from PacketBase.
  • Register listeners for your packet types using CodeTalkerNetwork.RegisterListener().
  • Send packets using CodeTalkerNetwork.SendNetworkPacket().
  • Incoming messages are deserialized and routed automatically to the registered listeners.
  • PacketHeader information is included with each payload, providing useful data such as the sender's identity and whether the sender is the host.

Binary Packets

  • Create your packet classes by inheriting from BinaryPacketBase.
  • Register listeners for your packet types using CodeTalkerNetwork.RegisterBinaryListener().
  • Send packets using CodeTalkerNetwork.SendBinaryNetworkPacket().
  • Incoming messages are serialized and deserialized using a custom function defined by the packet, then routed automatically to the registered listeners.
  • PacketHeader information is included with each payload, providing useful data such as the sender's identity and whether the sender is the host.

For a full example, see the example folder in the repo.

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

Soggy_Pancake-K4os_Compression_LZ4Soggy_Pancake-ZstdSharp_Port

檔案與校驗

檔案名稱
CodeYapper-2.2.2.zip
檔案大小
77.2 KiB