Mods / Fix Crate
Author: Spoonail
Side: Both
Created: Jan 8th at 2:52 PM
Last modified: Aug 16th at 4:19 PM
Downloads: 574
Follow Unfollow 34
Latest release (for Vintage Story 1.19.8, 1.20.1, 1.20.3, 1.20.4, 1.20.12 and 1.21.0-rc.4 - 1.21.0-rc.5, potentially outdated):
fixcratemod_0.1.0.zip
1-click install
Overview
Ctrl + RMB on a vanilla crate sometimes pulls a partial stack instead of a full stack, even if the crate contains enough items.
(For example, you pull 27 twines instead of 32 from a crate that contains 123 twines.)
This mod fixes that.
* The issue was fixed in VS 1.21.0, so this mod is no longer needed in that version or later. If you carried it over from an earlier version, it is recommended to uninstall it to avoid unexpected behavior.
Known Issues
If the item in the crate has spoilage timer, you might still pull a partial stack, especially when there are only a few stacks in the crate.
Technical details:
It seems merging stack doesn't work fine on push to the crate, when the item has spoilage timer.
This mod currently changes pulling logic but leaves pushing/merging logic unchanged, so if unmerged stack remains in the crate, it still comes out.
That said, this mod will work fine in most cases.
Compatibility
Compatible mods:
Xandus Inventory Tweaks (tested on v1.6.6)
If you have any compatiblity problems with other inventory/storage mod, please let me know (see Help/Contact section).
This mod affects only vanilla crates, not mod crates.
Help/Contact
If you encounter any problems or have feature requests, please do one of the following:
- Create an issue on the GitHub (click Issue Tracker tab on this page)
- Post in the forum thread for this mod on the Vintage Story Discord server (click Homepage tab on this page)
These methods align with how I handle reports for other mods (even for other games), making it easier for me to track and respond.
Note: Comments on this page are rarely checked.
| Mod Version | Mod Identifier | For Game version | Downloads | Released | Changelog | Download | 1-click mod install* |
|---|---|---|---|---|---|---|---|
| 0.1.0 | fixcratemod | 574 | Jan 8th at 2:54 PM | fixcratemod_0.1.0.zip | 1-click install | ||
|
First release | |||||||
I believe this is fixed in vanilla now, taking a full stack rather than a slot.
> Fixed: Bulk removal from a crate would sometimes give less than the max stack size, even when that many items were present
I think this is related with the fact that crates acts as an hidden inventory and the "sometimes pulls a partial stack" is either because you're actually pulling the top stack which is not a full stack or you're pulling a stack with different attributes (as you mentioned the perisheable status -- which also doesn't stack if you have them in your inventory). This last point and related with the periseable status (and for instance the temperature of a metal or worked item probably works the same) don't forget that if you ever add this you are probably averaging the periheable timer if you ever implement taking out a full stack even if they have different perisheable timers (this is the same when you force stack same items with different perishable timers).
is it possible for you to also fix the crate labels that are endless frustrating to me? I wish the label erase when the crate empties. ideally the label would be permanent until manually changed or less ideally if it just updated with the contents of the chest automatically. i really dont like the better crates mod asthetically so i just keep searching for a mod that affects the vanilla crates behavior.
Thank you so much, this has been driving me insane