I just started this game with episode #1 and am getting this error:
Code:
File "game/EP1.rpy", line 2064, in <module>
$renpy.sound.set_volume(2.0, 'sound')
TypeError: a float is required
The error is because the
sound.set_volume
function expects three arguments: a float that is a scaler of the channel volume, a float that is a delay, and a channel number or name. The argument
'sound'
is not a float for the delay value and causes the error.
The correct forms for this statement should be:
$renpy.sound.set_volume(2.0, 0.0, 'sound')
Arguments in order.
$renpy.sound.set_volume(2.0, channel='sound')
The first argument in order and the second named.
$renpy.sound.set_volume(2.0)
Just the first required argument. The other two use their default values: delay=0.0
and channel='sound'
.
There are six instances of this error: four in
EP1.rpy
and two in
EP1_F.rpy
. Changing them to one of the three listed forms eliminates the error.
BTW: Setting the volume to twice the channel volume level as set by the player is a horrible thing to do to the player, their speakers, and anyone in the same room.
Please try to keep that volume level to between 0.0 and 1.0.
BTW-BTW: I almost forgot to say: I really like the game so far and am looking forward to progressing through the chapters.