Project Zomboid

Project Zomboid

Tear All Clothes
66 Comments
TheOriginalStove  [author] 31 Jul @ 3:34pm 
@Tony, that's a great suggestion. I'll add it to the todo list to change since I agree. getting a whole stack of wire doesn't make sense.
Tony 30 Jul @ 2:14am 
I feel like the wire you get from tearing some underwear should be one unit, not full loaded wire stack. More balanced and realistic.
PuzzyDiztroier 26 Jul @ 9:57pm 
Ok!
That would be nice to bring back repair all function!
TheOriginalStove  [author] 26 Jul @ 9:48pm 
@PuzzyDiztroier I can add it to the todo list.
TheOriginalStove  [author] 26 Jul @ 5:22pm 
@Noobly Walker, originally I was overriding the vanilla crafting recipes for ripping up clothes, and the way I did that was accidentally overriding all of them /got rid of everything but ripping clothes. Since the craft recipes aren’t needed to tear in the inventory context menu, I stopped overriding the vanilla crafting.
Noobly Walker 26 Jul @ 9:08am 
I don't think I have either of those. If you've changed how crafting works in the past four days, then it probably isn't valid anymore, and I would need to resubscribe to this mod and mess around with it again.
PuzzyDiztroier 25 Jul @ 12:57am 
Hey!
Mb you can update or make your own mod like this one https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2779627490&searchtext=Repair+cloth

Or mb you can implement it in your mod right now?
TheOriginalStove  [author] 24 Jul @ 1:06pm 
@Noobly Walker do you have any other mods installed that mess with the inventory context menu or with vanilla crafting recipes? I'm unable to reproduce that with and without the following Mods. Neat Crafting and Neat UI. This mod no longer overwrites any of the crafting recipes and only adds 1 new one under a different namespace to craft sheets from rags.
Noobly Walker 23 Jul @ 5:46pm 
It also makes it impossible to pull garbage bags out from a box. Maybe it's the same issue.
TheOriginalStove  [author] 23 Jul @ 5:44pm 
@RedRaven yup! It's currently in the works.
RedRaven 23 Jul @ 2:02pm 
Hi love the mod, could you please do the electronics as well like watches. Thank you
Project Thylacine 23 Jul @ 6:55am 
Re-downloading to test now. I suspect you are right about the actions timing, as PZ in general will crash if something has timing of actions set too low (even if not 'off')
TheOriginalStove  [author] 22 Jul @ 7:21pm 
@Noobly Walker thanks for letting me know. I think I figured it out and pushing out an update.
Noobly Walker 22 Jul @ 6:57pm 
This mod seems to make it impossible to craft rope from either hemp or sheets.
Cosmo 21 Jul @ 1:37pm 
@TheOriginalStove :steamthumbsup:
TheOriginalStove  [author] 21 Jul @ 1:32pm 
@Project Thylacine, I'm not sure if you had/have the cheat for instant actions enabled when the game hangs, but I noticed it was bugging out if I had that enabled. If you did, the issue should be fixed.

Updated the option for "Tear Surrounding Clothing" to ignore clothing in both inventory and equipped backpacks.
Also fixed some minor bugs
Cosmo 20 Jul @ 7:34pm 
@TheOriginalStove :steamhappy:
TheOriginalStove  [author] 20 Jul @ 5:31pm 
@Project Thylacine I apologize for that happening. I'm not sure why it hangs, but if there are any errors in the logs found in `Zomboid\Logs\<current_date>_debug_log.txt` then if you add those to a comment in the discussion I can try to help and figure out why it does that.
TheOriginalStove  [author] 20 Jul @ 5:27pm 
@Cosmo
Huh I never thought about that, but I think it's something I can change to where the thread condition is based on tailoring levels.

In regards to it being an option, there is the sandbox setting to choose whether or not you get thread or XP from tearing clothing. I'll add one for the condition of threads too.

I plan on changing it to where equipped backpacks count as inventory so that the "tear surrounding clothing" only looks at containers / zombie bodies.The current way I have it implemented is going through the list of containers (includes backpacks) and then check if the container is the same as the player's inventory. Which is flawed if we consider inventory to include backpacks my character has equipped.

