Help! My Project Zomboid Inventory Won’t Close (Build 42’s Sticky Loot Window)

Help! My Project Zomboid Inventory Won’t Close (Build 42’s Sticky Loot Window)

Project Zomboid: Inventory Troubleshooter

Fix that stuck inventory window in Build 42

What's happening with your inventory?

Let's diagnose and fix your Project Zomboid inventory issues. Select the option that best describes your problem:

Is your inventory "pinned" open?

Most commonly, this happens because the inventory is pinned. Check for a pin/thumbtack icon in the top-right corner of your inventory window.

Inventory (Pinned) 📌

This window will stay open even when you move your cursor away.

Inventory (Unpinned)

This window will auto-collapse when you move your cursor away.

Try the following solutions:

Solution 1: Click the pin icon in the top-right corner of your inventory window to toggle between pinned and unpinned states.
Solution 2: If clicking once doesn't work, try clicking the pin icon multiple times to reset its state.
Solution 3: If the above doesn't work, try exiting to the main menu and reloading your save.
Solution 4: If you're in single player, try sleeping in-game (if you can find a safe spot).
Note: In Build 42, each window (inventory, loot, etc.) has its own pin toggle. You need to unpin each one separately.

Inventory Panel Disappeared

If your inventory panel has completely vanished and won't appear even when pressing 'I', there are a few possible causes:

Solution 1: Try pressing 'V' - this sometimes toggles the entire UI visibility in certain configurations.
Solution 2: Press 'I' multiple times to see if it reappears.
Solution 3 (Most Effective): Reset the UI layout file:
  1. Close the game completely
  2. Navigate to your Zomboid user folder:
    • Windows: C:\Users\<YourUserName>\Zomboid\Lua\
    • Linux/macOS: ~/.Zomboid/Lua/ (or similar)
  3. Find the file named layout.ini
  4. Make a backup copy of this file somewhere else
  5. Delete the original layout.ini file
  6. Launch Project Zomboid - your UI will reset to default positions
Warning: Deleting the layout.ini file will reset ALL of your UI customizations, not just fix the inventory panel.
Solution 4 (Advanced): Edit the layout file manually:

Open layout.ini in a text editor and look for entries like:

inventory x=70 y=50 visible=true pin=false width=0 height=16

Change any strange values (like width=0) to something reasonable (like width=400), and make sure visible=true.

Can't Select Items in Inventory

This is a known bug in some versions of Build 42 where items deselect immediately after clicking them.

Solution 1: Update your game to the latest version. This bug was fixed in patch 42.2.
Solution 2: As a temporary workaround, try pausing the game (Escape key) before selecting items. Some players reported this helps while selecting.
Solution 3: Exit to main menu and reload your save.
Solution 4: If using mods, try disabling them temporarily to see if the issue persists.
Developer Note: This bug was related to server-side inventory actions in Build 42 and has been addressed in patches.

Inventory Not Updating

If you loot items but they still show on the ground, or vice versa, this is likely a desync or lag issue.

Solution 1: In multiplayer, try re-logging (disconnect and reconnect to the server).
Solution 2: In single player, exit to the main menu and reload your save.
Solution 3: Try picking up the items again or moving away from the area and coming back.
Solution 4: Update your game. Patch 42.4 improved many inventory sync issues.
Note: This issue is more common when dealing with large stacks of items.

UI Size/Position Problems

If your inventory is too large, too small, or positioned oddly, try these solutions:

Solution 1: Adjust UI Scale in Options. Build 42 improved high DPI support, but you might need to tweak settings:
  1. Open the game's Options menu
  2. Look for UI Scale or UI Zoom settings
  3. Adjust to your preference (common values: 1x for 1080p, 2x for 4K)
Solution 2: Try toggling between Fullscreen and Windowed mode, which can sometimes reset UI positioning.
Solution 3: You can manually drag inventory windows by their top bars to reposition them.
Solution 4: If windows are stuck off-screen or can't be resized properly, use the layout.ini reset method:
  1. Close the game
  2. Delete C:\Users\<YourUserName>\Zomboid\Lua\layout.ini
  3. Restart the game for a fresh UI layout
Tip: Avoid dragging windows so their title bars go off-screen, as you won't be able to grab them again easily.

Project Zomboid Inventory Troubleshooting Reference

Troubleshooting Cheat Sheet

Symptom Likely Cause Solution
Inventory won't collapse/auto-hide when cursor moves away Inventory is pinned open Click the pin/thumbtack icon in the top-right corner to unpin it
Loot panel (container window) stuck open Loot panel is pinned Click the pin on that specific loot window
Toggling pin doesn't work UI state desync Click pin multiple times, or reload game
Inventory/loot window vanished completely Saved in bad position/state Delete layout.ini file to reset UI
Can't select items in inventory Known B42 bug (42.2) Update game, or pause while selecting as temporary fix
Cannot move/close inventory, keys give errors Likely mod conflict Disable mods and test again
Inventory not updating (picked up items still show on ground) Desync bug or lag Relog, or exit to menu and reload in single player
Inventory window too large UI scaling issue Adjust Options > UI Scale settings
After alt-tab or resolution change, UI oddly placed Resolution change UI hiccup Toggle fullscreen/windowed or reset layout.ini

The Pin/Unpin Feature Explained

Project Zomboid's inventory windows have a built-in pin toggle that controls whether they stay open or auto-collapse:

Inventory (Pinned) 📌

Pinned Mode: Window stays expanded persistently, even when cursor moves away.

Inventory (Unpinned)

Unpinned Mode: Window collapses/minimizes when cursor moves away.

Tip: Each panel type (inventory, loot, crafting, etc.) has its own separate pin state. You need to unpin each one individually.

Many players intentionally pin windows for organization and crafting. If you want to see both your inventory and a container's contents side-by-side while sorting items, pinning both windows is very useful.

Common Mistake: New players often click the pin accidentally and then think the inventory is bugged because it won't auto-hide anymore.

Resetting the UI Layout

For serious UI issues, resetting the layout file is often the most reliable fix:

  1. Close Project Zomboid completely
  2. Navigate to your Zomboid user folder:
    • Windows: C:\Users\<YourUserName>\Zomboid\Lua\
    • Linux/macOS: ~/.Zomboid/Lua/ or similar
  3. Make a backup of layout.ini (copy it to another location)
  4. Delete the original layout.ini file
  5. Start the game - all UI will be reset to default positions
For Advanced Users - Manual Editing

If you want to fix a specific issue without resetting everything, you can edit layout.ini directly:

# Example of a problematic entry (invisible due to width=0) inventory x=70 y=50 visible=true pin=false width=0 height=16 # Fixed entry with proper dimensions inventory x=104 y=428 visible=true pin=true width=400 height=121

Look for entries with unusual values like width=0 or positions that seem off-screen, and adjust them to reasonable values.

Pro Tips for Inventory Management

Learn Hotkeys: Press 'I' to toggle inventory, 'C' for crafting. On controllers, use Y button for inventory.
Tilde Key (~): Expands/collapses all category dropdowns in inventory, useful for quickly showing all items.
Strategic Pinning: Pin inventory when organizing or crafting, unpin during combat for better visibility.
Custom Layout: Some players pin inventory on the left and loot on the right for a permanent dual-pane view.
UI Scale: On 1080p screens, try 1x UI scale. On 4K, try 2x scale for better readability.
V Key: In some configurations, 'V' hides the entire UI. Useful to know if your whole interface disappears.
Avoid: Dragging windows so their title bars go off-screen - you won't be able to grab them again!
Build 42 Changes: B42 made changes to inventory capacity systems and UI scaling. If upgrading from B41, expect some differences in inventory behavior.

About This Tool

This interactive troubleshooter was created to help Project Zomboid players diagnose and fix inventory interface issues, particularly in Build 42. The information is based on community reports, official patches, and developer notes.

Remember that Build 42 is still evolving, with new patches regularly addressing issues. Keep your game updated for the best experience!

The Stuck Inventory Saga: What’s Going On?

Imagine you’re scavenging a kitchen for supplies in Project Zomboid Build 42. You click away to sneak past a lurking zombie… but your inventory window stubbornly stays plastered on the screen, blocking your view of the action. You frantically mash the close button, only to find the panel won’t collapse or auto-hide as it normally should. Welcome to the “inventory stuck open” saga – a quirky issue that many survivors in Build 42 (B42) have encountered.

This problem usually manifests as follows:

  • Your inventory or loot panel remains fully expanded at all times, even when your cursor isn’t over it.
  • The window only disappears if you manually close it (for example, by pressing the X on it or the Inventory key), but it pops right back whenever you open it again – refusing to auto-collapse when you move your mouse away.
  • In some cases, it might be the loot window (the panel that shows container contents) that’s stuck, or even both inventory and loot panels.
  • It can happen in single-player or multiplayer, often after an update or when toggling UI settings. Some players even report it happening mid-game without obvious cause.

Is it a game-breaking bug? Not exactly – you can still play – but it’s definitely irritating. In a game where visibility is life-or-death, an interface panel hogging screen space feels like having a piece of duct tape stuck on your glasses during a zombie attack. Not fun!

In this article, we’ll investigate why the inventory can get “stuck” open in Project Zomboid’s Build 42, and how to fix or work around it. We’ll draw on official info, player reports, and developer insights to get to the bottom of this mystery. Grab a Spiffo and settle in – we’re going deep into the nuances of PZ’s inventory system and its quirks!

Pin or Glitch? The Inventory Auto-Collapse Feature

Before you grab your shotgun in frustration (more on that humorous “fix” later), let’s clarify something important: Project Zomboid’s inventory windows have a built-in pin toggle. This is not new to Build 42 – it’s been around for a while – but B42’s changes and new players joining for the update have brought it to the forefront.

In the top-right corner of every inventory or loot panel in PZ’s interface, there is an icon that looks like either a little pin (thumbtack) or an arrow pointing up to a line. This tiny button controls the window’s behavior:

  • When the icon looks like a pin, the window is “pinned” open. This means it will stay expanded persistently, even when your cursor isn’t over it. It won’t automatically hide.
  • When the icon looks like an arrow (pointing up), the window is unpinned and in auto-hide mode. In this state, if your cursor moves away or you engage in certain actions, the inventory panel will collapse/minimize (usually turning into just a tab or hiding off-screen) until you hover over or reopen it.

It’s easy to accidentally click this pin icon without realizing it – especially in the heat of gameplay or when moving windows around. One Reddit user asked why their inventory wouldn’t close, and a helpful fellow survivor pointed them straight to that “little pin thumb tack” icon in the top right corner of the inventory box. Toggling that icon can switch the inventory between staying open vs. auto-collapsing. In other words, if your inventory feels “stuck” open, the first thing to check is: Did you accidentally pin it?

Player Tip: “Top right corner of your inv box there’s a button you can click that will change it from staying open to being able to close.”Reddit user explaining the pin icon fix.

This pin feature is actually super handy when used intentionally. For example, if you’re doing heavy organization of loot or crafting, you might pin your inventory and a loot window open so you can constantly see both without them auto-hiding. Many veteran players prefer playing with some windows pinned open for quick info at a glance. One discussion even debated if most people play with pinned inventory or not – some find the always-open windows annoying, others like seeing everything all the time for situational awareness.

However, if you don’t realize it’s pinned, it 100% feels like a glitch. The inventory will refuse to fold/collapse no matter what you do, aside from manually closing it entirely. New players frequently mistake this for a bug – understandably! In fact, multiple forum posts and Reddit threads have been made by confused survivors asking why their inventory won’t auto-hide or close properly… only to be gently told to “just unpin it.”

So, step one in solving the stuck inventory issue: Click that pin icon in the inventory/loot window and see if it toggles to closing normally. It should change appearance (pin ↔ arrow) when clicked. If it was indeed pinned, you’ll find that unpinning immediately allows the window to collapse when you move your cursor away. Problem solved – no code debugging or sacrifices to the undead required.

Real-world analogy: Think of the pin like the door stopper that props your door open. If you forget it’s there, you’ll be kicking the door wondering why it won’t shut. Remove the door stopper (unpin the window), and boom – door closes as normal. Many times, the “stuck open” inventory is essentially just a door you accidentally propped open.

However – and this is important – what if you didn’t pin the inventory, or toggling the pin doesn’t fix it? Or what if it’s something weirder, like the window is visibly glitched or unresponsive? Build 42 introduced a lot of changes under the hood. There have indeed been real bugs (not just user error with the pin) causing inventory weirdness. If you’re screaming “I swear it’s not pinned and it’s still stuck!”, don’t worry – you’re not alone. Let’s dig into B42 specifics next.

New in Build 42: Inventory Changes and Quirks

Build 42 is a huge update for Project Zomboid. It overhauled crafting, added animals, expanded the map, and tweaked many systems. Notably, it also made some changes to inventory mechanics and UI. Understanding these changes can shed light on why new inventory bugs or odd behavior might crop up in B42.

Here are some key things that changed or are new in Build 42 related to inventory:

  • Weight vs. Capacity: In prior builds (like Build 41), inventory management was mainly about weight. Every container (bags, crates, etc.) had a weight capacity, and items had weight values. Build 42 shifted toward a hard-coded capacity limit system for containers. For example, modders noted that B42 introduced fixed size limits: player bags max out at 50 units, world containers at 100, etc., regardless of weight reduction traits. This implies the devs are moving more toward a volume-based system (a bit like “inventory Tetris” style) in vanilla. While the full grid inventory isn’t in vanilla B42, the under-the-hood changes to capacity might have side effects on the UI. It’s possible that some of the UI code for hiding/collapsing inventory windows was touched or impacted by these inventory system updates – though that’s speculative.
  • UI Auto-Hiding When Aiming: Some players in B42 reported that their inventory/loot windows would disappear whenever they held the right mouse button to aim, and then not come back until pressing I again. That’s actually the inverse problem (inventory hiding too much), but it’s related. In older builds, if your inventory was unpinned, it would temporarily hide when you aimed (so you have a clear view while fighting). In B42, one user thought it was a bug that their windows vanished during aiming, saying “I am not sure if it’s an issue with Build 42 or mods… they disappear when aiming and I have to press I to bring them back up.”. They insisted it wasn’t the pin causing it (and indeed, this sounds like normal unpinned behavior). The confusion here suggests many players aren’t fully aware of the intended auto-collapse behavior and how B42 might accentuate it. It’s possible B42 changed the default so that even pinned state might not persist through aiming (though officially, pinned should stay visible always). The takeaway: Build 42 did refine some UI behaviors, so what you think is a bug might be the game trying to be helpful by hiding UI during combat. Still, the user above found it a pain to reopen each time, suspecting a mod or setting was at fault.
  • UI Scaling for High Resolutions: The devs acknowledged that older UIs weren’t great on big monitors or 4K displays. In B42 they began implementing UI improvements for large resolution monitors. This doesn’t directly cause a “stuck” window, but it means the inventory window’s size and scaling might be different now. Some players noticed after B42 that the inventory panel was huge on their screen by default. One user complained “the UI is so huge in B42… inventory open takes up half my screen”. If you shrink the UI scale, the inventory might behave more traditionally. But if it’s enormous, you might be less inclined to keep it open, thus pinning/unpinning behavior becomes more noticeable. (After all, an auto-hiding inventory is more welcome if the thing is gigantic.)
  • Server-Side Inventory Actions: A subtle but important change: The B42 update put a lot of previously client-side actions onto the server for multiplayer security. Inventory actions were a part of this. Essentially, how item pickups, transfers, etc. are processed was reworked. This could introduce new bugs. For instance, a known bug in B42’s early unstable versions was that you couldn’t select items in inventory – they’d instantly deselect. Imagine clicking an item and it just flickers and unselects itself immediately; that obviously wreaks havoc on managing your loot. The Indie Stone forum post for version 42.2.0 (rev 26060) described exactly that reproduction: open inventory, click item, it instantly deselects. That was a bug, likely tied to the new input syncing, and it got fixed in a patch soon after. While that’s not the window “stuck open” per se, it’s evidence that B42 had some inventory UI hiccups early on. If the devs tweaked those systems, there’s a chance that the auto-hide (collapse) functionality was also briefly affected by bugs.
  • General Unstable Bugs: B42, especially early in the Unstable branch, was full of bugs – “There will be bugs and annoyances,” the devs warned. Many players dutifully reported issues. Some involved inventory oddities: for example, items duplicating or appearing both on ground and inventory (a glitch in B42.4 where picking up an item didn’t remove it from the ground), or crashes when transferring items between containers. While these aren’t about the UI panel itself, they contribute to the overall wonkiness of the inventory experience in the current build. A bug that leaves an item “ghosted” on the ground might give the impression the loot window is acting up.

In summary, Build 42 introduced massive changes and some growing pains in the inventory system. The stuck-open inventory could be a byproduct of these changes or simply a longstanding feature (the pin) catching more people off guard now. It’s the classic case of feature vs bug: sometimes the line is blurry. Build 42’s evolving patches (42.1, 42.2, … 42.7 as of this writing) have addressed many issues. For instance, by patch 42.3 they fixed inventory window column layouts after resizing and by 42.4 they fixed severe lag when right-clicking large stacks of items. The devs are actively polishing the UI, so help is on the way in official updates.

