Any kind of method to include the date and time in the filename of a screenshot.
(Just in the filename, obvously the mod mustn't know the date).
How? (Example)
Similar to a localized string the date could simply be substituted in the filename, i.e.:
Code: Select all
take_screenshot{path="/some/folder/screenshot_(__TIMESTAMP__).png"}
Code: Select all
take_screnshot{date_format="%Y-%m-%d_%H%M%S"}
Code: Select all
if opts.date_format then string.gsub(opts.path,'__TIMESTAMP__',get_formatted_date(opts.date_format)) end
Because there is currently no good method (that i know of...) to uniquely name screenshots, resulting in an unorderly clutter of files in my script-output folder at best, and overwriting old screenshots with not-unique-afterall names at worst.