Thread: Timer
-
April 22nd, 2024, 22:40 #21
- Join Date
- Nov 2018
- Posts
- 21
Hey there, love the extension (my campaigns have an actual passage of time now!), was just wondering if there's any possibility of compatability with the Better Menus extension? I love how much more convenient Better Menus has been, but it seems like your timer doesn't support it. According to the OP, instructions on how to work with it are included.
-
April 28th, 2024, 12:42 #22
Hi! I have a weird issue with this extension: it's... weird. I mean, the timer does work, but only by multiples of 4 seconds. It doesn't show 00:01, 00:02, 00:03, 00:04, 00.05" in sequence, it only goes "00:04, 00:08, 00:12" and so on. It kinda works anyways but it's weird.
-
April 28th, 2024, 16:10 #23
In the Options, make sure you have 'Default URL' selected for the 'CT: Timer URL option'.
Here is a screenshot of the option.
The localhost setting is for a different configuration that can result in the 4 second interval when not set up properly.
Hope this helps!
-
April 28th, 2024, 22:27 #24
-
August 23rd, 2024, 00:01 #25
- Join Date
- Mar 2020
- Posts
- 540
When I use the timer it appears to stop working in the middle of our session.
-
August 23rd, 2024, 00:40 #26
webdove It's true, I even made a video showing it seems to lose sync and I even asked if it would be possible to insert a pause, because I use it together with the Clock Adjuster and I would like to continue where I left off and not reset the timer. I thought about using localhost, but with it the time keeps counting every 4 seconds...
TWITCH | YOUTUBE
BRAZILIAN
GMT-3
FANTASY GROUNDS UNITY - ULTIMATE VERSION
PLAYER ONLY
FORGE CREATOR
Core RPG - Package | PFRPG2 - Full Mode Map | Rolemaster (Classic) - Package | Rolemaster (Classic) - Shopping Stores
-
August 23rd, 2024, 02:12 #27
Hi.
This is a little more advanced and requires some knowledge about Node.js and JavaScript... but I wanted to give the information on how to do it in case people are up to the challenge.
When the localhost setting is enabled and you are hosting a local webserver on port 1803, the timer will stay in sync and no internet traffic will be needed to do so (because you are doing it all locally). So you can install Node.js and use it to create a local webserver that serves this purpose for the timer.
Here is an animated gif demonstrating it working (click this link to see).
Here's the JavaScript code that I have in a file named delayed-response.js that I run with Node using the command line 'node delayed-response.js' when you have Node.js installed. I hope it helps someone, good luck.
const http = require('http');
const PORT = 1803;
const delayMs = 1000;
const server = http.createServer((req, res) => {
setTimeout(() => {
res.writeHead(200);
res.end();
console.log(`Server is responding on port ${PORT}: ${new Date()}`);
}, delayMs);
});
server.listen(PORT, () => {
console.log(`Server is listening on port ${PORT}. Started: ${new Date()}`);
});Last edited by JustinFreitas; August 23rd, 2024 at 02:22.
-
August 23rd, 2024, 02:54 #28
- Join Date
- Mar 2020
- Posts
- 540
Works for me
node delayed-response.js
Server is listening on port 1803. Started: Thu Aug 22 2024 21:49:06 GMT-0400 (Eastern Daylight Time)
Server is responding on port 1803: Thu Aug 22 2024 21:51:15 GMT-0400 (Eastern Daylight Time)
Server is responding on port 1803: Thu Aug 22 2024 21:51:16 GMT-0400 (Eastern Daylight Time)
...
Thanks very much!
-
August 23rd, 2024, 02:55 #29
-
August 23rd, 2024, 07:47 #30
Unfortunately I'm not a programmer so I have no idea how to insert this code into the extension and as an employee in sessions with other connected players it would use my local clock to synchronize the elapsed time for the other players and taking the opportunity to ask would it be possible to add a pause to be able to freeze the elapsed time and then take this pause when returning at another time to the game session with the previously elapsed time?
TWITCH | YOUTUBE
BRAZILIAN
GMT-3
FANTASY GROUNDS UNITY - ULTIMATE VERSION
PLAYER ONLY
FORGE CREATOR
Core RPG - Package | PFRPG2 - Full Mode Map | Rolemaster (Classic) - Package | Rolemaster (Classic) - Shopping Stores
Thread Information
Users Browsing this Thread
There are currently 2 users browsing this thread. (0 members and 2 guests)
Bookmarks