Changing the screenshot file names

Minimal version: 1.08

Changing the screenshot file names

In RockPatch v1.08 and later, you can change the file names of the screenshots using the tag ScreenshotFileName= in the [General] section.
This feature should be used by any modder because then it can be easily seen what screenshot belongs to what mod.
A cool "side effect" of this feature is that screenshots can be saved into a subfolder as well.

File name rules

The file name uses CPP-style format.
The original was SCRN%04d.pcx. %04d is the part that will be replaced by the number of the screenshot:

  • The % is basicly the indicator for a replacement. Don't play with this.
  • The 04 means that the umber will have 4 digits (i.e. 0001 instead of 1). You can change this to any number greater than zero.
  • The d means that a usual number will replace this. Don't change this.

It's also important to have a file extension. You can change it to whatever you want, but since the screenshot will always be saved as a PCX file, .pcx is recommended here (for the "smarties": no, calling it .jpg would NOT make it be saved as a jpg file, but a pcx file with a .jpg extension...)

An example filename would be

ScreenshotFileName=test%02d.pcx

It would spit out filenames like test01.pcx, test02.pcx and so on.

Using subfolders

This feature is a cool side effect.
You can modify the filename so that the screenshots will be stored into a subfolder of the game directory.
Simply use \ to indicate a subfolder. Example:

ScreenshotFileName=MyScreenshots\shot%04d.pcx

There's one thing to remember though: the subfolder must exist in the game dir already, the game would not create it.
If the subfolder doesn't exist, the screenshot won't be saved (or it's saved somewhere I haven't found it yet, dunno).