However, until you download that patch that magically solves everything, you need immediate solutions. If your inventory is indeed glitched stuck (and not just pinned), what can you do? Let’s look at some player-discovered fixes and workarounds that have been passed around the survivor community.

Community Tales: Fixes, Workarounds, and Myths

When facing a glitch in Zomboid, the community often gets creative (and sometimes comical) with solutions. The “inventory stuck open” issue is no exception. Players have exchanged both legit fixes and tongue-in-cheek advice. Let’s go through some of the notable ones:

1. The Louisville Shotgun Solution (Humor Alert!)

We’d be remiss not to mention one of the funniest “fixes” suggested in the Reddit thread on this topic. A user experiencing the stuck inventory asked for help, and another jokingly replied:

“It’s a common glitch. You have to drive to Louisville, and fire three shotgun shots upon arrival. That’ll fix it.”

If you’re new to PZ, Louisville is a far northeast city on the map – not exactly a quick trip – and firing a shotgun there would likely attract a mind-melting horde. In other words, this suggestion was a playful troll. It gave everyone a laugh, imagining this ritualistic cure, but please don’t take it seriously! You might end up with bigger problems than an open inventory window (like an open skull, courtesy of the zombie who heard your shotgun).

That said, the fact that such tongue-in-cheek answers exist is a sign that yes, this glitch was common enough to become a bit of a meme. When communities start prescribing voodoo-like steps, it’s usually because no obvious official fix was known at the time, leading to humor as a coping mechanism.

2. The Save-Quit-Reload (or Sleep) Trick

On a more practical note, many players discovered that simply reloading the game could reset the UI state and fix a locked inventory. One Redditor described it succinctly:

“Exit to the main menu and then enter the game again – it’s frustrating but it works. Oh, and you could also go to sleep. That also fixes it.”

So here are two variations of this approach:

  • Quit to Menu and Continue: Pause and exit to main menu, then reload your save. After loading back in, check if the inventory behaves normally again (usually it will).
  • Sleep In-Game: If you’re in a relatively safe spot and can sleep (and aren’t in multiplayer where sleeping isn’t possible), sleeping causes the game to advance time and basically refresh a lot of state. Upon waking, players found the UI sometimes sorted itself out.

Why would these help? Probably because the game re-initializes the UI each time you load a save. A glitch that happened during one session (especially if it’s related to some temporary state or sequence of actions) might not persist after a reload. It’s akin to the classic “have you tried turning it off and on again?” approach, which we all know is a staple in IT for a reason.

One caveat: If the issue does persist after a reload, it suggests the game saved some weird UI state (like the pinned setting) or a mod is reapplying a problematic setting on load. In that case, a deeper fix is needed (see below).

3. Verifying the Pin (Again) – Toggling It Off and On

Sometimes, even if you think the window isn’t pinned, it can be worth toggling the pin a couple of times. One user claimed “Try pressing the push pin icon a couple times on the inventory bar.” as a remedy. This implies that maybe the pin icon state and the actual behavior got out of sync. By clicking it a few times, you re-sync it.

We saw earlier that if the pin is engaged (pin icon showing), the window should be stuck open. If it’s disengaged (arrow showing), it should auto-hide. In a bug scenario, the game might think it’s unpinned but it’s actually acting pinned (or vice versa). Manually cycling it can jar it loose, metaphorically speaking.

Think of it like jiggling a key in a lock when it’s stuck – on/off a few times to make sure the mechanism catches properly. It might feel silly, but some have reported success with this when one click didn’t seem to register.

4. No Mods, No Problems? (Checking Mods)

Mods can both fix and cause issues:

  • Mods that improve inventory UI: There are mods like SpiffUI - Inventory and Inventory Tetris that alter how the inventory is displayed and behaves. For example, SpiffUI - Inventory binds the inventory to the Tab key and auto-opens both inventory and loot panels together for convenience. It also changes auto-hide behavior (bringing mouse to top of screen to reveal panels, etc.). If you were using such a mod and then B42 dropped, it’s possible the mod malfunctioned until updated. Always ensure your mods are updated for the current build, or disable them to see if the issue disappears.
  • Mods causing conflicts: On the flip side, some unrelated mods might accidentally interfere with UI. One player reported their entire inventory/health/etc. UI disappeared and keys gave errors – turned out it was a mod causing it in B42. The advice given was basically “if mods break your game, it’s on you to figure out which one” – meaning disable mods one by one or check mod forums for known issues.
  • If you’re not running any mods, you can obviously skip this. But if you are, and you experience a weird UI bug like this, try running the game with mods disabled to see if it’s a mod doing it.

