[Solved] Corrupted script/Long line of NUL

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
User avatar
ButterflyLatte
Newbie
Posts: 20
Joined: Fri Mar 18, 2016 3:43 am
Completed: LoveSick, Oceanic Hearts
Projects: Blossoming ❀ Love (Sprite/CG Artist); MxH Beat
Organization: Krispy Cat
Tumblr: butterfly-latte
itch: krispycat
Location: USA
Contact:

[Solved] Corrupted script/Long line of NUL

#1 Post by ButterflyLatte » Fri Apr 14, 2017 3:31 pm

I'm not sure how it happened, and I am desperately hoping this can be resolved, because otherwise I'll have several thousand words to re-script...

Somehow my script files for corrupted, and opening them in editra gives me a long line of NUL (white text over black boxes). Attempting to launch the game/check for errors gives an error message.

I have heard that it's possible to get an automatic back-up, or save most of it, but I have no idea how. Can someone help me?
The renpy version I use is 6.99.11
Last edited by ButterflyLatte on Sun Apr 16, 2017 12:20 am, edited 1 time in total.
Current Project: MxH Beat
Completed Projects: Oceanic Hearts, LoveSick

User avatar
Donmai
Eileen-Class Veteran
Posts: 1602
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question
Projects: Slumberland
Location: Brazil
Contact:

Re: Corrupted script/Long line of NUL

#2 Post by Donmai » Fri Apr 14, 2017 4:20 pm

What's your operational system? In MacOS you should go to library/RenPy. In Windows you should go to appData/Roaming/RenPy. Look for the backups folder there.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
ButterflyLatte
Newbie
Posts: 20
Joined: Fri Mar 18, 2016 3:43 am
Completed: LoveSick, Oceanic Hearts
Projects: Blossoming ❀ Love (Sprite/CG Artist); MxH Beat
Organization: Krispy Cat
Tumblr: butterfly-latte
itch: krispycat
Location: USA
Contact:

Re: Corrupted script/Long line of NUL

#3 Post by ButterflyLatte » Fri Apr 14, 2017 4:39 pm

It looks like my operating system is Windows 8.1
Current Project: MxH Beat
Completed Projects: Oceanic Hearts, LoveSick

User avatar
korova
Regular
Posts: 173
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, Last Trip [Nano16]
Tumblr: korova08
Location: Normandie, France
Contact:

Re: Corrupted script/Long line of NUL

#4 Post by korova » Fri Apr 14, 2017 6:49 pm

Did you open the .rpy files or the .rpyc ?

I nearly had a heart attack when I opened a .rpyc file by mistake, I thought all my hard work disappeared befor I realized my original file was stille there, untouched.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1602
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question
Projects: Slumberland
Location: Brazil
Contact:

Re: Corrupted script/Long line of NUL

#5 Post by Donmai » Fri Apr 14, 2017 9:19 pm

ButterflyLatte wrote:It looks like my operating system is Windows 8.1
On your keyboard, press the windows key+r. On the prompt type

Code: Select all

%APPDATA%/RenPy/
and press enter. A directory should open. Look for a folder named backups. You should find copies of your recent works there.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
ButterflyLatte
Newbie
Posts: 20
Joined: Fri Mar 18, 2016 3:43 am
Completed: LoveSick, Oceanic Hearts
Projects: Blossoming ❀ Love (Sprite/CG Artist); MxH Beat
Organization: Krispy Cat
Tumblr: butterfly-latte
itch: krispycat
Location: USA
Contact:

Re: Corrupted script/Long line of NUL

#6 Post by ButterflyLatte » Sat Apr 15, 2017 12:11 am

Opening the backups in editra gives me a lot of gibberish and text symbols. Do I need to open it in another program first?

EDIT: I know it can't be due to the script being corrupted because I tried opening a non-corrupted script file's backup and still got gibberish, so I think I missed a step somewhere.
Current Project: MxH Beat
Completed Projects: Oceanic Hearts, LoveSick

User avatar
Donmai
Eileen-Class Veteran
Posts: 1602
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question
Projects: Slumberland
Location: Brazil
Contact:

Re: Corrupted script/Long line of NUL

#7 Post by Donmai » Sat Apr 15, 2017 2:30 pm

Oops. If the backups folder didn't worked for you then I don't know what to do. If it was a read/write error you should also check your disks for errors. That wouldn't give your files back, but will prevent the same problem to keep happening.

I only stopped having problems with Editra when I quit using it and returned to jEdit.

Please notice that "a lot of gibberish and text symbols" can mean that, as korova suggested, you may have tried to open a rpyc file in your text editor. Only rpy files are human readable.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
ButterflyLatte
Newbie
Posts: 20
Joined: Fri Mar 18, 2016 3:43 am
Completed: LoveSick, Oceanic Hearts
Projects: Blossoming ❀ Love (Sprite/CG Artist); MxH Beat
Organization: Krispy Cat
Tumblr: butterfly-latte
itch: krispycat
Location: USA
Contact:

Re: Corrupted script/Long line of NUL

#8 Post by ButterflyLatte » Sat Apr 15, 2017 9:19 pm

Well, that's what's confusing me. I double-checked by opening a backup of a script I have no trouble with, and it looks the same - a bunch of weird symbols.

The files are listed as "SAVE files," so i can't tell if they're rpyc or not. If they are rpyc, I'm not sure what to open them with.
Current Project: MxH Beat
Completed Projects: Oceanic Hearts, LoveSick

User avatar
Donmai
Eileen-Class Veteran
Posts: 1602
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question
Projects: Slumberland
Location: Brazil
Contact:

Re: Corrupted script/Long line of NUL

#9 Post by Donmai » Sat Apr 15, 2017 11:39 pm

.save files are another thing. They are generated each time a game is run, or when you save a game position.

It seems you're still looking in the wrong place. When I say backups folder, I really mean a folder named backups, that's inside the appdata/Renpy folder. Open that folder, then the subfolder which has the same name of your project.
Your rpy files should be there.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
ButterflyLatte
Newbie
Posts: 20
Joined: Fri Mar 18, 2016 3:43 am
Completed: LoveSick, Oceanic Hearts
Projects: Blossoming ❀ Love (Sprite/CG Artist); MxH Beat
Organization: Krispy Cat
Tumblr: butterfly-latte
itch: krispycat
Location: USA
Contact:

Re: Corrupted script/Long line of NUL

#10 Post by ButterflyLatte » Sun Apr 16, 2017 12:19 am

Ah, there it all is!

Thanks a lot, Donmai, I was getting worried for a bit!
Current Project: MxH Beat
Completed Projects: Oceanic Hearts, LoveSick

User avatar
Donmai
Eileen-Class Veteran
Posts: 1602
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question
Projects: Slumberland
Location: Brazil
Contact:

Re: [Solved] Corrupted script/Long line of NUL

#11 Post by Donmai » Sun Apr 16, 2017 12:40 am

Yay! Glad to know you found it.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: Yahoo [Bot]