sun-dragon-cult / fvtt-module-reverseinitiativeorder

A Combat Tracker mod for Foundry VTT
GNU Affero General Public License v3.0
2 stars 0 forks source link

Not working on V9 #22

Closed Ychabod closed 2 years ago

Ychabod commented 2 years ago

error Don't work on V9 (and V8.9 too), can't roll initiative and leave a blank on the initiative number And the roll buttons disappered after clicking on them

Console show :

Uncaught (in promise) Error: Unresolved StringTerm undefined requested for evaluation [No packages detected] at StringTerm.evaluate (foundry.js:9161) at Roll._evaluate (foundry.js:6776) at Roll.evaluate (foundry.js:6743) at Combat.rollInitiative (foundry.js:15650) at Object.callback (foundry.js:58536) at HTMLLIElement. (foundry.js:43601) at HTMLLIElement.dispatch (jquery.min.js:2) at HTMLLIElement.v.handle (jquery.min.js:2) evaluate @ foundry.js:9161 _evaluate @ foundry.js:6776 evaluate @ foundry.js:6743 rollInitiative @ foundry.js:15650 callback @ foundry.js:58536 (anonymous) @ foundry.js:43601 dispatch @ jquery.min.js:2 v.handle @ jquery.min.js:2 async function (async) rollInitiative @ foundry.js:15650 callback @ foundry.js:58536 (anonymous) @ foundry.js:43601 dispatch @ jquery.min.js:2 v.handle @ jquery.min.js:2

wake42 commented 2 years ago

Sorry for the late reply. I just tried it on my machine (Foundry 9) and it worked there. Two questions: 1) Have you activated the libWrapper module (you should have gotten a dialog asking you to do that when you activated RIO) 2) If you don't want the input field, have you disabled them in the RIO settings? (see screenshot) image

Ychabod commented 2 years ago

Hi @wake42 ! No problem for the timing, everybody have a life.

Yeah I have Libwarper activate (doesn't demand it if I check your module by the way)

See my video for a visual explanation of my problem https://mega.nz/file/uQ8kmJBR#MH9HskGme8ePMgla8hYwXSSMhkn8TEEKFOfI-Dc2nOM

It's a new basic world on simple world building, two tokens on a blank map

Ychabod commented 2 years ago

Edit : My antivir gone mad and suddenly delete foundry. Reinstalled it, and the module seems working now, very strange..

wake42 commented 2 years ago

When I did tests for Foundry 9 I did notice some caching that first made me think that it was broken. But after restart X it suddenly started working for me - maybe this is what happened for you as well...

I'm closing this case - feel free to reopen if the error reappears!

GreyBeardUK commented 2 years ago

Hello I am having exactly the same issue on v9.

Screenshot 2022-01-23 at 11 48 14

I tried resetting and even blew away my game world but with the module enabled I can't roll Initiative

is there something else that needs enabling?

wake42 commented 2 years ago

I believe it's some cache that isn't released. Assuming you run Chrome you could try to open dev tools (press f12) and then right click on the reload button - select "empty cache and hard reload". You could also make sure you are running the latest version of RIO and restart Foundry to try to force it to release the cache. If that doesn't work try to uninstall RIO and then reinstall it. (I now saw from the other case #23 that you already tried reinstalling...) Try that to begin with and let me know how it went!

GreyBeardUK commented 2 years ago

hello. The Browser "empty cache and hard reload" seemed to resolve it

many thanks

wake42 commented 2 years ago

I think I read somewhere that foundry had some caching problems that was resolved in v9, hopefully this won't be neccessary in future upgrades.