Silence where there's supposed to be music

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
TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Silence where there's supposed to be music

#1 Post 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

mikolajspy
Regular
Posts: 169
Joined: Sun Jun 04, 2017 12:05 pm
Completed: Too many, check signature
Deviantart: mikolajspy
Location: Wrocław, Poland
Contact:

Re: Silence where there's supposed to be music

#2 Post 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.

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: Silence where there's supposed to be music

#3 Post 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.

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: Silence where there's supposed to be music

#4 Post 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?

User avatar
Sarchalen
Regular
Posts: 29
Joined: Tue Aug 08, 2017 5:23 pm
Projects: Sugawara Chronicle
Contact:

Re: Silence where there's supposed to be music

#5 Post 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.

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: Silence where there's supposed to be music

#6 Post by TheChatotMaestro »

It's already a MP3... I could convert it to wav with audacity, I'll try that.
Edit: Update: Didn't work.

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: Silence where there's supposed to be music

#7 Post 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?

User avatar
korova
Veteran
Posts: 217
Joined: Sat Jun 27, 2009 5:15 pm
Completed: Ivy, Chocolate, Time, Clair Obscur
Projects: Writing exercises, The House [Nano18]
Tumblr: korova08
itch: korova
Location: Normandie, France
Contact:

Re: Silence where there's supposed to be music

#8 Post by korova »

What about ogg format ? (audacity can convert into that format too)
I had troubles with both mp3 and wav, never with ogg.

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: Silence where there's supposed to be music

#9 Post by TheChatotMaestro »

Ogg does not work either, unless I converted it wrong.

User avatar
skyeworks
Regular
Posts: 84
Joined: Thu Jul 27, 2017 11:36 am
Projects: K9-11
itch: skyefrost
Contact:

Re: Silence where there's supposed to be music

#10 Post by skyeworks »

Hmmm...So you are sure that you put it in your game folder right as in
1.jpg
(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....
Image

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: Silence where there's supposed to be music

#11 Post 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.

User avatar
skyeworks
Regular
Posts: 84
Joined: Thu Jul 27, 2017 11:36 am
Projects: K9-11
itch: skyefrost
Contact:

Re: Silence where there's supposed to be music

#12 Post by skyeworks »

TheChatotMaestro wrote: Thu Aug 17, 2017 10:05 pm 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.
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...)
Image

TheChatotMaestro
Regular
Posts: 91
Joined: Mon Jul 31, 2017 8:33 am
Deviantart: LedianWithACamera
Contact:

Re: Silence where there's supposed to be music

#13 Post 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.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Ocelot