-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Improved screenshot plugin + screenshot effects in screenshot / after state change fix #4082
base: develop
Are you sure you want to change the base?
Improved screenshot plugin + screenshot effects in screenshot / after state change fix #4082
Conversation
You did the meme! Thanks for working on this :) |
|
eric already did a fix for this in a seperate branch months ago, idk why he didnt merge it to the latest version tho |
Wait, really? Did I spend all that time for nothing? |
Since we have over 100 open PRs (and many more merged), it's very likely that you'll come up with the same idea as someone else. I recommend doing a thorough search for similar PRs before creating a new one. |
That's actually hilarious |
Just checked, this is a unique PR. |
Sadly no, but I could do that.
Yay! |
Ok, I've got it to show the preview on the last image in the buffer. Ayo.It.s.Fixed.mp4The only thing it needs now is either some sort of delay for when saving each screenshot in the buffer (timers won't work because they reset between states) and/or multi-threading of the screenshot saving, as you can see, it causes the screen to freeze while it processes the images. |
I appreciate you doing the meme every time Please let us know when you get this working with a preview at the end! |
Uh, I just did that? |
Well, your video freezes right now, so we wouldn't want to add that to the game just yet |
Oh, right.
I guess not. |
Alright, I've got it saving asynchronously. I can uncomment the timer so that it saves each screenshot with a delay, though if I do that, whenever the state changes any screenshots not already saved will be lost. If anyone knows of a way to delay the screenshots without that issue I'll update it. |
Though with the caveat of unsaved screenshots not being saved after state change
Enabled by default, the idea is that the less tech savy players won't bother changing the option to false and end up reporting that they lost screenshots after changing states
Because the timer has been killed
Also now saves on window close/crash. Also standardised the option descriptions.
8ab70ea
to
2a46b74
Compare
Force pushed, hopefully that didn't break anything. |
It didn't, but it did break by local branch though, so I had to learn how to pull and rebase it to avoid a merge commit message (turns out all you have to do is just add --rebase to the command). |
Does this PR close any issues? If so, link them below.
Closes #3765, fixes #2811, fixes #2284
Briefly describe the issue(s) fixed.
The screenshot preview isn't hidden before a bitmap of the screen is taken, now it has it's alpha set to zero right before the bitmap is taken.The screenshot plugin in general.
Ok, that should be the final version. All the issues are fixed now.
Include any relevant screenshots or videos.
First version
ayo.it.s.kinda.fixed.mp4
This doesn't fix screenshot spamming completely, so I'm going to work on this a bit more to see if I can get it to not still break, maybe by making it hold off on showing the preview and cursor again if the screenshot button is constantly pressed.
Second version
2025-02-02.16-59-12.mp4
Third version
2025-02-02.20-53-42.1.mp4
Fourth version - Epilepsy Warning
Epilepsy Warning (just in case you missed the first one)
Ayo.finally.fixed.mp4
22 Screenshots (most are taken on the same second), the encoding and saving of each shot is spaced out one second:






















Final version - Epilepsy Warning
Epilepsy Warning (just in case you missed the first one)
2025-02-16.22-29-14.mp4