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
[Compat] doesn't capture new screens with randompatches #12
Comments
Does setting |
It doesn't |
What about adding |
Yup! Thanks |
Unless there's more demand for it, I don't think I'll add compat with that feature, at least for now. The way random patches applies the mixin, there doesn't seem like a way to do it without them moving the logic part of their code to a non-mixin class, so i can mixin it. |
Sounds good, that's why randompatches lets you blacklist mixins anyways. Thanks for pinpointing the issue. |
How do I do this? Like how do I format it? |
|
Thanks! |
Wait, but look: |
Oh right, I forgot that since randompatches 'added compatibility' with seamless loading, I've had to just uninstall randompatches from my client. Maybe try blacklisting |
Okay, so I know what's happening now. In one of my recent releases, I changed the quit method to static (this was to add support for taking the screenshot when closing the window, not just the quit button), and randompatches is calling it thinking it's not static. The release that changed this is v1.3.0, so you can downgrade until randompatches releases a fix (also cool to know they added support 🙂 ) |
Fixed! |
Dang, that was fast, thank you! |
I'm still having issues, with only these mods installed:
|
Are you using realms? If not, does it happen without randompatches? |
No realms, just singleplayer, and it only happens when I have both randompatches and seamless. |
Just took a look at their mixin, and I see where the problem is. To sync with the render thread, I use a screen and take the screenshot in the render. When Fabric API 0.30.0 came out with the new screen api, if a screen's render method was called during another screen's render method, then it'd crash the way it did for you. My patch solution was disabling a null check, and giving what was null, a value. But to not break other stuff, I only made it run during when it was quiting. However the randompatches mixin skips this. This (probably) could be fixed by adding this line into the mixin: SeamlessLoadingScreen.isDisconnecting = true; I might find a better workaround, (that's not fapi 0.30.0+ only), but there was also the idea of fixing the source issue in fapi's screen api |
Thanks for the easy fix! Let me know if you end up finding a better workaround. 😄 |
This thread is why I like Fabric better than Forge lmfao |
When using this mod and random patches, no new screenshots are saved when exiting a world.
random settings:
randompatches.toml
randompatches-2.1.9-fabric
seamless-loading-screen-1.1.0+1.16
The text was updated successfully, but these errors were encountered: