-
Notifications
You must be signed in to change notification settings - Fork 32
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
Multiple screenshots taken when Print Screen pressed #148
Comments
Small update, single screenshots are taken in the main menu, but two screenshots are taken once in game. I wonder if there is some sort of race condition with the signal capturing logic. |
It's actually D2's screenshot function is signaling to D2GL (no direct screenshot). Don't know why multiple screenshot taken. |
Thanks for the reply @bayaraa. I've done some testing between different versions (in vanilla state), and mods from 1.09b, 1.10, and 1.13c, and these are the results. I'll combine the cursor/screenshots results into this one but we can discuss discuss specifics if anything in separate issues: Tested on D2GL 1.3.3 with default settings. Only glide3x.dll is used (via -3dfx). All of the below mods work with cnc-ddraw via DirectDraw for both screenshots in Main Menu/In Game, I also tried taking a screenshot in the main menu in admin mode, and it didn't work. Vanilla (1.10 Base) Main Menu: Doesn't work (No screenshots at all). Singling (1.10 Base - Includes my own FPS unlock fix) Main Menu: Doesn't work (No screenshots at all). Le Royaume des Ombres (6.00 Beta) (1.10 Base)
However, screenshots don't trigger in main menu (same as the other 1.10 versions). Boss Hunter (1.13c Base w/ BaseMod)
Succulent (1.09b Base)
Valhalla 5.03 (1.10 Base)
Median XL (2012, v005) (1.10 Base) Main Menu: Doesn't work (No screenshots at all). Median XL (Ultimative XVI) (1.13c Base, Doesn't use BaseMod) Main Menu: Good (Only 1 screenshot). Diablo II Extended (1.08b) (1.13c Base, Uses BaseMod) Main Menu: Good (Only 1 screenshot). |
I think D2's default screenshot function only works in ingame. |
Hey @bayaraa, Default functionality works in main menu and in game (You can test this with That's correct. Here's a screenshot (first is in main menu for Median XL Ultimative XVI, which took 1 proper screenshot in png format, Screenshot 2 and 4 are two separate print screen presses in game, and you can see the subsequent identically sized pngs): By the way, don't worry about mods that are not compatible due to some weird "glide specific check" they are using. I only listed those so you can get a better sense of the landscape. |
The original D2Win function sets a delay of ~1000ms between screenshots, this is due to the fact that the command handler for keydown doesn't check for the key down repeat flag, and the input message isn't passed to the handler so it cannot check this for itself. |
Hello,
It seems there is a bug with D2GL 1.3.3 where if I press Print Screen, two screenshots will be taken. My theory is that D2GL is taking a screenshot, and also the in-game Diablo II functionality may also be getting triggered (and re-directed to D2GL). It may be good to have an option to allow disabling the "direct D2GL screenshot" code path, and only take a screenshot when Diablo II requests for a screenshot to be taken (After D2 receives the Print Screen signal). That should eliminate the issue without requiring people to unset their Print Screen, which will affect other Cactus Platforms.
Thank you,
Jonathan (fearedbliss)
The text was updated successfully, but these errors were encountered: