Due to falling into a rabbit hole of trying to fix the Save Profile data syncing issue I took a wrong turn on the cause.
I wrongly believed Netcode Patcher was causing an issue with triggering ServerRPC events from Clients during the Disconnect pre-patch, in an attempt to remedy the situation I used LethalNetworkAPI and rebuilt the entire Network layer of the mod.
This did not fix the issue
Turns out it just doesn't fire because on the next-frame the connection would be closed.
In this update:
Entire network layer is rebuilt with clearer naming conventions on each Event and Message.
Clients request saving their profile data PER ACTION
Team Loot Value is now synced by combined level rather than by the multiplier.
This allows for an accurate number to reduce by per-client disconnection
Error in Oxygen.OxygenUpdate should no longer occur, handler was called pre-network initialisation
General refactor of code to tidy it up and make it more readable
Due to falling into a rabbit hole of trying to fix the Save Profile data syncing issue I took a wrong turn on the cause.
I wrongly believed Netcode Patcher was causing an issue with triggering ServerRPC events from Clients during the Disconnect pre-patch, in an attempt to remedy the situation I used LethalNetworkAPI and rebuilt the entire Network layer of the mod. This did not fix the issue Turns out it just doesn't fire because on the next-frame the connection would be closed.
In this update:
Oxygen.OxygenUpdate
should no longer occur, handler was called pre-network initialisation