ITADN

Army schema throws error when calling `getInitialValue()` in v14

#22338Closedmechamaya 创建于 2026-05-16
M
mechamayacommented
If a module tries to access the Actor data models, it fails on only the Army entry. Something about the Army schema is unable to get a clean initial data. The error seems to trigger on the AC initial value. Can reproduce by running this command in the console: ```js CONFIG["Actor"].dataModels.army.schema.getInitialValue(); ``` <img width="876" height="273" alt="Image" src="https://github.com/user-attachments/assets/72abacdf-fcb3-49b2-81cc-24c2d17bb938" /> Practically, I found this trying to debug an error when opening the ItemPiles module's Settings menu, which tries to access the system's Actor types to build a list of all available Actor types to configure Item Piles for. I edited the module code to skip checking the Army actor type and the rest all work fine, so I've confirmed it's just Army. See https://github.com/fantasycalendar/FoundryVTT-ItemPiles/issues/837
关闭于 2026-05-16 1 条评论