• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Experimental Feedback
  • /DZEXP-266
Back
3

Vicinity attachment panels ignore GUIInventoryAttachmentsProps order

CharacterInventory
3

State

Assigned
Issue key
DZEXP-266
Access
Public
Space
DayZ
Project
Experimental Feedback
Creator
fubar88
Created
Oct 7, 2026
Views
204
Platform
PC Steam
What happened?

On 1.30 experimental, the Vicinity panel does not show GUIInventoryAttachmentsProps in the order written in config.cpp. Slots inside a panel stay in config order. The panels themselves do not.

Item: AB_Distillery.

config.cpp order:
1. Propane & Stove (SlotABEquipment)
2. Alcohol Ingredients (SlotABIngredients)
3. Jugs or Bottles (SlotABLiquids)
4. Empty Bottles (SlotABEmptyBottles)
5. Alcohol Produce (SlotABProduce)
6. Wooden Crate (SlotABStorage)

Vicinity order:
1. Alcohol Produce
2. Empty Bottles
3. Jugs or Bottles
4. Propane & Stove
5. Alcohol Ingredients
6. Wooden Crate

See uploaded image

Reproduction steps

1. Put GUIInventoryAttachmentsProps on an item in this class order: SlotABEquipment, SlotABIngredients, SlotABLiquids, SlotABEmptyBottles, SlotABProduce, SlotABStorage.
2. Spawn that item and open it from Vicinity on 1.30 experimental.
3. Compare the panel order on screen with the order in config.cpp.

Exact build version (optional)
1.30.164014.27
Where did it happen?
Local / Offline
Is it modded?
Yes
Expected result

Vicinity shows the attachment panels in the same order as GUIInventoryAttachmentsProps in config.cpp: Propane & Stove, Alcohol Ingredients, Jugs or Bottles, Empty Bottles, Alcohol Produce, Wooden Crate.

Section
Mod list

CF, Alcohol_Brewery

Load order / launch params
        "-dologs",
        "-adminlog",
        "-freezecheck",
        "-scrAllowFileWrite",
        "-doScriptLogs=1"
Public attachments1 file · visible to everyone

2026_10_07_15_34_44.jpg

145 KB

Reactions

Activity

    about 2 months ago
  • fubar88
    created issueabout 2 months ago
  • l909
    changed state to
    ASSIGNED
    about 2 months ago
  • 22 days ago
  • fubar88commented
    22 days ago
    fubar88commented
    22 days ago

    This is still the same Update 1.30.164289

  • 9 days ago
  • fubar88commented(edited)
    9 days ago
    fubar88commented(edited)
    9 days ago

    Workaround for DZEXP-266 (Vicinity attachment panels in the wrong order)

    Here's a workaround until this gets fixed.

    Why it happens:
    Vanilla reads the GUIInventoryAttachmentsProps classes in config order, but it stores them in a map (TAttachmentGroupMap). A map does not keep the order you add things in. AttachmentCategoriesContainer.InitGhostSlots() then builds the icon row and the panels with groupMap.GetKey(i) so they come out in map order instead of config order. The slots inside each panel come from an array, which is why those stay in order.

    The fix:
    I override InitGhostSlots(). It walks the config classes in the order they are written and only uses the map to look up each one by name. Apart from the loop, it's the vanilla 1.30 code. If an item has no categories, it falls back to vanilla. Put it in any 5_Mission script folder:

    modded class AttachmentCategoriesContainer
    {
    	override void InitGhostSlots()
    	{
    		TypeAttachmentGroupsDataHolder holder = m_Entity.GetTypeAttachmentGroupInfoHolder();
    		if (!holder || !holder.GetAttachmentGroupMap())
    		{
    			super.InitGhostSlots();
    			return;
    		}
    
    		TAttachmentGroupMap groupMap = holder.GetAttachmentGroupMap();
    		string propsPath = holder.GetPropsCfgPath();
    		int categoriesCount = holder.GetValidAttachmnetGroupCount();
    		int childrenCount = m_Body.Count();
    		int cfgCount = g_Game.ConfigGetChildrenCount(propsPath);
    
    		SlotsContainer items_cont;
    		SlotsIcon icon;
    		string attCategoryClass;
    		TypeAttachmentGroupData groupData;
    
    		int i = 0;
    		for (int c = 0; c < cfgCount && i < categoriesCount; ++c)
    		{
    			g_Game.ConfigGetChildName(propsPath, c, attCategoryClass);
    			groupData = groupMap.Get(attCategoryClass);
    			if (!groupData)
    				continue;
    
    			items_cont = GetSlotsContainer(i / ITEMS_IN_ROW);
    			if (items_cont)
    			{
    				int slot_number = i % ITEMS_IN_ROW;
    				m_CategorySlotIndex.Insert(attCategoryClass, i);
    				icon = items_cont.GetSlotIcon(slot_number);
    				icon.GetGhostSlot().SetFlags(WidgetFlags.IGNOREPOINTER);
    				LoadAttachmentCategoriesIcon(items_cont, groupData.m_IconPath, slot_number);
    				icon.SetSlotDisplayName(groupData.m_Name);
    
    				AttachmentCategoriesRow ar = new AttachmentCategoriesRow(this, -1);
    				ar.Init(categoriesCount, i, attCategoryClass, propsPath, m_Entity, childrenCount);
    				ar.SetSlotIcon(icon);
    
    				icon.GetRadialIconPanel().Show(true);
    				ar.Open();
    				icon.SetContainer(ar);
    				Insert(ar);
    			}
    			i++;
    		}
    
    		if (m_Entity.GetInventory().GetCargo())
    		{
    			items_cont = GetSlotsContainer(m_SlotsCount - 1);
    			if (items_cont)
    			{
    				icon = items_cont.GetSlotIcon(categoriesCount);
    				icon.GetGhostSlot().Show(true);
    				icon.GetGhostSlot().LoadImageFile(0, StaticGUIUtils.VerifyIconImageString(StaticGUIUtils.IMAGESETGROUP_INVENTORY, m_Entity.ConfigGetString("GUIInventoryCargoIcon")));
    				icon.SetSlotDisplayName(m_Entity.ConfigGetString("GUIInventoryCargoName"));
    				icon.GetGhostSlot().SetFlags(WidgetFlags.IGNOREPOINTER);
    
    				icon.GetRadialIconPanel().Show(true);
    				icon.GetMainWidget().Show(true);
    
    				ContainerWithCargo iwc = new ContainerWithCargo(this, -1);
    				iwc.Get(0).GetRootWidget().ClearFlags(WidgetFlags.DRAGGABLE);
    				iwc.SetEntity(m_Entity, 0, false);
    				iwc.SetSlotIcon(icon);
    				iwc.Open();
    
    				icon.SetContainer(iwc);
    				m_CargoSlotsIcon = icon;
    			}
    		}
    
    		RecomputeOpenedContainers();
    	}
    }


You are not signed in. Please sign in to see more details and to reply.

State

Assigned
Issue key
DZEXP-266
Access
Public
Space
DayZ
Project
Experimental Feedback
Creator
fubar88
Created
Oct 7, 2026
Views
204