question

entelicon avatar image
entelicon asked

Server Builds

I have multiple questions about how PlayFab handles servers.

I'm new to networking in general, but from what I understand you have an executable server build that you upload to PlayFab, and whenever you need to run a server, you run this executable(through PlayFab API). How do you create a server build that would work with PlayFab?

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

There's a full write-up of our custom game server hosting here: https://api.playfab.com/docs/custom-game-servers. But the quick answer to your question is that anything that will run on a Windows 2K12 R2 server will work fine. If you're a Unity developer, we have the code for the core of a game server which you can use here: https://github.com/PlayFab/PlayFabGameServer

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

entelicon avatar image entelicon commented ·

I tried using the Unity option. I opened the scene and put in my TitleId and all the other information. I saved the scene, closed out of Unity and made the file a ZIP file(I read somewhere that's what it takes) and uploaded that as a build but I keep getting the status InvalidBuildPackage. Am I missing something?

0 Likes 0 ·
brendan avatar image brendan entelicon commented ·

Make sure you've built to an executable which can be run from the command line on a Windows server. If you believe everything is correct, can you let us know the Title ID and the Build Version you're uploading?

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.