Page MenuHomeFeedback Tracker

If SCR_WeaponAttachmentsStorageComponent used in a weapon without Muzzle component results in error and on Workbench Stop a crash.
Closed, ResolvedPublic

Description

Hi I'm making a grenade that has a SCR_WeaponAttachmentsStorageComponent and AttachmentSlotComponent in order to add/remove a fragmentation case (T168165).
If I try to open the Inspection mode then an error is shown and if you stop the workbench execution it crashes.
That can be tested easily with some rifle, disabling the MuzzleComponent and trying to acces Inspection mode.

As far as i have seen it could be patched adding a verification on SCR_InventoryGearInspectionPointUI line 100

InventoryStorageSlot storageSlot = m_Storage.GetSlot(i);
if(!storageSlot)
    continue;
AttachmentSlotComponent attachment = AttachmentSlotComponent.Cast(storageSlot.GetParentContainer());

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
21H2
Category
General
Steps To Reproduce
  1. Open Workbench and World Editor
  2. Place some weapon, like M16 with optics
  3. Disable the weapon's MuzzleComponent.
  4. PlayGame
  5. Open inventory.
  6. Open the M16's Inspecion window.
  7. Error.
  8. If you stop the execution then workbench crashes (i don't know if this is a bug or in this situation is normal)

Video:
https://youtu.be/hfMh5YCVRVQ

Event Timeline

Piloto_Spyke edited Steps To Reproduce. (Show Details)
Geez changed the task status from New to Assigned.May 16 2023, 11:48 AM
Geez closed this task as Resolved.May 23 2023, 12:47 PM
Geez claimed this task.
Geez added a subscriber: Geez.

Resolved for 0.9.9