cataclysmbnteam / Cataclysm-BN

Cataclysm: Bright Nights, A fork/variant of Cataclysm:DDA by CleverRaven.
https://docs.cataclysmbn.org
Other
704 stars 273 forks source link

Game crashed when recovery from pain #5597

Open hiro9888 opened 1 month ago

hiro9888 commented 1 month ago

Describe the bug

games crashed suddenly

Steps To Reproduce

  1. recovery from pain
  2. used Bionics “Adrenaline Pump”
  3. wait a minute to reduce the pain
  4. it told me “Your adrenaline rush wears off. You feel AWFUL!”
  5. game crashed

Screenshots

No response

Versions and configuration

Additional context

DEBUG : player_morale::perceived_pain is inconsistent.

FUNCTION : bool player_morale::consistent_with(const player_morale&) const FILE : src/morale.cpp LINE : 878 VERSION : BN ee91baf

debug.log save.zip

RoyalFox2140 commented 1 month ago

image

hiro9888 commented 1 month ago

Thanks but till now, the same problem still happen..

DEBUG : player_morale::perceived_pain is inconsistent.

FUNCTION : bool player_morale::consistent_with(const player_morale&) const FILE : src/morale.cpp LINE : 878 VERSION : BN 97b5ee8

hiro9888 commented 1 month ago

Same bug still exists.

DEBUG : player_morale::perceived_pain is inconsistent.

FUNCTION : bool player_morale::consistent_with(const player_morale&) const FILE : src/morale.cpp LINE : 878 VERSION : BN d08e00a

chaosvolt commented 1 month ago

Gwuh. Finally tested and confirmed this. You need to be more clear in your steps to reproduce:

  1. Give yourself some level of pain to start with. It seems to work fine if you're using adrenaline pump from zero pain.
  2. Activate adrenaline.
  3. When it hits you with the comedown effect, the bug will trigger.
 DEBUG    : player_morale::perceived_pain is inconsistent.

 FUNCTION : consistent_with
 FILE     : D:\a\Cataclysm-BN\Cataclysm-BN\src\morale.cpp
 LINE     : 878
 VERSION  : BN d08e00a

However, I didn't get a crash from this, just the above error I was able to skip with spacebar: image

Tested in:

- OS: Windows
    - OS Version: 10.0.19041.450 (2004)
- Game Version: d08e00a [64-bit]
- Graphics Version: Tiles
- LAPI Version: 2
- Game Language:  []
- Mods loaded: [
    Bright Nights [bn]
]
hiro9888 commented 1 month ago

Ahh Thanks! Sorry for my unclear reproduce.. When zero pain, the adrenaline pump will not work actually (Safeguards kick in, and the bionic refuses to activate!) , so I missed that. But next time I will make steps more clear.