Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If there is a reconnection token, disable typing input (new name) or have a loading screen until it loads #25

Open
TheYellowArchitect opened this issue Jan 13, 2025 · 1 comment

Comments

@TheYellowArchitect
Copy link
Contributor

TheYellowArchitect commented Jan 13, 2025

When I boot the game, there is an input prompt for the name. For some reason, it doesn't instantly read the reconnection token from my previous boot(s), but until it reads it, it lets you type anything (or even override it if you press set name)

In the video below, I type "testttttttttt" and just await until it is overriden/replaced by the reconnection token aka previous name set. I never clicked anything or pressed the "Set Name" button.

lazy-loading-but-not-disabled-input.mp4
@TheYellowArchitect
Copy link
Contributor Author

I talked with Dragoss with this, he plans to implement a reconnectionTokenExpirationDate variable to LobbyPeer alongside reconnection_token. So for example if every anonymous token expires after 15 minutes, that timing is saved to blazium.cfg (instead of being hardcoded per project which will break after each update or server change)

As a result, once the project boots, it will check for the config's last-edited timestamp, and the expiration date of the token. If it has surpassed the expiration date, it will wipe the config and start with a new name and token.
If it hasn't, it loads the values from the config value, boots to the main menu and awaits the connected_to_lobby signal to make the buttons visible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant