SoftwareGuy / Ignorance

Ignorance utilizes the power of ENet to provide a reliable UDP networking transport for Mirror Networking.
Other
248 stars 31 forks source link
enet enet-csharp essential game ignorance llapi mirror networking reliable-udp udp unity unity-llapi-transport unity3d

Ignorance 1.4 Logo

Ignorance 1.4 Long Term Support (LTS)

Ko-Fi PayPal GitHub issues GitHub last commit MIT Licensed

I'd appreciate a coffee if you use this transport in your project and you want to help keep my bills paid and lights on.

_"Probably the fastest transport out there for Mirror..." - FSEVincenzo, 2021 (Mirror Discord)

Ignorance is a high-performance UDP based transport that plugs into Mirror Networking. By harnessing the power of the tried and true ENet native library, it provides reliable and unreliable UDP communications with up to 4096 connected peers (clients) and 255 channels. Reliable UDP has a lot of benefits over TCP which was the default in Mirror until KCP was implemented.

The benefit of Ignorance is that you can utilize channels which allow you to split up network communications. This allows you to have channels for data that are mission critical and must be sent out the door as quickly as possible as well as channels that can send slower non-essential data.

Long Term Support

Ignorance 1.4 is currently in Long Term Support, meaning that no new features are planned. Bug fixes are prioritized and will be addressed when I have free time.

If you have an urgent bug report, then you are encouraged to consider a sponsorship. This will allow me to take time away from my business activities and prioritize the bug report.

Licensing

Ignorance is licensed under MIT license. However, there has been recent cases where other developers have been using the full Ignorance source or parts thereof, stripping the MIT licensing and slapping their own license on it instead.

This falls in violation of the MIT license as it clearly states that copyright notices must remain intact. In short, don't be a code thief and respect the MIT license.

Requirements

Ignorance 1.4 LTS will not work with older Mirror versions. You can backport 1.4 LTS to your older Mirror project, but that support is on you.

Installation

Download the Unity Package from Releases that is the latest one. Simply import the Unity Package and Unity will do the rest. Follow the instructions below.

Alternatively you can use the code from the master branch, which is often up to date compared to the releases.

How to use

I have included two pre-configured sample scenes so you can get started easily. One is Pong, one is a copy paste with some modifications of Mirror's Basic scene. Otherwise add the script called Ignorance to your NetworkManager object, removing any TCP-based or other UDP-based transport (ie. kcp2k). Then set the script to be used in NetworkManagers' "Transport" field.

Documentation

See DOCUMENTATION.md.

For Ignorance Standalone, see STANDALONE.md.

For the FAQ (aka Please Read This First), see FAQ.md.

Ignorance with Mirage/et al.

If you are using your own network stack or you are trying to plumb Ignorance to another networking solution that already exists, you are much better off using the ENet-CSharp wrapper to talk to ENet directly. You could also try Ignorance Standalone which is mentioned above.

Ignorance in Action

What devices are supported?

IMPORTANT: 32bit Desktop targets are NOT supported. Macintoshes with the M1 (ARM64/AArch64) chip are also not supported. Rosetta may work though.

Supported platforms, out of the box:

Other platforms that require some extra work:

For more info, see the FAQ.

I found a bug, where do I report it?

Check the current open bug reports and/or report a new one here.

Failing that you can always catch me on the Oiran Studio discord or Mirror discord.

Bugs that do not have enough details will be either closed or put as low priority. Details like your OS, Unity Editor version, any Ignorance errors, etc is essential for a good bug report.

I have other questions, I want answers.

Here's a quick primer.. It might be slightly out of date, but it covers the basics of Ignorance.

Credits

To be continued...?