Page MenuHomeFeedback Tracker

AttachmentCategoriesContainer Error
Assigned, UrgentPublic

Description

An error occurs if I add class Cargo into my config.cpp BaseBuildingBase building and it has 8 or more GUIInventoryAttachmentsProps slots.

If you have 7 or less GUIInventoryAttachmentsProps slots with Cargo everything works great, all slots show up (all 7 custom slots from GUIInventoryAttachmentsProps and 1 Cargo Slot).

Cargo slot showed up, no errors

If you have 8 or more GUIInventoryAttachmentsProps slots with Cargo, client starts sending NULL Pointer Errors and Cargo slot not showing up (icon is missing, inventory is still showing normally, you just cant hide/unhide it without icon)

Cargo slot is missing, but you can see cargo + UI bar added 1 row (1 slot) for missing cargo slot

// NULL Pointer Error with 8 or more slots + Cargo added in config.cpp (Only on Client Side)

SCRIPT    (E): NULL pointer to instance when trying to access variable 'm_MainWidget' (Parent instance is null)
Class:      'AttachmentCategoriesContainer'
Function: 'UpdateInterval'
Stack trace:
scripts/5_Mission/gui\inventorynew\inherited\attachmentcategoriescontainer.c:98
scripts/5_Mission/gui\inventorynew\inherited\vicinitycontainer.c:369
scripts/5_Mission/gui\inventorynew\containers\container.c:454
scripts/5_Mission/gui\inventorynew\areas\leftarea.c:206
scripts/5_Mission/gui\inventorynew\inventory.c:1071
scripts/5_Mission/gui\inventorynew\inventory.c:716
scripts/5_Mission/gui\inventorymenu.c:94

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
10.0.19044 Build 19044
Category
General
Steps To Reproduce

Have 8 or more GUIInventoryAttachmentsProps slots and add class Cargo to your item in your config.cpp

Event Timeline

Geez changed the task status from New to Assigned.Apr 19 2023, 10:12 AM