[solved] Error when playing sound

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
thelateknight
Newbie
Posts: 4
Joined: Mon Aug 19, 2013 4:20 am
Projects: Summer Session, Specter, The Man in the Top Hat
Location: CA, USA
Contact:

[solved] Error when playing sound

#1 Post by thelateknight »

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.

Thanks in advance!


Code: Select all

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.

User avatar
Chrizine
Regular
Posts: 178
Joined: Fri Nov 26, 2010 1:47 pm
Projects: Perios - Chained Sorceress (WIP), Sword vs. Staff (WIP)
Organization: Motdl Productions
Location: Currently Switzerland
Contact:

Re: Error when playing sound

#2 Post by Chrizine »

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.
Take a look at Perios - Chained Sorceress!
And also on Sword vs. Staff, my short new project...
And, of course, our blog!
Honest Critique

thelateknight
Newbie
Posts: 4
Joined: Mon Aug 19, 2013 4:20 am
Projects: Summer Session, Specter, The Man in the Top Hat
Location: CA, USA
Contact:

Re: Error when playing sound

#3 Post by thelateknight »

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.

Post Reply

Who is online

Users browsing this forum: Google [Bot]