Also I appreciate all the effort you and everyone else have given to help with reporting bugs, providing error logs so that we can fix the mod and make it better!
Cosmo 20 Jul @ 12:02pm 
Hey @TheOriginalStove
quick question, how exactly does the function "tear surrounding clothing"work
I thought it was supposed to rip things around you to shreds, but it also rips things in your backpack. I understand that it doesn't touch the things in your main inventory?
Also, regarding the option to remove thread generation along with rags, because threads appear in fairly good condition 14/20 15/20, this should only be the case with a high profession indicator, not at the first level) It's better to remove or add an option in the settings.
Cosmo 20 Jul @ 11:59am 
Hey @TheOriginalStove
quick question, how exactly does the function "tear surrounding clothing"work
I thought it was supposed to rip things around you to shreds, but it also rips things in your backpack. I understand that it doesn't touch the things in your main inventory?
Cosmo 20 Jul @ 3:22am 
Cosmo 20 Jul @ 3:22am 
Hey @TheOriginalStove To summarize:
In the vanilla version of the game, you cannot tear the following things to shreds:
socks, underwear (panties, bras), underpants, shoes (regular and leather), wallets, hats, gloves.
Activating your mod means that you can tear everything except: underpants, wallets, hats.
Moreover, the list of things that can be torn includes bras, but for some reason it tears some without errors, and stops on others and gives an error.
I think you need to make the mod allow you to tear: socks, underwear (panties, bras), underpants, shoes (regular and leather), wallets.
At the same time, in my opinion, it is not worth giving threads (this can be made an option in the mod).
And it is worth reviewing why some bras tear to shreds, and on others an error occurs. + error appears when u trying to tear underpants =)
I tested all this without third-party mods, using only yours.
Project Thylacine 19 Jul @ 2:13pm 
Whatever changed today, it broke my game. Every time I try to tear clothes now the game hangs.
moonracer 19 Jul @ 10:43am 
This works great, thanks so much!
TheOriginalStove  [author] 19 Jul @ 5:10am 
I’m also still digging into how I can do some things better. I’m still new to modding and learning the development flow, while trying to differentiate between “Is this just bad lua code” or “is this lua feature not supported in Kahlua the Indie Stone is using”
TheOriginalStove  [author] 19 Jul @ 5:08am 
@Cosmo I think I have for the most part. The bugs might be from mods conflicting if they change the inventory context menu or item properties. I’m not seeing errors on my end when testing but I also don’t run too many mods since my m1 MacBook can only handle so much lol
Cosmo 19 Jul @ 4:38am 
@TheOriginalStove That would be great, but have you already fixed the bugs with the mass development of things?
TheOriginalStove  [author] 19 Jul @ 4:36am 
Thanks! Hopefully I got rid of most of the errors that pop up with other mods that change the inventory pane.

Thinking I might also add similar inventory context menu options for dismantling watches/ electronics and / or sawing logs.
Cosmo 19 Jul @ 4:24am 
@TheOriginalStove u are on fire
TheOriginalStove  [author] 19 Jul @ 4:23am 
Okay changed it to 3 options - All, Surrounding, and Selected.
Cosmo 19 Jul @ 2:51am 
Hey @TheOriginalStove sure i have)
TheOriginalStove  [author] 19 Jul @ 2:11am 
@Cosmo - now that I think of it, do you have scissors or a knife in your inventory when trying to rip denim/leather items?
TheOriginalStove  [author] 19 Jul @ 2:09am 
@Cosmo
```
It seems to me that tear everything only works with one type of thing, those that generate rags. I need to test it out more but it doesn't work on denim and leather products.
Mb its cause error
```

Weird, I can get the option to tear up denim/leather items. I'll take a look and test some more to make sure though.

```
You should probably do 3 options:
Tear everything (everything you can reach)
Tear nearby things (everything lying around except inventory)
Tear selected things
```

I like that idea, I can add the 3rd option where you just tear everything not in your inventory. I had that as a bug at one point lol
Cosmo 18 Jul @ 3:48pm 
It seems to me that tear everything only works with one type of thing, those that generate rags. I need to test it out more but it doesn't work on denim and leather products.
Mb its cause error
Cosmo 18 Jul @ 3:24pm 
Hey @TheOriginalStove suggestion
You should probably do 3 options:
Tear everything (everything you can reach)
Tear nearby things (everything lying around except inventory)
Tear selected things
Because I have a raincoat and a gas mask in my inventory and they were all torn)

But yeah mate u did it its works!
Cosmo 18 Jul @ 2:21pm 
@PuzzyDiztroier Agree to much
@TheOriginalStove TY!
PuzzyDiztroier 17 Jul @ 7:47pm 
Thx!
TheOriginalStove  [author] 17 Jul @ 3:08pm 
Just patched the mod to output less thread, since we can also get thread from picking apart rags.
TheOriginalStove  [author] 17 Jul @ 9:37am 
I can do that. Its just using the original logic they had from b41, so it probably needs some tweaking.
PuzzyDiztroier 17 Jul @ 7:30am 
Hi!
Can you make less thread from ripping?
Mb 4 units+-

Cuz on high level you gonna get 12 utins every time (it's too much)
TheOriginalStove  [author] 15 Jul @ 10:06pm 
Added translations for Chinese, Danish, Dutch, Portuguese, Russian, Spanish, and Ukrainian. Let me know here or open a PR/Issue on github on how any of them could be improved.
TheOriginalStove  [author] 14 Jul @ 1:24pm 
Figured out why the better sorting mod conflicts, putting out a fix. The better sorting mod changes the display name of the category which is what the item uses as a category for the top level item list in the inventory context pane. Should work with or without the better sorting mod now. Let me know if there are any other conflicts.
TheOriginalStove  [author] 14 Jul @ 9:23am 
Thanks for letting me know @PuzzyDistroier @Cosmo
TheOriginalStove  [author] 14 Jul @ 9:22am 
Huh, okay I’ll take a look and get that fixed.
PuzzyDiztroier 14 Jul @ 6:55am 
Some mods conflict, cuz it doesn't work with other mods
PuzzyDiztroier 14 Jul @ 6:54am 
Works without mods
Cosmo 14 Jul @ 4:13am 
Hey @TheOriginalStove doesn't working if stuff in your inventory, tear all only if cloth on the ground. Doesn't working on cloth wear by dead zombies. I don't have cloth replaces mod but still wont work.
PuzzyDiztroier 14 Jul @ 1:45am 
Great job!