esheyw / find-the-culprit

MIT License
2 stars 1 forks source link

Can't get out of testing mode #10

Open ctbritt opened 4 days ago

ctbritt commented 4 days ago

I don't know what i did, but in dnd5e 4.0.3 and FTC 3.0, I can't get out of testing mode. If I have FTC enabled, every time I refresh my world I get the below warning:

CleanShot 2024-09-24 at 22 20 13@2x

If i close the window or click the rest button, it refreshes. If I leave it open and enable or disable modules manually, then click save, it repeats and all the modules I toggled off are back to their state before.

Here are some error messages: CleanShot 2024-09-24 at 22 22 22@2x CleanShot 2024-09-24 at 22 22 46@2x

Is there some way to erase the FTC data?

help! C

esheyw commented 4 days ago

Just out of curiosity, was your world in a state where one module was active but its dependency wasn't, before installing FtC 3.0? I was hoping that was going to be exceedingly rare but considering the part where old FtC regularly did this I suppose I should have known better.

I will have to think about how to best mitigate this, and probably have to fail more gracefully here.

My quick fix advice is to uninstall FtC, load back into that world, fix your modules such that things have all their dependencies enabled, and run this in the console:

game.settings.storage.get('world').filter(s=>s.key.startsWith('find-the-culprit')).forEach(s => s.delete())

then reinstall

esheyw commented 4 days ago

Also if you want to right click on 'modules' in the data dump, copy object, and post that here or preferably DM me on discord (ID's the same, esheyw, you can find me on the Foundry official discord

ctbritt commented 4 days ago

Your game.settings... did the trick. That cleaned it up. As for your question, I don't really know. But it seems all right now.