Can anyone help recover my script?

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
azureXtwilight
Megane Procrastinator
Posts: 4118
Joined: Fri Mar 28, 2008 4:54 am
Completed: Fantasia series (ROT and ROTA), Doppleganger: Dawn of The Inverted Soul, a2 (a due), Time Labyrinth
Projects: At Regime's End
Organization: Memento-Mori VNs, Team Sleepyhead
Location: Yogyakarta, Indonesia.
Contact:

Can anyone help recover my script?

#1 Post by azureXtwilight »

Firtst; the problem is starting from line 1872 the codes become null all over and over again!
What has happened?
Can you save my script?

Here's the traceback though...

Code: Select all

I'm sorry, but an exception occured while executing your Ren'Py
script.

TypeError: suite() argument 1 must be string without null bytes, not str

While compiling python block starting at line 11872 of D:\renpy-6.8.1\Fantasia_Requiem of the Abyss/game/script.rpy.

-- Full Traceback ------------------------------------------------------------

  File "D:\renpy-6.8.1\renpy\bootstrap.py", line 247, in bootstrap
  File "D:\renpy-6.8.1\renpy\main.py", line 171, in main
  File "D:\renpy-6.8.1\renpy\script.py", line 477, in load_script
  File "D:\renpy-6.8.1\renpy\script.py", line 155, in __init__
  File "D:\renpy-6.8.1\renpy\script.py", line 366, in load_appropriate_file
  File "D:\renpy-6.8.1\renpy\script.py", line 333, in load_file
  File "D:\renpy-6.8.1\renpy\script.py", line 426, in update_bytecode
  File "D:\renpy-6.8.1\renpy\python.py", line 218, in py_compile_exec_bytecode
  File "D:\renpy-6.8.1\renpy\python.py", line 193, in py_compile
  File "compiler\transformer.pyo", line 52, in parse
  File "compiler\transformer.pyo", line 129, in parsesuite
TypeError: suite() argument 1 must be string without null bytes, not str

While compiling python block starting at line 11872 of D:\renpy-6.8.1\Fantasia_Requiem of the Abyss/game/script.rpy.

Ren'Py Version: Ren'Py 6.8.1a
Here's the script! Please recover it! :(
script.rpy
(591.67 KiB) Downloaded 103 times
Image

luminarious
Veteran
Posts: 353
Joined: Thu May 01, 2008 1:12 pm
Projects: Winter, winter
Location: Estonia
Contact:

Re: Can anyone help recover my script?

#2 Post by luminarious »

I'm sorry, but this seems really quite lost. You don't back up very often, do you?

User avatar
azureXtwilight
Megane Procrastinator
Posts: 4118
Joined: Fri Mar 28, 2008 4:54 am
Completed: Fantasia series (ROT and ROTA), Doppleganger: Dawn of The Inverted Soul, a2 (a due), Time Labyrinth
Projects: At Regime's End
Organization: Memento-Mori VNs, Team Sleepyhead
Location: Yogyakarta, Indonesia.
Contact:

Re: Can anyone help recover my script?

#3 Post by azureXtwilight »

Yeah :| , anyway, I knew cybeat once had the same problem. I thought pytom was able to do something....
Image

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Can anyone help recover my script?

#4 Post by PyTom »

Do you have the old .rpyc file? If so, please send it to me, and I can recover the script.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
azureXtwilight
Megane Procrastinator
Posts: 4118
Joined: Fri Mar 28, 2008 4:54 am
Completed: Fantasia series (ROT and ROTA), Doppleganger: Dawn of The Inverted Soul, a2 (a due), Time Labyrinth
Projects: At Regime's End
Organization: Memento-Mori VNs, Team Sleepyhead
Location: Yogyakarta, Indonesia.
Contact:

Re: Can anyone help recover my script?

#5 Post by azureXtwilight »

Image

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Can anyone help recover my script?

#6 Post by PyTom »

Here's what I was able to recover. Note that this is generated from the intermediate data structure Ren'Py stores, so comments and formatting will be changed.
Attachments
script.rpy
(609.2 KiB) Downloaded 97 times
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
azureXtwilight
Megane Procrastinator
Posts: 4118
Joined: Fri Mar 28, 2008 4:54 am
Completed: Fantasia series (ROT and ROTA), Doppleganger: Dawn of The Inverted Soul, a2 (a due), Time Labyrinth
Projects: At Regime's End
Organization: Memento-Mori VNs, Team Sleepyhead
Location: Yogyakarta, Indonesia.
Contact:

Re: Can anyone help recover my script?

#7 Post by azureXtwilight »

But there are still the nulls after the 1221 line...
Image

User avatar
PyTom
Ren'Py Creator
Posts: 16096
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: Can anyone help recover my script?

#8 Post by PyTom »

I'm sorry, but this is what was in the .rpyc file.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

User avatar
azureXtwilight
Megane Procrastinator
Posts: 4118
Joined: Fri Mar 28, 2008 4:54 am
Completed: Fantasia series (ROT and ROTA), Doppleganger: Dawn of The Inverted Soul, a2 (a due), Time Labyrinth
Projects: At Regime's End
Organization: Memento-Mori VNs, Team Sleepyhead
Location: Yogyakarta, Indonesia.
Contact:

Re: Can anyone help recover my script?

#9 Post by azureXtwilight »

I guess I have to start over, then...
*epic sigh*
What causes all the null thingies?
Image

pinkmouse
Regular
Posts: 169
Joined: Wed Jun 10, 2009 7:47 am
Projects: A renpy beginner - test projects only atm
Contact:

Re: Can anyone help recover my script?

#10 Post by pinkmouse »

I'm really sorry that you've lost some work. I know it's bolting the door after the horse has bolted, but I find that this free program is really good:
http://www.spacejock.com/yWriter5.html

It's a word processor that's designed to work with lots of little short scenes, and it automatically backs up what you're writing. It does it both while you're actually writing, and also a dated auto backup of the entire project every session. I use it for writing the first draft (and redrafts) and then paste it into that Java Renpy editor. (I find that trying to write directly in the editor doesn't work for me because I get distracted by all the code and "stage directions" that have to be added.)

Anyway, good luck and keep going!

Mihara
Regular
Posts: 119
Joined: Thu Mar 11, 2010 2:52 pm
Contact:

Re: Can anyone help recover my script?

#11 Post by Mihara »

The nulls can occur for numerous reasons, starting with system/program crash while saving the file, continuing on to a bug in the editor being used, (that one would be rare, but if it's jEdit and your java interpreter is borked, I imagine it's possible) and ending with various kinds of disk corruption, recoverable and unrecoverable. It is tricky to tell which occurred without knowing more details about when it happened and what you were doing at the time, and whether it happens to any other files anywhere. Having had multiple copies beforehand is the only practical way of getting it back, as most other methods are high wizardry that requires direct access to your hardware.

For another way of bolting the door after the horse that does not involve using a specialised fiction writing editor like yWriter (which is still handy, but for other reasons, and can be used concurrently with this method) see Dropbox - a free online backup and versioning solution, which works nicely with RenPy if you simply set up the project directory inside your dropbox folder.

VenusEclipse
Veteran
Posts: 348
Joined: Fri Mar 13, 2009 5:26 pm
Completed: Princess of Ruin, Frozen Essence, Heartstring Bugs
Organization: Unbroken Hours
Tumblr: unbrokenhours
Deviantart: venus-eclipse
Location: Canada
Contact:

Re: Can anyone help recover my script?

#12 Post by VenusEclipse »

azureXtwilight wrote:I guess I have to start over, then...
*epic sigh*
What causes all the null thingies?
You don't mean you have to start all over from the very beginning, do you? T-T

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot]