Project Zomboid

Project Zomboid

58 ratings
Usable Sponges
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
118.763 KB
18 Jul, 2023 @ 2:56pm
14 Aug, 2023 @ 1:04pm
3 Change Notes ( view )

Subscribe to download
Usable Sponges

Description
This is a mod that turns "junk" sponges in Project Zomboid into "household" items that can clean blood.

Workshop ID: 3006485561
Mod ID: UsableSponges
15 Comments
Kroket  [author] 27 Apr, 2024 @ 11:24am 
Last tested this mod changed the category as defined above into "household". If anything has changed with the functionality of the mod I am no longer updating it, and anyone is welcome to continue development of the files as desired.
QS 27 Apr, 2024 @ 5:05am 
Change the sponges' category please, they're still defined as junk
Kroket  [author] 11 Oct, 2023 @ 9:16pm 
I have no issue with the inclusion
Satuis Aburda 10 Oct, 2023 @ 8:51pm 
Is it alright to include this smaller mod into my semi-vanilla overhaul mod with credit?
Kroket  [author] 14 Aug, 2023 @ 12:55pm 
Okay so, problem found, problem resolved. On the chance someone ever runs into this issue again, and hopefully Google' SEO stuff will bring this up, but the base BuildingObject cursor system uses a luautils.walkAdj check in its default :walkTo method. If you are using a derived object make sure to check the parent object(s) methods. As for why it worked in -debug mode, I concluded that self.skipWalk2 gets set true while in debug mode, making the :walkTo simply return true, and then running my scripted luautils check, so long story short, change the methods in your derived objects if they interfere with your functionality in a live environment.
Kroket  [author] 14 Aug, 2023 @ 12:34pm 
Yeah I ran into the information online indicating that I can set up the -modfolders launch parameter, but even having set that it seems Zomboid just doesn't care that I have a version of a mod in an earlier modfolder set. I now go through and change my mods in the Workshop to NotModName, but last night it seemed like my game ran different copies of the game depending on if I was using the -debug launch parameter or not. Legit turn on -debug and then the code printed stuff from my file, the stuff from the main game file, then my stuff again, but turn off debug and it only printed the main file stuff. I'm having an issue right now with luautils.walkAdj forcefully resetting the queue when not in -debug.
[GWJ]Baron_Of_Hell 14 Aug, 2023 @ 6:00am 
@Kroket you might have a different version in different places. I ran into this problem wen I had my mod in the workshop folder used to upload to workshop and or when I had my mod in the manual install folder and or when I also had my mod downloaded to the folder where subscribed mods go.

Anyway in my case the mod versions were different so it mattered which one the game decided to run with. So now I just make sure the mods I am working on is only in one location so the game can't run the wrong one.
Kroket  [author] 14 Aug, 2023 @ 5:15am 
Okay the latest update allows you to clean blood with mops and bleach again, but it seems I've run into some VERY weird functionality differences between debug mode (which is required for me to write the mod) and default PZ. I will be looking more into the differences soon, but to start, when not in debug mode my copy of the mod appears to not be running the most up-to-date version I have saved.
Kroket  [author] 8 Aug, 2023 @ 3:34pm 
I have been learning more of how to, seemingly properly, mod Zomboid, and will be updating UsableSponges *soon*-ish to use OnFill events, in place of its current function replacement, which will also provide cleaning through water objects in the inventory. Thank you, Jenek and Baron, for informing me of the issue with default cleaning.
[GWJ]Baron_Of_Hell 6 Aug, 2023 @ 11:18am 
I got this mod so I could use sponges for something. Unfortunately it makes mops, dish towels, and bath towels useless. I wanted more useful things not less so the mod is a bust for me. However, it did show me enough how to go about making a mod that kept uses for mops and towels. I learned something new and that is golden.