Project Zomboid

Project Zomboid

Excrementum
Understanding the Multipliers and how they impact gameplay
We love using this mod in our small server, and so I added it to our mod list. In the settings, I have a bunch of code that manipulates how often things happen. I was wondering if you could possibly explain which numbers mean what, as I don't understand what numbers impact which settings. We want it to be a feature for realism but currently find ourselves wetting our clothing every 5 minutes of the game.

These are the current settings:
Excrementum = {
-- Minimum=0.00 Maximum=100.00 Default=1.00
StomachMultiplier = 10.0,
-- Minimum=1.00 Maximum=100.00 Default=10.00
ChymeMultiplier = 20.0,
-- Minimum=0.00 Maximum=3000.00 Default=300.00
DefecateIntMinutes = 900.0,
-- Minimum=0.00 Maximum=5000.00 Default=1320.00
ColonMinutes = 2640.0,
-- Minimum=50.00 Maximum=150.00 Default=80.00
ColonBaseThreshold = 80.0,
-- Minimum=0.00 Maximum=10.00 Default=1.00
UrinateIncreaseMultiplier = 10.0,
-- Minimum=0.00 Maximum=10.00 Default=1.00
UrinatePassiveMultiplier = 10.0,
-- Minimum=50.00 Maximum=500.00 Default=50.00
StomachVolume = 80.0,
-- Minimum=50.00 Maximum=1000.00 Default=100.00
AdditionalStomachVolume = 200.0,
OverlayIsAllowed = true,
EnabledStatusBars = true,
Shame = 2,

What we would like to happen is defecate rarely (once per day) and urinate maybe twice per day.
< >
Showing 1-10 of 10 comments
star  [developer] 26 Oct, 2023 @ 3:07am 
The descriptions are in \lua\shared\Translate\EN\ folder, in Sandbox_EN.txt
Here they are:

Stomach Time Multiplier
How much time is needed to pass the stomach.
Default is realistic.

Chyme Multiplier (hunger units)
How much food leaves stomach in form of chyme every 10 ingame minutes.

Intestine Time (minutes)
Ingame minutes to pass the intestine
(between the stomach and the colon).

Colon Time (minutes)
How much time must pass to start Colon Threshold moving down.

Colon Threshold (percentage)
The colon percentage of fullness for urge to defecate.
Some food may change this threshold.

Urine Multiplier
Urine production multiplier from drunk water.
Default is 1:1, where 10 thirst units = 100 ml.
Also affects diuretic effect.

Passive Urine Multiplier
Passive urine production multiplier from metabolism.
By default ~ 30% from all production (if no perks, no cold etc).

Stomach Volume (hunger units)
The volume of stomach that keeps green moodle which restores health.

Additional Stomach Volume
The stomach may be distended. Max capacity is 'Stomach Volume' plus this.
Character won't accept food over maximum capacity.

Health Regen Overlay
Regen overlay is allowed for clients.
They will be able to turn it on/off and change position by client options.

Status Bars
Status window is allowed for clients.
They will be able to turn it on/off, switch to bars, change position etc.

Shame
How the shame is enabled (including multiplayer).
option1 = "Off",
option2 = "Retexture Auto Detect",
option3 = "Always On",
option4 = "On even in god mode",
star  [developer] 26 Oct, 2023 @ 3:07am 
Now let's turn your question over to the "explanation tool" (ChatGPT).

The Answer

Certainly! Let's first break down what each setting does based on the descriptions you've provided and then adjust the settings to better match your desired gameplay experience.

  1. StomachMultiplier: This is how much time is needed for food to pass through the stomach. A higher value means it takes longer for food to pass through the stomach.
  2. ChymeMultiplier: This determines how much food leaves the stomach in the form of chyme every 10 in-game minutes. A higher value means more food exits the stomach more quickly.
  3. DefecateIntMinutes (Intestine Time): The number of in-game minutes it takes for food to pass through the intestine (from the stomach to the colon).
  4. ColonMinutes (Colon Time): How much in-game time must pass before the Colon Threshold starts decreasing.
  5. ColonBaseThreshold (Colon Threshold): The percentage of fullness in the colon at which the character feels the urge to defecate.
  6. UrinateIncreaseMultiplier (Urine Multiplier): This is the multiplier for urine production from drinking water.
  7. UrinatePassiveMultiplier (Passive Urine Multiplier): This multiplier affects how much urine is passively produced by metabolism, not from drinking.
  8. StomachVolume: The volume of the stomach that keeps the character in a good mood and restores health.
  9. AdditionalStomachVolume: The stomach's maximum distended capacity. The character won't eat beyond this limit.

Given your current settings and the issue you've described about wetting clothing every 5 minutes, it's evident that the UrinateIncreaseMultiplier and UrinatePassiveMultiplier are both set to 10 times their default values, which leads to excessive urine production.

To achieve your desired outcome of defecating once per day and urinating maybe twice per day, consider the following changes:

  1. DefecateIntMinutes: If we consider an in-game day to be 24 hours and you want to defecate once per day, then it should be set close to 1440 minutes (24 hours * 60 minutes). However, you've already set it to 900, which is around 15 hours. This setting seems reasonable if you want to ensure that players are not interrupted during sleep hours for defecation.
  2. UrinateIncreaseMultiplier & UrinatePassiveMultiplier: Since you're producing urine at 10 times the normal rate, decrease these multipliers to bring down the frequency. Setting them both to 1.00 (their default) would be a good starting point.

Here's a modified configuration based on the desired gameplay experience:

Excrementum = { StomachMultiplier = 10.0, -- Keep as is ChymeMultiplier = 20.0, -- Keep as is DefecateIntMinutes = 900.0, -- Once per 15 hours ColonMinutes = 2640.0, -- Keep as is ColonBaseThreshold = 80.0, -- Keep as is UrinateIncreaseMultiplier = 1.0, -- Reset to default UrinatePassiveMultiplier = 1.0, -- Reset to default StomachVolume = 80.0, -- Keep as is AdditionalStomachVolume = 200.0, -- Keep as is OverlayIsAllowed = true, -- Keep as is EnabledStatusBars = true, -- Keep as is Shame = 2, -- Keep as is }

You may want to test this configuration and adjust further based on your gameplay experience. Remember that the mod's realism might still require players to consider their water consumption in the game, so drinking excessively can still result in more frequent urination.
Last edited by star; 26 Oct, 2023 @ 3:08am
star  [developer] 26 Oct, 2023 @ 3:28am 
An important note...

Before a player is able to defecate, food must traverse the stomach, then the intestines, and finally, the colon has to reach the specified threshold. The cumulative time of these three stages determines the first defecation for every player.

But it's crucial to understand that the progression of food through these sections happens simultaneously.

Even though intestine transit time has its role, the dominant factor affecting the time between bowel movements is the accumulation rate in the colon. This can vary widely: it could be very frequent when a character consumes a lot of food or infrequent when they don't eat at all. However, even if a player is starving, the colon's fill threshold will gradually decrease. This ensures that one can't walk around for days with a half-filled colon without feeling the urge to defecate.

Hopefully, if there are other questions, all of this information can help as well. We've been planning to write explanations for a long time, but it's only been happening in the comments of the mod.
Darth Dakkers 28 Oct, 2023 @ 8:58am 
Hi, just want to say a massive thank you as this has made it a game changer for us!
esschallert 9 Dec, 2023 @ 6:34pm 
Where can I find the file for the settings, also is it possible to change the mood settings?
pwnd 13 Jun, 2024 @ 9:33pm 
if you are still updating this mod, could you please add the ability to fully disable urination and/or defecation?
The Caveman 22 Aug, 2024 @ 1:37am 
Originally posted by pwnd:
if you are still updating this mod, could you please add the ability to fully disable urination and/or defecation?
uninstall the mod at that point...its pretty useless past that...
star  [developer] 12 Sep, 2024 @ 5:02pm 
Originally posted by pwnd:
if you are still updating this mod, could you please add the ability to fully disable urination and/or defecation?
We will continue after the beta of build 42
ClariseShow 22 Sep, 2024 @ 7:55am 
Originally posted by star:
Originally posted by pwnd:
if you are still updating this mod, could you please add the ability to fully disable urination and/or defecation?
We will continue after the beta of build 42
Hi, please tell me the settings, I have a day lasts 3 hours of real time on the server, I want 1 time the character pooped and 2-3 times went to pee, what settings to change?

I made the settings as here, but it seems to me that still the character will very often go to pee, I want to reduce this
ClariseShow 22 Sep, 2024 @ 7:57am 
I tested it now, I drank 5 cans of soda, about 1-2 minutes of real time passed and already, 122 mililiter in the urine is standing and accumulating further, how to cut this thing down further?
To make it accumulate even longer, the values of UrinateIncreaseMultiplier and UrinatePassiveMultiplier were set instead of 1 to 0.5, but it didn't have any effect.
< >
Showing 1-10 of 10 comments
Per page: 1530 50