RenPy Can't Find The Labels

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.
Message
Author
Cleril
Regular
Posts: 37
Joined: Fri Apr 12, 2013 4:20 pm
Contact:

RenPy Can't Find The Labels

#1 Post by Cleril »

RenPy must be drunk.

Code: Select all

game/Chapter 5.rpy:116 The call is to nonexistent label 'chapter61'.

game/Chapter 5.rpy:118 The call is to nonexistent label 'chapter62'.

game/Chapter 5.rpy:124 The call is to nonexistent label 'chapter64'.
Here's the code for all four chapters with labels, only one of which Renpy is finding. It finds 63 but why it's not finding 61, 62, or 64 which is beyond me.

Code: Select all

#play sound effect Julia deep breath
label chapter63:
play sound "Eating Julia.ogg"
"Here, on her bed, we fuck."
scene juliabreast with dissolve

Code: Select all

#Player did not have sex with Julia and was honest with Felicia.
label chapter62:
play music "Drawing Roses.ogg"
f "What are we going to draw, Chris?"
c "Why not draw a flower?  A rose perhaps?"

Code: Select all

#Player had sex with Julia and was honest with Felicia.  Can date either one or none of them.
label chapter64:
play music "Anxiety.ogg"
"You have 0 new messages."
"You have 0 new voicemails."

Code: Select all

#Player did not have sex with Julia and was not honest with Felicia.  Felicia catches player using porn.


label chapter61:
    play music "Felicia Catch loop.ogg"
    "What is a kiss?  It's a physical bond of lips, crevices."
    " A touch your hands are incapable of reaching."
    f "Hehe, that tickles."
    "Cute laugh.  Organic sound system."
    " This woman, this Felicia.  She's everything I want and nothing I deserve.

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: RenPy Can't Find The Labels

#2 Post by trooper6 »

Could this be an indentation problem? I notice that label chapter61 is indented, but the others aren't. I know that there are some things that may not technically need indentation, but I think consistency is good. So, I'd first start by making all of the indentation uniform and then see what is up.

Also, could we see the code where the calls are made?
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Cleril
Regular
Posts: 37
Joined: Fri Apr 12, 2013 4:20 pm
Contact:

Re: RenPy Can't Find The Labels

#3 Post by Cleril »

I did try making indentation the same but that didn't change anything.

And even if 61 is the only one indented RenPy is still only finding 63 which isn't indented.

The calls occur from chapter 5 which is below.

Code: Select all

pause 5
if hadjuliasex == "no":
    if addicttell == "no":
        call chapter61
    elif addicttell == "yes":
        call chapter62
elif hadjuliasex == "yes":
    if addicttell == "no":
        scene Dark with dissolve
        call chapter63
    elif addicttell == "yes":
        call chapter64

Clef
Regular
Posts: 40
Joined: Wed Sep 18, 2013 11:16 am
Contact:

Re: RenPy Can't Find The Labels

#4 Post by Clef »

Now I'm sure this is not the problem but... the line "call chapter63" is the only one that has anoter line before it and after the IF.

just for fun, try to make

Code: Select all

pause 5
if hadjuliasex == "no":
    if addicttell == "no":
        scene Dark with dissolve
        call chapter61
    elif addicttell == "yes":
        scene Dark with dissolve
        call chapter62
elif hadjuliasex == "yes":
    if addicttell == "no":
        scene Dark with dissolve
        call chapter63
    elif addicttell == "yes":
        scene Dark with dissolve
        call chapter64

Cleril
Regular
Posts: 37
Joined: Fri Apr 12, 2013 4:20 pm
Contact:

Re: RenPy Can't Find The Labels

#5 Post by Cleril »

Clef wrote:Now I'm sure this is not the problem but... the line "call chapter63" is the only one that has anoter line before it and after the IF.
Tried and no dice.

RenPy still finds 63 just fine but is blind to the others.

I'm telling ya, it's drunk for the weekend early.

User avatar
PyTom
Ren'Py Creator
Posts: 16097
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: RenPy Can't Find The Labels

#6 Post by PyTom »

Is it possible that the file with the labels in it doesn't end with .rpy?
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

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: RenPy Can't Find The Labels

#7 Post by Elmiwisa »

Cleril wrote:RenPy must be drunk.

Code: Select all

game/Chapter 5.rpy:116 The call is to nonexistent label 'chapter61'.

game/Chapter 5.rpy:118 The call is to nonexistent label 'chapter62'.

game/Chapter 5.rpy:124 The call is to nonexistent label 'chapter64'.
Here's the code for all four chapters with labels, only one of which Renpy is finding. It finds 63 but why it's not finding 61, 62, or 64 which is beyond me.

Code: Select all

#play sound effect Julia deep breath
label chapter63:
play sound "Eating Julia.ogg"
"Here, on her bed, we fuck."
scene juliabreast with dissolve

Code: Select all

#Player did not have sex with Julia and was honest with Felicia.
label chapter62:
play music "Drawing Roses.ogg"
f "What are we going to draw, Chris?"
c "Why not draw a flower?  A rose perhaps?"

Code: Select all

#Player had sex with Julia and was honest with Felicia.  Can date either one or none of them.
label chapter64:
play music "Anxiety.ogg"
"You have 0 new messages."
"You have 0 new voicemails."

Code: Select all

#Player did not have sex with Julia and was not honest with Felicia.  Felicia catches player using porn.


label chapter61:
    play music "Felicia Catch loop.ogg"
    "What is a kiss?  It's a physical bond of lips, crevices."
    " A touch your hands are incapable of reaching."
    f "Hehe, that tickles."
    "Cute laugh.  Organic sound system."
    " This woman, this Felicia.  She's everything I want and nothing I deserve.
1. What happen if you run the game?
2. Try adding

Code: Select all

label chapter61:
label chapter62:
label chapter64:
    "Label found this time!"
to the top of the file (while keeping the existing label in tact). See what happen.

Cleril
Regular
Posts: 37
Joined: Fri Apr 12, 2013 4:20 pm
Contact:

Re: RenPy Can't Find The Labels

#8 Post by Cleril »

PyTom wrote:Is it possible that the file with the labels in it doesn't end with .rpy?
It's funny you mention that. I dug around and found out that label 63 has a rpcy file type much like every other chapter before it.

Before I go on, yes, all of these end with .rpy.

Sadly, none of the other branches of chapter 6 have rpcy filestypes which is why I suspect RenPy is not finding their labels since it is only using rpcy filetypes as per protocol with the program.

However, RenPy is supposed to make rpcy filetypes automatically but clearly it isn't.

I tried saving each of the other chapter 6s as rpcy but then the game just broke entirely and would not launch whatsoever.

Right now it launches but can't access the other Chapter6s.

Basically RenPy for whatever reason never made rpcy filetypes for scripts and therefore doesn't recognize any code within them.

As I said, RenPy is drunk.

So how do I sober this puppy up?

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: RenPy Can't Find The Labels

#9 Post by Elmiwisa »

It's a bit suspicious that you keep making the typo with the file extension....
Anyway, if you have not get around to trying out the suggestions I made, try deleting all the rpyc files and run again, to make sure Ren'Py reproduce these files.

User avatar
PyTom
Ren'Py Creator
Posts: 16097
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: RenPy Can't Find The Labels

#10 Post by PyTom »

I kind of doubt Ren'Py is the problematic thing here - this functionality hasn't been changed in years, and if didn't work it would be everyone's problem.

Could you zip up your game and post it somewhere? That would allow us to help more.
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

Cleril
Regular
Posts: 37
Joined: Fri Apr 12, 2013 4:20 pm
Contact:

Re: RenPy Can't Find The Labels

#11 Post by Cleril »

Elmiwisa wrote:It's a bit suspicious that you keep making the typo with the file extension....
Anyway, if you have not get around to trying out the suggestions I made, try deleting all the rpyc files and run again, to make sure Ren'Py reproduce these files.
Hush you, when I saved them myself I had no typos. :roll:

