choosing a player name with a space only partially prevented #5985
Labels
bug
Something isn't working
multiplayer & networking
Internet & LAN gaming features, networking backend
Milestone
Describe the bug
In the dialogue to join a multiplayer game (LAN / direct ip), the button to join is disabled when the human chooses a name with a space in it. But with a double click on the game or click and enter, joining continues anyway.
To reproduce
Steps to reproduce the behavior:
Start widelands
Type "p" for a multiplayer game "LAN / direct IP"
Enter a valid player name here (like "testHost")
Click the button to "Host a new game"
Click the button to Choose a map
Choose any map
Confirm with double-click or ok button
Start a 2nd instance of widelands
(from a terminal/"new window" in context menu in gnome/on another computer in the lan/...)
Type "p" for a multiplayer game "LAN / direct IP"
Enter a name for your player containing a space (like "join 2 win")
The buttons to "Host new a game" and "Join a game" are disabled
(This is expected. The frame of the player name is in red and the reason is written in its tooltip)
Double-click on the game listed in the list => you join with the illegal name
click the button back
click on the game in the list and type enter => you join with the illegal name
Expected behavior
Choosing a player name containing a space (like "me too") is not possible in any way. (Or possible in all ways if it does not matter.)
Version:
Additional info:
Was first mentioned in the forum in https://www.widelands.org/forum/topic/5797/?page=1#post-40394 somewhere below the title add possibility to detect human players in multiplayer game
The text was updated successfully, but these errors were encountered: