Skip to content

ZenFixCarAttachmentGUI

Zenarchist edited this page Apr 16, 2026 · 1 revision

NOTE: This mod is included in my modpack and can be enabled/disabled via ZenFixCarAttachmentGUI in ZenModPackConfig.json

What is this?

I recommend leaving this on unless you run into issues with other mods.

Vanilla handling of GUIInventoryAttachmentsProps is not very robust.

I had to re-write it so that it doesn't spam crash log nullpointers and cause all kinds of in-game GUI issues when there's too many attachment categories added through .cpp's GUIInventoryAttachmentsProps.

This is the error I'd get whenever an object with cargo had an incompatible number of attachment categories (my mod fixes this):

NULL pointer to instance
Class:      'AttachmentCategoriesContainer'
Function: 'InitGhostSlots'
Stack trace:
scripts/5_Mission/gui\inventorynew\inherited\attachmentcategoriescontainer.c:388 Function InitGhostSlots
scripts/5_Mission/gui\inventorynew\inherited\attachmentcategoriescontainer.c:36 Function SetEntity

ZEN'S MOD WIKI

Setup Guide

General Information


Utilities

My utility style mods for debugging etc.

Game Mechanics

Mods which affect game mechanics:

Gear / Objects

Mods which add gear to the game:

Server-Side Mods

Mods which run purely server-side:

Mods Not In Modpack

My standalone mods

Clone this wiki locally