Mods / Xandus Inventory Tweaks Fork

Tags:
Storage QoL
Author:
Zaedin
Side:
Both
Created:
Mar 26th at 1:36 PM
Last modified:
May 31st at 3:36 PM
Downloads:
10459
Latest release (for Vintage Story 1.22.0 - 1.22.3, potentially outdated):
xinvtweaksfork_1.9.1.zip  1-click install

This mod is a fork from Xandu's Inventory Tweaks for 1.22 and also contains a fix to a a major item duplication method using the crafting grid output slot.

I have made a PR for Xandu's mod to fix this issue, so if/when he fixes the issue, this mod will be deprecated

All credits should go to Xandu and his awesome mods. If you are inclined to throw money at someone, do it at him

Mod Version Mod IdentifierFor Game version Downloads Released Changelog Download 1-click mod install*
1.9.1 xinvtweaksfork
1.22.0 - 1.22.3
8373 May 31st at 3:36 PM xinvtweaksfork_1.9.1.zip 1-click install
  • Update launchSettings.json and save run configs to repo
  • Fix null Exception when running Dispose on server side
  • Fix being unable to make pit kiln if you have more stackable items in inventory
  • Fix crashing when using scroll-wheel after stack is emptied
  • Fix crash when using scroll-wheel in inventory while not hovering a slot
1.9.0 xinvtweaksfork
1.22.0-pre.1 - 1.22.2
1721 Apr 13th at 5:13 PM xinvtweaksfork_1.9.0.zip 1-click install

Updated for version 1.22

1.8.3 xinvtweaksfork
1.21.0 - 1.21.6
316 Mar 29th at 12:29 PM xinvtweaksfork_1.8.3.zip 1-click install

Fixed some bugs that didn't allow launching the mod

1.8.2 xinvtweaksfork
1.21.0 - 1.21.6
19 Mar 26th at 1:38 PM xinvtweaksfork_1.8.2.zip 1-click install

Fix a major item duplicating bug using the crafting grid output


26 Comments (oldest first | newest first) (threaded | flat)

ronhin, Aug 3rd at 5:28 PM

hey the newest content update for eternal seraph backpacks mod prevents sorting when using the backpacks

Ouk, Jul 30th at 6:06 PM

Hi Zaedin, I 'found' a bug. Its not possible to put grass on a firewood pile to make a pit kiln, if I have another firewood in my inventory. With no firewood in inventory its ok.
Tested with: Vanilla, XIT fork 1.9.1, SP. Thank you for the fork.

zakhad, Jul 12th at 9:01 PM

Zaedin

Clothes have pockets or player inventory lib will need a comp patch as it cuts off the inventory sort for the inventory but not for chests.

https://ibb.co/bRLygfgB

https://mods.vintagestory.at/show/mod/46190
https://mods.vintagestory.at/clotheshavepockets

Valley, Jun 25th at 4:59 PM

Is there a way to prevent sorting into barrels?  I keep resetting fermenting/meat curing timers because of it.

Zaedin , Jun 26th at 9:32 AM (modified Jun 26th at 9:33 AM)
@Valley: Is there a way to prevent sorting into barrels? I keep resetting fermenting/meat curing timers because of it.

Hi, yes, there is currently a list in the configuration file where you can define the (code class) names of blacklisted inventories that the mod won't sort into. The file is (by default) in "%appdata%/VintagestoryData/ModConfig/xinvtweaksfork.json".

By default, there's only "cart", but you can add "barrel" in there and you won't be resetting timers because of it! However, that also means you won't be able to sort or auto-pull from the blacklisted inventories too.

Spoiler!
"SortBlacklist": [
  "barrel",
  "cart"
],
Major67034, Jun 23rd at 6:20 PM

thank you for bringing the mod to newer releases of the game. its a literal staple in my gameplay to be able to do all this sorting and stuff
out of curiosity though, how did you manage to fix the duping thing cause for the longest time it just, sorta existed in the original mod

Zaedin , Jun 23rd at 10:18 PM
@Major67034: thank you for bringing the mod to newer releases of the game. its a literal staple in my gameplay to be able to do all this sorting and stuffout of curiosity though, how did you manage to fix the duping thing cause for the longest time it just, sorta exis

When you are stacking stuff in crates or piles, if you have nothing in your hands, the mod looks through all your inventories to find another matching item stack. Problem is, your crafting grid AND crafting output slot are part of the inventory list, so it would find it, see that it was a match and remove it (ignoring all restrictions), even though the item wasn't "crafted" yet. The way to solve this was add a simple check, that if the item slot we are currently searching is part of the crafting inventory, skip it. The downside of this is that you can't quick stack your crafting grid items either, but I think that's not really that bad.

