CleverRaven / Cataclysm-DDA

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

Friendly NPCs go neutral on death #50649

Open Priapism69 opened 3 years ago

Priapism69 commented 3 years ago

Describe the bug

When a character dies, all NPCs are listed at death, and made neutral. This happens even when the NPCs aren't "for" that character, but another character in the same world. Build 2021-08-03-0939

Steps To Reproduce

  1. Create 2 characters in the same world.
  2. Befriend an NPC on 1 character.
  3. Kill/suicide the other character.
  4. Remaining character no longer has NPC as an ally.

Expected behavior

NPCs should be tied to the character who recruited them, or NPCs should be tied to any or all characters in the world.

Screenshots

No response

Versions and configuration

Additional context

No response

Priapism69 commented 3 years ago

Update, out of 6 friendly NPCs, 5 required a mission to be completed for them (mandatory like neutral NPCs). Maybe coincidence or not, The missions were Jabberywocky x 3 and Inhaler x 2. All 6 NPCs had to be recruited like normal after completing the mission. (For anyone looking at all my edits, the NPCs seemed to be back to normal because I had left them on guard when they bugged out so they back to guard, once they are spoken to again, that's when they have to be recruited.) Update 2, the one NPC with no mission, that had been set to guard before the bugging, is stuck in a permanent loop of guarding. If you him to follow, he says he will, then immediately go back to guarding.

hexagonrecursion commented 3 years ago

Can not reproduce. Please open the affected world, press escape, select "debug menu", select "info", select "generate game report". This should copy the information about the game version into the clipboard. Please post it here. Example:

If you can reproduce this bug, please attach a save file in a state where killing one character will trigger the bug.

Priapism69 commented 3 years ago
Priapism69 commented 3 years ago

I have tried reproducing it. I am unable to. I had it happen on 2 different worlds when I suicided old characters to clean up the world of as many characters. I guess it has to do with both worlds being made before the release of 0.F.

actual-nh commented 3 years ago

I've marked this as P5 - Long-term as something to check with the next migration validations.

Priapism69 commented 3 years ago

I was able to get a save in the exact spot where if you kill one character, another character's NPCs go neutral. I don't know what save file you would need. I tried to attach the folder with the saved world, but it wouldn't allow me. I've only messed with the whole folders not individual files before, so which ones do you need? Is it master.gsav or is it something else?

hexagonrecursion commented 3 years ago

Zip the whole save folder up, upload it somewhere and post a link.

Priapism69 commented 3 years ago

https://drive.google.com/file/d/1yj0NkeafAotbLYsZ8HvAIBNYdhhckAnp/view?usp=sharing Killed Doomed and Rick's NPCs go neutral. (the 5 in a line below him, the sixth one is the bugged one stuck guarding)

hexagonrecursion commented 3 years ago

Confirmed using the above save file

friendly neutral

"No name" is because I don't have useful_helicopters