I had this problem and I couldn't understand the cause. If anyone could help me to clarify this, I would be grateful.
I created an event like this (simplified):
Code: Select all
label computer:
"The computer is on."
label .choices:
"Choose an option:
menu:
"Option A":
call option_a
jump .choices
"Option B":
"same thing here..."
"Turn off computer":
jump map_home
label option_a:
menu:
"option 1":
"something here..."
"go back":
return
However, when I did the distribuition package, Renpy added the "from" clause (_call_option_a), and the event broke. It looked like this:
Code: Select all
label computer:
"The computer is on."
label .choices:
"Choose an option:
menu:
"Option A":
call option_a from _call_option_a
jump .choices
"Option B":
"same thing here..."
"Turn off computer":
jump map_home
label option_a:
menu:
"option 1":
"something here..."
"go back":
return
And the error: could not find label '_call_option_a.choices'
What I understood was that he was looking for the local label in the wrong place. The local label ".choices" was inside the label "computer" and not the label "option_a".
What puzzled me was that the event was working before Renpy added the "from" clause, that is, before creating the distribution package. Are there any details that I did not realize? Do I really need to add this "from" clause (since the event worked without it)?
Thank you.