Volume clause on play not valid?

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
Karrion
Regular
Posts: 68
Joined: Fri Jan 18, 2019 8:33 pm
Projects: Murder on the Marine Express
Organization: 1564 Studio
itch: 1564-studio
Contact:

Volume clause on play not valid?

#1 Post by Karrion » Sat May 01, 2021 1:30 pm

I was trying to modulate the volume of some music during the game by adding the volume clause to the play statement and got this error:

Image

I tried different numbers from 0 to 2 and none work. Anyone knows why that is?
1564 Studio, an indie studio dedicated to developing mystery VNs!
Follow us on Twitter for updates on our projects!

Image

Check out our current project, just released on PC and Android!

Image

User avatar
Andredron
Miko-Class Veteran
Posts: 535
Joined: Thu Dec 28, 2017 2:37 pm
Completed: Kimi ga nozomu renpy-port(demo), Albatross Koukairoku(demo)
Projects: Sisters ~Natsu no Saigo no Hi~(renpy-port)
Location: Russia
Contact:

Re: Volume clause on play not valid?

#2 Post by Andredron » Sat May 01, 2021 4:53 pm

I'm writing a Renpy textbook (in Russian). https://disk.yandex.ru/i/httNEajU7iFWHA (all information is out of date) Update 22.06.18

Help me to register in QQ International

Honest Critique

User avatar
IrinaLazareva
Veteran
Posts: 399
Joined: Wed Jun 08, 2016 1:49 pm
Projects: Legacy
Organization: SunShI
Location: St.Petersburg, Russia
Contact:

Re: Volume clause on play not valid?

#3 Post by IrinaLazareva » Sun May 02, 2021 3:27 pm

Karrion wrote:
Sat May 01, 2021 1:30 pm
I tried different numbers from 0 to 2 and none work. Anyone knows why that is?
Your code is correct (1.0 is max). I assume you are using an old version of the launcher. This feature was added relatively recently..

https://www.renpy.org/doc/html/changelo ... cellaneous
It is now possible to specify a relative audio channel whenever an audio is file is played, using the new volume clause to play and queue.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]