{SOLVED!} Why won't sound or music play at all?!
Posted: Thu Dec 12, 2019 4:54 am
I've been working on my demo art, trying to perfect it before continuing to code my game. I come back to find Ren'Py has basically been "updated", completely ruining my sounds and music in game. Nothing I do can seem to get it to be recognized. It won't run in any of the menus or in the game itself.
I've tried all of these types of things throughout my code:
THESE ARE IN THE SCRIPT:
define config.debug_sound = True
$ renpy.music.set_volume(volume=0.0, channel='two')
$ renpy.music.set_volume(volume=0.1, channel='one')
$ renpy.music.set_volume(volume=0.1, channel='three')
$ renpy.music.set_volume(volume=0.3, channel='seven')
init python:
config.default_music_volume = 0.45
config.debug_sound = True
config.say_attribute_transition
config.debug
config.default_transform
config.exit_sound = None
renpy.music.register_channel ("music", mixer = "music", loop = True, stop_on_mute = True, tight = False, file_prefix = 'audio/music/', file_suffix = '.ogg', buffer_queue = True)
renpy.music.register_channel ("sound", mixer = "sfx", loop = False, stop_on_mute = True, tight = False, file_prefix = 'audio/music/', file_suffix = '.ogg', buffer_queue = True)
##THESE ARE IN THE OPTIONS ############################################################
## These three variables control which mixers are shown to the player by
## default. Setting one of these to False will hide the appropriate mixer.
define config.has_sound = True
define config.has_music = True
define config.has_voice = False
define config.debug_sound = True
## To allow the user to play a test sound on the sound or voice channel,
## uncomment a line below and use it to set a sample sound to play.
# define config.sample_sound = "Bell"
## Uncomment the following line to set an audio file that will be played while
## the player is at the main menu. This file will continue playing into the
## game, until it is stopped or another file is played.
# define config.main_menu_music = "Dreamy-Game-Menu_Looping"
I have tried keeping them in their separate folders (SFX/MUSIC) and then putting them in the main game folder and I have also tried adding and removing their locations from the names of the music/sounds along with the .ogg. But literally nothing is working.
I have restarted my whole script and options from scratch, remaking a completely new RPY file and project AND STILL NOTHING!!!!
This is getting really ridiculous and frustrating. It already took me all day just to re-animate my main menu because of all the dumb ATL changes. I really hope this gets fixed or I might just give up on Ren'Py and go learn Unity or something else.
I've tried all of these types of things throughout my code:
THESE ARE IN THE SCRIPT:
define config.debug_sound = True
$ renpy.music.set_volume(volume=0.0, channel='two')
$ renpy.music.set_volume(volume=0.1, channel='one')
$ renpy.music.set_volume(volume=0.1, channel='three')
$ renpy.music.set_volume(volume=0.3, channel='seven')
init python:
config.default_music_volume = 0.45
config.debug_sound = True
config.say_attribute_transition
config.debug
config.default_transform
config.exit_sound = None
renpy.music.register_channel ("music", mixer = "music", loop = True, stop_on_mute = True, tight = False, file_prefix = 'audio/music/', file_suffix = '.ogg', buffer_queue = True)
renpy.music.register_channel ("sound", mixer = "sfx", loop = False, stop_on_mute = True, tight = False, file_prefix = 'audio/music/', file_suffix = '.ogg', buffer_queue = True)
##THESE ARE IN THE OPTIONS ############################################################
## These three variables control which mixers are shown to the player by
## default. Setting one of these to False will hide the appropriate mixer.
define config.has_sound = True
define config.has_music = True
define config.has_voice = False
define config.debug_sound = True
## To allow the user to play a test sound on the sound or voice channel,
## uncomment a line below and use it to set a sample sound to play.
# define config.sample_sound = "Bell"
## Uncomment the following line to set an audio file that will be played while
## the player is at the main menu. This file will continue playing into the
## game, until it is stopped or another file is played.
# define config.main_menu_music = "Dreamy-Game-Menu_Looping"
I have tried keeping them in their separate folders (SFX/MUSIC) and then putting them in the main game folder and I have also tried adding and removing their locations from the names of the music/sounds along with the .ogg. But literally nothing is working.
I have restarted my whole script and options from scratch, remaking a completely new RPY file and project AND STILL NOTHING!!!!
This is getting really ridiculous and frustrating. It already took me all day just to re-animate my main menu because of all the dumb ATL changes. I really hope this gets fixed or I might just give up on Ren'Py and go learn Unity or something else.