Skip to content

v1.6.1

Choose a tag to compare

@github-actions github-actions released this 13 Sep 19:34
· 1 commit to master since this release

EncumbranceTracker v1.6.1

EncumbranceTracker v1.6.1 restores seamless dual compatibility for both Fantasy Grounds Classic (FGC) and Fantasy Grounds Unity (FGU) from a single unified codebase.

What's Changed

  • Dual FGC/FGU Compatibility (checkFGC): Reintroduced resilient platform detection handling string returns from Interface.getVersion() in FGC Lua 5.1 (e.g. "3.3.16") without type errors.
  • Actor Resolution Routing (getActorSafe): Fixed single-argument ActorManager.getActor(v) returning nil in FGC by safely detecting FGC and routing to ActorManager.resolveActor(v). Added nil guards for nodeCurrentCTActor.
  • Combat Tracker Nil-Safety: Added checks in processEncumbranceForActor to safely exit if sCreatureNode is empty or unlinked, or if nodeCharSheet cannot be resolved.
  • Idempotent Activation Hooking: Protected CombatManager.requestActivation in onInit() against infinite recursion during /reload.
  • Comprehensive Test Suite: Expanded automated unit tests using wasmoon covering checkFGC() permutations, getActorSafe() routing, /reload idempotency, ruleset fallback, and nil-actor safety.
  • Portable Packaging: Rebuilt extension packaging script (build_ext.ps1) to avoid bundling test/development binaries.