remiX- / QualityCompany

MIT License
4 stars 0 forks source link

Ghost Items? #25

Open Dsnherdude066 opened 5 months ago

Dsnherdude066 commented 5 months ago

[Error : Unity Log] NullReferenceException Stack trace: QualityCompany.Modules.Inventory.InventoryBaseUI.Hide (System.Int32 currentItemSlotIndex) (at <022eacd116e64c25b33040d28bcbb18c>:IL_0022) QualityCompany.Modules.Inventory.ScrapValueModule.Hide (System.Int32 currentItemSlotIndex) (at <022eacd116e64c25b33040d28bcbb18c>:IL_0000) QualityCompany.Modules.Inventory.InventoryBaseUI.OnUpdate (GameNetcodeStuff.PlayerControllerB instance) (at <022eacd116e64c25b33040d28bcbb18c>:IL_002A) QualityCompany.Events.GameEvents.OnPlayerDiscardHeldObject (GameNetcodeStuff.PlayerControllerB instance) (at <022eacd116e64c25b33040d28bcbb18c>:IL_0018) QualityCompany.Patch.PlayerControllerBPatch.DiscardHeldObjectPatch (GameNetcodeStuff.PlayerControllerB __instance) (at <022eacd116e64c25b33040d28bcbb18c>:IL_0000) (wrapper dynamic-method) GameNetcodeStuff.PlayerControllerB.DMD(GameNetcodeStuff.PlayerControllerB,bool,Unity.Netcode.NetworkObject,UnityEngine.Vector3,bool) GameNetcodeStuff.PlayerControllerB+d__355.MoveNext () (at :IL_0039) UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) (at :IL_0026)

Theres these weird "ghost" items image

Dsnherdude066 commented 5 months ago

they wont go way and everytime i pick up a item it creates 2 of them

Dsnherdude066 commented 5 months ago

018e6862-9d48-392d-3495-33bf740faa07

thunder config

remiX- commented 5 months ago

Hey @Dsnherdude066

These ghosting ones have always been the bane of us but we have not seen it happen on our side for a while - so I thought it might be a mod conflict somewhere...

I loaded up your code in thunderstore and it seems fine - so I was wondering if there's something you did when this happened or is it as soon as you load?

image

TShineCN commented 5 months ago

I also encountered such a bug. I encountered the problem after picking up the mod items. Not only will it occupy one more inventory, but it will also make my movement speed particularly fast.

Cart3r1234 commented 3 months ago

I've also had this happen, though notably only when hosting. Other players that joined with the same mods did not have this issue. I can get it to reliably happen with the Utility Belt item from LethalThings - picking up anything after grabbing the belt causes it to visually duplicate to one of the 4 default slots and one of the added slots from the belt, but I've also had it happen without the belt involved.