Mods / Player Inventory lib
Draft
Set to published to be listed. A draft mod is still visible to everyone via direct link- Tags:
- Authors:
- VSCustodian, Maltiez
- Side:
- Both
- Created:
- Apr 11th at 4:21 PM
- Last modified:
- May 9th at 5:59 PM
- Downloads:
- 7191
-
Latest release (for Vintage Story 1.22.0-pre.1 - 1.22.2, potentially outdated):
playerinventorylib_0.0.10.zip 1-click install
Requires: Overhaul lib
Empty your player inventory (backpack, hotbar, clothes and armor) before installing or uninstalling the mod.
The library will keep inventory content that was on player before installing, and it will be back after, but other mods can affect this mechanism.
Documentation will come later.
Replaces character and backpack inventories with its own implementation.
Reworks related GUI dialogs.
Creative inventory now opens with 'Shift + E', survival with 'E' (can be rebound in settings). Was a consequence of splitting single GUI dialog into two.
Adds JSON and C# ways of adding new slots to character inventory.
Reworks how backpacks are handled and synced.
Reworks how clothes define in which slot they go (there is compatibility layer that automatically patches all wearable items to use this mechanism).
| Mod Version | Mod Identifier | For Game version | Downloads | Released | Changelog | Download | 1-click mod install* |
|---|---|---|---|---|---|---|---|
| 0.0.10 | playerinventorylib | 3353 | May 9th at 5:59 PM | playerinventorylib_0.0.10.zip | 1-click install | ||
|
Added experimental crafting grid inventory updates cooldown | |||||||
| 0.0.9 | playerinventorylib | 920 | May 3rd at 3:38 PM | playerinventorylib_0.0.9.zip | 1-click install | ||
|
Adjusted character dialog size and set its size explicitly, so other mods can use it | |||||||
| 0.0.8 | playerinventorylib | 604 | Apr 30th at 6:54 PM | playerinventorylib_0.0.8.zip | 1-click install | ||
|
Added safeguard against crush "Supplied slot is not part of this inventory", it is still logged into debug log. | |||||||
| 0.0.7 | playerinventorylib | 985 | Apr 25th at 3:44 PM | playerinventorylib_0.0.7.zip | 1-click install | ||
|
Fixed bug resulted in backpack slots accepting stick frame accessories and vice versa | |||||||
| 0.0.6 | playerinventorylib | 78 | Apr 25th at 12:27 PM | playerinventorylib_0.0.6.zip | 1-click install | ||
|
Fixed crash on player's death | |||||||
| 0.0.5 | playerinventorylib | 300 | Apr 24th at 4:55 AM | playerinventorylib_0.0.5.zip | 1-click install | ||
|
Adjusted code for adding slot tags to wearables, should cover some edge cases where clothes category specified in behavior and not item attributes. | |||||||
| 0.0.4 | playerinventorylib | 264 | Apr 23rd at 3:37 PM | playerinventorylib_0.0.4.zip | 1-click install | ||
|
Reworked networking code, hopefully fixed bugs with inventory contents not updating on client side in some cases. | |||||||
| 0.0.3 | playerinventorylib | 92 | Apr 23rd at 1:23 PM | playerinventorylib_0.0.3.zip | 1-click install | ||
|
Crash fix | |||||||
| 0.0.2 | playerinventorylib | 329 | Apr 23rd at 8:59 AM | playerinventorylib_0.0.2.zip | 1-click install | ||
|
Fixes and tweaks | |||||||
| 0.0.1 | playerinventorylib | 129 | Apr 22nd at 11:37 AM | playerinventorylib_0.0.1.zip | 1-click install | ||
|
Implemented half of the planned functionality | |||||||
| 0.0.0 | playerinventorylib | 137 | Apr 11th at 4:22 PM | Empty | playerinventorylib_0.0.0.zip | 1-click install | |

seems to have an issue with reachable creative tabs, but that mod doesnt work half the time anyways so ill be removing it just wanted to post the incompatability.
As of 0.0.8, seems to have issues with CarryOn. It's possible that it's just me, but it kept throwing errors trying to fetch Config while loading into a world.
Don't know if this is this mod or cape mod, but can you add compatibility? I can't wear a cape from heraldry capes mod, it doesn't highlight any item slot.
crafting grid lag is caused by large number of recipes, also I dont think debounce is possible with current vanilla networking
i did a huge server update so im sorry if its compelety unrelated but i believe the source was with this mod from my own findings, when i added this alongside of updates for already existing mods i added yours with the bunch as i saw you updated. Im currently getting a new issue people started reporting this morning when dragging items in the crafting recipe bar its starting to hitch some peoplse cpus/ram hard. Some report going from 140fps to 30, im no coder but i did feed logs into ai pro mode and shot back and forth what could be the issue and this is what it said to me. Again i dont mean to say i know whats going on just thought id share a slight issue thats propped up.
How to handle this:
The Workaround: Unfortunately, because this is an engine quirk magnified by
playerinventorylib, your players with weaker CPUs will simply have to avoid using the drag-to-distribute feature in the crafting grid. They will need to stick to splitting stacks manually or placing them 1-by-1.The Modding Solution: The only real fix would require the mod authors of
playerinventorylibor the base game developers to add a "debounce" to the crafting grid (essentially making the game wait 0.5 seconds after a player finishes dragging before it calculates the recipe).I'll start playing and see if it happens again, thank you for the quick fix!
Report in discord with client-main and sever-main log files attached. Also what block and in what situations.
got similiar crash to Jalex, steps to reproduce: place a block
picking up works, just dropping works, but placing a block for some reason crashes
Heya! Got a random crash, and the log says its from this Lib, dunno if its true but I'll post it here anyways
Thank you!