For B42, a specific example: Inventory Tetris (Grid Based Inventory Overhaul) had to update because B42 changed capacity logic. Early on, people saw odd behavior with item sizes or key rings not working. The mod dev pushed fixes (like for the keyring bug) to catch up with B42. Until they did, users could have weird inventory issues. If you had Inventory Tetris or similar realism mods installed and saw inventory windows acting strange, check the mod’s workshop page for notes. In one case, simply resubscribing or deleting the mod folder and re-adding fixed residual issues.

Bottom line: In troubleshooting, always consider mods. The “stuck open” inventory might not be a known vanilla bug but rather an out-of-date UI mod misbehaving. Eliminating that variable can save a ton of headache.

5. The Nuclear Option – Resetting the UI Layout

If none of the in-game or quick tricks work, it might be time to resort to editing or resetting the game’s UI config files. Project Zomboid remembers your UI layout (window positions, pinned states, sizes) between sessions using a file called layout.ini in your Zomboid user folder. Sometimes, this file can contain a glitchy value that causes a window to effectively disappear or behave oddly.

For example, one player had their personal inventory panel vanish completely (somewhat the opposite problem – it was permanently closed!). They had pinned it to the screen, then after a restart it was gone and couldn’t be brought back. A PZ support team member (Beard) advised that likely the window got “stuck somewhere” off-screen or in a bad state. The fix? Delete or edit the UI layout files.

Here’s how you can do this safely:

  1. Close the game.
  2. Navigate to your Zomboid user folder. On Windows, this is typically: C:\Users\<YourUserName>\Zomboid\Lua\` (On Linux/macOS, it’ll be in your home folder under.Zomboid/Lua` or similar).
  3. Inside Lua, find the file named layout.ini. This file stores the last known position, size, visibility, and pinned state of UI elements.
  4. Make a backup of layout.ini (copy it somewhere else) in case you want to restore your custom UI layout later.
  5. Now delete the layout.ini file (or move it out of the folder). You can also delete other related files if present (inventory_layout.ini, etc., but generally layout.ini covers all).
  6. Launch Project Zomboid and load your game. The UI will be reset to default positions – your inventory panel should be back in the default spot and default (unpinned) state.

Players who tried this reported immediate success: “Deleting the layout.ini file fixed it, thank you for the tip.”. It brings back missing panels and clears out any funky pinned state that might have been saved.

Dev’s Note: The support team explained that pressing V can hide the entire UI (a mode to clear screen, possibly from debug or controller mode). But if only one panel is missing, it likely “got stuck somewhere” and thus editing the layout file is the way to go. This underscores that the game sometimes saves a window as being at some coordinate or size that renders it invisible (like 0 width, or positioned off screen).

For advanced users, you don’t even have to delete the whole file – you can open layout.ini (it’s a text file) in Notepad and look for entries related to the inventory windows. They’ll look something like:

inventory x=... y=... visible=true pin=false width=... height=...
loot x=... y=... visible=true pin=true width=... height=...

etc. If you notice an inventory or loot panel has weird values (like width=0 or pin=false when it should be true), you can manually adjust them. One community member did this with a generator info panel that had bugged out when pinned. They saw in the layout.lua (similar to layout.ini) that the generator panel was saved as pin=false width=0 height=16 – essentially an invisible sliver. By changing that to pin=true and giving reasonable width/height, they restored the panel without resetting everything.

For reference, here’s an example snippet from a layout file showing a glitched vs normal entry:

# Glitched panel (invisible due to pin=false and tiny size)
generator x=70 y=50 visible=true pin=false width=0 height=16

# Normal panel (after resetting, note pin=true and decent size)
generator x=104 y=428 visible=true pin=true width=400 height=121

Snippet from a player’s layout file analysis.

In our context, if your inventory panel was pinned and vanished, you might find something like:

inventory x=... y=... visible=true pin=false width=0 height=...

Changing pin=true or giving it a larger width might bring it back. But doing this requires a bit of technical confidence. For most, simply deleting the config file and letting the game regenerate it is the safer approach (you’ll just need to re-adjust your UI to your liking afterwards).

This method is basically akin to “reset to factory settings” for the game UI. It can be a pain to lose custom layout tweaks, but it’s highly effective for clearing any UI corruption.

6. Patience and Updates

Finally, one “fix” that isn’t immediate but is reliable: update the game. Since Build 42 is in unstable/testing, new patches come out frequently (42.1, 42.2, … etc.). Check the Project Zomboid news or forums for patch notes. If the stuck inventory was a widespread bug, chances are the devs have addressed it in a patch. For example, if it was related to that item selection bug, that got fixed quickly. If it was related to window pin states, they may have fixed it quietly in an update (some fixes aren’t explicitly mentioned in patch notes).

The community bug megathreads and official bug tracker are good places to see if others reported the same issue and if devs acknowledged it. On The Indie Stone forums, a “Several Bugs on Build 42 so far” thread compiled issues (e.g. infinite cigarettes exploit, animal spawn bugs, etc.). While inventory auto-hide wasn’t explicitly listed there as of early January, the fact that multiple Reddit threads and Steam discussions existed about inventory windows suggests devs likely noticed.

Keep your game updated (opt into the unstable branch updates on Steam if you’re playing B42 unstable), and read the patch notes. Something like “Fixed inventory pane getting stuck open under XYZ conditions” might pop up in one of those updates (in Build 41, a patch did mention “Fixed inventory pane no longer stuck open after nullify mouse drag in tutorial” – showing that similar issues have been tackled before).

Taking Control: Tips to Manage Your Inventory UI

Even when it’s not glitched, the inventory UI in Project Zomboid can take some getting used to. Here are some pro tips and best practices to avoid trouble:

  • Learn the Hotkeys: By default, I opens/closes your inventory panel (and I again closes it). C opens the crafting panel, etc. On controllers, the Y button toggles inventory. Knowing this can help you quickly hide the panel if it’s blocking you, without fumbling for the little X. Also, pressing ~ (tilde) can expand/collapse all category drop-downs in the inventory, which affects how tall the window can get. Sometimes what feels like a “stuck” inventory is just that you have a million items shown and need to collapse categories.
  • Use Pinned Windows Intentionally: If you want the inventory or loot window open while moving around, pin it. For instance, when clearing a building, you might pin the loot panel so any container you walk by auto-shows loot (by default, walking near a container will pop up the loot panel if unpinned, but with pinned it stays put and lists contents as you move). Some players pin one inventory on the left for their backpack, and one on the right for ground/loot – giving a permanent dual inventory view. Experiment with what works, but remember what’s pinned will stay until unpinned.
  • Manage UI Scale: In Options, adjust the UI scaling if needed. If your inventory feels obnoxiously large or tiny, this can make you more comfortable using auto-hide vs leaving it open. On 1080p a common scale is 1x, on 4K you might use 2x UI. Build 42 improved high DPI support, but if you find any weirdness (like overlap or huge panels), try toggling the UI scale or the new UI zoom option.
  • Avoid Dragging Windows Off-Screen: It’s possible to drag your inventory panel by its top bar. Don’t drag it so far that the top bar itself goes off-screen – you might not be able to grab it again! If you do, that’s when editing layout.ini or using a lower resolution temporarily to grab it may be required. Keep them in bounds.
  • Closing Inventory on the Fly: If unpinned, simply moving will hide the loot panel (if you’re not near a container) and inventory panel will collapse to a small tab that you can mouseover to expand. If pinned, you’ll have to manually close it. So, when driving or in combat, you might want it unpinned for less clutter. And remember the key V – in some configurations it might hide the UI HUD (this is often an “admin” or debug feature, but just be aware in case you hit something and your whole HUD disappears – check key binds).
  • Keep an Eye on Mods for Conflicts: As mentioned, if you use UI mods, check their workshop pages for any notes regarding Build 42. The mod community is pretty quick to update popular mods, but on a brand new unstable build, expect a delay. In the meantime, you might live with vanilla UI or find an alternative mod that is updated. Also note that Inventory ReInvented or CleanUI mods could override the pin behavior entirely with their own logic.

Troubleshooting Cheat Sheet

Let’s compile a quick reference table of common scenarios and fixes regarding the inventory staying open:

