-
-
Notifications
You must be signed in to change notification settings - Fork 62
Update for V13 #680
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
base: main
Are you sure you want to change the base?
Update for V13 #680
Conversation
|
@CarlosFdez Tried the Test 2 version on your repo. It still has the same issue as others that have tried to fix SC. The realtime clock still keeps running during combat instead of pausing even though the setting for pausing during combat is on. |
|
out of curiousity, is it an issue in v12 as well? I'll take a look at that soon, I pushed up as soon as I managed to resolve all the type errors. There were so many 😓. |
|
No in v12 the clock would pause when a combat started. On each round advance the clock would advance 6 seconds. When combat ended it would start running the clock normally again. |
|
@ottyn so I used simple calendar primarily for keeping track of notes on days over a year (season of ghosts). Can you send me the settings you used? This is configuration I actually don't use it for, where I prefer to keep it paused at all times. EDIT: found it, play button! |
|
Here's the config export. |
|
I've learned why. I need to research what changed in v13, but very likely simple calendar will have to change its settings. I'm down to handle it however @vigoren wants. Specifically, you need to click this for it to pause. I will need to find out what changed in v13 specifically, but I think they're not linked to the scene by default anymore: My suspicion is that simple calendar needs to allow it for any combat encounter period as an option, now that v13 no longer links scenes by default. |
|
Yep, changing the combat to be linked to the scene fixed the issue. I didn't even realize they changed that in v13 to be defaulted to unlinked. Good to know. |
|
While I wait for confirmation on what to do with the pause time thing, I fixed a bug I accidentally introduced while testing the types. |
|
I'm so sorry to be asking this... but how can I pull your version? I usually download the files and replace them.. but in this case I think they need to be processed first as I see .ts and .hbs files... Thank you for taking the time to help out with this great module! |
|
You can go to the releases tab on my fork, and copy the manifest link. You'll might have to manually delete it when it finally updates for real though, not sure. For building it, you can install node, and do |
|
As a temporary work-around for the real-time clock/combat issue. I'm using the World Scripter module to add in a world script to link all combats to the active scene. This does work to have it auto-pause time when the combat starts. |
|
@CarlosFdez The problem arises that if you go back in to the Settings and change any other setting anywhere and Save Configuration again, it will reset the setting in Months again back to Moonday for each month. That's just one issue I found with the Settings, there may be more. I did go through and get everything setup properly for the Pathfinder 2E calendar and managed to export it. Including getting the days of the week and lunar cycle setup. The "startingWeekday": null setting is the one that controls the day each month starts on. By default the Pathfinder 2E calendar has this as Moonday, but if you set it to Default in the Settings, it sets it to null in the config. Not sure if this is what's causing the issue and it should be something else to get it to stick. |
|
If this is not an issue on v12 (I really should get a test v12 set up again to verify) I'll check it out later (maybe on monday), thanks for reporting. |
Sorry just saw this. Just went in and checked on v12. It looks like the settings had the same issue on v12. So this isn't an upgrade issue but an existing issue. |
|
Hm, I tried to download the v13 fork and replace the simple calendar files with it, but still doesn't work in v13. Console has multiple errors, but the most severe I think is: |
Try completely uninstalling Simple Calendar and installing Carlos' fork from manifest in Foundry and see if that works. Make sure you clear your browser cache after loading into the world just in case. |
|
What happens to the calendars I have created and use in my running games if I do that? Especially for Coriolis I have created a totally custom calendar |
Its the same module id, so it should work. the calendar from my season of ghosts game still seems to work. |
|
I'll give it a try |
|
@ottyn and anyone else, it should now treat unlinked combats as relevant for all scenes. I also moved the checks to a helper and checked in more places, so it should hopefully be resilient in more situations (such as activating a scene with combats if set to active combat). Let me know if there are any areas the checks fail (ex: I just noticed if you link a scene to the non-active scene if set to active, it fails to resume until you change scenes) |
|
Thanks for the PR, and the hard work fixing issues |
|
@vigoren Any chance of this getting merged soon? |
|
Tried removing the original module now and installing this PR via manifest. Worked. |
|
@CarlosFdez thank you for all the hard work. Glad there is a working version now. Is the old dev gone? What is the way forward the Simple Calendar module? I am not trying to ruffle any feathers, just excited for the future of the platform and the module. |
|
@CarlosFdez Many thnaks for your work. So far it seems working with Symbaroum system as well! |
I have no idea, but until I know I can at least maintain this PR for the duration of the campaign I'm running. After that, well, I dunno. |
|
@CarlosFdez |
|
Bump! |
|
This is great! Thank you. Simple Calender is a must for all of my games. |
|
Can someone approve this pull requst? |

Full update to V13, including the typescript types and tests. It also handles unlinked to scene v13 encounters when pausing during combat.
This updates the league foundry-vtt-types to version 13 and makes most of the changes it demands (such as replacing all literal number constants with the const equivalent, StoredDocument to JournalEntry.Stored, filling out flag/hook configs, etc). That update is most of the line diffs. I also removed some casts that are not necessary.
V13 breaking changes that are handled are:
I'm not super confident in the tests. I made the changes as best I could so that the tests pass, but tests in foundry feel somewhat finicky. The Render Journal Directory was commented out due to that method's change in v13 (folders are one of the big changes I've noticed).
I added a 4th version tag to distinguish from the real one once its finally out. My repo includes test builds with manifest links.