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

Verified v10 compatiblity in Foundry module list #45

Open
benbarbour opened this issue Sep 19, 2022 · 6 comments
Open

Verified v10 compatiblity in Foundry module list #45

benbarbour opened this issue Sep 19, 2022 · 6 comments

Comments

@benbarbour
Copy link

benbarbour commented Sep 19, 2022

image

It's got the big yellow warning there, despite https://github.com/ElfFriend-DnD/foundryvtt-dnd5eCharacterActions/blob/main/src/module.json#L40. I re-installed this module, and went into the module.json on my disk and verified that that's there. I don't know if you need to add "verified", or "maximum" as well?

@benbarbour
Copy link
Author

Maybe this could be considered a foundry bug?

@akrigline
Copy link
Member

I apparently need verified as well. Haven't gotten to adding it yet though.

@farling42
Copy link

In another module, it was enough to only have the verified flag - the minimum flag was unnecessary.

@milesvdw
Copy link

milesvdw commented Dec 17, 2022

It's actually not working for me in 10e,
foundryvtt-dnd5eCharacterActions.ts:61 Uncaught TypeError: app._onItemRoll is not a function

Also, a lot of this:

Error: You are accessing the Item5e#data object which is no longer used. Since V10 the Document class and its contained DataModel are merged into a combined data structure. You should now reference keys which were previously contained within the data object directly.
    at logCompatibilityWarning (commons.js:1692)
    at Function._logV10CompatibilityWarning (commons.js:6635)
    at Item5e.get data [as data] (commons.js:6535)
    at isItemInActionList (helpers.ts:95)
    at HTMLLIElement.<anonymous> (handleFavoriteControls.ts:66)
    at Function.each (jquery.min.js:2)
    at S.fn.init.each (jquery.min.js:2)
    at addFavoriteControls (handleFavoriteControls.ts:58)
    at Object.fn (foundryvtt-dnd5eCharacterActions.ts:172)

@milesvdw
Copy link

milesvdw commented Dec 17, 2022

I see this is actually fixed in your source code:

if (getGame().settings.get(MODULE_ID, MySettings.includeOneMinuteSpells)) {
        const isOneMinuter = item.system?.duration?.units === 'minute' && item.system?.duration?.value === 1;
        const isOneRounder = item.system?.duration?.units === 'round' && item.system?.duration?.value === 1;

but when I go to update the module it's not pulling in those fixes.

@akrigline
Copy link
Member

You might need to uninstall and reinstall to get these updates. I think the issue mentioned by the op is messing with "update"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants