Thread: [Utility] Clock Adjuster
-
February 8th, 2025, 21:21 #491
I made some minor adjustments, hopefully it's working now.
screenshot0001.png
screenshot0002.pngKICK | TWITCH | YOUTUBE
BRAZILIAN
GMT-3
FANTASY GROUNDS UNITY - ULTIMATE VERSION
PLAYER ONLY
FORGE CREATOR
DND - Package | PFRPG2 - Package | Rolemaster (Classic) - Package | SW - Package | Traveller 2E - Package
-
February 9th, 2025, 04:18 #492
- Join Date
- Aug 2019
- Posts
- 33
Works now thanks so much!!!
-
February 18th, 2025, 13:23 #493
- Join Date
- Feb 2016
- Location
- Melbourne, Australia
- Posts
- 40
Hi there - I've only just started to use this extension but I'm sure it'll come in very handy... One thing I've noticed though is that the Calendar widget thingy is no longer displaying AM/PM next to the time. I figured it must be the theme I was using, tried a bunch of different ones and got the same result. Then I noticed the screenshots above didn't have them anymore either. Would be "nice to have" that back in the widget again - many thanks!
-
March 5th, 2025, 23:00 #494
Patriarch
- Join Date
- Feb 2017
- Location
- the seaside, UK
- Posts
- 487
Would it be possible for 'Just The Clock Adjuster' to still expire effects when it's used to move time forward by minute or hourly increments?
If you click for a short or long rest it does move game time forward and expires effects. But when double clicking to move time forward by my defined minutes/hours it seems to be moving calendar time forward but not actual game time, if that makes any sense, so doesn't count down or expire any effects?
The full Clock extension is working fine in this respect, but I'd much rather use JTCA, as I don't use any of the other bells and whistles and i like to keep things as streamlined as possible, especially as I use a lot of extensions (this was tested with only this extension active though).
Cheers,
Simon
-
March 16th, 2025, 18:37 #495
*** Updated with the fix in the code below ***
I have traced down a race condition with SilentRuin's GAL and the processing of "long term" effects in the advanceRoundsOnTimeChanged function in scripts/longtermeffects.lua.
If you adjust the clock by one minute and trigger the expiration (deletion) of a spell with associated NPC token from its GAL layer, above function still tries to list this token (on CT_LIST) and its effects - which will fail with an error as the token is gone.
Following lines in blue must be added in the function - perhaps someone maintaining the source code can please update it.
Code:function advanceRoundsOnTimeChanged(nRounds) if nRounds and nRounds > 0 then for _,nodeCT in pairs(DB.getChildren(CombatManager.CT_LIST)) do if type(nodeCT) ~= "error" then for _,nodeEffect in pairs(DB.getChildren(nodeCT, 'effects')) do local nActive = DB.getValue(nodeEffect, 'isactive', 0); if nActive ~= 0 then local nodeActor = nodeEffect.getChild('...'); local nDuration = DB.getValue(nodeEffect, 'duration'); local bHasDuration = (nDuration and nDuration ~= 0); if bHasDuration and (nDuration <= nRounds) then EffectManager.expireEffect(nodeActor, nodeEffect); elseif bHasDuration then DB.setValue(nodeEffect, 'duration', 'number', nDuration - nRounds); end end end end end return true; end end
Last edited by Arnagus; Yesterday at 15:11. Reason: Providing fix for issue
-
March 19th, 2025, 20:58 #496
- Join Date
- Nov 2018
- Posts
- 53
Hey there! Just downloaded your version of the extension to update mine, and I've come across an issue with the weather checker. Has the function been removed? This version causes an error message to pop up.
noweather.png
-
March 20th, 2025, 02:35 #497
I will take a look soon.
KICK | TWITCH | YOUTUBE
BRAZILIAN
GMT-3
FANTASY GROUNDS UNITY - ULTIMATE VERSION
PLAYER ONLY
FORGE CREATOR
DND - Package | PFRPG2 - Package | Rolemaster (Classic) - Package | SW - Package | Traveller 2E - Package
-
March 21st, 2025, 00:34 #498
- Join Date
- Nov 2018
- Posts
- 53
-
March 21st, 2025, 22:29 #499
It is worth remembering that the clock Adjuster in this topic is different from the one I created.
KICK | TWITCH | YOUTUBE
BRAZILIAN
GMT-3
FANTASY GROUNDS UNITY - ULTIMATE VERSION
PLAYER ONLY
FORGE CREATOR
DND - Package | PFRPG2 - Package | Rolemaster (Classic) - Package | SW - Package | Traveller 2E - Package
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks