brianmiller / phvalheim-server

PhValheim backend server
GNU General Public License v2.0
26 stars 5 forks source link

Feature Enhancement: Enable cross-platform (Crossplay) support #12

Open brianmiller opened 1 year ago

brianmiller commented 1 year ago

It's likely the worlds PhValheim spawns are already compatible. We just need someone with an Xbox to test with.

antiseven commented 7 months ago

I'm able to connect on PC. No luck on xbox.

m2rt commented 7 months ago

Got it working on xbox but had to do some things... -crossplay needs to be added to startup args for the world, for example here: https://github.com/brianmiller/phvalheim-server/blob/c84cf483586debc48d2985dc5fb89a3d7f6d225a/container/games/valheim/scripts/startWorld.sh#L46

And then when joining from xbox you need an xbox XUID, which for me was in a format of Xbox_XUIDINDECFORMAT and then had to add it to the list of citizens... Though that UI wording should be changed to include this.

One way to find out the XUID Is to try to log in and get it from the logs of the game. Or go to https://www.cxkes.me/xbox/xuid and enter your gamertag and then take XUID (DEC) line and add Xbox_ in front of it. Like Xbox_2533274962053950