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

NWNX_Player_PossessCreature: PC irreversibly corrupted if Effect Removed #1685

Open
Christian-Vassallo opened this issue Jul 24, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Christian-Vassallo
Copy link

It seems a critical bug: once possessed the creature, in case all the effects are removed, the player is locked inside the PNG.
The player is able to see the list of all the PNG (same faction) as in the group, the PNG can level up (if it is done, there is a segmentation fault of the server) and if logout the .bic file is corrupted and overrided with the PNG schedule.
This is more or less the previous behavior of dominate a PNG but in NWNX 1.69.

How to test:

  1. dominate a creature
  2. run a script in which all the effects are removed
    eassssy example to put in PCChat event
    effect e = GetFirstEffect(oPC); while(GetIsEffectValid(e)) { RemoveEffect(oPC, e); e = GetNextEffect(oPC); }

The result should be something like that
https://i.postimg.cc/L5yHyPSz/image.png

Thanks

@Christian-Vassallo
Copy link
Author

EDIT:

A solution from scripting side can be done by exploiting the NWNX_ON_EFFECT_REMOVED_BEFORE.
Indeed, it is possible to check if the creature is possessed and then UnpossessFamiliar.

@Christian-Vassallo Christian-Vassallo changed the title NWNX_PossessCreature NWNX_PossessCreature: PC corrupted if Effect Removed Jul 24, 2023
@Christian-Vassallo Christian-Vassallo changed the title NWNX_PossessCreature: PC corrupted if Effect Removed NWNX_Player_PossessCreature: PC corrupted if Effect Removed Jul 24, 2023
@Christian-Vassallo Christian-Vassallo changed the title NWNX_Player_PossessCreature: PC corrupted if Effect Removed NWNX_Player_PossessCreature: PC irreversibly corrupted if Effect Removed Jul 24, 2023
@Daztek Daztek added the bug Something isn't working label Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants