Project Zomboid

Project Zomboid

[B42] Take A Bath And Shower : WIP
90 Comments
Meesteq 28 Sep @ 12:57pm 
Awesome, thank you, it makes sense now
Si-Cafe  [author] 28 Sep @ 4:18am 
@Keinori Thanks for reporting it. It's been fixed.

@Meesteq I don't know how the mentioned mods are involved, but I think it's a vanilla feature that you can't equip excessively heavy items. However, the auto-equipment in this mod does not take weight into account at the moment, so there is room for improvement.
Meesteq 28 Sep @ 12:50am 
@Si-Cafe Works good now after unsubscribing and subscribing again, quick mention tho, if the character carries some containers such as tacical bags, ammo bags etc. and it exceeds the weight limit of 20, after taking a shower it will not automatically equip them back on, for some reason the extra weight causes an issue, if i turn no weight option from debug on, it will equip all of them properly, just a heads up this is the mod i m talking about:


https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3473002119
Si-Cafe  [author] 26 Sep @ 11:36am 
@Meesteq Hmm, that fixed it in my testing... Maybe Steam didn't update properly, so resubscribing to this mod might fix it.
Meesteq 26 Sep @ 11:24am 
Still not working, tested it right now and the same pop up message appears, I also tested it without using any mods and the message persists, the bathtub is the only one that works properly, seems like an issue to the showers
Si-Cafe  [author] 26 Sep @ 10:44am 
@Meesteq Thank you for reporting it, it has now been fixed.
Meesteq 26 Sep @ 8:32am 
„No place to prepare for bathing”, anyone knows why i get this message when trying to take a shower?
galkinzhenia 26 Sep @ 4:24am 
Спасибо большое
Si-Cafe  [author] 25 Sep @ 1:56pm 
This mod will undergo major changes in the next version update.
While most of the existing functionality will be maintained, due to changes to the file structure and code, this mod will not be updated and will be released as a new version of the mod.
This mod page will remain as a Lite version with only the shower for the time being, but no further features will be added or changed (unless a serious bug is discovered).

Most of the issues raised in the comments section have been resolved in the new version.
Please let us know if you have any further issues or suggestions for improvement.
Si-Cafe  [author] 25 Sep @ 1:41pm 
Fixed for 42.12.
galkinzhenia 25 Sep @ 8:19am 
Обновите до 42.12
SIMBAproduz 24 Sep @ 11:16am 
Instead of creating a separate mod, I uploaded the PTBR translations in the discussions so they can be officially integrated into the mod
Si-Cafe  [author] 22 Sep @ 3:19am 
@pimatstudio Thanks for your report and screenshots. There is a bug where if the adjacent cell on the faucet side of the bath is blocked and the other cell is free, the character will try to enter the bath at an angle and will be unable to get out.
I've working on a fix for this and it's finished, but it will take a little while to release... I'm taking some time to check out the new bath system and more...
pimatstudio 22 Sep @ 2:46am 
@Si-Cafe, this is kind of funny, not really a major bug so I didn't feed the discussions thread with this. Here's what will lead me to my demise after all this tough fighting https://imgur.com/a/EIg08y2 (NSFW lol)

lol I know I'll use debug to noclip me outta there, for sure, yet normally there'd be nothing you could do. The character didn't vault into the bath, only teleported, and after she used the towel, she got stuck in the tile, never tried vaulting.

Oh and BTW thanks for a cool mod!
Si-Cafe  [author] 21 Sep @ 8:43am 
@Meesteq Ah, so the sandbox option worked, but the mod option doesn't...?
Um, are the accessories from mods? Items equipped to body locations other than vanilla may not be recognized as accessories.

