Cramped space. Incorrect volume calculation?
Describe the bug
Standard character. Completely naked. Sits in a normal car and gets this effect.
It should not be like this. My assumption is that the calculation of character volume or free space is not done correctly.
Attach save file
Steps to reproduce
Create a character and get in the car.
Expected behavior
Lack of effect, for a normal character on a normal car.
Screenshots
Versions and configuration
- OS: Windows
- OS Version: 10.0.19043 (21H1)
- Game Version: cdda-experimental-2024-05-25-0347 388ca6c [64-bit]
- Graphics Version: Tiles
- Game Language: English [en]
- Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Portal Storms Ignore NPCs [personal_portal_storms], Slowdown Fungal Growth [no_fungal_growth], Stats Through Kills [stats_through_kills] ]
Additional context
Additionally looked at how this effect would react to starvation. Set it to 15k cal (skeletal). The effect didn't go anywhere.
Some tests are.
- Create a vehicle (1 frame). No effect
- Add a seat or trunk. There is an effect.
UPD. Built a test car Бивис-trimmed.tar.gz
- Frame - not
- bench seat - yes
- bucket seat - yes
- reclining bucket seat - yes
- trunk - yes
- cargo space - yes
- sedan trunk - yes
- door - no
- hatch - no
- roof - no
- box and box+roof - no
- bed - yes
- floor trunk - no
UPD2. Took the mouse mutation line (height 70 cm). The effect is still in effect.
/Confirm Mischief is correct, I looked at the wrong PR and attributed this issue to it.
- OS: Windows
- OS Version: 10.0.19045.4412 (22H2)
- Game Version: cdda-experimental-2024-05-25-0134 22d851b [64-bit]
- Graphics Version: Tiles
- Game Language: System language []
- Mods loaded: [ Dark Days Ahead [dda], Disable NPC Needs [no_npc_food], Portal Storms Ignore NPCs [personal_portal_storms], Slowdown Fungal Growth [no_fungal_growth] ]
I can personally confirm this is the case on a vanilla save, unremarkable character, on a build just a few hours old. This might be an issue of the messaging towards the player ("You barely fit in this tiny human vehicle" should never trigger for a regular person), the calculations of what the threshold for being cramped is, and finally what the cramped debuff should entail. Calling @RenechCDDA for this.
Small question. A aisle can store 100L of stuff. Is this a bug that needs to be reported, or should it be?
And yes, it is also considered a cramped space.
I tested every last experimental build. This bug appeared after version 2024-05-23-1642. On said version and before there is no such bug
i believe it's https://github.com/CleverRaven/Cataclysm-DDA/pull/74004 causing this.
Tiles which do not have storage capacity seem not to be affected by this bug.
For example, using a "flimsy wooden seat" does not result in the debuff and allows driving a vehicle without a debuff as a workaround.