[Solved] Prompt for username not working properly

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
Ceilyan
Newbie
Posts: 13
Joined: Fri Jan 04, 2019 9:46 am
Contact:

[Solved] Prompt for username not working properly

#1 Post by Ceilyan » Thu Feb 14, 2019 8:16 am

Hello :)

I just published my app on the PlayStore, but I got a message from a player telling me they couldn't enter their name when prompted. Nothing happens, the enterkey of the virtual keyboard does not work. I then tested it on my phone, it worked. It also worked on other people's phone.

This is my code :

$ name = renpy.input("", length=11)
$ name = name.strip()
$ persistent.name = name

They sent me a picture of their virtual keyboard (which is customized. Maybe that's what's causing the problem)? Is this a known bug? Is there a fix to it? Thank you!
Last edited by Ceilyan on Fri Feb 15, 2019 4:15 pm, edited 1 time in total.

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Prompt for username not working properly

#2 Post by Remix » Thu Feb 14, 2019 9:32 am

It is most likely the virtual keyboard they are using and thusly is not likely something you can fix through Ren'Py

You could maybe ask which non default keyboard they are using, install it, test it, try to trap which events it is returning and try to catch those in Ren'Py... probably lots of work though and not guaranteed to work.
If their virtual keyboard has settings allowing it to ignore certain apps, tell them to add your game there... or just not use the virtual keyboard while playing.
Frameworks & Scriptlets:

Ceilyan
Newbie
Posts: 13
Joined: Fri Jan 04, 2019 9:46 am
Contact:

Re: Prompt for username not working properly

#3 Post by Ceilyan » Thu Feb 14, 2019 5:59 pm

Thank you for your answer!

It was indeed the customized keyboard. They were able to enter their name after disabling it. But as you said, it's not something I can fix on my part :) I'll simply put a little footnote on my GP page to ask people to not use customized keyboards while playing.

Post Reply

Who is online

Users browsing this forum: Bing [Bot], span4ev