Page MenuHomeFeedback Tracker

SCR_InvCallBack::OnFailed trigged multiple times on sucessful item quick take
Closed, ResolvedPublic

Description

When taking an item from the ground via the inventory menu and right-click the logs show:

16:23:01:661 SCRIPT : SCR_InvCallBack::OnFailed
16:23:01:661 SCRIPT : SCR_InvCallBack::OnFailed
16:23:01:661 SCRIPT : SCR_InvCallBack::OnFailed
16:23:01:752 SCRIPT : SCR_InvCallBack::OnComplete

I discovered this by accident when debugging a game mode I am working on. The operation completes, and this does not happen on drag and drop transfer, so I am confused why the callback triggers "false negatives". Because the callback only updates some UI stuff and item in hands logic it might not have been discovered yet.
It is not causing any problems but could lead to some undesired behavior if modders or other BI scripters expect one inventory operation to work or fail ONCE.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
modded class SCR_InvCallBack
{
	//------------------------------------------------------------------------------------------------
	protected override void OnFailed()
	{
		Print("SCR_InvCallBack::OnFailed");
		super.OnFailed();
	}

	//------------------------------------------------------------------------------------------------
	protected override void OnComplete()
	{
		Print("SCR_InvCallBack::OnComplete");
		super.OnComplete();
	}
}

Event Timeline

Arkensor created this task.Sep 11 2022, 4:28 PM
Arkensor edited Steps To Reproduce. (Show Details)
Geez changed the task status from New to Awaiting internal Testing.Sep 12 2022, 12:08 AM
Geez closed this task as Resolved.Feb 2 2024, 12:45 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Closing as devs have decided to not address this for now.