Skip to content

Reapplying livepose on re-appearing character, when applied via IPC #96

@yfthbr

Description

@yfthbr

Scenario:

  1. Other player has livepose applied via IPC (register)
  2. Other player is removed from the game object table by the game (zone change, etc.)
  3. Other player is re-added to the game object table by the game
  4. Other player has livepose applied via IPC again (register)

In this scenario heels maintains memory of the old tags and skips calling _tagChanged => livepose does not get the message to apply the pose to the newly rendered game object.

The other plugin using the IPC cannot call unregister, when derendered, as the gameobject is gone.

Is the expectation to call unregister followed by register again when the player re-appears, or would this be better fixed on heels end by letting livepose know when a managed player becomes visible again? The latter feels more correct to me to avoid unnecessarily undoing and redoing heels offsets (including temporary), which do work correctly.

The attached patch makes it work, but I'm unsure if it is a workable solution. A new call from heels from livepose may be better suited to this than triggering a tag change for all listeners in general, or it may be more appropriate for livepose to be detecting when to reapply on its own.

heels-livepose.patch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions