-
Notifications
You must be signed in to change notification settings - Fork 39
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
tr2/decomp: fix windowed screenshots not working #1767
Conversation
This is mostly for testing, as screenshots in general will need a rewrite anyway. |
Download the built assets for this pull request: |
@aredfan updated.
Since some parts were taken from TR1X and the code for both games was de-duplicated via libtrx, it makes sense to test TR1 as well. |
@rr- The I came across these issues when testing the TR2X build.
|
@aredfan the pink tint issue should be hopefully gone now. If you're still experiencing it, could you please share the relevant logs that resemble this format?
I've also fixed the stealthy bug with the settings. It was really nasty and could've unpredictably impacted wildly different parts of the game code, so I'm glad we identified it this early. While I couldn't replicate the failed assertion, I made some tweaks that might help. Please let me know if you're still experiencing the problem. Thanks! |
@rr- It's great news you were able to fix the stealthy bug early on, well done. I can also confirm that TR2X is now able to create PNG screenshots. In windowed mode, the screenshots remain pink regardless of the selected screenshot format. Here's my log file: TR2X.log I do still get the same failed assertion when quitting the game whether that's via the passport or LMK if you need anything else. |
The EnumMap module was shut down before the config could save the enum option values.
I've identified the issue with the shutdown, and it should be now fixed. Re: pink tint – looks like our machines report to be using identical pixel formats, but for some reason, my GPU uses RGB while yours actually uses BGR. I've changed the way we retrieve the pixel format to match what we use in FMVs. LMK if it's any better. |
@rr- The assertion failed message is gone now, thank you. 🎉 The game still produces pink tinted screenshots when in windowed mode. I made sure to have the FMV folder present in the game directory when testing the current PR build. |
@aredfan can you please try the most recent build? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rr- Yes of course. The TR2X screenshots are now fixed in windowed mode, thank you.
I also tested TR1X and the screenshots are working as expected. LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything works fine for me in fullscreen. I can't test windowed mode with the SW renderer.
Checklist
Description
Resolves #1766.