Argos5791, Jun 18th at 2:39 PM

I haven't been able to see sort/priority window since updating to 1.22. Is it possible I turned it off and there's a way to turn it back on?

Zaedin , Jun 18th at 4:18 PM (modified Jun 18th at 4:18 PM)
@Argos5791: I haven't been able to see sort/priority window since updating to 1.22. Is it possible I turned it off and there's a way to turn it back on?

It shouldn't. Whenever you open your inventory, or any other inventory, it should appear at least once. Are you getting any errors in the logs?

This is latest version, with 1.22.2

Spoiler!
image
Cute_Red, Jun 8th at 3:42 AM

is there a way in this mod to set certain items to ignore sort, so they stay in the designated places in the bag?  i saw it on some mod but who can remember which. this is my favorite though

Zaedin , Jun 8th at 10:51 AM
@Cute_Red: is there a way in this mod to set certain items to ignore sort, so they stay in the designated places in the bag? i saw it on some mod but who can remember which. this is my favorite though

There is not, but there is a way to lock certain inventory slots, so whatever you put into them is not sorted. You can access the "<Gamefolder>/ModConfig/xinvtweaksfork.json" and edit the LockedSlots array to indicate the number of the slot you want to lock.

With this config, you get the following result:

Spoiler
  "LockedSlots": [
    4,
    5,
    8,
    31
  ],

(Ignore the mega-art skills)

image

Cute_Red, Jun 8th at 2:55 PM
@Zaedin: There is not, but there is a way to lock certain inventory slots, so whatever you put into them is not sorted. You can access the "<Gamefolder>/ModConfig/xinvtweaksfork.json" and edit the LockedSlots array to indicate the number of the slot you want to lo

That's great.  What about the 6 extra slots from xskills?  I put armor in those so i can swap to that bar, and quickly go between movement armor and combat armor. I'm sure there's probably a code for them

Zaedin , Jun 9th at 10:47 AM
@Cute_Red: That's great. What about the 6 extra slots from xskills? I put armor in those so i can swap to that bar, and quickly go between movement armor and combat armor. I'm sure there's probably a code for them

It's the same thing, you just keep incrementing the numbers. In the case of the print I sent, they would be numbers 32 to 38. This all depends on the amount of inventory slots you have, so if you had no backpacks and only those 6 extra slots, they would be 0 to 6.

Sameal, May 20th at 6:49 AM

Zaedin getting the same crashes any fix coming?

Zaedin , May 30th at 10:03 AM
@Sameal: Zaedin getting the same crashes any fix coming?

Yeah, sorry for the delay, work and life got in the way but I'm working on an update for this

Willsir12, May 10th at 9:50 PM

Having an issue where the game crashes if I accidentally keep scrolling to push items out of a container after the final item. It seems to be crashing because it attempts to move an empty slot?

Tahvohck, May 4th at 10:50 PM (modified May 5th at 12:33 AM)

This crashes when shift-scrolling items from a container for some reason.

Edit: Correction, I think it's regular scrolling. Ctrl-scrolling is fine but regular crashes.

Delirya, Apr 30th at 10:00 PM

I can confirm that this is happening, but I was able to work around it by putting the raw bricks in my hand down. Then I was able to carry on with the grass/sticks process. The order of operations was only altered when this mod was enabled

ZetaHorzion, Apr 30th at 2:17 PM

The mod breaks creating pit kilns to fire bricks, because it wont let you add dry grass to them if you have more bricks in the inventory, it will instead switch back to the bricks  and place more

Morfie, Apr 22nd at 4:55 PM

The automatic refill of an empty inventory slot after using the last item in a stack has stopped working. Please fix it.

Zaedin , Apr 23rd at 12:49 AM
@Morfie: I was mistaken — it does work, just not on everything

Can you give me an example of items that don't work with it?

Morfie, May 6th at 9:16 PM
@Zaedin: Can you give me an example of items that don't work with it?

I figured it out a bit - the mod works as intended with almost all items, but some items don't display properly. For example, when I put oak logs into a crate, they become invisible (when the slot is filled). Overall, it doesn't affect functionality. Sorry for the disturbance😅

El_Neuman, Mar 26th at 2:48 PM

Thanks for thé Fork🔥🔥