Project Zomboid

Project Zomboid

73 ratings
Fix Crafting Context Menu Stutter
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
87.909 KB
10 Jul, 2023 @ 1:03pm
1 Change Note ( view )

Subscribe to download
Fix Crafting Context Menu Stutter

In 1 collection by Inn
Quality of Life ( What A Horrible Night To Not Have These Mods )
38 items
Description
This mod changes the crafting hover tooltip algorithm to only show materials that the player has available.

-This is basically just a changefix to vanilla code that doesn't hold up well as the number of potential recipes for one action increases, this fix overwrites 1 vanilla function (ISRecipeTooltip.layoutContents) by adding 2 lines for an "if" block and commenting out an unnecessary(but no longer stutter-causing) sort.
-Untested in online Multiplayer, no issues in solo / couch co-op gameplay.
-Replaces the Authentic Z stutter fix - I left a comment on that mod page with my findings and changes, don't run these together or I guess whichever one loads last will take precedence.

Workshop ID: 3002336479
Mod ID: FixCraftingContextMenuStutter
19 Comments
Inn  [author] 30 Mar @ 4:08am 
@dede - this thead might be useful in terms of managing mod load order.
Inn  [author] 30 Mar @ 3:59am 
@dede love u - I haven't looked at essential crafting, but to test whether this one works with anything, just make sure it's loaded last, as some mods might overwrite the same function and render this one useless otherwise.

@JOBL1N - I haven't tested it in build 42, I've only messed around a little in unstable so far with no mods at all. If you find that it works there as well, or not at all, that'd be good to know. Personally I was waiting for build 42 to mature a bit before looking at modding for it, considering the amount of changes from 41, and the amount still coming out with each patch.
Duckshi 30 Mar @ 12:09am 
does this work with build .42?
dede loves u 29 Nov, 2024 @ 6:51pm 
i have...essential crafting + common sense + essential crafting and common sense compatibility patch + authentic z ... okay, so: ripping clothes. there's always a small freeze. i downloaded this... it says it replaces the authentic z stutter fix... i haven't tried just the other one. but i still get these stutters ;;;;; when i rip clothes it says it'll be doing so from essential crafting. is it possible for this to also fix any stutter issues with that mod..? am i stupid? eee
Inn  [author] 15 Aug, 2024 @ 9:47am 
@Vrk_L and Jold, thanks, I'm glad to hear it's just what you needed, too. :cozybethesda:

@boxchat, it's doable, this method just leaves space for modders to add as many different materials or tools as they want to *any* recipes, because the problem is a general one, just brought to light by adding tons of extra rippable clothing first.

This is all to say, I won't be creating a more targeted fix personally, but I certainly have no objections to you using this mod as a jumping-off point for one of your own if you find it useful as such.

@Tnaz.v I'm not going through those mods for you, as I certainly can't tell you which one is best, because that's a subjective question that depends on what you're trying to accomplish.

I *can* say that this mod replaces the function ISRecipeTooltip.layoutContents and will either cause or have issues with any other mod that does the same, which probably includes mods that serve the same function as this one.
El Grasón 12 Aug, 2024 @ 8:37pm 
One of the best mods of all time, I was wondering why did my context menu made a lot of lag untill I installed this mod alongside Fix Laggy Crafting Menu.

The best mods that should be vanilla!!
Lord Accokstorm 6 Aug, 2024 @ 4:15pm 
I've tried multiple mods like this and this is most likely the best
boxchat 18 Mar, 2024 @ 3:53pm 
This is a smart approach to the issue. I wonder if there is a way to make this behavior apply only for the "rip sheets" option(or "craft sheets"), since that is the one that causes issues 99% of the time.
Inn  [author] 11 Jul, 2023 @ 1:39pm 
Thanks for the support, tinytea!

You hit on my reasoning exactly, if I'm clicking "craft now" I want to know what i'm using "now".

This also makes it easier to add in more recipes for other stuff without them also acquiring the stutter we've seen from high-quantity clothing mods, "Craft Spear" is actually a good potential example, considering all the sharp items you can craft them with in Vanilla already, I can imagine an "I Love Sharp Objects" style of mod raising that number significantly. :D