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

V12: Error in chat display. Monster attack shows no results (bug with Roll#evaluate?) #455

Open
5 tasks done
KarstenW76 opened this issue Sep 28, 2024 · 0 comments
Open
5 tasks done
Labels
bug Issues pertaining to bugs

Comments

@KarstenW76
Copy link

Describe the bug

In Version 11 the results of a Monster Attack where shown in the chat.

Even in a complete blank new world without use of any modules, now in v12 I see no entry after DICE, DAMAGE, RANGE, TYPE anymore.
The second chat window shows the correct dice results, as before.
Please see screenshot

Bildschirmfoto 2024-09-28 um 20 11 17

Reproduction

Open a Monster sheet with minimum one attack assigned (existing monster a new new created) and click on "Attacks" for execution. Then see in the chat, if DICE, DAMAGE, RANGE, TYPE is correctly displayed.
see Screenshot.

System Info

- Foundry version v12 331 stable, running on Win 11 Host locally
- access from macOS via Chrome

Logs

Foundry VTT | Rendering ForbiddenLandsMonsterAttackSheet
foundry-esm.js:4621 Error: The {{select}} handlebars helper is deprecated in favor of using the {{selectOptions}} helper or the foundry.applications.fields.createSelectInput, foundry.applications.fields.createMultiSelectElement, or foundry.applications.fields.prepareSelectOptionGroups methods.
Deprecated since Version 12
Backwards-compatible support will be removed in Version 14
at Object.logCompatibilityWarning (foundry-esm.js:4609:19)
at Object.select (foundry.js:8349:19)
at Object.c (handlebars.min.js:27:27865)
at Object.eval [as main] (eval at createFunctionContext (handlebars.min.js:29:10011), :27:129)
at c (handlebars.min.js:27:23534)
at d (handlebars.min.js:27:23849)
at e (handlebars.min.js:28:30886)
at renderTemplate (foundry.js:7902:10)
at async ForbiddenLandsMonsterAttackSheet._renderInner (foundry.js:6013:16)
at async ForbiddenLandsMonsterAttackSheet._renderInner (foundry.js:6583:18)
logCompatibilityWarning @ foundry-esm.js:4621
select @ foundry.js:8349
c @ handlebars.min.js:27
eval @ VM128464:27
c @ handlebars.min.js:27
d @ handlebars.min.js:27
e @ handlebars.min.js:28
renderTemplate @ foundry.js:7902
await in renderTemplate
_renderInner @ foundry.js:6013
_renderInner @ foundry.js:6583
_renderInner @ forbidden-lands.js:70
await in _renderInner
_render @ foundry.js:5844
await in _render
_render @ foundry.js:6572
_render @ foundry.js:7158
render @ foundry.js:5793
(anonym) @ forbidden-lands.js:44
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
foundry-esm.js:4621 Error: The {{select}} handlebars helper is deprecated in favor of using the {{selectOptions}} helper or the foundry.applications.fields.createSelectInput, foundry.applications.fields.createMultiSelectElement, or foundry.applications.fields.prepareSelectOptionGroups methods.
Deprecated since Version 12
Backwards-compatible support will be removed in Version 14
at Object.logCompatibilityWarning (foundry-esm.js:4609:19)
at Object.select (foundry.js:8349:19)
at Object.c (handlebars.min.js:27:27865)
at Object.eval [as main] (eval at createFunctionContext (handlebars.min.js:29:10011), :35:129)
at c (handlebars.min.js:27:23534)
at d (handlebars.min.js:27:23849)
at e (handlebars.min.js:28:30886)
at renderTemplate (foundry.js:7902:10)
at async ForbiddenLandsMonsterAttackSheet._renderInner (foundry.js:6013:16)
at async ForbiddenLandsMonsterAttackSheet._renderInner (foundry.js:6583:18)
logCompatibilityWarning @ foundry-esm.js:4621
select @ foundry.js:8349
c @ handlebars.min.js:27
eval @ VM128464:35
c @ handlebars.min.js:27
d @ handlebars.min.js:27
e @ handlebars.min.js:28
renderTemplate @ foundry.js:7902
await in renderTemplate
_renderInner @ foundry.js:6013
_renderInner @ foundry.js:6583
_renderInner @ forbidden-lands.js:70
await in _renderInner
_render @ foundry.js:5844
await in _render
_render @ foundry.js:6572
_render @ foundry.js:7158
render @ foundry.js:5793
(anonym) @ forbidden-lands.js:44
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
foundry-esm.js:4621 Error: The async option for Roll#evaluate has been removed. Use Roll#evaluateSync for synchronous roll evaluation.
at Object.logCompatibilityWarning (foundry-esm.js:4609:19)
at Roll.evaluate (foundry-esm.js:63561:23)
at Roll.roll (foundry-esm.js:63742:19)
at ForbiddenLandsMonsterSheet.rollAttack (forbidden-lands.js:49:1403)
at HTMLButtonElement. (forbidden-lands.js:49:1016)
at HTMLButtonElement.dispatch (jquery.min.js:2:40035)
at v.handle (jquery.min.js:2:38006)
logCompatibilityWarning @ foundry-esm.js:4621
evaluate @ foundry-esm.js:63561
roll @ foundry-esm.js:63742
rollAttack @ forbidden-lands.js:49
(anonym) @ forbidden-lands.js:49
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
foundry-esm.js:4621 Error: The async option for Roll#evaluate has been removed. Use Roll#evaluateSync for synchronous roll evaluation.
at Object.logCompatibilityWarning (foundry-esm.js:4609:19)
at FBLRoll.evaluate (foundry-esm.js:63561:23)
at FBLRoll.roll (foundry-esm.js:63742:19)
at ForbiddenLandsMonsterSheet.rollSpecificAttack (forbidden-lands.js:49:2104)
at ForbiddenLandsMonsterSheet.rollAttack (forbidden-lands.js:49:1492)
logCompatibilityWarning @ foundry-esm.js:4621
evaluate @ foundry-esm.js:63561
roll @ foundry-esm.js:63742
rollSpecificAttack @ forbidden-lands.js:49
rollAttack @ forbidden-lands.js:49
await in rollAttack
(anonym) @ forbidden-lands.js:49
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
foundry-esm.js:4621 Error: CONST.CHAT_MESSAGE_TYPES is deprecated in favor of CONST.CHAT_MESSAGE_STYLES because the ChatMessage#type field has been renamed to ChatMessage#style
Deprecated since Version 12
Backwards-compatible support will be removed in Version 14
at Object.logCompatibilityWarning (foundry-esm.js:4609:19)
at Object.get (foundry-esm.js:2492:21)
at FBLRoll.toMessage (forbidden-lands.js:17:42282)
at ForbiddenLandsMonsterSheet.rollSpecificAttack (forbidden-lands.js:49:2126)
logCompatibilityWarning @ foundry-esm.js:4621
get @ foundry-esm.js:2492
toMessage @ forbidden-lands.js:17
rollSpecificAttack @ forbidden-lands.js:49
await in rollSpecificAttack
rollAttack @ forbidden-lands.js:49
await in rollAttack
(anonym) @ forbidden-lands.js:49
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
foundry-esm.js:4621 Error: CONST.CHAT_MESSAGE_STYLES.ROLL is deprecated in favor of defining rolls directly in ChatMessage#rolls
Deprecated since Version 12
Backwards-compatible support will be removed in Version 14
at Object.logCompatibilityWarning (foundry-esm.js:4609:19)
at Proxy.get (foundry-esm.js:2505:23)
at Reflect.get ()
at Object.get (foundry-esm.js:2493:22)
at FBLRoll.toMessage (forbidden-lands.js:17:42282)
at ForbiddenLandsMonsterSheet.rollSpecificAttack (forbidden-lands.js:49:2126)
logCompatibilityWarning @ foundry-esm.js:4621
get @ foundry-esm.js:2505
get @ foundry-esm.js:2493
toMessage @ forbidden-lands.js:17
rollSpecificAttack @ forbidden-lands.js:49
await in rollSpecificAttack
rollAttack @ forbidden-lands.js:49
await in rollAttack
(anonym) @ forbidden-lands.js:49
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
foundry-esm.js:4621 Error: CONST.CHAT_MESSAGE_TYPES is deprecated in favor of CONST.CHAT_MESSAGE_STYLES because the ChatMessage#type field has been renamed to ChatMessage#style
Deprecated since Version 12
Backwards-compatible support will be removed in Version 14
at Object.logCompatibilityWarning (foundry-esm.js:4609:19)
at Object.get (foundry-esm.js:2492:21)
at FBLRoll.toMessage (forbidden-lands.js:17:23499)
at FBLRoll.toMessage (forbidden-lands.js:17:42313)
at ForbiddenLandsMonsterSheet.rollSpecificAttack (forbidden-lands.js:49:2126)
logCompatibilityWarning @ foundry-esm.js:4621
get @ foundry-esm.js:2492
toMessage @ forbidden-lands.js:17
toMessage @ forbidden-lands.js:17
rollSpecificAttack @ forbidden-lands.js:49
await in rollSpecificAttack
rollAttack @ forbidden-lands.js:49
await in rollAttack
(anonym) @ forbidden-lands.js:49
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
foundry-esm.js:4621 Error: CONST.CHAT_MESSAGE_STYLES.ROLL is deprecated in favor of defining rolls directly in ChatMessage#rolls
Deprecated since Version 12
Backwards-compatible support will be removed in Version 14
at Object.logCompatibilityWarning (foundry-esm.js:4609:19)
at Proxy.get (foundry-esm.js:2505:23)
at Reflect.get ()
at Object.get (foundry-esm.js:2493:22)
at FBLRoll.toMessage (forbidden-lands.js:17:23499)
at FBLRoll.toMessage (forbidden-lands.js:17:42313)
at ForbiddenLandsMonsterSheet.rollSpecificAttack (forbidden-lands.js:49:2126)
logCompatibilityWarning @ foundry-esm.js:4621
get @ foundry-esm.js:2505
get @ foundry-esm.js:2493
toMessage @ forbidden-lands.js:17
toMessage @ forbidden-lands.js:17
rollSpecificAttack @ forbidden-lands.js:49
await in rollSpecificAttack
rollAttack @ forbidden-lands.js:49
await in rollAttack
(anonym) @ forbidden-lands.js:49
dispatch @ jquery.min.js:2
v.handle @ jquery.min.js:2
foundry.js:7845 Foundry VTT | Retrieved and compiled template templates/sidebar/chat-message.html

Validations

  • Done a clean install of the system.
  • Disabled all modules.
  • Checked if the issue is present in a new world instance (create a new world in foundry using the Forbidden Lands system).
  • Not a bug report about the content modules. Reports regarding the content modules go here instead.
  • Not a "How To"-question (You can ask questions here: Discussions).
@KarstenW76 KarstenW76 added the bug Issues pertaining to bugs label Sep 28, 2024
@KarstenW76 KarstenW76 changed the title Error in chat display. Monster attack shows no results (bug with Roll#evaluate?) V12: Error in chat display. Monster attack shows no results (bug with Roll#evaluate?) Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues pertaining to bugs
Projects
None yet
Development

No branches or pull requests

1 participant