Topic: Multiplayer Matchmaking
Posted at: 2020-05-23, 12:46
Wenn man ein Multiplayer Spiel startet könnte man ganz einfach einen Button drücken und falls gerade kein Spiel verfügbar ist man per Nachricht benachrichtigt werden sobald eins verfpgbar ist, sowie eine Schaltfläche "Spielen"
When you start a multiplayer game you could simply press a button and if no game is available you will be notified by email as soon as one is available and a button "Play"
Posted at: 2020-05-23, 19:50
This is not possible, afaik. At least without much effort...
First of all sending emails is done through the website. If you start a multiplayer game, widelands connects to the 'metaserver' and the metaserver checks if the given username matches against a username on the website, and only this. The metaserver has no ability to get a users email address stored in the website database and can't send emails. But in case the metaserver can have access to a users email address AND is able to send emails, it isn't guaranteed that this user is registered on the website and has set his online gaming password.
I don't understand the part 'and a button "Play"'. You mean such a button should be part of the email? How should such a button start widelands, connect to the lobby and join the correct game?
Some things might be simple in theory but implementing isn't that easy, and sometimes impossible.
If you want to play multiplayer, just stay in the lobby and wait for participants. And don't leave it as soon you see no one is available