I'll try that but I don't see how that would be preventing renpy from making rpyc files for the branches.

And just tried deleting all rpyc files.

RenPy once again made all rpyc files for every page of script except the ones with the labels which RenPy won't recognize.

Zipping the game up now.

Cleril
Regular
Posts: 37
Joined: Fri Apr 12, 2013 4:20 pm
Contact:

Re: RenPy Can't Find The Labels

#12 Post by Cleril »

Here's the game, as shown, no rpyc files created by renpy for the chapters having issues being recognized:

http://www.fileconvoy.com/dfl.php?id=ge ... ddf7b7fba6

User avatar
trooper6
Lemma-Class Veteran
Posts: 3712
Joined: Sat Jul 09, 2011 10:33 pm
Projects: A Close Shave
Location: Medford, MA
Contact:

Re: RenPy Can't Find The Labels

#13 Post by trooper6 »

I just looked at the files and you didn't put the file type on your chapter 6 files.

I'm also seeing a bit of weirdness in general with your files.

Let me explain what I mean.

For Chapter 2, you have the following files:

Chapter 2
Chapter 2.rpy
Chapter 2.rpy~
Chapter 2.rpyc
Chapter 2~

So...what is "Chapter 2" and "Chapter 2~" about? Renpy isn't going to do anything with files without the rpy file type. So that that "Chapter 2" file isn't going to do anything while the "Chapter 2.rpy" file will do something.

Looking at your Chapter 6 files you have:
Chapter 6 Either Or
Chapter 6 Felicia
Chapter 6 Felicia Catch
Chapter 6 Sex with Julia.rpy

Do you notice that only one of the files has the rpy filetype? and when I open that file, no surprise, that is the chapter63...the only one that is being read. Because Renpy won't read the file if it doesn't have .rpy file type.

So change your file names to:
Chapter 6 Either Or.rpy
Chapter 6 Felicia.rpy
Chapter 6 Felicia Catch.rpy
Chapter 6 Sex with Julia.rpy
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?)
Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: RenPy Can't Find The Labels

#14 Post by Elmiwisa »

Whew...the solution turn out to be THAT...
Do you use Editra to make these files? Because it only colour the text with Ren'Py keywords and such only if you use the correct file type, otherwise it will either coloured the text wrong or have no colourings.
Thanks to trooper6 saving the day. :D (I am scared of downloading it because of what I think the content would be) :oops:

Cleril
Regular
Posts: 37
Joined: Fri Apr 12, 2013 4:20 pm
Contact:

Re: RenPy Can't Find The Labels

#15 Post by Cleril »

Tried that, then I get this, and so the novel won't launch now.

So I don't need to tilda files? Don't ask how any of this happened. I just saved as usual and the other chapters came out fine. Still going with RenPy being drunk. :3

I'm sorry, but an uncaught exception occurred.

While loading the script.
error: Error -3 while decompressing data: incorrect header check

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

Full traceback:
File "C:\Program Files (x86)\Renpy\renpy-6.13.12\renpy\bootstrap.py", line 296, in bootstrap
File "C:\Program Files (x86)\Renpy\renpy-6.13.12\renpy\main.py", line 226, in main
File "C:\Program Files (x86)\Renpy\renpy-6.13.12\renpy\script.py", line 173, in load_script
File "C:\Program Files (x86)\Renpy\renpy-6.13.12\renpy\script.py", line 393, in load_appropriate_file
File "C:\Program Files (x86)\Renpy\renpy-6.13.12\renpy\script.py", line 305, in load_file
File "C:\Program Files (x86)\Renpy\renpy-6.13.12\renpy\script.py", line 283, in load_file_core
File "encodings\zlib_codec.pyo", line 43, in zlib_decode
error: Error -3 while decompressing data: incorrect header check

Windows-7-6.1.7601-SP1
Ren'Py 6.13.12.1728

EDIT

Redownlaoded RenPy and still getting the same error.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]