Name not defined, though it is??

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
kizovu
Newbie
Posts: 6
Joined: Tue Feb 16, 2016 7:08 am
Projects: LUCID, School of Hostages, CONNECTING, Dream VOCALIVE
Tumblr: clamen-t
Deviantart: kizovu
Contact:

Name not defined, though it is??

#1 Post by kizovu » Wed Jan 04, 2017 4:02 am

Okay, so I threw all my script into Ren'py after typing it up in word. I edited where it needed to be edited, and then I tried to preview my game so I could see how it looks.

However, one of my names says it's not defined, even though it is? I re-defined it anyways, and it's still showing up with error, so...

My code looks like this:

Code: Select all

$ Blank = Character(_('   '), show_two_window=True, color="#fff")
And text in the game looks like:

Code: Select all

Blank "I assumed it was a dream, with how real it felt."
Blank "It was like I was put into the dream itself."
And the error I'm getting is:

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 173, in script
    Blank "I assumed it was a dream, with how real it felt."
Exception: Sayer 'Blank' is not defined.

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

Full traceback:
  File "game/script.rpy", line 173, in script
    Blank "I assumed it was a dream, with how real it felt."
  File "C:\Users\morim\Documents\renpy-6.99.8-sdk\renpy\ast.py", line 583, in execute
    who = eval_who(self.who, self.who_fast)
  File "C:\Users\morim\Documents\renpy-6.99.8-sdk\renpy\ast.py", line 500, in eval_who
    raise Exception("Sayer '%s' is not defined." % who.encode("utf-8"))
Exception: Sayer 'Blank' is not defined.

Windows-8-6.2.9200
Ren'Py 6.99.8.959
LUCID 0.0
And I don't think the fact I left it empty with spaces, because I did the exact same thing in plenty of other games and it hasn't given me an issue.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3636
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Name not defined, though it is??

#2 Post by Imperf3kt » Wed Jan 04, 2017 4:26 am

Do you need to translate the name? If not, try dropping the first (_ from the line, see if it helps.

My guess is you're using renpy language, in a python chunk. But it's only a guess, I don't actually know.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1883
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Name not defined, though it is??

#3 Post by Ocelot » Wed Jan 04, 2017 4:41 am

Try define Blank = ... istead of what you have now.
< < insert Rick Cook quote here > >

User avatar
kizovu
Newbie
Posts: 6
Joined: Tue Feb 16, 2016 7:08 am
Projects: LUCID, School of Hostages, CONNECTING, Dream VOCALIVE
Tumblr: clamen-t
Deviantart: kizovu
Contact:

Re: Name not defined, though it is??

#4 Post by kizovu » Wed Jan 04, 2017 3:38 pm

Ocelot wrote:Try define Blank = ... istead of what you have now.
fick.png
...That worked. Thank you so much,,,

Post Reply

Who is online

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