You are viewing a potentially older version of this package. View all versions.
xilophor-LethalNetworkAPI-1.1.3 icon

LethalNetworkAPI

A library/API to allow developers to easily add networking to their mods.

Date uploaded 4 months ago
Version 1.1.3
Download link xilophor-LethalNetworkAPI-1.1.3.zip
Downloads 16590
Dependency string xilophor-LethalNetworkAPI-1.1.3

This mod requires the following mods to function

BepInEx-BepInExPack-5.4.2100 icon
BepInEx-BepInExPack

BepInEx pack for Mono Unity games. Preconfigured and ready to use.

Preferred version: 5.4.2100
Lordfirespeed-OdinSerializer-2022.11.9 icon
Lordfirespeed-OdinSerializer

Fast, robust, powerful and extendible .NET serializer built for Unity

Preferred version: 2022.11.9

README

LethalNetworkAPI

Build Latest Version

This mod is an API meant for mod developers.

Usage

See the GitHub Wiki for information on how to use this API in your mod.

Unity Netcode Patcher is not required to use this API for your mod.

Acknowledgements

This API uses @EvaisaDev's Unity Netcode Patcher. Without it, this API would not be possible as it is currently done.

Thank you @Dreadrith for helping test and reform this API in the preview/release-candidate stage!

Thank you @Lordfirespeed for helping set up the GitHub Actions (so I can be lazy)!

CHANGELOG

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[v2.1.7]

Changed

  • Added warning when using incorrect build - only for devs

Fixed

  • Incompatibility with latest (preview) LLL versions

[v2.1.6]

Changed

  • Reverted Serialization Changes from v2.1.5

Fixed

  • Network Variable ownership ignored when joining a lobby
  • Null Variables breaking loading into a server

[v2.1.5]

Changed

  • Serialization of NetworkObjects/Behaviours
    • Should now support collections

Fixed

  • Error when setting a Network Variable's value before joining a lobby.

[v2.1.4]

Added

  • NuGet Package Tags

Fixed

  • Actually fixed issues with re-hosting.

[v2.1.3]

Changed

  • Increased Harmony Patch priority

[v2.1.2]

Changed

  • Minor internal refactoring.
  • Better error messages.

[v2.1.1]

Fixed

  • Issue with Network Variables causing error when re-hosting

[v2.1.0]

Added

  • Ability to create network messages and events with a method to run instead of having to subscribe separately.

Changed

  • Minor internal refactoring.

Fixed

  • Issue with networking Network Variables

[v2.0.2]

Added

  • Stack-traces to identifier errors.

[v2.0.1]

Fixed

  • Extensions were not accessible.
  • Identifiers were not mod-specific.

[v2.0.0]

Added

  • Ability to create Network Variables specific to a Network Object.
  • [PublicNetworkVariable] Attribute

Changed

  • Network Variables
    • Ownership
      • By default, the server is now the owner.
      • Using the [PublicNetworkVariable] Attribute, you can allow any client to modify the variable.
      • Client-owned variables can only be made by creating one specific to a Network Object.
        • A great choice is PlayerControllerB
  • Internal Refactoring

Removed

  • LethalNetworkVariable.SetOwnership()
    • Removed in favor of the newly reworked Network Variable ownership system.
  • [LethalNetworkProtected] Attribute
    • Removed in favor of the newly reworked Network Variable ownership system.

Fixed

  • Errors when re-hosting a server

[v1.1.3]

Changed

  • Updated NuGet Package License

[v1.1.2]

Changed

  • Updated Changelog

[v1.1.1]

Changed

  • Internal GitHub Workflow Shenanigans

[v1.1.0]

Changed

  • Backend NetworkHandler Rework
    • May not be compatible with v1.0.0

[v1.0.0]

Added

  • Network Messages
  • Network Events
  • Network Variables
  • Network Utils/Extensions