Name 'Seikichi' is not defined error

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
dragonzatch
Newbie
Posts: 2
Joined: Wed Mar 12, 2014 10:00 pm
Contact:

Name 'Seikichi' is not defined error

#1 Post by dragonzatch »

So I just started my game Only Human and before the first line of dialogue I screwed up somehow. :oops:

I even tried copypasting the Eileen example and replacing 'Eileen' with 'Seikichi', figuring Ren'Py's example code would work. Nope.

NOTE: My last name has been censored out of this in the directory, but nothing else has been changed.
I'm sorry, but an uncaught exception occurred.

While executing init code:
File "game/script.rpy", line 10, in script
File "game/script.rpy", line 10, in python
NameError: name 'Seikichi' is not defined

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

Full traceback:
File "C:\Users\(removed)\Documents\renpy-6.15.4-sdk\renpy\bootstrap.py", line 254, in bootstrap
renpy.main.main()
File "C:\Users\(removed)\Documents\renpy-6.15.4-sdk\renpy\main.py", line 265, in main
game.context().run(node)
File "C:\Users\(removed)\Documents\renpy-6.15.4-sdk\renpy\execution.py", line 288, in run
node.execute()
File "C:\Users\(removed)\Documents\renpy-6.15.4-sdk\renpy\ast.py", line 1590, in execute
value = renpy.python.py_eval_bytecode(self.code.bytecode)
File "C:\Users\(removed)\Documents\renpy-6.15.4-sdk\renpy\python.py", line 1321, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/script.rpy", line 10, in <module>
define s = Seikichi('Seikichi', color="#c8ffc8")
NameError: name 'Seikichi' is not defined

Windows-Vista-6.0.6002-SP2
Ren'Py 6.15.4.320
A Ren'Py Game 0.0
Line 10 in question:
define s = Seikichi('Seikichi', color="#c8ffc8")

philat
Eileen-Class Veteran
Posts: 1922
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Name 'Seikichi' is not defined error

#2 Post by philat »

The problem is the character definition code.

Code: Select all

define s = Character('Seikichi', color="#c8ffc8")

User avatar
rakada
Regular
Posts: 71
Joined: Tue Jan 07, 2014 11:00 pm
Contact:

Re: Name 'Seikichi' is not defined error

#3 Post by rakada »

yea you define the character wrong it should be like what philat said

a easy way to see how to do some basic things is to go into the question game that came with ren'py and look at how it made certain things work in it rpy files

Post Reply

Who is online

Users browsing this forum: No registered users