Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 this issue Jul 28, 2024 · 7 comments
Labels
Monsters Monsters both friendly and unfriendly. (S2 - Confirmed) Bug that's been confirmed to exist SDL: Tiles / Sound Tiles visual interface and sounds.

Comments

@Karol1223
Copy link
Contributor

Karol1223 commented Jul 28, 2024

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

  • OS: Windows
    • OS Version: 10.0.22631.3880 (23H2)
  • Game Version: 0.G-10799-gcaff33e8a8-dirty [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]
    ]

Additional context

No response

@Karol1223 Karol1223 added the (S1 - Need confirmation) Report waiting on confirmation of reproducibility label Jul 28, 2024
@Karol1223 Karol1223 changed the title Items with IDs that start the same way an autogenerated corpse ID was to start will sometimes display the fallback corpse sprite Corpses will sometimes display the fallback corpse sprite even if they have one properly set for themselves Jul 28, 2024
@Karol1223
Copy link
Contributor Author

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
Copy link
Contributor

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: a1bce17), 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: a334d3d), 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
Copy link
Member

GuardianDll commented Jul 29, 2024

GIF_28-07-2024_13-43-13

@GuardianDll GuardianDll added (S2 - Confirmed) Bug that's been confirmed to exist and removed (S1 - Need confirmation) Report waiting on confirmation of reproducibility labels Jul 29, 2024
@GuardianDll
Copy link
Member

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

@inogenous
Copy link
Contributor

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

const float distance = is_isometric() ? o.distance( pos.xy() ) :
point( static_cast<int>( o.x + ( screentile_width / 2.0f ) ),
static_cast<int>( o.y - 1 + ( screentile_height / 2.0f ) ) ).distance( pos.xy() );

@GuardianDll
Copy link
Member

GuardianDll commented Jul 30, 2024

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

@Karol1223 Karol1223 added SDL: Tiles / Sound Tiles visual interface and sounds. Monsters Monsters both friendly and unfriendly. labels Jul 30, 2024
@Karol1223 Karol1223 changed the title Corpses will sometimes display the fallback corpse sprite even if they have one properly set for themselves Corpses will sometimes display the fallback corpse sprite even if they have one properly set for themselves / Monsters alternate between available sprites Jul 31, 2024
@IdleSol
Copy link
Contributor

IdleSol commented Aug 26, 2024

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

Same with the corpses of normal zombie

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Monsters Monsters both friendly and unfriendly. (S2 - Confirmed) Bug that's been confirmed to exist SDL: Tiles / Sound Tiles visual interface and sounds.
Projects
None yet
Development

No branches or pull requests

5 participants