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
92 stars 53 forks source link

[WFRP4e System] Placing template of Test Independent Area effect throws an error #2280

Open moo-man opened 4 weeks ago

moo-man commented 4 weeks ago
warhammer.js:3507 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'effects')
[Detected 1 package: warhammer-lib(1.1.1)]
    at warhammer.js:3507:139
    at Array.filter (<anonymous>)
    at AreaHelpers.checkAreaCreate (warhammer.js:3507:59)
    at #call (foundry.js:632:20)
    at Hooks.callAll (foundry.js:589:17)
    at foundry-esm.js:56440:17
    at foundry-esm.js:56445:43
    at Array.map (<anonymous>)
    at #handleCreateDocuments (foundry-esm.js:56445:33)
    at async MeasuredTemplateDocument.createDocuments (foundry-esm.js:11423:23)
    at async ActorSheetWFRP4eCharacter._onPlaceAreaEffect (warhammer.js:5853:9)

will provide screenshots in comments


From: forien
foundry: 12.331
wfrp4e: 8.2.0
wfrp4e-altdorf: 6.0.1
wfrp4e-archives1: 6.0.1
wfrp4e-archives2: 6.0.1
wfrp4e-archives3: 6.0.0
wfrp4e-core: 6.0.1
wfrp4e-dotr: 6.0.1
wfrp4e-eis: 6.0.2
wfrp4e-lustria: 6.0.1
wfrp4e-middenheim: 6.0.2
wfrp4e-owb2: 6.0.1
wfrp4e-pbtt: 6.0.0
wfrp4e-rnhd: 6.0.2
wfrp4e-salzenmund: 6.0.1
wfrp4e-soc: 6.0.2
wfrp4e-starter-set: 6.0.1
wfrp4e-up-in-arms: 6.0.2
wfrp4e-wom: 6.0.2
wfrp4e-zoo: 6.0.0
Active Modules: ATL, JB2A_DnD5e, _CodeMirror, _chatcommands, autoanimations, chat-commander-wfrp4e, colorsettings, custom-css, darkraven-games-soundscapes-free, dfreds-chat-pins, dfreds-effects-panel, dice-so-nice, drag-ruler, entice-with-dice-so-nice, forien-actors-summary, forien-ammo-swapper, forien-armoury, forien-copy-environment, forien-custom-utility, forien-easy-polls, forien-quest-log, forien-test-utilities, forien-unidentified-items, foundryvtt-simple-calendar, image-hover, item-piles, ivan-duch-music-packs, levels, lib-wrapper, light-switch, local-shared-compendiums, michaelghelfi, monks-hotbar-expansion, moulinette-core, moulinette-imagesearch, moulinette-scenes, moulinette-tiles, multi-token-edit, permission_viewer, polyglot, popout, quick-insert, remote-highlight-ui, sequencer, socketlib, soundfxlibrary, stairways, sweetnothings, tabletop-rpg-music, times-up, token-action-hud-core, token-action-hud-wfrp4e, token-ease, token-variants, token-z, trs-foundryvtt-dice-set, trs-metal-rainbow, update-your-password, wall-height, warhammer-lib, wfrp4e-dotr-maps, wfrp4e-gm-toolkit

Forien commented 4 weeks ago

Error

image

Related code

image

Effect's setup

image

Script

image

this happens because I have tokens on a scene that don't have actors (probably should have added that to the issue's title), but those tokens are not even targeted by the AoE