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.
-
amisth
- Newbie
- Posts: 5
- Joined: Mon Jul 05, 2010 1:01 pm
-
Contact:
#1
Post
by amisth » Tue Aug 17, 2010 7:10 pm
Hi everyone!
I ran into some weird problem while testing my current project. On my friend's computer code below doesn`t work as I`ve predicted. Game doesn`t pause and there`s no sound at all. Still works perfectly for other computers I`ve tested.
Code: Select all
def sleep():
renpy.sound.play('se/sleep_night.ogg')
ui.layer('master')
ui.image(Animation("sleep/z-z-z.png",1,
"sleep/z-z-z_1.png",1,
"sleep/z-z-z_2.png",1,
"sleep/z-z-z_3.png",1))
ui.close()
renpy.pause(1.0)
while renpy.sound.get_playing('sound') != None:
renpy.pause(0.1)
ui.layer('master')
ui.clear()
ui.close()
Computer configuration
Windows 7, audio driver version 6.0.1.5964
-
PyTom
- Ren'Py Creator
- Posts: 15893
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
-
Contact:
#2
Post
by PyTom » Tue Aug 17, 2010 8:24 pm
For sound problems, you should set config.debug_sound = True. By default, Ren'Py ignores errors in the sound layer.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama •
https://www.patreon.com/renpytom
-
amisth
- Newbie
- Posts: 5
- Joined: Mon Jul 05, 2010 1:01 pm
-
Contact:
#3
Post
by amisth » Wed Aug 18, 2010 3:06 pm
I did what you recommended, but surprisingly the game doesn't show any errors =\
-
The Monkey Ninja
- Regular
- Posts: 34
- Joined: Mon Jul 05, 2010 5:06 pm
- Projects: 3^07, OneTimeValentine, OtomeDesign
- Organization: MooseCake Productions
- Deviantart: the-monkey-ninja
- Location: South Africa
-
Contact:
#4
Post
by The Monkey Ninja » Sat Aug 28, 2010 1:20 pm
This is a bit different from the original question, sorry ^^;
but I thought since it's titled sound problem I should post here rather than starting a whole new topic..
Anyway, can renpy play MIDI music files? Because when I try to play them in the game, there's no sound for it? But it plays fine for ogg or wav files...
So I was just wondering whether it can play MIDI files or not, and if it can, then does the 'config.debug_sound = True' solution that PyTom suggested for the first question fix this problem too?
Thanks ^_^
Users browsing this forum: Bing [Bot], _ticlock_