Crucial problem with "auto-forward" mode

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
Aureus
Veteran
Posts: 278
Joined: Sun Aug 06, 2017 4:49 am
Completed: The Tavern, Tales From Windy Meadow
Projects: Roadwarden
Organization: Moral Anxiety Studio
itch: moral-anxiety
Location: Breslau, Poland
Contact:

Crucial problem with "auto-forward" mode

#1 Post by Aureus »

I really need help with this one. I'm desperate and I'm short on time.

In my game, I don't have hyperlinks, but I used the hyperlink template to add "show text when hovered" command when a word in dialogue is pointed at.

Something like this:

Code: Select all

style default:
    properties gui.text_properties()
    language gui.language
    hyperlink_functions (lambda x: style.hyperlink_text, None, notifier)
    
style hyperlink_text:
    properties gui.text_properties("hyperlink", accent=True)
    hover_underline True

init python:
    def notifier(arg):
        if arg is None:
            return
        data = arg.split(':')
        if data[0] == 'notify':
            renpy.show_screen('notify', data[1])
            renpy.restart_interaction()
HOWEVER

the Auto mode in the game doesn't know how to ignore the text included in the "{a=notify:(...)}" and it reads it entirety.
So if I have a line of dialogue that goes like this:

"test test test"

and a one that goes like this:

"{a=notify:test test test test test test test test test test test test test test test}test{/a}"

the second line will take multiple times longer to be read by Auto mode. It basically makes Auto useless for me since it pretty much pauses the game for long periods.

Please help. ; (
Tales From Windy Meadow - slice of life, pixel art Visual Novel set in a fantasy village. now available on Steam.

User avatar
Aureus
Veteran
Posts: 278
Joined: Sun Aug 06, 2017 4:49 am
Completed: The Tavern, Tales From Windy Meadow
Projects: Roadwarden
Organization: Moral Anxiety Studio
itch: moral-anxiety
Location: Breslau, Poland
Contact:

Re: Crucial problem with "auto-forward" mode

#2 Post by Aureus »

A desperate bump from a desperate man!
Tales From Windy Meadow - slice of life, pixel art Visual Novel set in a fantasy village. now available on Steam.

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

Re: Crucial problem with "auto-forward" mode

#3 Post by Imperf3kt »

use alt

https://www.renpy.org/doc/html/style_pr ... operty-alt

Note, that is not a typo of ATL
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

User avatar
Aureus
Veteran
Posts: 278
Joined: Sun Aug 06, 2017 4:49 am
Completed: The Tavern, Tales From Windy Meadow
Projects: Roadwarden
Organization: Moral Anxiety Studio
itch: moral-anxiety
Location: Breslau, Poland
Contact:

Re: Crucial problem with "auto-forward" mode

#4 Post by Aureus »

I'm... I'm sorry, but I think I'm too stupid / too inexperienced to apply this tip without more detailed description. I believe I need a bit more of hand-holding.
Tales From Windy Meadow - slice of life, pixel art Visual Novel set in a fantasy village. now available on Steam.

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

Re: Crucial problem with "auto-forward" mode

#5 Post by Imperf3kt »

hmm, I think alt function may only be intended for use with screens. I am unable to get it to work with dialogue text, sorry.
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

User avatar
AstralWire
Newbie
Posts: 23
Joined: Tue Nov 20, 2018 8:09 pm
Organization: Astral Wire Studios
Contact:

Re: Crucial problem with "auto-forward" mode

#6 Post by AstralWire »

try using tooltip instead of your hyperlink template? maybe that will work.
https://www.renpy.org/doc/html/screen_actions.html
Professional programmer with four years experience in the Video Game Industry.
Can't afford a programmer but have art skills? No problem! Check this out
Would you like Live2D animation for your sprites but are working on a limited budget? You can always negotiate with me.

User avatar
Aureus
Veteran
Posts: 278
Joined: Sun Aug 06, 2017 4:49 am
Completed: The Tavern, Tales From Windy Meadow
Projects: Roadwarden
Organization: Moral Anxiety Studio
itch: moral-anxiety
Location: Breslau, Poland
Contact:

Re: Crucial problem with "auto-forward" mode

#7 Post by Aureus »

Thank you for pointing me into other directions, I may try them. For now I'm going to remove the Auto Mode from the game in general. Tom is going to take a look at it in the general level, it's possible that it's a general bug related to all the text tags. Or maybe not, we'll see.
Tales From Windy Meadow - slice of life, pixel art Visual Novel set in a fantasy village. now available on Steam.

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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:

Re: Crucial problem with "auto-forward" mode

#8 Post by PyTom »

For the record, this has been fixed for a few days.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users