Symptom Likely Cause Suggested Fix
Inventory window won’t collapse/auto-hide when you move cursor away. Probably pinned open (pin icon toggled). Unpin the inventory by clicking the pin/thumbtack icon at top-right of the panel. Icon should change to an arrow and window will auto-hide thereafter.
Loot panel (container window) also stuck open on screen. Also pinned (each panel has its own pin). Or game “remembers” it pinned. Click the pin on that loot window. If it’s not visible, open a container, then look for the icon on that panel. Toggle it.
Toggling pin doesn’t work; inventory still acts weird (or immediately reopens). Minor UI glitch – game might be desynced on the state. Try clicking the pin icon twice (cycle it) to refresh state. Then set your desired mode (likely unpinned).
Inventory/loot window vanished completely (you can’t see it at all after moving it or after a reload). Possibly saved off-screen or size collapsed due to a pinned bug. Use the layout.ini reset: delete the file to restore default UI. This brings back missing panels. Alternatively, edit the file to set a proper position/pin/size.
Inventory interface is present but can’t click/select items inside it (items deselect immediately). Known B42 bug (42.2) with inventory selection / focus. Update the game – this was fixed in a patch. As a temp workaround, pausing the game might allow selection (as noted in bug report).
Cannot move or close inventory at all, and key presses give errors. Likely a mod conflict breaking UI. Disable mods and test again. Verify specifically any inventory/UI mods for updates.
Inventory is open but not updating (e.g., you loot items but they still show on ground, or vice versa). Desync bug or lag, often in MP or with huge stacks (known issue pre-42.4). Usually fixed by a relog (relogging) or picking items up again. Patch 42.4 improved this. In SP, exit to menu and reload.
Inventory window is too large, covering half the screen, making you want to keep it closed. UI scaling issue on high resolution (or default scaling in B42). Adjust Options > UI Scale or resolution. B42 added better support for large monitors, so tweak settings to your preference.
After alt-tabbing or changing resolution, inventory window stuck or oddly placed. Minor UI hiccup (not uncommon after resolution change). Use layout.ini trick or simply try toggling fullscreen/windowed or restarting game to reset UI placement.
You simply cannot stand the inventory auto-hiding when unpinned (personal preference). Not a bug – by design it hides to reduce clutter. Consider using the pin to keep it open, or use a mod (SpiffUI) that gives alternative behavior (like a key to toggle both panels quickly).

Use the above as a quick diagnosis chart. Most issues can be solved with either an in-game toggle or a quick reload/reset. Only in stubborn cases do you need to dive into files.

Conclusion: Surviving (UI) Glitches Like a Pro

Project Zomboid is as much about improvisation and adaptation as it is about planning. That applies not just to fighting zombies or farming food, but also dealing with the occasional technical hiccup. The Build 42 inventory-stuck-open issue is a prime example where a survivor’s ingenuity comes into play.

To recap the key points in plain English:

  1. Check the Pin Icon: Nine times out of ten, an inventory that won’t auto-close is just pinned open. Click that little pin/thumbtack in the corner of the window. If you see an arrow icon instead afterward, you’ve successfully unpinned it and it should behave normally.
  2. Reload or Sleep if Bugged: If it’s genuinely a bug (not the pin), a quick fix is to exit and reload your game, or sleep in-game. This often “unsticks” whatever was stuck.
  3. Reset UI if Necessary: For persistent UI glitches, reset the UI layout by deleting the layout.ini file (after backing it up). This is like hitting the reset button on your HUD – your inventory panel will be back to default size/position, hopefully minus the glitch.
  4. Mind Your Mods: Always consider if a mod is causing the issue. If you use inventory mods or any mod at all, try disabling them to see if the problem goes away. Keep mods updated, especially after big patches.
  5. Stay Updated & Report: Keep an eye on B42 patch notes and update your game. If you encounter a new inventory bug, report it on the official forums (after reading their bug report guidelines). The devs can only fix what they know about. As B42 continues to evolve, many bugs will be squashed – your report could help speed that along.

At the end of the day, remember that Build 42 is unstable (in testing). The Indie Stone team explicitly warned that you’ll face “bugs and annoyances” while playing it. The inventory UI acting up is indeed annoying, but it’s survivable with the tips we’ve gathered. Consider it another challenge in the apocalypse – a test of your resolve to manage not just your character’s survival, but the game’s quirks too.

On a lighter note, if you ever do find yourself in Louisville with a shotgun, well… you might have other plans than fixing an inventory window. 😉 Until then, keep your shotgun for the zeds and use your wits (and the info in this guide) for the UI.

Good luck out there, survivor! May your loot be plentiful and your inventory behave itself. And if it doesn’t? Now you know what to do to unstick that sticky inventory in Build 42. Stay safe and stay organized – both in your backpack and in your bug fixes!