Announcement

Collapse
No announcement yet.

Releasing Dedicated Server on Steam

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Releasing Dedicated Server on Steam

    Hi all,

    I've looked at various guides, including the excellent Wiki on how to build the dedicated server. I have successfully done this and tested it outside of Steam and it all works perfectly.

    I want to now distribute the dedicated server in Steam as a separate tool to the main game (i.e. you go to library->tools and install from there). I have looked at the following guides on how to achieve this:

    https://wiki.unrealengine.com/Dedica...dows_%26_Linux)
    https://wiki.unrealengine.com/Dedica...er_Guide_Steam
    https://partner.steamgames.com/doc/s...istributing_gs

    I have created a second application of type "tool", and under the installation options I selected the Steam Dedicated Server packages to be included. I created a depot for it and configured the Content Builder script files accordingly.

    The problem now is that from what I understand, with UE4 the dedicated server only works when the GameServer.exe file is placed in the binaries folder alongside the main installation folder. My game is currently 6.5gb in size, so I want to avoid a situation where I have to effectively duplicate the app on Steam and just change the exe being called when launched, otherwise someone who wants to host a dedicated server and play the game on the same machine will have to basically install the game twice. A huge waste when the only difference is which executable is run.

    The second guide implies that you only need to distribute the dedicated server binaries in the second app that I created, but if I do this then the program fails to start because I'm basically running the server exe without any game files available (it installs to a different directory entirely).

    I have tried searching to see if there is a way to have it drop the dedicated server exe into the existing game directory and run it from there if you choose to install and launch it, but I can't seem to find any information, just loads of guides on how to change where Steam installs your games. The problem here is that it treats the dedicated server as a completely separate installation with its own directory, with no dependencies on having the main game installed.

    What I want to know is:

    1) Does anyone know how to configure my app/depot so that it deploys the dedicated server binaries in the main game directory instead of its own? Would the dependency on the main game being installed be flagged in Steam as well?

    2) Alternatively, is there a way to create a minimalist, special dedicated server build of the game which cuts down the content so it's much smaller? Other dedicated servers I see in the tools list are only 500mb in size, presumably they have some cut-down version of the game without the assets you don't need to run a dedicated server. The first guide above ends up building the complete version of the game which seems wasteful

    Thanks for any advice!

    #2
    We have the same setup that you described and the main game is 19GB with a WindowsNoEditor cook, it has the game appid and Steam works as normal. Then we have a WindowsServer cook which is only 1.5GB, this is a "tool" with it's own appid. The "tool" is connected to the main appid as a Dedicated Server and is shown in the Steam server browser.

    1) You should connect the "tool" appid with the game appid in the Dedicated Server menu.
    2) Just cook for WindowsServer and you will get a stripped down game version in your Saved/StagedBuilds/WindowsServer folder ready to upload to Steam.


    Comment


      #3
      Originally posted by FrostyElkArne View Post
      We have the same setup that you described and the main game is 19GB with a WindowsNoEditor cook, it has the game appid and Steam works as normal. Then we have a WindowsServer cook which is only 1.5GB, this is a "tool" with it's own appid. The "tool" is connected to the main appid as a Dedicated Server and is shown in the Steam server browser.

      1) You should connect the "tool" appid with the game appid in the Dedicated Server menu.
      2) Just cook for WindowsServer and you will get a stripped down game version in your Saved/StagedBuilds/WindowsServer folder ready to upload to Steam.


      Beautiful, thank you I'll give it a try! Didn't realise there was a WindowsServer cook option!

      Comment

      Working...
      X