Repository navigation
v1.6.1
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 fromInterface.getVersion()in FGC Lua 5.1 (e.g."3.3.16") without type errors. - Actor Resolution Routing (
getActorSafe): Fixed single-argumentActorManager.getActor(v)returningnilin FGC by safely detecting FGC and routing toActorManager.resolveActor(v). Added nil guards fornodeCurrentCTActor. - Combat Tracker Nil-Safety: Added checks in
processEncumbranceForActorto safely exit ifsCreatureNodeis empty or unlinked, or ifnodeCharSheetcannot be resolved. - Idempotent Activation Hooking: Protected
CombatManager.requestActivationinonInit()against infinite recursion during/reload. - Comprehensive Test Suite: Expanded automated unit tests using
wasmooncoveringcheckFGC()permutations,getActorSafe()routing,/reloadidempotency, ruleset fallback, and nil-actor safety. - Portable Packaging: Rebuilt extension packaging script (
build_ext.ps1) to avoid bundling test/development binaries.