screenshot location change

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
zdxd3213
Newbie
Posts: 13
Joined: Tue Feb 19, 2019 1:37 am
Contact:

screenshot location change

#1 Post by zdxd3213 »

I wanna change my screenshot location like "%USERPROFILE%\my game\screenshot.png"

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: screenshot location change

#2 Post by isobellesophia »

Last edited by isobellesophia on Thu Feb 21, 2019 2:45 am, edited 1 time in total.
I am a friendly user, please respect and have a good day.


Image

Image


User avatar
Wight
Regular
Posts: 47
Joined: Mon Jan 07, 2019 5:40 pm
Completed: A Transient Experiment
itch: wight
Contact:

Re: screenshot location change

#3 Post by Wight »

When you're testing your VN in the launcher, it will save all the screenshots in the launcher's folder. But once you create a build that makes it ready for others to play, it will be saving screenshots within the VN's folder. No changes need to be made if this is what you want.

Otherwise, to set where the screenshots are being stored, that's config.screenshot_pattern. Let's make it simple by having a folder specifically for screenshots in the game's folder. Within the game's folder, create a new folder and name it "screenshots"

Use this if you want to save your screenshots within the game's folder while testing. Change 'NAME_OF_VN's_FOLDER' to match yours. Just remember to delete the folder and remove this line once you're done, before creating a release build.

Code: Select all

define config.screenshot_pattern = "NAME_OF_VN's_FOLDER\game\screenshots\screenshot%04d.png"
Or do this if you want to keep the screenshots saved to a specific folder for the release version. It won't work while you're testing from the launcher, so temporarily put it in front of a # until it's time to make the release version.

Code: Select all

define config.screenshot_pattern = "game\screenshots\screenshot%04d.png"

User avatar
isobellesophia
Miko-Class Veteran
Posts: 979
Joined: Mon Jan 07, 2019 2:55 am
Completed: None
Projects: Maddox and Friends! (AI Teacher friend), Friendly Universities! (Soon)
Organization: Friendly Teachers series
Deviantart: SophBelle
itch: Child Creation
Location: Philippines, Mindanao
Contact:

Re: screenshot location change

#4 Post by isobellesophia »

Think that'll useful to you Wight, i will try testing that, thanks!
I am a friendly user, please respect and have a good day.


Image

Image


Post Reply

Who is online

Users browsing this forum: No registered users