Skip to content

Releases

v0.10.2

Choose a tag to compare

@github-actions github-actions released this 15 Jun 19:44

Automated release for v0.10.2

v0.10.1

Choose a tag to compare

@github-actions github-actions released this 15 Jun 04:22

Automated release for v0.10.1

v0.10.0

Choose a tag to compare

@github-actions github-actions released this 15 Jun 03:57

Automated release for v0.10.0

v0.9.9

Choose a tag to compare

@github-actions github-actions released this 12 Jan 18:57

Automated release for v0.9.9

v0.9.8

Choose a tag to compare

@github-actions github-actions released this 12 Jan 18:08

Automated release for v0.9.8

v0.9.7

Choose a tag to compare

@github-actions github-actions released this 12 Jan 17:48
Fix Mixed Content error by using dynamic WebSocket protocol

v0.9.6

Choose a tag to compare

@github-actions github-actions released this 25 Dec 21:08
Fix workflow permissions and bump version to 0.9.6

Beta Release 4

Choose a tag to compare

@fynflood fynflood released this 29 May 23:10
  • Added GM Overlay persistence
  • Touched up come touch/drag movement
  • Added the python bits for the TV

Beta Release 3

Choose a tag to compare

@fynflood fynflood released this 25 May 17:29
v0.9.2

version bump

Beta 2 Release

Choose a tag to compare

@fynflood fynflood released this 24 May 16:44
  • Feature: Automatic Dedicated User Creation:
    • Implemented ensureDedicatedUserExists() function that checks if the configured dedicated player username exists.
    • If the user does not exist, it programmatically creates the user with a "Player" role (and no password).
    • This function is now called by launchOrFocusPlayerView() before attempting to open the player window, ensuring the target user is available.
    • Includes error handling and notifications for user creation success/failure.
  • Fix: Overlay First-Click Visibility (Auto-Calibration Interaction):
    • Modified toggleGMOverlay() to correctly handle the initial visibility state when auto-calibration runs on the first open. The overlay should now appear on the first click as intended, even if auto-calibrated.
  • Fix: Splash Screen Button Highlight & GM Overlay Preview:
    • Ensured CSS and JavaScript logic for highlighting the "Toggle Splash Image" button when the splash is active on the player view is functional.
    • Ensured the GM's overlay correctly displays a semi-transparent preview of the splash image and updates its border/background to indicate the player's splash screen status. This was a refinement of CSS and DOM structure within toggleGMOverlay and renderGMOverlayFromCanvasState.
  • Fix: Overlay Header and Controls Styling:
    • Adjusted CSS (injectGMOverlayCSS) and DOM creation in toggleGMOverlay for the overlay header (#irlmod-gm-overlay-header) to ensure the title and close button are correctly positioned (close button on the far right). This involved using a separate span for the title and refining flexbox/absolute positioning properties.
    • Confirmed z-indexing for overlay components to prevent elements from incorrectly obscuring each other.
  • Refinement: Settings Registration for playerPerformanceMode:
    • Ensured the choices in game.settings.register for playerPerformanceMode use direct localization keys (e.g., "IRLMOD.performanceModes.high") for better compatibility with Foundry's settings UI localization. (This was actually fixed in v36.5/v36.6 but is part of this stable state).
  • Refinement: Default TV Settings:
    • Updated default values for tvPhysicalWidthInches to 43 and tvResolutionWidthPixels to 3840 to better match a common 43" 4K TV setup. (This was introduced around v35.1/v36 but is part of this stable state).
  • General Code Structure: Maintained the structure of defining all functions before they are called by hooks to prevent ReferenceError issues.

player-client.js - Changelog for v2.59.5 (WSS Support & Performance Mode Fix)

  • Feature: WSS (Secure WebSocket) Support for Pi Connection:
    • Modified connectToPiServer() to dynamically choose between ws:// and wss:// based on the protocol of the current Foundry VTT page (window.location.protocol).
    • If the Foundry page is loaded via HTTPS, it will attempt to connect to the Pi server using WSS.
  • Fix: Performance Mode Setting Application (applyPlayerPerformanceMode):
    • Resolved the "NaN is not a valid choice" error.
    • The function now correctly retrieves the string key (e.g., "high", "maximum") for the desired performance mode from module settings.
    • It validates this key against a list of known valid performance mode strings.
    • It attempts to set the core.performanceMode client setting using this validated string (e.g., game.settings.set("core", "performanceMode", "maximum")).
    • It additionally attempts to directly set canvas.performance.mode using the corresponding numerical constant from CONST.CANVAS_PERFORMANCE_MODES for more immediate effect.
    • Improved logging to track the desired mode, current mode, and the outcome of setting the mode.
  • Fix: canvas is not defined Error on Script Load:
    • Removed direct canvas references from global constant definitions (e.g., PI_MULTI_TOUCH_DIST_SQ_FALLBACK). Calculations dependent on canvas.grid.size are now done locally within functions where canvas is guaranteed to be available.
  • Refinement: Touch Interaction Logic (from v2.55 baseline):
    • Maintained the "rollback" of the drag finalization timeout, prioritizing the "lift and replace to select/deselect" feel and server updates only on explicit touch_up.
    • Retained the client-side jitter filter (PI_MOVE_JITTER_THRESHOLD_PX) and the basic "legs" debounce (PI_MULTI_TOUCH_DEBOUNCE_MS).
    • Retained the pause check to prevent token movement when the game is paused.
  • General Code Structure: All function definitions are placed at the top of the script before hook registrations to prevent ReferenceError issues during initialization.

These changelogs reflect the culmination of our recent debugging and feature implementation efforts, aiming for a stable and functional version for your play session.