[RESOLVED] Screenshots with Cactus
[RESOLVED] Screenshots with Cactus
Well I finally got Cactus working as intended after starting with a fresh install, and it's awesome!
Something I noticed is that screenshots across all platforms appear in a folder aptly named "Screenshots". Love that.
However, I also noticed that duplicates are being saved in my primary Diablo II folder as "Screenshot001.jpg", "Screenshot002.jpg", etc.
Is there anyway to prevent this behavior?
Something I noticed is that screenshots across all platforms appear in a folder aptly named "Screenshots". Love that.
However, I also noticed that duplicates are being saved in my primary Diablo II folder as "Screenshot001.jpg", "Screenshot002.jpg", etc.
Is there anyway to prevent this behavior?
-
- Site Admin
- Posts: 453
- Joined: Sun Dec 19, 2021 11:23 am
Re: Screenshots with Cactus
Hey, I'm glad you got it working. My cnc-ddraw settings should have the screenshot key disabled so that only the print screen one from in game is being used. Basically what's happening is that the print screen key is triggering both cnc-ddraw and the internal game screenshot key. I think maybe what I did was to disable the internal screenshot key for the game and then let all of the screenshots be organized in the Screenshots folder. I'll let you know my exact config soon and also double check the default settings I'm distributing with Cactus. If you wanna disable the screenshot key for cnc-ddraw (which should already be disabled -.-), set the screenshot key in ddraw.ini to 0x00.
Re: Screenshots with Cactus
Hmmm. Okay well confession time (lol). I did swap in my old ddraw.ini file after installing Cactus, because the one that came with it kept stretching the game to full screen (1920x1200), and I didn't like that. I have a 16:10 monitor so maybe it has something to do with that. I like keeping things 4:3!
That being said, I've now replaced mine with your default ddraw.ini file, and it's still doing the same thing.
And I see the following little blurb in your ddraw.ini under the section called "Hotkeys":
; Screenshot [Disabled]
keyscreenshot=0x00
At any rate, I got the resolution working correctly now after editing some of the fields at the top, so I'm sticking with your ddraw.ini from here on out! I knew you would have thought of this (the duplicate screenshots thing) but for some reason it's still not working for me.
Thanks for the help!
That being said, I've now replaced mine with your default ddraw.ini file, and it's still doing the same thing.
And I see the following little blurb in your ddraw.ini under the section called "Hotkeys":
; Screenshot [Disabled]
keyscreenshot=0x00
At any rate, I got the resolution working correctly now after editing some of the fields at the top, so I'm sticking with your ddraw.ini from here on out! I knew you would have thought of this (the duplicate screenshots thing) but for some reason it's still not working for me.

Thanks for the help!
-
- Site Admin
- Posts: 453
- Joined: Sun Dec 19, 2021 11:23 am
Re: Screenshots with Cactus
Ah ok np. Yea, sometimes the newer versions of cnc-ddraw introduce new options, so every time I update the Cactus cnc-ddraw, I always make sure to keep the settings mostly the same while taking into account anything new coming in. The Cactus' cnc-ddraw default configuration is different than the upstream one. For mine I've optimized it for D2 and based more on how I play by default mixed in with some considerations for the community: Like I prefer to usually have my cursor unlocked, but I left it locked by default since I know for some players, especially those that play HC, having an unlocked cursor is dangerous for their characters.
For your information, I also like to keep things 4:3 and these are some of the default options for Cactus' cnc-ddraw:
For your information, I also like to keep things 4:3 and these are some of the default options for Cactus' cnc-ddraw:
I won't be putting these notes in the ddraw.ini since I'm trying to stay as close as possible to upstream while taking into account my use cases. Any of these configurations are obviously subject to change but I try to keep the default configs as stable as possible.# We are defaulting to 1024x768 for the window size. This gives a bigger canvas, especially since the we are going into Window Mode by default.
width=1024
height=768
# We aren't starting in full screen by default.
fullscreen=false
# We are starting in window mode by default. This configuration also allows you to quickly and easily switch into Full Screen mode by pressing [Ctrl + Enter]. Due note, cnc-ddraw remembers your preference so even if these are the defaults, if you switch to Full Screen via [Ctrl + Enter], this will be remembered the next time you open D2.
windowed=true
# This is for maintaining the aspect ratio. Although sometimes I feel it doesn't work correctly or weirdly in different scenarios. Like I have a dual monitor setup.
maintas=true
# The Cactus default shader. I've curated and provided a bunch of more nice shaders that you can play with.
shader=Shaders\windowed\jinc2-sharper.glsl
# OpenGL as the renderer
renderer=opengl
# Cursor is locked by default (Stays within the window)
devmode=false
# Dynamic resizing of the window (This won't work if using Wine).
resizable=false
# Screenshots disabled by default through cnc-ddraw. We can use the built in one for D2. However, if you are playing D1 and using cnc-ddraw, I recommend using the cnc-ddraw one because Diablo 1 saves images as PCX by default.
keyscreenshot=0x00
Re: Screenshots with Cactus
Thanks for the ddraw tips!
I've tinkered for a good while trying to get Screenshots to save only to their proper place to no avail.
I've given up (for now), but I found a workaround that will soothe my OCD for the time being.
A simple Windows batch script that moves all jpgs from the source folder to \Screenshots
I've tinkered for a good while trying to get Screenshots to save only to their proper place to no avail.
I've given up (for now), but I found a workaround that will soothe my OCD for the time being.
A simple Windows batch script that moves all jpgs from the source folder to \Screenshots

-
- Site Admin
- Posts: 453
- Joined: Sun Dec 19, 2021 11:23 am
Re: Screenshots with Cactus
The screenshots folder is provided by cnc-ddraw so only cnc-ddraw taken screenshots will use that folder. D2 saves all screenshots to the D2 root directory. I've disabled the cnc-ddraw so you don't get multiple screenshots taken (By D2 and By cnc-ddraw). It seems what you want is only the cnc-ddraw, so if that's the case I would say set the screenshot key in ccn-ddraw so the print screen key so that screenshot support is re-enabled, and then see if you can unbind the screenshot key in D2 itself. If you could then D2 won't take any screenshots anymore and you won't get any screenshots created in the D2 root folder.
Re: Screenshots with Cactus
Yes, that's exactly right (going for only cnc-ddraw screenshots)
For some reason unbinding the Screen Shot key in D2 doesn't work either. Tried it. I've currently got (both keys) showing as "None" atm, but hitting print screen seems to override that and saves one to the source folder every. single. time.
So looks like this is definitely a D2 thing, not a Cactus thing. Maybe you can test on your end?
For some reason unbinding the Screen Shot key in D2 doesn't work either. Tried it. I've currently got (both keys) showing as "None" atm, but hitting print screen seems to override that and saves one to the source folder every. single. time.

So looks like this is definitely a D2 thing, not a Cactus thing. Maybe you can test on your end?
-
- Site Admin
- Posts: 453
- Joined: Sun Dec 19, 2021 11:23 am
Re: Screenshots with Cactus
Just tested on 1.09b.. even if I unbinded the "Screen Shot" key, D2 still ignores the Print Screen press itself. So it seems there is a bug in D2 where you can't rebind this key while also ignoring Print Screen. To be more clear, if you rebind the "Screen Shot" key, it will allow you to take screenshots with your new hotkey, but it won't ignore the "Print Screen" key itself taking an additional screenshot. Cactus would have no impact on this functionality since that's related to D2, but regardless, I also tested it by launching Game.exe directly and trying this out. It also gave me the same behavior. So yea I would say if you really want to not have the screenshots in your D2 folder, your batch script solution would be the way to do it. Although I would say disable cnc-ddraw's key then so you at least can let D2 take the screenshots and your script would move it to your Screenshots folder.
Re: Screenshots with Cactus
Awesome. That will do the trick. And thanks for testing. I just wanted to make sure it wasn't just me.fearedbliss wrote: ↑Tue Mar 22, 2022 2:03 pm So yea I would say if you really want to not have the screenshots in your D2 folder, your batch script solution would be the way to do it. Although I would say disable cnc-ddraw's key then so you at least can let D2 take the screenshots and your script would move it to your Screenshots folder.

-
- Site Admin
- Posts: 453
- Joined: Sun Dec 19, 2021 11:23 am
Re: Screenshots with Cactus
Np ;D.