EvaisaDev / UnityNetcodePatcher

An assembly patcher which replicates the ILPostProcessing step unity does in order to make NetworkBehaviours work
MIT License
51 stars 6 forks source link

FileNotFoundExceptionCould not load file or assembly 'NetcodePatcher #39

Open BoredBean opened 6 months ago

BoredBean commented 6 months ago

Folowing the modding wiki and the latest version of Netcode patcher, I'm trying to implement my network functions. But an error occured when I was trying to spawn a NetworkObject. Maybe I missed some information.

I used the post process on VisualStudio and the output says ''Patched successfully''.

Below shows the full log. Looking for a solution. Thank you.

[Error  : Unity Log] FileNotFoundException: Could not load file or assembly 'NetcodePatcher.uv2022.3.nv1.5.2.tv1.0.0.withoutNativeCollectionSupport, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
Stack trace:
Unity.Netcode.NetworkBehaviour.InitializeVariables () (at <895801699cfc4b4ab52267f31e2a4998>:0)
Unity.Netcode.NetworkBehaviour.InternalOnNetworkSpawn () (at <895801699cfc4b4ab52267f31e2a4998>:0)
Unity.Netcode.NetworkObject.InvokeBehaviourNetworkSpawn () (at <895801699cfc4b4ab52267f31e2a4998>:0)
Unity.Netcode.NetworkSpawnManager.SpawnNetworkObjectLocallyCommon (Unity.Netcode.NetworkObject networkObject, System.UInt64 networkId, System.Boolean sceneObject, System.Boolean playerObject, System.UInt64 ownerClientId, System.Boolean destroyWithScene) (at <895801699cfc4b4ab52267f31e2a4998>:0)
Unity.Netcode.NetworkSpawnManager.SpawnNetworkObjectLocally (Unity.Netcode.NetworkObject networkObject, System.UInt64 networkId, System.Boolean sceneObject, System.Boolean playerObject, System.UInt64 ownerClientId, System.Boolean destroyWithScene) (at <895801699cfc4b4ab52267f31e2a4998>:0)
Unity.Netcode.NetworkObject.SpawnInternal (System.Boolean destroyWithScene, System.UInt64 ownerClientId, System.Boolean playerObject) (at <895801699cfc4b4ab52267f31e2a4998>:0)
CustomDeathAudio.DeathPatches.SetPlayerDeathAudio (GameNetcodeStuff.PlayerControllerB player) (at E:/Documents/mywork/programming/C#/CustomDeathAudio/CustomDeathAudio/Patches.cs:43)
CustomDeathAudio.DeathPatches.StartPlayerPatch (GameNetcodeStuff.PlayerControllerB __instance) (at E:/Documents/mywork/programming/C#/CustomDeathAudio/CustomDeathAudio/Patches.cs:58)
(wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD<GameNetcodeStuff.PlayerControllerB::Start>(GameNetcodeStuff.PlayerControllerB)