Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ghost Items? #25

Open
Dsnherdude066 opened this issue Mar 22, 2024 · 5 comments
Open

Ghost Items? #25

Dsnherdude066 opened this issue Mar 22, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@Dsnherdude066
Copy link

[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::DiscardHeldObject>(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
Copy link
Author

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

@Dsnherdude066
Copy link
Author

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

thunder config

@remiX- remiX- self-assigned this Apr 2, 2024
@remiX- remiX- added the bug Something isn't working label Apr 2, 2024
@remiX-
Copy link
Owner

remiX- commented Apr 4, 2024

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
Copy link

TShineCN commented Apr 8, 2024

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
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants