Comprehensive Stopwatch & Countdown Timer

OBS Lua Comprehensive Stopwatch & Countdown Timer 5.8

Please backup your old file before replacing it. Report any issues (:

REALLY IMPORTANT: The Hotkey names has changed since update 3.8, thus you will need to update (setup) your hotkeys again. Sorry for the inconvenience.

BUGS

- Fixed a signal handler crash due to an unloaded source
- Fixed a bug that triggered the Media when the timer was not active

This release brings one of the biggest updates yet. Some of it is a new feature or two, but mostly it delivers a service update of the script to improve stability and resolves some bugs.

REALLY IMPORTANT: The Script has been tested but there may be some bugs missed, please report them so they can be fixed. Also, somewhere along the road of developing this update I seemed to have accidently published an incomplete version that was avaibale to the public. To make sure you have the most recent release please download this file again. Last update Published / Released: 2022-10.05 15:15. Sorry for any confusion caused there.

Please backup your old file before replacing it. Report any issues (:


1687562055817.png


1687562071526.png


1687562382399.png


1687562427630.png


1687562395894.png


1687562437632.png


1687562493050.png


1687562719600.png


1687562740070.png


1687562782063.png


NEW FEATURES

- Added button Show / Hide Milliseconds (suggested by stickbug813)
- Added Time Stamp trigger for Show / Hide Milliseconds (suggested by stickbug813)
- Added Timer text output options (Still not convinvinced this makes sense)
- Added Hotkey for Show / Hide Milliseconds (suggested by stickbug813)
- Pause Media if timer is paused
- Added option to force visibility of the 'Active Source'

OPTIMIZATION

- OBS 28 Supported
- Rebuild timer text options
- Prevented unnecessary Callback Events
- Localized functions to reduce Globals clutter
- Renamed some functions to something more sensible
- Added and updated developer code comments
- Realigned function stacking order
- Renamed Hotkey references

USER EXPERIENCE & FEATURE ENHANCEMENTS
- Added tooltip for Next Scene list
- Added tooltip for Recording list
- Items listed in Cycle Sources list will ignore incorrectly referenced sources.
- User can now define the direction of Cycle Sources
- Cycle Sources (and toggle source visibility) with timer is now fully automated without third party plugins/scripts
- Cycle Sources now support Nested Scenes
- Added new Toggles for settings properties to hide or show certain settings

BUGS

- Fixed a Stack Overflow Crash produced by the Next Scene process.
- Fixed an issue that caused a timer feature to break.
- Fixed a critical memory leak for media sources that caused OBS to crash
- Fixed Media Playback time limit
- Fixed Split time outputs for Stopwatch

Thank you stickbug813 for your valuable feedback and feature suggestion.
Please backup your old file before replacing it. Report any issues (:

Recommended critical stability update. Thank you le_exp for the bug report.

Thank you Alekos Behrens for your valuable feedback and feature suggestion.

Added 1 New Feature:
  1. Start timer when Scene becomes active (Opt-In)
Please backup your old file before replacing it. Report any issues (:

Fixed (HotKey) Reset timer bug
Please backup your old file before replacing it. Report any issues (:

Fixed an issue where the previous version caused a bug with the countdown timer
Please backup your old file before replacing it. Report any issues (:

Thank you visability for your valuable feedback and feature suggestion.

Added 2 New Features for Stopwatch Mode only:
  1. Save last time stamp and load automatically when obs starts (Opt-In)
  2. Set time stamp manually
Please backup your old file before replacing it. Report any issues (:

Thank you pertzel for your valuable feedback and for reporting this bug.

Fixed:

Hotkey Registry Issue

Affected Hotkey Functions:
  1. Start/Pause
  2. Split
Please backup your old file before replacing it. Report any issues (:

Thank you DachsbauTV for your valuable feedback and feature suggestion.

Added 3 New Features:
  1. Backup Settings
  2. Import Settings
  3. Additional Timestamp formatting
Backup / Import Settings

Select a Folder location, any exported settings wil be stored in a json file and will be labled with the script name and a date/time stamp

To import a Settings file, the available files will be listed in a Drop-Down, select the required file and click the import button. IMPORTANT Please click the 'Reload Script' Icon to the bottom left of the script panel to refresh the settings.

iMPORT.png


Format Time Stamp

Timestamp is represented by
$D = day,
$H = hour,
$M = minute,
$S = second,
$F = split second.

To trim leading zeros, include $T = truncate leading zeros.
This will ONLY affect a format matching '$D:$H:$M:$S,$F' (00:00:00:00,00)

Format 1.png


The source code has undergone some optimization during this update and human fault during such a process is likely, please report any issues.
Please backup your old file before replacing it. Report any issues (:

Thank you wgp123 for your valuable feedback and feature suggestion.

Added New Feature:

- Warning and Caution Text Notes
  • Use two additional <text sources> one for each state.
  • The Warning & Caution notes may be styled individually to suit your needs through the text properties and custom filters,
The source code has undergone some optimization during this update and human fault during such a process is likely, please report any issues.

3.2.gif


3.2 a.png
Quality of life improvement.

This update hides the 'Active Source' control property until it is needed. It will now only be visible if the 'Timer Type' is set to 'Count Down' and is in 'Advanced Mode' and the 'Next Scene' property is set to 'Source List' or 'Scene List'
Top