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.
Can anyone please tell me what the traceback below means, and how I can fix it? The command is so simple (play sound "door.wav") that I'm not seeing where I made the error.
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 78, in script
TypeError: __init__() takes exactly 3 arguments (2 given)
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "C:\Users\Owner\Documents\Ren'py\renpy\execution.py", line 288, in run
node.execute()
File "C:\Users\Owner\Documents\Ren'py\renpy\ast.py", line 453, in execute
renpy.exports.say(who, what, interact=self.interact)
File "C:\Users\Owner\Documents\Ren'py\renpy\exports.py", line 757, in say
who(what, interact=interact)
TypeError: __init__() takes exactly 3 arguments (2 given)
Windows-7-6.1.7601-SP1
Ren'Py 6.15.7.374
Summer Session 1.0
Last edited by thelateknight on Mon Aug 19, 2013 10:54 am, edited 1 time in total.
It would probably help if you would post the part of your script where the error occurs... That would make it easier to help you.
Just post line 78 and a few lines around.
edit: nevermind, I realized what the issue was. And it's such a dumb mistake on my part--it should be "play" not "Play" the capitalized P messed things up.