Project Zomboid

Project Zomboid

SpiffUI - Inventory
dhert  [developer] 23 Jul, 2023 @ 11:38am
SpiffUI - Inventory v7 -- Release Notes
Hello again, and it's time for another round of SpiffUI updates!

My plans have slightly changed for what I had intended this next update to be as I unfortunately lost a lot of my updated code from a hard drive crash. But we still have a pretty big update to cover here!

New Options

SpiffUI's configuration has moved!! Instead of relying on ModOptions to provide configuration options, I have opted to add my own tab into the Options menu. All SpiffUI mods will have their configurations moved to this new tab as part of this update.

Why do this?
To start, there is absolutely nothing wrong with ModOptions; it is a fantastic mod and has provided great utility for many modders. However, many Server Admins do not enable this mod for various reasons which results in the mod's options obviously not being able to be modified. Most of the complaints I have received regarding all SpiffUI mods are because they do not have ModOptions enabled on the server, and the default options are being used which they do not like (that's fine, that's why it's an option :). This will fix that!

I also have a lot of configuration in this mod, and there's only going to be more as SpiffUI continues to grow. This should help reduce that scrollbar in ModOptions too!

What about my current settings?
I have added a button when you are on the Main Menu to import your old ModOptions and convert it to the new.

WARNING: THIS IS A ONE-WAY OPERATION, AND WILL OVERWRITE ALL CURRENT CONFIGURATION IF FOUND IN MODOPTIONS!!!
I also do not remove my old configuration from ModOptions.

Note: Configuration options that are not relevant due to other mods being enabled are automatically hidden and disabled internally.

Configuration is written to "Lua/spiffui.ini"

Here is an example of the new Options:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3008037132

Merged Containers v2!
I have reworked how I am building the merged loot, container, equipment, and personal inventory containers to be more optimized and overall just better maintained. It is less intrusive, and now works solely on inventory events. It now also only processes when you have the container open, otherwise its just a button!

If a container does not have any items, it is now skipped.
You also now have the option to not include the Floor container in the merged containers.
I have also disabled the Player's "MegaPack" by default, as this was confusing for some players. It can be re-enabled in the options.

Note: You cannot currently transfer items TO a merged container. I will revisit this at a later time. However, if you are using the Inventory Tetris mod, you CAN drag and drop items into the grid.

Improved Mod Support!
Now supports the amazing InventoryTetris by Notloc!

New merged containers:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3008813929

New merged corpses:
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3008814422

There is also an option to automatically close any open Inventory Windows when the relevant panel closes! HINT: This can be tricky to use sometimes, so just press the "Inventory" keybind to hold open the inventories until you are done!

Also supports Equipment UI - Tarkov Style Interface by Notloc

The EquipmentUI is now considered part of the main player's inventory window for mouse interactions, such as staying open on hover.

Window decorations are hidden on the EquipmentUI by default, similar to how it is done for the main panels. You can disable SpiffUI's management of the EquipmentUI by disabling it in the options.

Other mods
I have changed how SpiffUI - Inventory handles its overrides, as typically the overrides here should be the last thing run. As such, there should be much better mod compatibility all around!

Final Notes
Most of the mod has been rewritten, especially the core of SpiffUI. I have learned a lot since I first started modding, and it turns out that most of what I was doing was kind of wrong. So, here's me making it right!

All of the SpiffUI mods are getting a round of updates today, and will then be going into "maintenance" for a bit (except for SpiffUI - Radials). I will be fixing any bugs that are reported as soon as I can, but no new features will be implemented. I have a new SpiffUI module dropping soon that has my full attention, so stay tuned!
Last edited by dhert; 23 Jul, 2023 @ 12:22pm
< >
Showing 1-15 of 17 comments
Chimni 23 Jul, 2023 @ 2:07pm 
Removed the option to have an inventory tab that was all equipped items instead of in the main inventory?

With the Tarkov UI mod you cant drag items from the equipment GUI into containers. It just wont work, and I always used the option to separate equipped items to their own part of the player inventory to bypass that.
dhert  [developer] 23 Jul, 2023 @ 2:43pm 
@Chimni - The equipped bag is hidden intentionally when using the EquipmentUI mod, as that mod is a much better implementation. However, I could re-add it as an optional toggle if there is utility in having both, they don't conflict. I'll re-add this in the next update, which will likely be in a few days to see if there are any bugs or other feedback.
KillMe 23 Jul, 2023 @ 2:46pm 
Hi. In old version I could drag items from my inventory directly into Merged container. This is not an option anymore. So now I have to drag items in one of the containers instead of Merged one. Could be nice to have this function back. Thanks
FourOne 23 Jul, 2023 @ 2:52pm 
I cant put items back into corpses if merged, used it to get rid of dirty rag for example.
Also the highlighting of containers is different, if u move and click a container from ~0,5m its not getting highlighted - only if i get real close u also get the highlight color.
dhert  [developer] 23 Jul, 2023 @ 2:58pm 
@KillMe - Yes, this is a known issue missing feature I will revisit in the next update. I currently just block these transfers as the previous method that allowed this is no longer viable.
dhert  [developer] 23 Jul, 2023 @ 3:03pm 
@FourOne - Are the containers still being merged and just not highlighted? Or do you see this when viewing a non-merged container? I did mess with the highlights, might be aggressively clearing this.
FourOne 23 Jul, 2023 @ 3:25pm 
The merged containers get highlighted the correct way, just when i click a specific one its not working until i get closer. I'm not even sure if its the range tbh, sometimes even if i stand close I have to turn a little before the clicked container gets highlighted.

Also the Inventory-Toggle seems to be less responsive, at least sometimes.
Last edited by FourOne; 23 Jul, 2023 @ 3:32pm
dhert  [developer] 23 Jul, 2023 @ 3:30pm 
@FourOne - I will look into both. Thanks!
Chimni 23 Jul, 2023 @ 7:25pm 
Originally posted by dhert:
@Chimni - The equipped bag is hidden intentionally when using the EquipmentUI mod, as that mod is a much better implementation. However, I could re-add it as an optional toggle if there is utility in having both, they don't conflict. I'll re-add this in the next update, which will likely be in a few days to see if there are any bugs or other feedback.
Understood, I've only been using this as a workaround for the inability to drag from the equipment UI to a container without using your inventory as a go-between, I'm guessing that functionality wont be happening?
FourOne 24 Jul, 2023 @ 5:24am 
I also noticed, hiding "Equipment UI" only works if u disable "Always Display Panel Headers". When enabled its just open all the time.
Also the Option "Manage EquipmentUI Window" is not working for me, thought this would be an easy workaround for now. Restarted to test, no effect.

Keep up the good work, hope some feedback is helping.
Last edited by FourOne; 24 Jul, 2023 @ 5:33am
IvanTheThicc 25 Jul, 2023 @ 8:05pm 
The mega pack doesn't seem to be working even when it's enabled
dhert  [developer] 26 Jul, 2023 @ 1:00pm 
Originally posted by FourOne:
I also noticed, hiding "Equipment UI" only works if u disable "Always Display Panel Headers". When enabled its just open all the time.
Interesting, I have not been able to replicate this. Are you using both the Tetris and EquipmentUI by chance?

Originally posted by FourOne:
Also the Option "Manage EquipmentUI Window" is not working for me, thought this would be an easy workaround for now. Restarted to test, no effect.
Yea...turns out I goofed that setting and based it on if the SpiffUI rules are enabled or not at some point.

I have fixed a few things for an update that I will be releasing tomorrow. So far:
  • Fixed the Inventory Button in the sidebar not forcing the windows open
  • Fixed option to hide the Inventory Button in the sidebar
  • Fixed the selected container highlights when clicking on a container from the world
  • Smoothed the loot panel handling so it doesn't "flicker" when you click on another container in the world when its open. (it would close then re-open quickly, not anymore!)
  • Fixed the MegaPack not showing without 2 bags
  • Fixed handling of the EquipmentUI
  • Fixed errors when starting co-op and causing duplicate events to be added (no more duplicate bags!)
  • Fixed some merged inventory logic being disabled when SpiffUI rules are disabled.
  • Added an option to show the SpiffUI Equipment bag even when the EquipmentUI is enabled.

I also will be updating the EquipmentUI option to have 3 available options: "Don't Manage", "Always Show", and "AutoHide". The "Don't Manage" and "Always Show" work as it is now, but "AutoHide" will make it so the EquipmentUI window is hidden until you mouse over where the window is while your Inventory is open.
FourOne 26 Jul, 2023 @ 2:22pm 
Originally posted by dhert:
Originally posted by FourOne:
I also noticed, hiding "Equipment UI" only works if u disable "Always Display Panel Headers". When enabled its just open all the time.
Interesting, I have not been able to replicate this. Are you using both the Tetris and EquipmentUI by chance?
...

This Mod and Alternative Inventory Rendering with Equipment Ui, no Inventory Tetris.
dhert  [developer] 28 Jul, 2023 @ 12:18pm 
Hello everyone! I know I had mentioned having an update out Thursday (now yesterday), but obviously I missed that. Sorry about that!

I do not push out updates on Friday/Saturday as to not interfere with anyone trying to get some multiplayer action for their weekend, so the next update will be delayed until Sunday.

Unfortunately, I had to walk back on the following feature as requested by @Chimni:
Added an option to show the SpiffUI Equipment bag even when the EquipmentUI is enabled.

I tried to make this work with the new system, however, it is simply not compatible with the EquipmentUI unless you disable all equipment hiding which kind of defeats the purpose. As such, it will remain disabled if you have the EquipmentUI.
Barack Obama 28 Jul, 2023 @ 3:03pm 
Hi dhert! first let me thank you because your mod is sincerely great

That's unfortunate to hear. In the previous version of the mod, I had the SpiffUI Equiment Bag active and the EquipmentUI mod active at the same time and it worked just fine. Equiped items were hidden in main invetory
< >
Showing 1-15 of 17 comments
Per page: 1530 50