PocketRelay / Server

Mass Effect 3 Rust Server Emulator, LAN and WAN private server
https://pocket-relay.pages.dev/
MIT License
12 stars 4 forks source link

feat: randomly generate names for in-game account creation #69

Closed jacobtread closed 3 months ago

jacobtread commented 3 months ago

With the new updated games API that allows exposing the active games list the additional option for hiding the players list was added because the names in the player list may contain email addresses of users who signed up in the in-game account creator this is because the in-game account creator does not allow the user to provide a username.

After account creation users could already change their name using the dashboard however that may not be something someone will do if they wanted to just quickly play the game. (Accounts created through the dashboard or through Origin have usernames associated with them so there's no need for these to change)

This change uses a random collection of adjectives and nouns along with a randomly generated sequence of numbers to generate a random username for these accounts rather than relying on the email to pick the name.

Below is an example of a randomly generated name ("lowly-tendency-3799"): image