Allow Player to Input Location and Name to Save Screenshots? (solved)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
noeinan
Eileen-Class Veteran
Posts: 1075
Joined: Sun Apr 04, 2010 10:10 pm
Projects: Ren'Py QuickStart, Crimson Rue
Organization: Statistically Unlikely Games
Deviantart: daikiraikimi
Github: daikiraikimi
Location: Washington State, USA
Contact:

Allow Player to Input Location and Name to Save Screenshots? (solved)

#1 Post by noeinan » Thu Jul 12, 2018 3:35 am

I was wondering if there's a way to allow the player to change the default folder where screenshots get saved, and have that directory show up as text on a screen? I know I can manually change the directory in the code like this:

Code: Select all

define config.screenshot_pattern = "E:\_Art\_My Art\_Professional\Crimson Rue\_NPC Designs\screenshot%04d.png"
But that doesn't allow players to change it during play. Is there a way to do this in RenPy? Also, is there a way to let them name the screenshot themselves? I have tried changing the screenshot name in the code like "npc%04d.png" and it just fails.
Last edited by noeinan on Fri Jul 13, 2018 2:48 am, edited 1 time in total.
Image

Image
Image

User avatar
PyTom
Ren'Py Creator
Posts: 15202
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Allow Player to Input Location and Name to Save Screenshots?

#2 Post by PyTom » Thu Jul 12, 2018 11:47 pm

No, there is not a way to do this.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

User avatar
noeinan
Eileen-Class Veteran
Posts: 1075
Joined: Sun Apr 04, 2010 10:10 pm
Projects: Ren'Py QuickStart, Crimson Rue
Organization: Statistically Unlikely Games
Deviantart: daikiraikimi
Github: daikiraikimi
Location: Washington State, USA
Contact:

Re: Allow Player to Input Location and Name to Save Screenshots?

#3 Post by noeinan » Fri Jul 13, 2018 2:48 am

Okay, thanks for answering!
Image

Image
Image

Post Reply

Who is online

Users browsing this forum: Andredron