Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi Level Tokens non-viewed scene issue #27

Open
kandashi opened this issue Apr 11, 2021 · 1 comment
Open

Multi Level Tokens non-viewed scene issue #27

kandashi opened this issue Apr 11, 2021 · 1 comment

Comments

@kandashi
Copy link

kandashi commented Apr 11, 2021

static async updateAttachedCreatedToken(type, parent, entity, options, userId){
if(!TokenAttacher.isFirstActiveGM()) return;
const token = canvas.tokens.get(entity._id);

this fails to aquire the token when this is called on a new-viewed scene

@Nordiii
Copy link

Nordiii commented Apr 27, 2021

My consol throws a few Errors with Multi level token enabled:

    UpdateAttachedOfToken token-attacher.js:476
    registerHooks token-attacher.js:189
    updateToken libWrapper-errors.js:190
    _call foundry.js:2496
    call_wrapped libWrapper-wrapper.js:441
    <anonymous> libWrapper-errors.js:202
    0 libWrapper-wrapper.js:142
    callAll foundry.js:2456
    _handleUpdateEmbeddedEntity foundry.js:30047
    _handleUpdateEmbeddedEntity foundry.js:34301
    updateEmbeddedEntity foundry.js:30015
    promise multilevel.js:704
    promise callback*_execute multilevel.js:704
    batched multilevel.js:760
    _queueAsync multilevel.js:768
    _onUpdateToken multilevel.js:1591
    updateToken libWrapper-errors.js:190
    _call foundry.js:2496
    call_wrapped libWrapper-wrapper.js:441
    <anonymous> libWrapper-errors.js:202
    0 libWrapper-wrapper.js:142
    callAll foundry.js:2456
    _handleUpdateEmbeddedEntity foundry.js:30047
    _handleUpdateEmbeddedEntity foundry.js:34301
    activateSocketListeners foundry.js:29410
    emit socket.io.slim.js:6
    onevent socket.io.slim.js:8
    onpacket socket.io.slim.js:8
    exports socket.io.slim.js:8
    emit socket.io.slim.js:6
    ondecoded socket.io.slim.js:6
    exports socket.io.slim.js:8
    emit socket.io.slim.js:6
    add socket.io.slim.js:6
    ondata socket.io.slim.js:6
    exports socket.io.slim.js:8
    emit socket.io.slim.js:6
    onPacket socket.io.slim.js:6
    setTransport socket.io.slim.js:6
    emit socket.io.slim.js:6
    onPacket socket.io.slim.js:7
    onData socket.io.slim.js:7
    onmessage socket.io.slim.js:8```

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants