Force deleting saved games? [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
78909087
Veteran
Posts: 277
Joined: Sat Aug 16, 2014 2:33 pm
Completed: Dungeons and Don't Do It, Wake Up
Projects: Lethe
IRC Nick: Pacermist
Contact:

Force deleting saved games? [SOLVED]

#1 Post by 78909087 »

I've seen the code for it before, but can't find it for the life of me.

In the game, once you've finished the route, I want to force delete the saved data without deleting the persistent data.

I've seen it done before, seen the code for it too, but didn't need it at the time, and didn't copy it.


Thank-you in advance.
Last edited by 78909087 on Thu Jan 22, 2015 3:41 am, edited 1 time in total.

User avatar
shivanshs9
Regular
Posts: 54
Joined: Sun Jul 20, 2014 1:59 pm
Projects: The Destiny(http://thedestiny-cxz.blogspot.com)
Organization: Cyber-X-Zone
Location: India
Contact:

Re: Force deleting saved games?

#2 Post by shivanshs9 »

Put this code whenever you want to completely destroy all your saves!

Code: Select all

python:
    for slot in renpy.list_saved_games(fast=True):
        renpy.unlink_save(slot)
Source: Mine Post!
But, beware... This code doesn't understand human emotions and will destroy all the saves(including Auto and Quick), which will make the readers of this novel cry and scream in madness... (<- Just Kidding!)
By the way, why do you want to destroy your saves?
"Destiny is a no matter of chance
It is a matter of choice
It is not a thing to be waited for
It is a thing to be achieved..."

-William Jennings Bryan
If you can dream and not make dreams your master;
If you can think and not make thoughts your aim,
If you can meet with Triumph and Disaster;
And treat those two impostors just the same,
Only then can you ever win against yourself...

User avatar
78909087
Veteran
Posts: 277
Joined: Sat Aug 16, 2014 2:33 pm
Completed: Dungeons and Don't Do It, Wake Up
Projects: Lethe
IRC Nick: Pacermist
Contact:

Re: Force deleting saved games?

#3 Post by 78909087 »

It's a part of my game to completely crush the soul of the reader by destroying all of their saves! :D

User avatar
shivanshs9
Regular
Posts: 54
Joined: Sun Jul 20, 2014 1:59 pm
Projects: The Destiny(http://thedestiny-cxz.blogspot.com)
Organization: Cyber-X-Zone
Location: India
Contact:

Re: Force deleting saved games?

#4 Post by shivanshs9 »

Wow... :shock: a totally sadistic game to wash away the hardworking reader's progress... :roll:
"Destiny is a no matter of chance
It is a matter of choice
It is not a thing to be waited for
It is a thing to be achieved..."

-William Jennings Bryan
If you can dream and not make dreams your master;
If you can think and not make thoughts your aim,
If you can meet with Triumph and Disaster;
And treat those two impostors just the same,
Only then can you ever win against yourself...

User avatar
78909087
Veteran
Posts: 277
Joined: Sat Aug 16, 2014 2:33 pm
Completed: Dungeons and Don't Do It, Wake Up
Projects: Lethe
IRC Nick: Pacermist
Contact:

Re: Force deleting saved games?

#5 Post by 78909087 »

Well it's all a part of the game, to involve the reader more.

If they hate me afterwards, they can do that.

But for the effect I want... They must suffer.

User avatar
Yuuji
Regular
Posts: 96
Joined: Tue Jan 20, 2015 3:08 am
Location: Russia, Perm
Contact:

Re: Force deleting saved games?

#6 Post by Yuuji »

Can you write me a mail or something like that when you release your game? I'm interested in it :D
There's no point in standing around with your mouth open waiting for talent to fall from the sky. You make your own. No matter what you're doing, the most essential thing is not to give up.

User avatar
78909087
Veteran
Posts: 277
Joined: Sat Aug 16, 2014 2:33 pm
Completed: Dungeons and Don't Do It, Wake Up
Projects: Lethe
IRC Nick: Pacermist
Contact:

Re: Force deleting saved games?

#7 Post by 78909087 »

Yuuji wrote:Can you write me a mail or something like that when you release your game? I'm interested in it :D
The one with the force delete?

User avatar
Yuuji
Regular
Posts: 96
Joined: Tue Jan 20, 2015 3:08 am
Location: Russia, Perm
Contact:

Re: Force deleting saved games?

#8 Post by Yuuji »

Yes :)
There's no point in standing around with your mouth open waiting for talent to fall from the sky. You make your own. No matter what you're doing, the most essential thing is not to give up.

User avatar
78909087
Veteran
Posts: 277
Joined: Sat Aug 16, 2014 2:33 pm
Completed: Dungeons and Don't Do It, Wake Up
Projects: Lethe
IRC Nick: Pacermist
Contact:

Re: Force deleting saved games?

#9 Post by 78909087 »

Yuuji wrote:Yes :)
Well then it might take a while. I'll write you down in the bottom of the script so I remember, though.

User avatar
Marchare
Newbie
Posts: 19
Joined: Mon Apr 28, 2014 7:43 pm
Contact:

Re: Force deleting saved games?

#10 Post by Marchare »

I remember somebody talking about something similar happening in Nitro+'s Kimi to Kanojo to Kanojo no Koi, when one of the protagonist's love interest erases the saves of the other girl you previously(?) romanced.

But, does that mean the player can never finish the game, or just that they must avoid a certain ending at all cost?
Sounds like a dangerous bet.

User avatar
Yuuji
Regular
Posts: 96
Joined: Tue Jan 20, 2015 3:08 am
Location: Russia, Perm
Contact:

Re: Force deleting saved games?

#11 Post by Yuuji »

Marchare wrote: But, does that mean the player can never finish the game, or just that they must avoid a certain ending at all cost?
I suppose player just cannot replay scenes which he saved. Progress is not deleted I think.
There's no point in standing around with your mouth open waiting for talent to fall from the sky. You make your own. No matter what you're doing, the most essential thing is not to give up.

User avatar
78909087
Veteran
Posts: 277
Joined: Sat Aug 16, 2014 2:33 pm
Completed: Dungeons and Don't Do It, Wake Up
Projects: Lethe
IRC Nick: Pacermist
Contact:

Re: Force deleting saved games?

#12 Post by 78909087 »

It's only deleted at the end of the one route. If the player reaches that point, they will KNOW.

Ahahaha.

User avatar
Dizzydude
Regular
Posts: 58
Joined: Mon May 26, 2014 8:40 pm
Projects: 「To Be Announced」
Location: U.S.A
Contact:

Re: Force deleting saved games?

#13 Post by Dizzydude »

So will/would it be like a "One Chance" type of game?
Just out of curiosity here.

User avatar
78909087
Veteran
Posts: 277
Joined: Sat Aug 16, 2014 2:33 pm
Completed: Dungeons and Don't Do It, Wake Up
Projects: Lethe
IRC Nick: Pacermist
Contact:

Re: Force deleting saved games?

#14 Post by 78909087 »

Dizzydude wrote:So will/would it be like a "One Chance" type of game?
Just out of curiosity here.
Nope. I think I get what you mean. It's a normal VN, to be honest.

Post Reply

Who is online

Users browsing this forum: Google [Bot]