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

Character sheet not opening correctly due to item validation errors #4501

Closed
penumbraldragon opened this issue Oct 3, 2024 · 5 comments
Closed
Assignees
Labels
bug Functionality which is not working as intended
Milestone

Comments

@penumbraldragon
Copy link

fvtt-Actor-yojimbo-nzGuolCUJmkILMEJ.json

This is the sheet in question. I tried checking in the foundry discord for assistance, they said to submit a ticket. The character sheet appears to fail to open because the character has both resistance and immunity to force damage. I have no idea what I'm doing, but I can provide any information that could help.

@JPMeehan
Copy link
Contributor

JPMeehan commented Oct 3, 2024

Stepped through the debugger in a more thorough fashion; I was mistaken it's not about force damage it seems to be related to concentration

image

@JPMeehan
Copy link
Contributor

JPMeehan commented Oct 3, 2024

This seems to suggest there's a bad migration for concentration effects

@krbz999
Copy link
Contributor

krbz999 commented Oct 3, 2024

That would explain why disabling the effects had no effect. There was a related change here in v4.0.4.

@krbz999
Copy link
Contributor

krbz999 commented Oct 18, 2024

The repro steps are pretty simple.

  • Be on 4.0.3.
  • Concentrate on a spell. (Might need to be a scroll that is then deleted.
  • Update to 4.0.4 or later.
  • Attempt to render actor sheet.

This was probably caused by #4446.

@krbz999
Copy link
Contributor

krbz999 commented Nov 13, 2024

The temporary fix here is to delete all effects on the actor that are for tracking concentration.

const actor = game.actors.getName("<actor name>");

for (const effect of actor.effects) 
  if (effect.statuses.has("concentrating"))
    await effect.delete();

@arbron arbron added this to the D&D5E 4.1.2 milestone Nov 13, 2024
@arbron arbron added the bug Functionality which is not working as intended label Nov 13, 2024
@arbron arbron self-assigned this Nov 13, 2024
@arbron arbron closed this as completed in 946e5f2 Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Functionality which is not working as intended
Projects
None yet
Development

No branches or pull requests

4 participants