Reloading doesn't work with capital R?!

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
SuperbowserX
Veteran
Posts: 270
Joined: Sat Jan 07, 2017 3:09 pm
Contact:

Reloading doesn't work with capital R?!

#1 Post by SuperbowserX »

I've been working on a personal project the past couple of days, and I've been baffled as to why reloading with shift+R doesn't work all the time. And just now I've figured it out: it doesn't wok when caps lock is on!

Works just fine when caps lock is off. But when it's on, it somehow doesn't reload.

Is there anyway to fix this? If not, maybe PyTom could implement it in a future update?

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Contact:

Re: Reloading doesn't work with capital R?!

#2 Post by hell_oh_world »

you can just add another keysym for the reload keymap. also note that auto-reload still works when capslock on, you just don't need to press shift anymore together with r, only r, since the default keymap for auto reload is capital `R`

Code: Select all

init python:
    config.keymap["reload_game"].append("shift_K_r")

User avatar
gas
Miko-Class Veteran
Posts: 842
Joined: Mon Jan 26, 2009 7:21 pm
Contact:

Re: Reloading doesn't work with capital R?!

#3 Post by gas »

Ahaha, sorry, it's so fun...

CAPSLOCK is equal keeping the SHIFT key while typing.

Now, both SHIFT and CAPSLOCK do nothing but toggling the set.
So CAPSLOCK turn it upper, and SHIFT toggle to the other set: lower again.

So in fact if you press SHIFT+R while CAPSLOCK is on is equal negating the uppercase.
CAPSLOCK + SHIFT + R = You're typing 'r' and not 'R'
CAPSLOCK + R = you typed 'R'.
If you want to debate on a reply I gave to your posts, please QUOTE ME or i'll not be notified about. << now red so probably you'll see it.

10 ? "RENPY"
20 GOTO 10

RUN

User avatar
SuperbowserX
Veteran
Posts: 270
Joined: Sat Jan 07, 2017 3:09 pm
Contact:

Re: Reloading doesn't work with capital R?!

#4 Post by SuperbowserX »

Thanks, aha this feels a little silly in retrospect.

Post Reply

Who is online

Users browsing this forum: Google [Bot]