Project Zomboid

Project Zomboid

87 ratings
[B42] Home Inventory Improved
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
426.127 KB
10 Jul @ 8:45am
18 Jul @ 12:33am
11 Change Notes ( view )

Subscribe to download
[B42] Home Inventory Improved

Description
This is a complete rewrite using the original Home Inventory as reference.

Originally posted by maraganina:
Looted the 14th pipe wrench because you forgot you already had 13? Didn't take that sledgehammer because you already had one but now you realized that was on your previous character? This mod allows you to designate zones in your home(s) or base(s). A list of all items in those zones will be displayed in the new Home Inventory tab, available in the Character Info panel (Health screen) by clicking a new button in the sidebar.

Safe to add/remove mid campaign; doesn't overwrite any game files.

...

The Home Inventory mod allows the player to create and manage custom zones: "home" zones; similar to how the Animal system works in B42. The items inside home zones are fetched and saved, and can be seen as a list in a new tab panel called "Home Inventory" located in the Character Info panel (the heart icon). Home zones can cover multiple bases, and can also cover different areas of each base. It's up to you to decide how you will organize your bases and the items inside them.

The list of items is only fetched when you add or remove zones, or when you click the "Home Inventory" tab "Manage" button, so the mod has virtually no effect on performance.

If you are too far from a zone, their tiles will not be loaded, and the game will think your items don't exist. To prevent this, the mod saves the items of each zone to a cache, so you can keep checking your home inventory while you are away.




What's new?

This mod adds many extra features in addition to the currently existing ones in the original mod, which includes:

  • Improved UI (again, hopefully) (since 0.6.0)
    • The Zone panel can now be resized, and it's also made more compact.




  • Quick Search: Right-click on an item will show whether you have collected that item and the current amount stored in your Home Inventory. (since 0.4.0)
    • NOTE: The amount of items collected for the default option is now placed in the tooltip of an item, visible when hovered. (since 0.5.0)





  • Container Tooltip: Hover over the container name of an item to show its inventory icon. (since 0.3.0)






  • Integration with Smarter Storage (since 0.3.0) (Thanks for the idea, @ivmakk!)
    • The "Container" column will now display the custom name set by the mod if it exists.

    • The custom icon and background will be used in the container tooltip when hovered.





  • Improved UI (since 0.2.0)





    • The items panel can now be opened with a new button next to the "Designated Zones" button. (A new custom icon is also used.)




    • A refresh button to reload items without needing to re-open/close any panels.




    • Items sorting with ascending and descending order by clicking on the header text.




    • Selectable filter criteria with a drop-down list next to the search bar.




    • Resizable panel to expand all truncated texts to your heart's content.




  • Mod options: some previously hard-coded values (such as zone colors) can be adjusted and all changes made can be applied mid-game. (since 0.2.0)



    • A key can be set to open/close the items panel (KP_ADD or "Numpad +" by default)

A number of bugs in the original mod is also fixed (hopefully):
  • Incorrect size reported by the zone manager panel. (A 1-cell zone will show up as 4)
  • (might be the same as the previous one) Zones bleeding into each other. (Two non-overlapping zones that are right next to each other will cause an item in one zone to show up in the other as a duplicate entry)
  • Interference to the display designated zones for animals. This mod does not hide or show them.

Incompatibilities

This mod only conflicts with the original one, but that's mostly because having 2 different items system is kind of redundant in my opinion.
It is planned that a special function to import mod data from the original mod for migration.

Final notes

A special thanks and all respects to the original mod's creator maraganina, I've been using your mod for a few months now, and it has been a convenience in every run of mine ever since, and of course, this mod would have never existed without your contribution to the Steam Workshop.

For everybody else, if you like this mod, be sure to check out the original one, too!

GLHF and keep on surviving! :3

