Skip to content

Releases: JustinFreitas/EncumbranceTracker

v1.6.2

Choose a tag to compare

@github-actions github-actions released this 21 Oct 23:18

Option Queries & Reliability

  • Options Database Fallback: Added database fallback lookup (DB.getValue("options.EC_ENCUMBRANCE_OPT")) when OptionsManager.getOption returns nil in 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 /reload lifecycle hooks.

Packaging & Testing

  • Automated Unit Testing: Expanded test suite in test/run_tests.js to 25 assertions running under Lua 5.1 in wasmoon.
  • Modern Packaging Script: Added build/package.ps1 with Unix forward-slash entry headers and Forge-formatted readme.txt.

v1.6.1

Choose a tag to compare

@github-actions github-actions released this 13 Sep 19:34

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.

v1.6

Choose a tag to compare

@JustinFreitas JustinFreitas released this 12 Jun 01:22

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

Choose a tag to compare

@JustinFreitas JustinFreitas released this 08 Jul 15:08
aaf66f1
Merge pull request #4 from JustinFreitas/v1.2.2

v1.2.2

v1.2.1

Choose a tag to compare

@JustinFreitas JustinFreitas released this 03 Jul 23:21
e7e11e6

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

Choose a tag to compare

@JustinFreitas JustinFreitas released this 19 Jun 01:10
f250c4c

Added an option to disable the use of effects, if desired. Defaults to enabled/on.

v1.1

Choose a tag to compare

@JustinFreitas JustinFreitas released this 20 May 23:25
15e523c

Better turn order firing in combat. Formatting improvements. Bug fixes. Strength less than zero filtered out.