Page 1 of 1

[SOLVED] Issue regarding music playing

Posted: Sat Dec 13, 2014 11:28 pm
by tejina
So I've inserted some music into my game (obviously).


There are no errors in the script itself, as nothing pops up, but...

IT JUST DOESN'T PLAY.

Only for that section! :x

I checked for any "stop music" and didn't find any near that segment.

Also re-added music under a different name, but the same issue occurs.

*shakes fist at Kat*

YOU'RE THE ONLY ONE THAT HAS THESE WEIRD PROBLEMS.

The music file is "kat_theme.mp3".

** EDIT**
Used code for indentation.

Code: Select all

    
    "Each time she passed me, she stared at me and slowed down. Eventually, she came to a halt, her red eyes curious."
    show ktrneu
    with dissolve
    stop sound
    play music "kat_theme.mp3"
    g "'Are you wanting to run?'"
    me "'Me? Ah, no, I was just...looking around.'"
    "She peered at me intently."
    show ktrsho
    g "'I don't know you, do I?'"
    me "'Probably not? I just started here today.'"
    scene field
    show ktrneu
    g "'Ah. That explains why you're not a familiar face.'"
    g "'...'"
    me "'...'"
    show ktrsho
    g "'I forgot to introduce myself, didn't I? I thought you'd know me, since you've been standing here staring at me.'"
    me "'Oh. Sorry about that.' I said hurriedly."
    "I didn't want anyone to get the wrong idea about me ALREADY."
    k "'I'm Katherine. But most people call me Kat.'"
    scene field
    show ktrneu
    k "'Kat with a K. I don't think I've ever heard of a CAT cat 'Kat' with a k, but you never know.'"
    show ktrsho
    k "'Do you know any cats with a k?'"
    me "'I...don't think so.'"
    show ktrneu
    k "'Oh, good.'"
    me "'My name is Scott. I'm a second year.'"
    k "'Me too, although my name isn't Scott, which you're probably aware of because I just introduced myself.'"
    show ktrcon
    k "'Didn't I?'"
    me "'Yes. Yes you did.'"
    scene field
    show ktrneu
    k "'Good, good. Sometimes I think I've left my brain a few laps behind.'"
    "We stared at each other for a few minutes, then she shrugged."
    k "'Do you need anything else?'"
    me "'Uh, no...not really.'"
    k "'I see. I'll resume my run, then.'"
    play sound "track_run.wav"
    hide ktrneu
    with dissolve
    "I stood there, puzzled, watching Kat run at a leisurely pace. She saw me and waved, then jogged off of the field and disappeared."
    "I figured I may as well leave, since it didn't seem that anyone else was going to show up."
    stop sound fadeout 1.0
    stop music fadeout 2.0
I've checked and double-checked the music file in the 'game' folder, but nothing doing.

Does anyone else have this problem or a solution?

x_x

Re: Issue regarding music playing

Posted: Sun Dec 14, 2014 7:11 am
by xela
if you are certain that mp3 is in the correct folder and is named correctly as well, try converting it to ogg, there are some encoding Ren'Py doesn't play.

Re: Issue regarding music playing

Posted: Sun Dec 14, 2014 8:28 am
by Donmai
Use CODE tags instead of QUOTE to show your code. This way we will be able to check your code for indentation problems.

Re: Issue regarding music playing

Posted: Sun Dec 14, 2014 9:19 am
by tejina
Donmai wrote:Use CODE tags instead of QUOTE to show your code. This way we will be able to check your code for indentation problems.
Duly noted!
if you are certain that mp3 is in the correct folder and is named correctly as well, try converting it to ogg, there are some encoding Ren'Py doesn't play.
On that note, does anyone know any mp3 to ogg converters? :?

Re: Issue regarding music playing

Posted: Sun Dec 14, 2014 11:10 am
by xela
tejina wrote:On that note, does anyone know any mp3 to ogg converters? :?
Google them, there should be even online onces (without download). I use audacity for stuff like that but it may require some setting up without added benefit in this case.

Re: [SOLVED] Issue regarding music playing

Posted: Sun Dec 14, 2014 1:07 pm
by tejina
That worked! Thank you so much =D

NOW I KNOW NEXT TIME KAT DECIDES TO CAUSE ISSUES.