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

feat(vhserver): enable crossplay support #4544

Merged
merged 5 commits into from
May 22, 2024

Conversation

glowacki-dev
Copy link

@glowacki-dev glowacki-dev commented Mar 23, 2024

Description

Based on the following reddit thread https://www.reddit.com/r/valheim/comments/xshlyk/dedicated_server_on_linux_crossplay_switch_not/

Enabling crossplay on linux server required installing some additional dependencies. Out of the 3 mentioned there only libatomic1 and libpulse-dev seem to be required.
Once they have been installed and -crossplay flag is set the server succesfully registers with PlayFab and is visible in microsoft store version of the game.

I've only tested this setup on Ubuntu 22.04 and was able to see the server both in steam browser and in xbox pc version.

Server logs show the following PlayFab registration and join code assignment:

03/23/2024 21:35:49: Game server connected
03/23/2024 21:35:52: Joined PlayFab Party network with ID "<REDACTED>"
03/23/2024 21:35:53: Created PlayFab lobby with ID "<REDACTED>", ConnectionString "<REDACTED>" and owned by "<REDACTED>"
03/23/2024 21:35:53: Session "My Server" registered with join code 701230
03/23/2024 21:35:54: Retry join-code check 99
03/23/2024 21:35:56: Session "My Server" with join code 701230 and IP <REDACTED>:2456 is active with 0 player(s)

Fixes #4543

Type of change

  • Bug fix (a change which fixes an issue).
  • New feature (a change which adds functionality).
  • New Server (new server added).
  • Refactor (restructures existing code).
  • Comment update (typo, spelling, explanation, examples, etc).

Checklist

PR will not be merged until all steps are complete.

  • This pull request links to an issue.
  • This pull request uses the develop branch as its base.
  • This pull request subject follows the Conventional Commits standard.
  • This code follows the style guidelines of this project.
  • I have performed a self-review of my code.
  • I have checked that this code is commented where required.
  • I have provided a detailed enough description of this PR.
  • I have checked if documentation needs updating.

Documentation

If documentation does need updating either update it by creating a PR (preferred) or request a documentation update.

Thank you for your Pull Request!

@dgibbs64 dgibbs64 added this to the v24.3.0 milestone May 22, 2024
@dgibbs64 dgibbs64 merged commit a2bea8d into GameServerManagers:develop May 22, 2024
3 checks passed
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.

None yet

2 participants