moo-man / WFRP4e-FoundryVTT

The premiere system for running grim and perilous games of Warhammer Fantasy Role-play in the Foundry VTT environment.
Apache License 2.0
87 stars 51 forks source link

[WFRP4e System] Foundry v12 deprecation warnings and errors #2086

Closed moo-man closed 2 months ago

moo-man commented 2 months ago

globalThis accessors

Example:

Error: You are accessing globalThis.mergeObject which must now be accessed via foundry.utils.mergeObject
Deprecated since Version 12
Backwards-compatible support will be removed in Version 14

Same for getProperty and all other functions.

Causes some actions to take longer time, enough so that human can feel the difference between same action on v11 and v12, for example rolling crits.

Also spams my console ^^

Roll#evaluate async option

Error: The async option for Roll#evaluate has been removed. Use Roll#evaluateSync for synchronous roll evaluation.
    at Object.logCompatibilityWarning (foundry-esm.js:4605:19)
    at Roll.evaluate (foundry-esm.js:62108:23)
    at Roll.roll (foundry-esm.js:62289:19)
    at WFRP_Tables.rollTable (wfrp4e.js:194:73)
    at WFRP_Tables.formatChatRoll (wfrp4e.js:509:29)
    at WFRP_Utility.handleTableClick (wfrp4e.js:7517:41)
    at HTMLElement.dispatch (jquery.min.js:2:40035)
    at v.handle (jquery.min.js:2:38006)


From: forien
foundry: 12.327
wfrp4e: 7.2.1
wfrp4e-core: 5.0.6
wfrp4e-up-in-arms: 5.0.2
wfrp4e-wom: 5.0.3
Active Modules: forien-ammo-swapper, forien-armoury, foundryvtt-simple-calendar, lib-wrapper, times-up