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.
-
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:
#1
Post
by ShojiAmasawa » Sat Mar 21, 2015 4:03 pm
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.
-
Riverbird
- Newbie
- Posts: 21
- Joined: Wed Feb 11, 2015 2:41 pm
- Deviantart: RiverbirdAlpha
-
Contact:
#2
Post
by Riverbird » Sat Mar 21, 2015 4:25 pm
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.)
-
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:
#3
Post
by ShojiAmasawa » Sat Mar 21, 2015 4:28 pm
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!
-
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:
#4
Post
by YossarianIII » Sat Mar 21, 2015 7:56 pm
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.
-
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:
#5
Post
by ShojiAmasawa » Sat Mar 21, 2015 8:39 pm
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.
Users browsing this forum: Bing [Bot]