Also, anything that can't be equipped by double-clicking it in your inventory generally can't be auto-reequipped. Watches are an example of this. This has been fixed, but is not yet released.
Meesteq 21 Sep @ 8:16am 
@Si-Cafe Sorry for late response, I needed to restart the game after every change into the sandbox settings, mod works like a charm, wish the option with accesories would work, due to the fact that even the box is checked, the accesories are unnequiped before entering the shower and they are not equipped back afterwards, but the rest of it works just fine
Si-Cafe  [author] 19 Sep @ 7:12pm 
@CommissarV You can disable the shower in use state using the method mentioned by Zer0Motivation.
But I'm curious as to why your game crashes. I hope there's no problem with the Take Shower action itself...
Zer0Motivation 19 Sep @ 6:56pm 
@CommissarV You could go into debug mode and right click the shower. There should be a "toggle using" button. Click that and the tub will go back to a normal state.
CommissarV 19 Sep @ 6:40pm 
Not sure if this has been reported - but if the game crashes while you are showering, the game will permanently think you are showering. That is to say, you can still play - i.e do other tasks and play the game otherwise normally - but the game will not allow you to select the option to bathe because it thinks you are already doing this action. Tried turning the mod on and off but without much luck.
Si-Cafe  [author] 19 Sep @ 5:58pm 
@Wubby Ah, I'm really sorry, I just noticed that the go shower pathfinding had diagonally adjacent squares enabled. This allowed players to enter the bath where it shouldn't.
I'll be sure to fix this in the next update.
Si-Cafe  [author] 19 Sep @ 9:23am 
@Wubbyy I made it so that the character cannot enter the bathtub if the path is blocked, but how did you get in? A photo of the room layout would help solve the problem.
Well, there's definitely a good chance of such a bug, so I'll add some debug code to forcefully get out of the bath.
Wubbyy 19 Sep @ 9:08am 
Ugh lost a world cus i was taking a shower and like there was a sink right next to the tub so my character couldnt get out of the tub

it would be great that if after the shower it teleported you out of the tub so i dont get stuck
Si-Cafe  [author] 18 Sep @ 1:07am 
@Inexorable That is probably a problem with the vanilla plumbing system. The vanilla plumbing covers a 3x3 area, but it seems to only read one container with fluid in it. The water level of other liquid containers is not taken into account, so placing multiple rainwater collectors within the area (in vanilla) doesn't make much sense.

I think there's a mod that solves this problem, but I'm not sure if it works with the latest version...

In any case, I think it's inconvenient as it is, so I'd like to improve it so that the shower can read the water amount of all piped containers.
Inexorable 17 Sep @ 11:45pm 
This mod is quite hard to use once water shuts off
I covered the roof above my shower with rain collectors in a 3x3, and while they are all filled up, the bath picks one, and if that one doesn't have enough water, taking a shower is not possible.

So let's say I need 80L to take a shower, if I have 9 rain collectors with 90L, I will be able to take one shower, but then it will tell me that my water source only has 10L left and I can't take another shower, while the other rainwater collectors have more than 80L and could be used

Would it be possible for the shower to check all the rain collectors above itself in a 3x3 (like plumbed sinks do) and if one is above the required amount of water, pick this one?
BeautifulRnr 6 Sep @ 2:03pm 
its a great mod i tried playing without it and was sad. lol
Si-Cafe  [author] 5 Sep @ 4:03pm 
@MrLusk Please look "Displays Only Available Shower Menu" in the mod options. That will be displayed only uses hot or cold shower in the context menu depending on whether power is available or not.
If you turn it off, hot and cold shower will always be displayed.
MrLusk 5 Sep @ 12:49pm 
would there be a reason for no cold shower? am i missing something.. no error just no option just hot shower.?
Si-Cafe  [author] 4 Sep @ 1:26am 
@AntDude42 Yes, that's correct, but the content is clearly different.
AntDude42 3 Sep @ 3:51pm 
there's already a mod for this
Si-Cafe  [author] 31 Aug @ 1:41am 
@Chlor_siarka As you say, it may be too difficult considering the game balance of PZ. However, in reality, preparing a bath or shower in a world without running water or electricity must be an extremely difficult task.
You can make some adjustments using the sandbox options, but I would like to refine the balance of the default settings a bit more.
Si-Cafe  [author] 31 Aug @ 1:30am 
@Meesteq Did you switch the sandbox option at the beginning of the game, or midway through? If so, you'll need to reload after setting it. I checked the code again and there didn't seem to be any mistakes, so that's probably the only possible cause.
Meesteq 30 Aug @ 7:06pm 
Any idea why the sandbox options do not work properly? For instance I disabled the grime option but it still builts up. Also I lowered the requirement of water to take a shower from 80 to 20, yet it is still 80, any idea if it s a bug or am I missing something. Thank you
Chlor_siarka 30 Aug @ 10:57am 
Fun little mod, though I'll be turning it off for the future runs because once water is shut off and you didn't speedrun building a rain collector over a bathtub, you're screwed. Base game "wash yourself" funtion either removes ridiculously tiny amount of grime or does not remove any of it at all, so it's not much reliable way to keep yourself clean.
Si-Cafe  [author] 28 Aug @ 2:37am 
@Hello Thank you for your feedback.
I'm currently working on adding a simple bathing feature, so adding bathing for nomadic players may be a little later, but I'll consider it. Also I'll considering making it display the grime level in a non-threatening moodle or on health panel.
Hello 27 Aug @ 10:47pm 
Gave it a try for fresh run, and it adds a nice little bit of extra immersion. But one issue is if you playing as a Nomad once the Water and Power shutdown your basically stuck as the Grime builds up and you get sick. I did Wash myself using sinks etc plenty of times, but the Grime still built up enough to start causing issues.
Would you be able to add in feature to allow the player to bath in a Stream or Swimming Pool? It would help players who don't tend to build bases and just live off the land.

