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

Allow turning off the display of the host IP and username you are connecting with from the connecting screen on load. #1282

Merged
merged 2 commits into from
Feb 15, 2024

Conversation

Beherith
Copy link
Contributor

@Beherith Beherith commented Feb 7, 2024

By specifying
ShowServerIP = 0;
in startscript

…necting with from the connecting screen on load.
@Beherith
Copy link
Contributor Author

Beherith commented Feb 7, 2024

Solves #1281

@lhog
Copy link
Collaborator

lhog commented Feb 9, 2024

I think the better way is to push a user friendly server name to "GAME\\ShowServerName and if empty - show IP.

@Beherith
Copy link
Contributor Author

Beherith commented Feb 9, 2024

Thats actually a way better suggestion, shall I do that then?

@Beherith Beherith linked an issue Feb 14, 2024 that may be closed by this pull request
@Beherith Beherith requested a review from sprunk February 14, 2024 07:07
font->glFormat(0.60f, 0.35f, 1.0f, FONT_SCALE | FONT_NORM, "User name: %s", clientSetup->myPlayerName.c_str());
}
else {
font->glFormat(0.60f, 0.40f, 1.0f, FONT_SCALE | FONT_NORM, "Connecting to: %s", clientSetup->showServerName.c_str());
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No "User name: %s" entry? Just curious.

Copy link
Collaborator

@sprunk sprunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't mind the missing username.

@lhog lhog merged commit da52e1c into BAR105 Feb 15, 2024
github-actions bot pushed a commit that referenced this pull request Feb 16, 2024
…necting with from the connecting screen on load. (#1282)
sprunk added a commit to ZeroK-RTS/Zero-K-Infrastructure that referenced this pull request Feb 17, 2024
Right now it says the IP:port of the server, like

> Connecting to: [12.34.56.78]:12345

This looks scary, apparently some streamers think it's their own IP that just got broadcast public. The patch changes it to room title, like

> Connecting to: Teams All Welcome

It only works on fresh engines but should be harmless otherwise. See beyond-all-reason/spring#1282
@sprunk sprunk deleted the ShowServerIP branch February 23, 2024 21:57
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

Successfully merging this pull request may close these issues.

Hide the IP from engine loadup screen
3 participants