Cataclysm-dda: Crafting clean water does not use dirty water

Created on 15 Jul 2019  路  6Comments  路  Source: CleverRaven/Cataclysm-DDA

Bug Description

When crafting clean water from the crafting menu, the dirty water does not deplete. Resulting in infinite water. Also notice, that when looking at the "Components required" area for clean water, it will say I will use 1 of 2,147,483,647. Some reason it seems to be assigning it the max value of int?

Steps To Reproduce

Steps to reproduce the behavior:

  1. Have a container with dirty water in your inventory along with a method of cooking it. Test used wood stove.
  2. Bring up the crafting menu and find the recipe for clean water. Notice how it is using the max value of int.
  3. Either batch craft or single craft (test used both) the recipe and store the crafted clean water in a container
  4. notice how the container storing the dirty water has not reduce the amount you specified and remains the max value of int. Thus, unlimited water.

Expected behavior

When crafting clean water, the dirty water's amount is reduced by the amount specified and it is not possible to infinitely create clean water.

Screenshots

Infinite clean water bug

Versions and configuration

- OS: Windows 10
    - OS Version: 10.0 1903
- Game Version: 0.D-5673-g1a12348 [64-bit]
- Graphics Version: Tiles
- Mods loaded: [
    Dark Days Ahead [dda],
    Disable NPC Needs [no_npc_food],
    Garden Pots [growable-pots],
    Alternative Map Key [alt_map_key],
    Hydroponics [hydroponics]
]

Notes

It seems this was fixed in #29532 but ...

(S1 - Need confirmation) <Bug> Crafting / Construction / Recipes Food / Vitamins

Most helpful comment

And you're not near a pool of shallow water? Usually you only see that high number from crafting while near a water source.

All 6 comments

And you're not near a pool of shallow water? Usually you only see that high number from crafting while near a water source.

Sorry should have mentioned this. No I was just next to a wood stove underground, within a LMOE shelter. Unless the LMOE gives free water wherever you are within the shelter?

Sorry should have mentioned this. No I was just next to a wood stove underground, within a LMOE shelter. Unless the LMOE gives free water wherever you are within the shelter?

Aren't there shallow water tiles south of the stove?

I will double check when I am back at my computer. Hopefully not a derp moment 馃憖

Whether that's the problem or not, I wonder if we can shim in a message
somewhere that says you pulled the water from a ground source to make it
obvious what's happening

Turns out there was a water pump in the corner of the room which I completed ignored :( Sorry for wasting your time. If you want to use this report for an enhancement for detailing where the water is coming from, by all means.

Sorry again

Was this page helpful?
0 / 5 - 0 ratings

Related issues

natsirt721 picture natsirt721  路  3Comments

ituluwituluwzev picture ituluwituluwzev  路  3Comments

Taberone picture Taberone  路  3Comments

BorkBorkGoesTheCode picture BorkBorkGoesTheCode  路  3Comments

PlasmaChroma picture PlasmaChroma  路  3Comments