Workshop ID: 3522009163
Mod ID: cf_home
Popular Discussions View All (5)
7
16 Jul @ 12:24am
Find item
JuanF
2
18 Jul @ 4:14pm
BUG: Context Menu not working for me
Asartalo
6
13 hours ago
TRANSLATIONS
SIMBAproduz
44 Comments
mimoozoo 7 hours ago 
I had high hopes for this, it isn't working properly so far though. I'm mainly using HI to keep track of books and other media and your mod is not displaying those correctly. For VHSes and CDs it just takes the first one alphabetically (Ace Pilot and A boy from Kentucky) and shows that I have like a hundred copies of each of those two instead of properly listing everything I have with the right names and the right number. Shame, because the original mod kinda fails there too, since you can't expand the window there to read all the names fully and the search option isn't working properly either. The old one works sometimes though, namely when the name of the VHS/CD in question is short enough so I'm gonna stick with that for now.
TheMacDaddy 18 Jul @ 5:31pm 
@Sam thats a no for both questions. I tried lowering my resolution and started a new game with just the two mods to see if that was affecting anything but had no change.
Sam  [author] 18 Jul @ 11:01am 
Okay, @TheMacDaddy, I've found and fixed the first bug, though I'm still unable to replicate the hotkey bug. Would you mind answering a few more questions? Thanks for the info so far, btw.
[list]
[*] Does the Home Inventory icon show up and vanish each time you press the hotkey?
[*] Are there any errors (red box in bottom-right corner of screen) when you press the hotkey?
[/list]
TheMacDaddy 18 Jul @ 10:28am 
@Sam I play at 3840 x 2160 and the Home Inventory icon just appears/disappears once, no constant flickering when cursor is over it. My cursor has to come from the top half of the Designated Zones icon for the Home Inventory icon to stay so I can select it. I should have been more specific but I was using the numpad +, I switched to a non-numpad key like "\" and the Home Inventory panel does not appear.
Sam  [author] 18 Jul @ 8:20am 
Hello, @TheMacDaddy. Can you give me more details about this bug? Such as: your screen resolution and whether or not the icon flickered?

Also, the default hotkey to toggle the panel is the Numpad Plus (not the Plus next to the Backspace button).

Additionally, if you're on Debug Mode, try typing [code]CFN.Home.Open(getPlayer())[/code] into the lua console to force the items panel to open.

Feel free to send another comment or make a discussion if you encounter any more errors.
TheMacDaddy 18 Jul @ 5:07am 
It appears that attempting to move the cursor from the Designated Zones icon over to the Home Inventory icon to select it only works when the cursor is moving from the top most area of the Designated Zones icon to the Home Inventory icon. Otherwise the Home Inventory icon just disappears when I try to click on it. Also the default "+" key to open the panel does nothing, tried assigning a different key too. On B42 and only have starlit library and this mod enabled when testing.
Sam  [author] 17 Jul @ 9:50pm 
Hi @bingley, that was indeed an update, though since you said you preferred it, I'll remake it as an option, which you can find under the "Search Method" dropdown list. (in the next update ofc)
bingley 17 Jul @ 7:39pm 
Did something get updated? I didn't play for a couple of days, and it used to be in the context menu when you right-clicked, not this "x collected" thing. I like it a lot more than the previous, but I just wanna know if that was an update
x_Fire_Girl_x 17 Jul @ 3:39pm 
@sam hi, so the strorage units (cabinets, wardrobes, etc) are functioning as though they are there, i can see them in the inventory window, but you cannot see the storage units themselves.

My kitchen sink had some soap and washing liquid placed on top of it, but now the sink with a cabinet underneath it is missing, and the placed items are now just on the floor where the sink and cabinet used to be. I think this is my own fault to be honest, I shouldn't of loaded the game before investigating ;-;
Sam  [author] 17 Jul @ 10:47am 
Sure, @Blagden! I have just the mod for your brain called "Press numpad+ with ur finger whenever u wanna find an item." Your experience should be much more seamless now. x3