Sound Effects, Music Not 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
ShojiAmasawa
Veteran
Posts: 211
Joined: Fri May 11, 2012 5:26 pm
Completed: EVOLVEd: Echoes Of The Codex War, [ASH] the Seeds of Destruction
Projects: Cult of the Lily (18+)
Organization: PaperDoor Studios
Tumblr: paperdoorstudios
Deviantart: ShojiAmasawa
Soundcloud: Greyberry
Location: Cloudbase
Contact:

Sound Effects, Music Not Playing

#1 Post by ShojiAmasawa »

No matter what we have tried, sound effects don't seem to play in our project. No error messages, they simply don't play. I tried making a new channel, but nothing changed.

And if that wasn't bad enough, the music actually does cause an error message to pop up.

Code: Select all

        renpy.music.play(eval(p["file"]),
                         fadeout=eval(p["fadeout"]),
                         fadein=eval(p["fadein"]),
                         channel=channel,
                         loop=p.get("loop", None),
                         if_changed=p.get("if_changed", true))

Code: Select all

NameError: global name "true" is not defined
So, any ideas? Is there any more information needed? This is for NaNoRenO 2015, so any help would be appreciated.

User avatar
Riverbird
Newbie
Posts: 21
Joined: Wed Feb 11, 2015 2:41 pm
Deviantart: RiverbirdAlpha
Contact:

Re: Sound Effects, Music Not Playing

#2 Post by Riverbird »

Is it that you need to use True instead of true?

(I might be well off with this one, but it's a mistake I make time and time again.)

User avatar
ShojiAmasawa
Veteran
Posts: 211
Joined: Fri May 11, 2012 5:26 pm
Completed: EVOLVEd: Echoes Of The Codex War, [ASH] the Seeds of Destruction
Projects: Cult of the Lily (18+)
Organization: PaperDoor Studios
Tumblr: paperdoorstudios
Deviantart: ShojiAmasawa
Soundcloud: Greyberry
Location: Cloudbase
Contact:

Re: Sound Effects, Music Not Playing

#3 Post by ShojiAmasawa »

Riverbird wrote:Is it that you need to use True instead of true?

(I might be well off with this one, but it's a mistake I make time and time again.)
Well, you just solved half the problem! I did not realise capitalisation made a difference. Thanks, Riverbird!

User avatar
YossarianIII
Veteran
Posts: 382
Joined: Tue Jan 13, 2015 10:26 pm
Completed: Guns & Lovers; SRRT!; Kill Your Refrigerator; Banality Man; Beretta Mondatta
Projects: Solidarity Forever
Organization: KONOL Games
Contact:

Re: Sound Effects, Music Not Playing

#4 Post by YossarianIII »

What file format are you using?

For whatever reason, I've had trouble with certain .WAV files not playing... and have not been able to figure out why they're different from the .WAV files that do work. But .OGG files seem to work universally, take up less space, and will sound fine to everyone but the most persnickety audiophiles.

Image Image

User avatar
ShojiAmasawa
Veteran
Posts: 211
Joined: Fri May 11, 2012 5:26 pm
Completed: EVOLVEd: Echoes Of The Codex War, [ASH] the Seeds of Destruction
Projects: Cult of the Lily (18+)
Organization: PaperDoor Studios
Tumblr: paperdoorstudios
Deviantart: ShojiAmasawa
Soundcloud: Greyberry
Location: Cloudbase
Contact:

Re: Sound Effects, Music Not Playing [SOLVED]

#5 Post by ShojiAmasawa »

YossarianIII wrote:What file format are you using?

For whatever reason, I've had trouble with certain .WAV files not playing... and have not been able to figure out why they're different from the .WAV files that do work. But .OGG files seem to work universally, take up less space, and will sound fine to everyone but the most persnickety audiophiles.
Thanks! You just solved the second half of the problem. My brother is a bit of an audiophile, but I don't think the change will bother him.

Post Reply

Who is online

Users browsing this forum: Google [Bot]