Cataclysm-DDA icon indicating copy to clipboard operation
Cataclysm-DDA copied to clipboard

Cramped space. Incorrect volume calculation?

Open IdleSol opened this issue 1 year ago • 2 comments

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

Бивис-trimmed.tar.gz

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

pict 1

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.

IdleSol avatar May 25 '24 07:05 IdleSol

Some tests are.

  1. Create a vehicle (1 frame). No effect
  2. Add a seat or trunk. There is an effect.

UPD. Built a test car Бивис-trimmed.tar.gz

  1. Frame - not
  2. bench seat - yes
  3. bucket seat - yes
  4. reclining bucket seat - yes
  5. trunk - yes
  6. cargo space - yes
  7. sedan trunk - yes
  8. door - no
  9. hatch - no
  10. roof - no
  11. box and box+roof - no
  12. bed - yes
  13. floor trunk - no

UPD2. Took the mouse mutation line (height 70 cm). The effect is still in effect.

IdleSol avatar May 25 '24 07:05 IdleSol

/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] ]

TealcOneill avatar May 25 '24 08:05 TealcOneill

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.

Maddremor avatar May 25 '24 13:05 Maddremor

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.

IdleSol avatar May 25 '24 14:05 IdleSol

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

Brroleg avatar May 25 '24 16:05 Brroleg

i believe it's https://github.com/CleverRaven/Cataclysm-DDA/pull/74004 causing this.

mischief avatar May 27 '24 05:05 mischief

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.

winsomniak avatar May 27 '24 15:05 winsomniak