CleverRaven / Cataclysm-DDA

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

Corpses will sometimes display the fallback corpse sprite even if they have one properly set for themselves / Monsters alternate between available sprites #75292

Open Karol1223 opened 1 month ago

Karol1223 commented 1 month ago

Describe the bug

If an item starts with corpse_[monster], it will always show its own sprite unless the player is standing on it, or is examining the tile its on with x, at which point it will instead show the sprite of the corpse the ID is similar to

The voices in the comment say it is not limited to monsters. I have not witnessed this, but Guardian is adamant about telling me to edit the issue to mention it so here you go.

Attach save file

N/A

Steps to reproduce

  1. Spawn corpse_yugg_jade
  2. Look that it has its own symbol
  3. Enter x view and examine the tile its on
  4. Witness the fallback corpse sprite

Expected behavior

The item should always use the same sprite, not switch depending on how its being looked at

Screenshots

No response

Versions and configuration

Additional context

No response

Karol1223 commented 1 month ago

Changing the title in light of new events - this seems to apply to actual corpse items as well, they will sometimes just randomly decide to use the fallback sprite instead. Examining their tile and standing on them seems to do it reliably, but they sometimes seem to do it at random, too.

Uwuewsky commented 1 month ago

I think the same thing happens not only with items, but also with entity sprites. On the week old version (build type: linux-tiles-x64, build number: 2024-07-22-0401, commit sha: a1bce1792cc990a1e159fa145cdb29d5af61ecee), the fungal zombies also changed their sprite if a player is within one tile, just like corpses.

I updated to the latest (build number: 2024-07-28-2319, commit sha: a334d3d7ef6c1ea85fe25d3e67ee85c3fdc30078), it seems to me the bug is still there, but the behavior has changed slightly. They now change sprite randomly if the player wanders nearby. 11f1 11f2

Corpses will change sprite if the player approaches them from the southwest. fungi_corpse

GuardianDll commented 1 month ago

GIF_28-07-2024_13-43-13

GuardianDll commented 1 month ago

Also please edit issue to detail it is not limited by corpses

inogenous commented 1 month ago

Is it possible that this check here should be !is_isometric()? From b33241a02da72738f6438739a6acbad9f384ee5e . I can no longer reproduce the issue if this check is flipped.

https://github.com/CleverRaven/Cataclysm-DDA/blob/806222621d25f6f364a2d2c16bf2430c7024c577/src/cata_tiles.cpp#L2503-L2505

GuardianDll commented 1 month ago

The place is correct, but i suspect #74445 was the reason of it, which was specifically about using the same feature beyond iso tilesets

IdleSol commented 2 weeks ago

cdda-windows-tiles-x64-2024-08-26-1250 1 2

Same with the corpses of normal zombie