Template:FAQ InitTracker

From 5etools Community Wiki
Jump to: navigation, search

Can I run the Initiative tracker Locally (offline)

Simple Answer, NO.
Honest Answer, Yes. But, its more complicated than most can do.
It requires a "satellite" server to bounce the initial handshake off, and you could [ https://github.com/peers/peerjs-server | run the server yourself].
You will need go into the site's js/utils-p2p.js to change.
class PeerVe extends Peer {
   constructor (role) {
        super();
    ...
over to
class PeerVe extends Peer {
    constructor (role) {
        super(CryptUtil.uid(), {host: "localhost", port: 9000, path: "/myapp"});
    ...
(Where the host/port/path are as specified in the README on [ https://github.com/peers/peerjs-server |that server's GitHub repository].
TL;DR - it requires (a) a LAN, (b) you running a PeerJS server on that LAN, and (c) tweaking some locally hosted version of 5etools code to point at your personal PeerJS server.