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

Error in Shrink or Enlarge Token Size #334

Open
Gjjring opened this issue Nov 29, 2022 · 1 comment
Open

Error in Shrink or Enlarge Token Size #334

Gjjring opened this issue Nov 29, 2022 · 1 comment
Labels
broken macro bug Something isn't working help wanted Extra attention is needed

Comments

@Gjjring
Copy link

Gjjring commented Nov 29, 2022

Output from console:

Error: You are accessing PlaceableObject#data which is no longer used and instead the Document class should be referenced directly as PlaceableObject#document.
Deprecated since Version 10
Backwards-compatible support will be removed in Version 12
at Object.logCompatibilityWarning (commons.js:1692:19)
at Token5e.get (foundry.js:24741:23)
at Macro.eval (eval at _executeScript (foundry.js:20000:16), :7:50)
at Macro._executeScript (foundry.js:20002:17)
at Macro.execute (foundry.js:19957:21)
at Hotbar._onClickMacro (foundry.js:68047:20)
at HTMLLIElement.dispatch (jquery.min.js:2:43064)
at y.handle (jquery.min.js:2:41048)

@AnthonyVadala AnthonyVadala added broken macro help wanted Extra attention is needed labels Nov 29, 2022
@Broadway-afk
Copy link
Contributor

"data" is outdated field now for a many of foundry models, so you should just inspect parent of data field with browser console and figure out new field responsible for token size.

@AnthonyVadala AnthonyVadala added the bug Something isn't working label Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broken macro bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants