Hotbars working sluggishly in 6.15 [SOLVED]

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
Graph
Veteran
Posts: 230
Joined: Sat Jul 03, 2010 7:22 pm
Completed: Touhou Mecha Chap. 1
Projects: Touhou Mecha, Eastern Starlight Romance
Organization: Dai-Sukima Dan
Contact:

Hotbars working sluggishly in 6.15 [SOLVED]

#1 Post by Graph » Mon Sep 02, 2013 3:53 pm

At some point after upgrading from 6.14 to 6.15, the hotbars would respond slowly. Instead of following the mouse cursor as I drag the slider, it'll only treat my input as a single click, and sometimes fails to respond at all. Is there a quick fix for this?

Attached is an example, taken directly from my KN. Just click Preferences to see the menu.
Attachments
options_test.zip
Hotbar demonstration
(58.67 KiB) Downloaded 35 times
Last edited by Graph on Wed Sep 04, 2013 2:20 am, edited 1 time in total.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Hotbars working sluggishly in 6.15

#2 Post by Donmai » Tue Sep 03, 2013 8:57 am

Weird! The 'sound/music' volume bars allow clicking and dragging, but the 'text speed' and 'auto-forward delay' only allow clicking to set the values. I've noticed the same behaviour in 'Ristorante Amore' and the 'True memories' demo. Curiously, in my own projects, all bars allow clicking and dragging (Ren'Py 6.15.7.374).
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: Hotbars working sluggishly in 6.15

#3 Post by Elmiwisa » Tue Sep 03, 2013 9:58 am

Try this screens.rpy I just modified from yours. This is a simple but somewhat ugly way of fixing it. :(
screens.rpy
(13.06 KiB) Downloaded 87 times

User avatar
Graph
Veteran
Posts: 230
Joined: Sat Jul 03, 2010 7:22 pm
Completed: Touhou Mecha Chap. 1
Projects: Touhou Mecha, Eastern Starlight Romance
Organization: Dai-Sukima Dan
Contact:

Re: Hotbars working sluggishly in 6.15

#4 Post by Graph » Tue Sep 03, 2013 1:28 pm

Donmai wrote:I've noticed the same behaviour in 'Ristorante Amore' and the 'True memories' demo. Curiously, in my own projects, all bars allow clicking and dragging (Ren'Py 6.15.7.374).
How odd, if you plug my code into Ren'py 6.14 it works fine. And Ristorante Amore was a while back. I wonder if this is an issue that was addressed (maybe by accident) at one point but then came back later?

But, that fix works nicely. Thanks Elmiwisa!

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Hotbars working sluggishly in 6.15

#5 Post by Donmai » Tue Sep 03, 2013 4:40 pm

Graph wrote:And Ristorante Amore was a while back.
Oops! That wasn't 'Ristorante Amore' itself, only the interface customization code Camille made public. In both examples I was running the code from the launcher, so it appear to be really a 6.15 issue. Sorry for the confusion.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

User avatar
Graph
Veteran
Posts: 230
Joined: Sat Jul 03, 2010 7:22 pm
Completed: Touhou Mecha Chap. 1
Projects: Touhou Mecha, Eastern Starlight Romance
Organization: Dai-Sukima Dan
Contact:

Re: Hotbars working sluggishly in 6.15

#6 Post by Graph » Tue Sep 03, 2013 5:34 pm

Donmai wrote:
Graph wrote:And Ristorante Amore was a while back.
Oops! That wasn't 'Ristorante Amore' itself, only the interface customization code Camille made public. In both examples I was running the code from the launcher, so it appear to be really a 6.15 issue. Sorry for the confusion.
Ah, that makes sense. So out of curiosity, in your projects are you using imagemaps and hotbars for the preferences, or something else? I've been starting to think it's an issue specific to one of those things, since the code-generated bars of the Ren'py tutorial still seem to work fine.

User avatar
Donmai
Eileen-Class Veteran
Posts: 1919
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Hotbars working sluggishly in 6.15

#7 Post by Donmai » Tue Sep 03, 2013 5:53 pm

Usually I don't customize the preferences screen.
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: Hotbars working sluggishly in 6.15

#8 Post by Elmiwisa » Wed Sep 04, 2013 2:00 am

It took me several hours, but I finally found the real problem :wink:
This is a different, and much better way, to fix the problem than what I have above.
screens.rpy
(12.32 KiB) Downloaded 96 times
Previously, I were unable to fix the problem, so what I basically did was removing a feature that you don't use anyway, because that feature interfere with the hotbar. Took quite a bit of code that is sprinkled in various location, and might cause trouble later if you decide to use that feature.

This one involve simply adding 2 extra lines of code to the top of your original file, and fix the problem without having to remove that feature.

User avatar
Graph
Veteran
Posts: 230
Joined: Sat Jul 03, 2010 7:22 pm
Completed: Touhou Mecha Chap. 1
Projects: Touhou Mecha, Eastern Starlight Romance
Organization: Dai-Sukima Dan
Contact:

Re: Hotbars working sluggishly in 6.15

#9 Post by Graph » Wed Sep 04, 2013 2:20 am

It's an elegant solution, indeed. Maybe you can suggest it as a fix for future versions of Ren'py? (That is, if you think the root of the issue is the engine itself. That's just my hunch from what I've seen)

And thanks again! I'll consider this one solved.

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: Hotbars working sluggishly in 6.15 [SOLVED]

#10 Post by Elmiwisa » Wed Sep 04, 2013 5:01 am

Yeah I would consider it to be the engine's problem, considering that the fix is basically just redefine a renpy function so that it would work with the correct settings.
I guess I would make a thread in the Development forum then. Also, I finally boil down the fix to even simpler, which I would post there. :D
EDIT: the other thread is here

Post Reply

Who is online

Users browsing this forum: Google [Bot]