Followed the tutorial from here: https://www.renpy.org/doc/html/input.html
And tried implementing it in this code:
Code: Select all
$ name = renpy.input("Username", allow="abcdefghijklmnopqrstuvwxyz0123456789_.", length=20)
$ name = name.strip()
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 18, in script
$ name = renpy.input("Username", allow="abcdefghijklmnopqrstuvwxyz0123456789_.", length=20, mask=None)
File "game/script.rpy", line 18, in <module>
$ name = renpy.input("Username", allow="abcdefghijklmnopqrstuvwxyz0123456789_.", length=20, mask=None)
TypeError: input() got an unexpected keyword argument 'mask'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 18, in script
$ name = renpy.input("Username", allow="abcdefghijklmnopqrstuvwxyz0123456789_.", length=20, mask=None)
File "renpy/ast.py", line 922, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 2218, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/script.rpy", line 18, in <module>
$ name = renpy.input("Username", allow="abcdefghijklmnopqrstuvwxyz0123456789_.", length=20, mask=None)
TypeError: input() got an unexpected keyword argument 'mask'
Windows-10-10.0.19041
Ren'Py 7.4.2.1292
Best Date Ever 1.0
Sun Sep 26 23:45:25 2021