GithubHelp home page GithubHelp logo

Error Sending HP Update about beyond20 HOT 3 CLOSED

kakaroto avatar kakaroto commented on June 10, 2024
Error Sending HP Update

from beyond20.

Comments (3)

kakaroto avatar kakaroto commented on June 10, 2024

Ah, thanks for the report, it seems that the trick I used for doing that (using this 'd20' API object) is actually part of the VTT ES extension, not part of Roll20 itself.
Can you install it (from here) and confirm it fixes the issue for you ?
For now, I don't plan on finding an alternative way of doing this without that API, so I'll just update the FAQ to make that a requirement.

from beyond20.

jdenbroeder avatar jdenbroeder commented on June 10, 2024

I actually built a version using window.Campaign.characters instead (without the d20) and it seems to be working so far. That being said that extension looks useful so I'll probably check it out anyway.

from beyond20.

kakaroto avatar kakaroto commented on June 10, 2024

Oh, that's nice! Thanks for finding that.
So I had a look, and it seems the 'd20' variable has a lot more stuff than just d20.Campaign but in the Roll20 app.js, Roll20 does expose the Campaign with a window.Campaign = d20.Campaign.
What VTT ES does is to actually patch that file so it also exposes the d20 variable because it needs access to more stuff that are hidden internally. In our case, we only need the Campaign object so we're good!

from beyond20.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.