Repository navigation
Releases: JustinFreitas/EncumbranceTracker
Releases · JustinFreitas/EncumbranceTracker
Release list
v1.6.2
Option Queries & Reliability
- Options Database Fallback: Added database fallback lookup (
DB.getValue("options.EC_ENCUMBRANCE_OPT")) whenOptionsManager.getOptionreturnsnilin async or uninitialized states. - PC-Exclusive Scope: Preserved strict PC-exclusive encumbrance calculation, skipping CT NPCs by design.
- Dual FGC/FGU Compatibility: Retained complete dual-engine compatibility and idempotent
/reloadlifecycle hooks.
Packaging & Testing
- Automated Unit Testing: Expanded test suite in
test/run_tests.jsto 25 assertions running under Lua 5.1 inwasmoon. - Modern Packaging Script: Added
build/package.ps1with Unix forward-slash entry headers and Forge-formattedreadme.txt.
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.
v1.6
v1.6
Bug fixes and lint cleanup.
- Guard against nil actors before dereferencing the creature node.
- Treat a 0 multiplier (e.g. the "No Encumbrance" trait) as exempt rather than over-encumbered, and clear stale effects when exempt.
- Clear stale encumbrance effects when an actor's load can no longer be determined.
- Remove unused dead code; luacheck baseline is now clean.
- Backfill v1.4/v1.5 changelist entries.
Installation: download EncumbranceTracker.ext and place it in your Fantasy Grounds extensions folder.
v1.2.2
Merge pull request #4 from JustinFreitas/v1.2.2 v1.2.2
v1.2.1
Updated icon using Sir Motte's template for their dark theme. Got rid of the crossed out eye icon in the chat message to save space.
v1.2
Added an option to disable the use of effects, if desired. Defaults to enabled/on.
v1.1
Better turn order firing in combat. Formatting improvements. Bug fixes. Strength less than zero filtered out.