Page 1 of 1

Re: PLEASE HELP! PROJECT DELETED ITSELF

Posted: Wed Oct 10, 2018 9:44 pm
by lightningburrito
Hi.
Awhile back my project deleted itself. It was very scary as I thought I lost all of my data. I couldn't find it in Ren'py and it was just gone from my desktop. After getting some help from some others on this website I was able to find a 'backup file'. I put in it quotes because its not 100% what my file used to look like. The folder is filled with renpy documents with tons of numbers and letters. I don't know how to get this file back into renpy. or if I have to convert this into something else. I waited for someone to reply to the old form on how to do this but it never happened. So I made a new thread. Down Below is a link to the old thread, in case you wanna look at any of the stuff. Thanks in advance for the help. I am very worried.

viewtopic.php?t=51402

The link below is a youtube video i made on the other thread. Of where the 'backup file' is.

https://www.youtube.com/watch?v=D75PhY8 ... e=youtu.be

Re: Re: PLEASE HELP! PROJECT DELETED ITSELF

Posted: Wed Oct 10, 2018 10:22 pm
by Imperf3kt
Those files aren't what you need.
Try looking in this area:
C:\Program Files (x86)\renpy\tmp

for example:
https://i.imgur.com/hW5gkLM.png


E:
I now realize this only works i you exported an Android build

Re: Re: PLEASE HELP! PROJECT DELETED ITSELF

Posted: Thu Oct 11, 2018 7:09 am
by xavimat
Look at your folder: ...Roaming > Renpy > backups > Doki Doki Drama Club

Those files are what you need to recover the most recent auto-backup rpy files.

Click on "Date modified" to sort files by last date and pick only the more recent ones (one of each: script, screens, options, gui... and so on).
- You have a lot of "script.numbersnumbers.rpy" files, the more recent one is what you need now.

Copy that files to a new project.
Delete the numbers on that filenames and you'll have your original (most recent) script.rpy, gui.rpy etc. You've probably lost your last changes, but at least not all of your work.

On the other hand, is unlikely that a project deleted itself. Probably there is another reason. Anyway, always backup your projects, don't trust only in the auto-backup.

Re: Re: PLEASE HELP! PROJECT DELETED ITSELF

Posted: Fri Oct 12, 2018 12:44 am
by lightningburrito
It's hard to explain, so I made a quick video showing you where you told me and what I found. The links below. It's only a minute long. Thanks for the help. I just wanna get my project back.. >.>

https://youtu.be/0k-lk3trZjU

Re: Re: PLEASE HELP! PROJECT DELETED ITSELF

Posted: Fri Oct 12, 2018 2:56 am
by Imperf3kt
The above post by xavimat should work for you, it only requires a small amount of file renaming.

Re: Re: PLEASE HELP! PROJECT DELETED ITSELF

Posted: Fri Oct 12, 2018 10:42 am
by lightningburrito
I tried doing what he said. I went into that folder but the only things in there was a numbers and letters .rpy files. No script, GUI or anything. Do I need t look somewhere else? That’s what I showed in the vid above

Re: Re: PLEASE HELP! PROJECT DELETED ITSELF

Posted: Fri Oct 12, 2018 5:52 pm
by xavimat
I'm looking at your video and I'm a bit confused. Probably I haven't been clear.

1. You say that "the only things in there was a numbers and letters .rpy files". But I'm seeing in your video that the filenames in the folder start indeed with one of the words: "script", "gui", "screens", "options". After that word, there is a dot and a series of numbers and letters, and, at the end, the extension ".rpy".
export1.png
2. Also, in the video you haven't clicked on "Date modified". As you can see, your files are sorted by name. look at the little symbol here that looks like this: ^
export2.png
If you click over "Date modified", all these files will be sorted by date:
export3.png
Look for the more recent files that start with "script.", "screens.", "gui.", "options." One of each. I mean:
- among all files that start with "script." pick the more recent one.
- among all files that start with "screens." pick the more recent one.
- among all files that start with "gui." pick the more recent one.
- among all files that start with "options." pick the more recent one.

You'll have then four files. Change the filenames to delete the numbers and letters in the middle. So you'll have the files with the original names: script.rpy, screens.rpy, gui.rpy, options.rpy. These are your recovered files. FIRST MAKE A BACKUP COPY OF THEM!!! Then proceed.

Create a new project with renpy. Copy your recovered files in that new project, (you'll have to overwrite the newly created ones).

And that's it.
I hope I'm clearer now. :)

Re: Re: PLEASE HELP! PROJECT DELETED ITSELF

Posted: Fri Oct 12, 2018 10:53 pm
by lightningburrito
Your amazing! I got all the new files, and put them in a folder on my desktop. I then created a new game and pasted the new rpy files into it. However, every-time I try to launch it, it gives me a big error. I'll paste a pic below. Maybe, it's because my photos aren't in it? I really dont know. Thanks for helping me this far. I'm so close!!

https://youtu.be/zLV_-6EK1Gs

Re: Re: PLEASE HELP! PROJECT DELETED ITSELF

Posted: Sat Oct 13, 2018 4:11 am
by Imperf3kt
Please read the traceback message, it tells you exactly why the game isn't running - it can't find a file.
Check you have the file and it's in the right folder, and try again.

YouTube is horrible for this too, screenshots or text are preferred.