Page 1 of 1
Silence where there's supposed to be music
Posted: Sat Aug 12, 2017 3:31 pm
by TheChatotMaestro
Title says it all. I tell it to play music, and it does not.
Code: Select all
play music "Anxiety_Madness_Paranoia.mp3"
That's correct, right? I tell it to do this right before the first thing said in the game, but it doesn't do a thing.
Code: Select all
A "'dialogue'"
""
stop music
""
A "dialogue"
play music "I_Am_Running_Down_the_Long_Hallway_of_Viewmont_Elementary.mp3"
""
K "dialogue"
A "dialogue"
"dialogue"
I tell it to stop the music and play some different music, but this too doesn't work. (Here's a bit of context. The " " is a blank message on the bottom screen, I added those for effect. The music is stock music, sorry for the odd name.) Should it not be indented like the dialogue is? I tried making it not-indented and it gave me an error.
Edit: fixed post formatting
Re: Silence where there's supposed to be music
Posted: Sat Aug 12, 2017 4:03 pm
by mikolajspy
If you don't get any errors, and music plays trough some music player outside game, did you check music volume in game options? That's the only thing that comes to my mind.
Re: Silence where there's supposed to be music
Posted: Sat Aug 12, 2017 8:30 pm
by TheChatotMaestro
The music volume is all the way up.
Should I have the music files in their own folder? They're just in there with the scripts.
Re: Silence where there's supposed to be music
Posted: Sun Aug 13, 2017 10:26 am
by TheChatotMaestro
I'm sorry to double-post, but thought I'd make a note that music will not play on the main menu either, so it must not be my code right there... Anyone else having this problem?
Re: Silence where there's supposed to be music
Posted: Sun Aug 13, 2017 4:58 pm
by Sarchalen
Check the format, for some reason my renpy won't play music as a wav file, only as an mp3. When I converted them over it worked fine. The code looks ok.
Re: Silence where there's supposed to be music
Posted: Mon Aug 14, 2017 3:04 pm
by TheChatotMaestro
It's already a MP3... I could convert it to wav with audacity, I'll try that.
Edit: Update: Didn't work.
Re: Silence where there's supposed to be music
Posted: Wed Aug 16, 2017 6:11 pm
by TheChatotMaestro
Even after updating Ren'py (which I swore I had done) and restarting my computer, I couldn't find a fix... Has anyone had this problem?
Re: Silence where there's supposed to be music
Posted: Thu Aug 17, 2017 5:25 am
by korova
What about ogg format ? (audacity can convert into that format too)
I had troubles with both mp3 and wav, never with ogg.
Re: Silence where there's supposed to be music
Posted: Thu Aug 17, 2017 9:17 pm
by TheChatotMaestro
Ogg does not work either, unless I converted it wrong.
Re: Silence where there's supposed to be music
Posted: Thu Aug 17, 2017 9:59 pm
by skyeworks
Hmmm...So you are sure that you put it in your game folder right as in
(Sorry, just making sure. Pic of my game and files.)
Hmmm....I don't know what's going on then it's should have worked. Like my code is basically
Code: Select all
play music "Artofescapism_-_Done_with_Disco.mp3"
r "DIALOGUE!"
And it works... hmmm....Can you link us the stock music and let us see? Also can you check the preference menu and see if it's not accidentally off? That's all I can say....
Re: Silence where there's supposed to be music
Posted: Thu Aug 17, 2017 10:05 pm
by TheChatotMaestro
I got all the stock music from
https://www.youtube.com/audiolibrary/music (there's a button to download it) , and I've checked the preference menu a billion times.
Re: Silence where there's supposed to be music
Posted: Thu Aug 17, 2017 10:44 pm
by skyeworks
Huh, So it's works for me, only a bit small. I was hoping to find something...(I've tried downloading the one on your code in particular, it's pretty quiet but it works.)

Can you make a new project, dump the sound in there and try that? Let's see if the problem confined within just one project? (if it's not then there's probably nothing wrong with the code...probably.)
Do you mind if you can upload your project? so I can check on it, it might be something else. (Like something that we're just not thinking about) (just zip your folder and send it? If you are okay with it...)
Re: Silence where there's supposed to be music
Posted: Sat Aug 19, 2017 9:23 am
by TheChatotMaestro
Ah, the problem might be with the specific project. I'll give that a try...
*after trying it*
Yes! It worked on a totally blank game (one I keep around to tell me what a blank game's directory should look like). I'll move all the script files into a new project and work from there. Thank you!
If anyone else is having this problem and stumbles across this thread, try what skyeworks said to do.