cirrahn / foundry-polmap

A political map overlay module for Foundry VTT.
MIT License
2 stars 1 forks source link

v12 Support #19

Open GregsGrog opened 1 month ago

GregsGrog commented 1 month ago

Hello!

There seems to be some incompatibilities with V12 is, is the module likely to be updated. No rush of course!

Thanks for providing something super usefull!

GregsGrog commented 1 month ago

Error: Error thrown in hooked function '' for hook 'renderSceneControls'. Cannot set properties of null (setting 'tint') at Hooks.onError (foundry.js:654:24) at 🎁call_wrapped [as call_wrapped] (libWrapper-wrapper.js:507:22) at 🎁Hooks.onError#lib-wrapper (listeners.js:138:11) at 🎁Hooks.onError#0 (libWrapper-wrapper.js:187:52) at #call (foundry.js:636:36) at Hooks.callAll (foundry.js:589:17) at SceneControls._callHooks (foundry.js:5917:13) at SceneControls._render (foundry.js:5878:10)Caused by: TypeError: Cannot set properties of null (setting 'tint') at module.js:921:44 at Array.forEach (<anonymous>) at PoliticalMapLayer.setPreviewTint (module.js:921:12) at PoliticalMapLayer.setActiveTool (module.js:886:8) at Object.fn (module.js:1511:17) at #call (foundry.js:632:20) at Hooks.callAll (foundry.js:589:17) at SceneControls._callHooks (foundry.js:5917:13) at SceneControls._render (foundry.js:5878:10)

cirrahn commented 1 month ago

The module needs a rewrite to work in v12+. I have been dragging my heels on this as I am still mainly using v11!

GregsGrog commented 1 month ago

I thought this might be the case, for now will downgrade to V11 since I cant do without it!

sipcogames commented 2 weeks ago

Was also looking for V12 support with no specific rush. XD Will keep an eye on the project until then :)

krazmuze commented 2 weeks ago

V12 has been stable since May so it is safe to switch from V11 except for this.
UI loads it just gives that null console error trying to paint the overlay.