expected label name not found .. but the button finds it?

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
william_dickson
Newbie
Posts: 10
Joined: Tue Apr 23, 2019 1:18 am
Completed: >10 html5/canvas javascript browser games
Organization: eroticinteractivegames.com
Location: Glasgow, Scotland
Contact:

expected label name not found .. but the button finds it?

#1 Post by william_dickson » Mon Oct 12, 2020 10:44 am

This is the button:

screen devNight():
textbutton _("Dev Night") style "stdButton" xalign 0.5 yalign 0.5 action Jump("toNight")

Works like a charm

Here's a block I jump to as a placeholder, mess around in it, have a button (devMorning) to jump to the next section or want to just return to the start of this one if I don't click it.

label toNight:
scene dream_encounter_01_c01 with dissolve
hide screen devNight
show devNightIntro
$renpy.pause()
scene dream_encounter_01_c02 with dissolve
hide devNightIntro
narrator "Introducing a second layer in the game"
scene dream_encounter_01_c03 with dissolve
narrator "Showing you some renders"
scene dream_encounter_01_c04 with dissolve
show screen devMorning
narrator "But no spoilers"
jump "toNight"
#return

I tried with and without return (after all, I have little idea of what I'm doing, apparently) to no avail.
But I get an 'expected label name not found' while the button finds it. How?

Thanks in advance

(also, I google my ass of thinking somebody else must have encountered this problem without hits. Am I *that* weird?)

OrsonDeWitt
Regular
Posts: 35
Joined: Thu Dec 06, 2018 3:23 am
Contact:

Re: expected label name not found .. but the button finds it?

#2 Post by OrsonDeWitt » Mon Oct 12, 2020 10:47 am

I think your issue is that you're using quotation marks. It should be

Code: Select all

jump toNight
Also, return can only be used when you're doing

Code: Select all

call toNight

william_dickson
Newbie
Posts: 10
Joined: Tue Apr 23, 2019 1:18 am
Completed: >10 html5/canvas javascript browser games
Organization: eroticinteractivegames.com
Location: Glasgow, Scotland
Contact:

Re: expected label name not found .. but the button finds it?

#3 Post by william_dickson » Mon Oct 12, 2020 10:53 am

God I'm such a dork. I took 'm from the button, they need them there :/
And it's seriously not the only two labels I'm jumping to and from (or indeed Call)
/me slaps forhead.

Thanks!

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]