*Also a Grime Slider / Moodle would be nice as I did not realise that was a feature as I did not read a Description and got Confused when my character started randomly Smelling a Bad Oder then started getting Sick*
Si-Cafe  [author] 22 Aug @ 10:46pm 
@?DotWho Yes, it's safe.
Whoispappi 22 Aug @ 8:44pm 
can i install in the mid of save game?
Si-Cafe  [author] 20 Aug @ 1:00am 
@KG It's in the Mod Options, not the Sandbox Options. Turn off the option "Wash Off Makeup". It default is true.
However, if you are using special makeup added by a MOD, it may not be effective. In that case, please report it separately.
KG 19 Aug @ 10:38pm 
Yes, I have it and it washes off the makeup my character is wearing. There's no sandbox option for it either. Am I missing something obvious?
Si-Cafe  [author] 19 Aug @ 10:35pm 
@KG This mod already has that option, have you tried it?
KG 19 Aug @ 8:50pm 
Any way to enable an option so showering doesn't remove make up? Just a tedious hassle for me, unfortunately
Keinori 16 Aug @ 9:39pm 
thank you for your helpfulness :steamhappy:
Si-Cafe  [author] 16 Aug @ 8:29pm 
@Keinori Sorry... I forgot to do a final check. Fixed it.
Keinori 16 Aug @ 6:34pm 
at zombie.Lua.LuaManager.RunLua(LuaManager.java:582)
at zombie.Lua.LuaManager.RunLua(LuaManager.java:568)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:427)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:318)
at zombie.Lua.LuaManager.LoadDirBase(LuaManager.java:479)
at zombie.GameWindow.init(GameWindow.java:1386)
at zombie.GameWindow.mainThreadInit(GameWindow.java:756)
at zombie.GameWindow.mainThreadStart(GameWindow.java:598)
at zombie.MainThread.mainLoop(MainThread.java:64)
at java.base/java.lang.Thread.run(Unknown Source)
`
Keinori 16 Aug @ 6:33pm 
With the help of the "error magnifier," I got this message:
`attempted index: Bathtub of non-table: null
function: AddBathTubTiles -- file: TABAS_Compat.lua line # 8 | MOD: Take A Bath And Shower
function: TABAS_Compat.lua -- file: TABAS_Compat.lua line # 32 | MOD: Take A Bath And Shower
java.lang.RuntimeException: attempted index: Bathtub of non-table: null
at se.krka.kahlua.vm.KahluaThread.tableget(KahluaThread.java:1530)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:403)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:174)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1826)
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1623)
at se.krka.kahlua.integration.LuaCaller.pcall(LuaCaller.java:76)
at se.krka.kahlua.integration.LuaCaller.protectedCall(LuaCaller.java:117)
at zombie.Lua.LuaManager.RunLuaInternal(LuaManager.java:639)
Octavian 16 Aug @ 9:17am 
lovley:spiffo:
Si-Cafe  [author] 16 Aug @ 8:50am 
@Ex Ossibus Fumus Thanks for the link, I couldn't find that mod by searching in workshop home...

With this update, auto undressing should now be compatible with any Body Mods.
Si-Cafe  [author] 16 Aug @ 5:09am 
@Ex Ossibus Fumus If it's just a simple skin retexture, no patching is necessary. If there are additional body parts, patching may need but it should be easy. Just give me a link to it mod I'll do it.