Sound channel 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
User avatar
marew603
Newbie
Posts: 8
Joined: Tue May 26, 2020 3:40 pm
Projects: A Dream That is Not My Reality
Organization: Skyrocket Studios
IRC Nick: Yuuki
Discord: marew603#0348
Contact:

Sound channel error

#1 Post by marew603 »

I'm trying to start using channels but I keep getting errors, here's the error message but I don't understand what's wrong

Code: Select all

I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.


File "game/days/day1.rpy", line 1622: expected statement.
    renpy.music.play(waves.mp3, channel=u'ambiance', loop=None, fadeout=None, synchro_start=False, fadein=0, tight=None, if_changed=False, relative_volume=1.0)
                                                                                                                                                               ^

File "game/options.rpy", line 8: expected statement.
    renpy.music.register_channel("ambiance", mixer="sound", loop=True, stop_on_mute=True, tight=False, file_prefix='', file_suffix='', buffer_queue=False, movie=False)
                                                                                                                                                                       ^

Ren'Py Version: Ren'Py 7.4.8.1895
Sat Jan 15 20:27:44 2022

User avatar
Alex
Lemma-Class Veteran
Posts: 3094
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Sound channel error

#2 Post by Alex »

Those lines must be either in python block or prefixed with $-sign.
https://www.renpy.org/doc/html/python.html

Post Reply

Who is online

Users browsing this forum: Dark79, Google [Bot], Majestic-12 [Bot]