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

Grab messages may be inaccurate and subject is blank #67290

Closed
NetSysFire opened this issue Jul 30, 2023 · 9 comments · Fixed by #70244
Closed

Grab messages may be inaccurate and subject is blank #67290

NetSysFire opened this issue Jul 30, 2023 · 9 comments · Fixed by #70244
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Help Wanted Not particularly urgent or easy (see Good First Issue for this), but help is appreciated with this! Limbs Limbs, mutable limbs, and code related to them. Melee Melee weapons, tactics, techniques, reach attack (S2 - Confirmed) Bug that's been confirmed to exist

Comments

@NetSysFire
Copy link
Member

NetSysFire commented Jul 30, 2023

Describe the bug

image

Attach save file

Backrooms-trimmed.tar.gz

Steps to reproduce

  1. Bash the fat zombie with your fists.
  2. The entire chain of messages is weird overall.

image

Edit: I can reliably reproduce this with the same save and same fat zombie, it is not a single grab that is wonky.

Expected behavior

Right arm was grabbed. Right arm got broken free from the grab.

CC @Venera3 as I know they have been working on grabs.

Screenshots

No response

Versions and configuration

  • OS: Linux
    • OS Version: LSB Version: n/a; Distributor ID: Arch; Description: Arch Linux; Release: rolling; Codename: n/a;
  • Game Version: 5cca213 [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],
    The Backrooms [backrooms]
    ]

Additional context

No response

@NetSysFire NetSysFire added (S1 - Need confirmation) Report waiting on confirmation of reproducibility [C++] Changes (can be) made in C++. Previously named `Code` Limbs Limbs, mutable limbs, and code related to them. labels Jul 30, 2023
@Karol1223
Copy link
Contributor

If I could confirm I would, because I ran into this multiple times casually while playing as well. So uh yeah, when people who can confirm see this feel free to take my word for it

@SurFlurer
Copy link
Contributor

/confirm

@github-actions github-actions bot added (S2 - Confirmed) Bug that's been confirmed to exist and removed (S1 - Need confirmation) Report waiting on confirmation of reproducibility labels Jul 30, 2023
@Venera3
Copy link
Member

Venera3 commented Jul 30, 2023

That's a bit of a concern. I'm away for a few weeks but I'll check it out afterwards.
ETA: the grab->bp assignment was reworked in #66732, so watch me kick it forward to @bombasticSlacks ;)

@bombasticSlacks
Copy link
Contributor

I'll put this on the list, but I too am away for a few weeks (on and off).

@Procyonae
Copy link
Contributor

This doesn't seem specific to grabs I just had it after running into some spider while debug testing
image

@NetSysFire NetSysFire added the Melee Melee weapons, tactics, techniques, reach attack label Jul 30, 2023
@NetSysFire
Copy link
Member Author

@Procyonae Are these weird messages considered expected or are they broken and I should open a seperate issue for this?

@AzyWng
Copy link
Contributor

AzyWng commented Jul 30, 2023

I don't have any screenshots or other proof, but I can say that in my own experience, the "in the X but do no damage" seems to show up whenever one, well
Attacks an enemy and hits but doesn't damage them.

@Procyonae
Copy link
Contributor

@Procyonae Are these weird messages considered expected or are they broken and I should open a seperate issue for this?

I mean they appear to be the same issue or at least very related so I wouldn't open a second issue. Getting a message about not dealing damage is normal but the subject being blank obviously isn't expected

@NetSysFire NetSysFire changed the title Grab messages may be inaccurate Grab messages may be inaccurate and subject is blank Jul 30, 2023
@NetSysFire NetSysFire added the Help Wanted Not particularly urgent or easy (see Good First Issue for this), but help is appreciated with this! label Sep 4, 2023
@inogenous
Copy link
Contributor

Debugging a case of the following:

The fat zombie grabs your right arm!
You break the fat zombie's grab on your right leg!

(different bodyparts)

The following happens:

  1. A grab effect is added for "right leg" bodypart at https://github.com/CleverRaven/Cataclysm-DDA/blob/cdda-experimental-2023-09-22-1817/src/mattack_actors.cpp#L574
  2. Another grab effect is added for "right arm" bodypart at https://github.com/CleverRaven/Cataclysm-DDA/blob/cdda-experimental-2023-09-22-1817/src/mattack_actors.cpp#L865
  3. In Creature::add_effect, there is a check for whether the player already has a grab effect, making step 2 have no effect. Instead, the grab from step 1 is still present.
  4. The bodypart in step 2 ("right arm") is what is displayed as a message, a few lines before the effect is added: https://github.com/CleverRaven/Cataclysm-DDA/blob/cdda-experimental-2023-09-22-1817/src/mattack_actors.cpp#L858
  5. When breaking free, the bodypart from step 1 ("right leg") is used for the displayed message.

Unsure if this means that the zombie gets two opportunities for grabs, both in step 1 and step 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[C++] Changes (can be) made in C++. Previously named `Code` Help Wanted Not particularly urgent or easy (see Good First Issue for this), but help is appreciated with this! Limbs Limbs, mutable limbs, and code related to them. Melee Melee weapons, tactics, techniques, reach attack (S2 - Confirmed) Bug that's been confirmed to exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants