ID:2681197
 
Resolved
input() as password didn't work correctly when given a blank password, causing future inputs to fail.
BYOND Version:513
Operating System:Windows 10 Home 64-bit
Web Browser:Chrome 90.0.4430.93
Applies to:Dream Seeker
Status: Resolved (514.1555)

This issue has been resolved.
Descriptive Problem Summary:

Entering the empty string into an input dialog where the type is password prevents additional dialogs from appearing in Dream Seeker.




Code Snippet (if applicable) to Reproduce Problem:
mob
verb/Enter_Password()
var/password = input("Enter PW") as password
src << "You entered: [password]"
verb/Enter_Text()
var/password = input("Enter Text") as text
src << "You entered: [password]"


Numbered Steps to Reproduce Problem:

1. Use the verb Enter-Password
2. Press OK without typing any text into the dialog box

Expected Results:

"You entered: " should have been printed to src

Actual Results:

Another dialog box appears. Anything entered into this dialog box is interpreted as a command. Afterwards, both Enter-Password and Enter-Text cannot be used.

Does the problem occur:
Every time? Or how often? Every time
In other games? Yes
In other user accounts? Yes
On other computers? Yes

When does the problem NOT occur?
Entering random strings

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)

Workarounds:
Using 'Enter-Text' instead of enter password

Lummox JR resolved issue with message:
input() as password didn't work correctly when given a blank password, causing future inputs to fail.