[SOLVED] Issue regarding music playing

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
User avatar
tejina
Newbie
Posts: 14
Joined: Tue Dec 09, 2014 1:43 am
Projects: Faded Hearts, Ward 12
Organization: Tejigroup
Skype: tejina_kyousei
Contact:

[SOLVED] Issue regarding music playing

#1 Post 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
Last edited by tejina on Sun Dec 14, 2014 1:06 pm, edited 2 times in total.

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Issue regarding music playing

#2 Post 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.
Like what we're doing? Support us at:
Image

User avatar
Donmai
Eileen-Class Veteran
Posts: 1960
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Issue regarding music playing

#3 Post 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.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
tejina
Newbie
Posts: 14
Joined: Tue Dec 09, 2014 1:43 am
Projects: Faded Hearts, Ward 12
Organization: Tejigroup
Skype: tejina_kyousei
Contact:

Re: Issue regarding music playing

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

User avatar
xela
Lemma-Class Veteran
Posts: 2481
Joined: Sun Sep 18, 2011 10:13 am
Contact:

Re: Issue regarding music playing

#5 Post 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.
Like what we're doing? Support us at:
Image

User avatar
tejina
Newbie
Posts: 14
Joined: Tue Dec 09, 2014 1:43 am
Projects: Faded Hearts, Ward 12
Organization: Tejigroup
Skype: tejina_kyousei
Contact:

Re: [SOLVED] Issue regarding music playing

#6 Post by tejina »

That worked! Thank you so much =D

NOW I KNOW NEXT TIME KAT DECIDES TO CAUSE ISSUES.
Image

Post Reply

Who is online

Users browsing this forum: DewyNebula