- Sep 22, 2021
- 434
- 3,403
View attachment 3783017
View attachment 3783020
View attachment 3783023
Didn't work, what am i doing wrong?
i tried that exact code and file name. it works fine.View attachment 3783017
View attachment 3783020
View attachment 3783023
Didn't work, what am i doing wrong?
play music "audio/ep1/intro_song.mp3" fadein 1.0 loop
maybe it has to do with where the game and/or renpy is located. put renpy and the project folder in C:\test\ and see if it works.View attachment 3783329
View attachment 3783336
View attachment 3783337
View attachment 3783338
So have i just been cursed with black magic to not have audio in my game or something?
I tried your suggestion it didn't work unfortunately.Wondering if "track1" is making something screwy with Ren'py. It's unlikely, but worth a shot. You could also try adding a subfolder in the audio for that specific update.
So, it'd end up looking something like:
There's also a slight possibility that it could be the audio file itself. Maybe a codec Ren'py isn't agreeing with. Have you tried using the same file in a fresh Ren'py game? Does it work? If not, then I could see it being the audio file. Hard to say without having the file in hand to work with.Python:play music "audio/ep1/intro_song.mp3" fadein 1.0 loop
Can you send the link to the file? I'll try it in one of my games that I know work. If not, I'll run it through Audition and see if a reencode fixes anything.I tried your suggestion it didn't work unfortunately.
I got the audio file from a royalty free music site so maybe the file is fucked? if so how would i go about fixing it?
That didn't work either, could it be an authorization issue?maybe it has to do with where the game and/or renpy is located. put renpy and the project folder in C:\test\ and see if it works.
I think it was this one.Can you send the link to the file? I'll try it in one of my games that I know work. If not, I'll run it through Audition and see if a reencode fixes anything.
i thought of that but as i said above, i tried his code as it is, and it worksI see your issue, I think. In your code above, after "label start", you need to hit tab on the new line before writing the code. Same goes for any new label.
Like so:
View attachment 3783513
Edit: As an FYI, Pixabay doesn't allow adult content in their new license. Will they enforce it? Who knows. But something to be aware of all the same.
do you show file extensions in your folder? because if you don't, the real name will be track1.mp3.mp3That didn't work either, could it be an authorization issue?
checking on the internet, others have had your error when the audio file was corrupted. did you try playing it in a mediaplayer?I think it was this one.You must be registered to see the links
It works fine for me in both Ren'py and via any number of media players. The only thing that really makes sense here is the code indentation. Though I suppose it's entirely possible the download of the file itself was corrupted.checking on the internet, others have had your error when the audio file was corrupted. did you try playing it in a mediaplayer?
Ok it worked it was mp3.mp3. i tried it without the mp3 at some point incase it was that but i guess i forgot to try it after adding audio/do you show file extensions in your folder? because if you don't, the real name will be track1.mp3.mp3
if so, remove the .mp3