CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.31k stars 4.14k forks source link

Errors on hovering over body part panel in character screen on saves converted from 0.G to 0.H #76347

Open phelieros opened 3 weeks ago

phelieros commented 3 weeks ago

Describe the bug

Converting save from 0.G to 0.H results in two exceptions when you hover over body part panel in character screen:

 DEBUG    : Could not find equivalent bodypart id bp_null in Lyndon Bigelow's body

 FUNCTION : get_part_id
 FILE     : D:\a\Cataclysm-DDA\Cataclysm-DDA\src\creature.cpp
 LINE     : 2240
 VERSION  : c6ba9a2
 DEBUG    : Could not find bodypart bp_null in Lyndon Bigelow's body

 FUNCTION : get_part
 FILE     : D:\a\Cataclysm-DDA\Cataclysm-DDA\src\creature.cpp
 LINE     : 2168
 VERSION  : c6ba9a2

They repeat indefinitely if you skip them with space and you can only break out of of the loop by ignoring them with i.

Attach save file

Hosston-trimmed.tar.gz

Steps to reproduce

  1. Load attached save game.
  2. Open character screen and hover over body part panel.

Expected behavior

No errors upon hovering over body part panel.

Screenshots

No response

Versions and configuration

Additional context

No response

harakka commented 3 weeks ago

@CoroNaut if the thumbs up is meant to indicate "this is a real problem I'm experiencing as well" please instead post a comment to that effect so we can mark the issue as confirmed

CoroNaut commented 3 weeks ago

Sorry, I mustve wanted to thumbs up another issue and this tab just so happened to be there. I haven't tested this issue at all.

cknight828 commented 2 weeks ago

blank_bodypart The error occurs when hover mouse to this blank space. It can be reproduced by creating a character, taking off the watch, and opening character info. It does not occur in 0.G, but does not seem to be related with the save. This occurs in both of 0.H rc and experimental (cdda-experimental-2024-09-16-0441).