BunyaPineTree / LethalCompany_ModelReplacementAPI

MIT License
55 stars 17 forks source link

Error spam when using specific model with jiggle physics #94

Closed dounai2333 closed 7 months ago

dounai2333 commented 7 months ago

I have downloaded Astolfo Model Replacement, and everytime when I (or someone else) was using it, the log are spamming error with following:

NullReferenceException: Object reference not set to an instance of an object
  at JigglePhysics.JiggleRigBuilder.PrepareBone (UnityEngine.Vector3 position, JigglePhysics.JiggleRigLOD jiggleRigLOD) [0x00054] in <bdee04eb0b3f4377bcee7c264ff1616f>:IL_0054 
  at JigglePhysics.JiggleRigBuilder.Advance (System.Single deltaTime) [0x0006d] in <bdee04eb0b3f4377bcee7c264ff1616f>:IL_006D 
  at JigglePhysics.JiggleRigHandler.UpdateJiggleRigs () [0x00024] in <bdee04eb0b3f4377bcee7c264ff1616f>:IL_0024 

I'm not sure if it's a fault from model author or this mod, but the model itself are looking every fine, except this error are spamming every single frame, which it will impact performance.

BunyaPineTree commented 7 months ago

Any questions you have regarding jiggle physics should be asked here. https://github.com/naelstrof/UnityJigglePhysics Though I am fairly certain that those errors are a result of how the mod author did things. In my experience UnityJigglePhysics is quite stable.