Page 1 of 1

[Solved] Prompt for username not working properly

Posted: Thu Feb 14, 2019 8:16 am
by Ceilyan
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!

Re: Prompt for username not working properly

Posted: Thu Feb 14, 2019 9:32 am
by Remix
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.

Re: Prompt for username not working properly

Posted: Thu Feb 14, 2019 5:59 pm
by Ceilyan
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.