Dungeons & Dragons 2024 Core Rulebooks Pre-Order
Page 3 of 3 First 123

Thread: Timer

  1. #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.

  2. #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.

  3. #23
    Quote Originally Posted by Asgurgolas View Post
    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.
    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!

  4. #24
    Quote Originally Posted by JustinFreitas View Post
    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!
    Yes, it works! Thank you!

  5. #25
    When I use the timer it appears to stop working in the middle of our session.

  6. #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...

  7. #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.

  8. #28
    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!

  9. #29
    Quote Originally Posted by webdove View Post
    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!
    YAY!! Nice work!

  10. #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?

Page 3 of 3 First 123

Thread Information

Users Browsing this Thread

There are currently 4 users browsing this thread. (0 members and 4 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DICE PACKS BUNDLE

Log in

Log in