[Solved]The pause tag in the text doesn't continue

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
Cristiander
Regular
Posts: 33
Joined: Sat Mar 04, 2017 8:19 am
Contact:

[Solved]The pause tag in the text doesn't continue

#1 Post by Cristiander »

I have run into this problem on two occasions and I don't understand what is causing this.

I have added the pause text tag

Code: Select all

{p=1.0}
and while the text is paused, it doesn't continue after 1.0 seconds.
I tried adding it at different points but to no avail, I tried changing the time but it still doesn't work and outside of those two things I don't really know what else I can change to try and figure out the problem.

The code works fine in the rest of my game, but for some reason it can't cooperate on these two situations.
The two instances are the following;

first:

Code: Select all

    nvl_character "Aaaaaahh! {nw}"
    show whitetint onlayer screens zorder 100:
        alpha 0.6
        linear 2.0 alpha 1.0
    extend " {p=0.5}"
    nvl hide
The idea of the code is to have the screen go white while the nvl box is still visible. That's why I added the pause as a text tag instead of just using a pause command.

second:

Code: Select all

narator "March 19, 10:00 AM {p=0.5}District Court {p=0.5}Courtroom No. 1"
For this one I really have no ideea why it can't continue after the pause tag. If it helps this is the character code

Code: Select all

define narator = Character(None, callback=callback, what_color = "#64FE2E", what_xalign=0.5, what_text_align=0.5,  text_xpos=0.5, what_bold = True, what_kerning = 1.5, what_slow_cps = 5)

I really can't find the cause of this error and I'd love any help with this.
Thank you guys :)
Last edited by Cristiander on Sat Oct 13, 2018 9:25 am, edited 1 time in total.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: The pause tag in the text doesn't continue

#2 Post by Imperf3kt »

Use the wait tag instead.
Simply replace all your 'p's with a w
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Cristiander
Regular
Posts: 33
Joined: Sat Mar 04, 2017 8:19 am
Contact:

Re: The pause tag in the text doesn't continue

#3 Post by Cristiander »

Imperf3kt wrote: Sun Jun 24, 2018 5:44 pm Use the wait tag instead.
Simply replace all your 'p's with a w
Tried it. Still not working

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3791
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: The pause tag in the text doesn't continue

#4 Post by Imperf3kt »

Can you try it on a different computer?
I have one computer where the wait tag fails completely (most likely due to a couple of driver errors I have), but works perfectly fine elsewhere.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

Cristiander
Regular
Posts: 33
Joined: Sat Mar 04, 2017 8:19 am
Contact:

Re: The pause tag in the text doesn't continue

#5 Post by Cristiander »

Late update: If anyone runs into this issue in the future I figured out the problem, or at least I found a solution.

In both of my cases, before i had the line with the pause tag I had a line for the music channel.

Code: Select all

    nvl_s "Aaaaaahh! {nw}"
    $ renpy.music.set_volume(1.0, delay=2.0, channel=2)
    show whitetint onlayer screens zorder 100:
        alpha 0.6
        linear 2.0 alpha 1.0
    extend " {p=5}{nw}"
I didn't add the music line cause I didn't think it had anything to do with my problem, but surprise, surprise, after I changed the music channel from 2 to 3 the pause tag worked perfectly.
I did the same thing to the second example and after changing the music channel to 3 the pause tag worked.

So yeah, not sure what the second music channel has to do with the pause tag, but nevertheless they are linked.
So if you find your pause or wait tags not working, try fiddling with the music channels, that might solve your problem.

Post Reply

Who is online

Users browsing this forum: No registered users