[SOLVED] Voice bleeps playing infinitely in built projects

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
Syrale
Regular
Posts: 100
Joined: Sun Oct 25, 2015 10:28 am
Completed: Robot Daycare, Deep Sea Valentine, Locke(d)
Projects: Artificial Selection, rei_carnation
Github: kigyo
itch: kigyo
Discord: kigyo#2564
Contact:

[SOLVED] Voice bleeps playing infinitely in built projects

#1 Post by Syrale »

I just discovered this issue in my game that, when I play it through the Ren'Py launcher, the voice bleeps work perfectly fine (they stop playing as soon as a line has been fully displayed), but if I build the project and open the .exe, then the same exact voice bleeps continue forever.

This is the code I use:

Code: Select all

init:
    $ renpy.music.register_channel("blips", mixer="voice", tight=True, buffer_queue=True, loop=True)
init python:
    def o_blip(event, **kwargs):
        if event == "show":
            renpy.music.play("audio/o.ogg", channel="blips", loop=True)
        elif event == "slow_done" or event == "end":
            renpy.music.stop(channel="blips")
Is it outdated, or is there some other reason it's not working properly?

Update: This error only happens on the first launch of the game. If I close it and reopen it, that fixes the issue.
However, I would really like it if it didn't happen in the first place...
Last edited by Syrale on Sat Aug 07, 2021 12:44 pm, edited 1 time in total.

User avatar
Captain Monocle
Newbie
Posts: 7
Joined: Sat Feb 22, 2020 6:59 pm
Contact:

Re: Voice bleeps playing infinitely in built projects

#2 Post by Captain Monocle »

It would seem to me you are using an outdated cookbook entry from the deprecated Ren'py documentation. I'd suggest using the updated example here to see if that resolves the issue: https://www.renpy.org/doc/html/character_callbacks.html
"We burn the present for the sake of a brighter future and act surprised when all it holds is ash"
http://www.paranatural.net/comic/chapter-4-page-89

User avatar
Syrale
Regular
Posts: 100
Joined: Sun Oct 25, 2015 10:28 am
Completed: Robot Daycare, Deep Sea Valentine, Locke(d)
Projects: Artificial Selection, rei_carnation
Github: kigyo
itch: kigyo
Discord: kigyo#2564
Contact:

Re: Voice bleeps playing infinitely in built projects

#3 Post by Syrale »

Captain Monocle wrote: Sat Aug 07, 2021 12:01 pm It would seem to me you are using an outdated cookbook entry from the deprecated Ren'py documentation. I'd suggest using the updated example here to see if that resolves the issue: https://www.renpy.org/doc/html/character_callbacks.html
That did indeed fix the issue. Thank you very much!

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], downover