User Tag List

Results 1 to 1 of 1
  1. #1
    Administrator SAM's Avatar
    Join Date
    Jan 2011
    Posts
    8,278
    Country:

    How to setup and install a UT4 HUB (Windows)

    Setting up a UT4 hub

    Setting up a UT4 hub was quite simple. You need to register at www.forums.unrealtournament.com and download the latest pre-alpha server from https://forums.unrealtournament.com/...Playable-Build

    Extract the server files and you should end up with something like this:
    Click image for larger version. 

Name:	ywnveOK.png 
Views:	35 
Size:	24.0 KB 
ID:	2914

    I chose my base directory as C:\Program Files\UT4HubServer

    You then need to create a bat file with the following
    Code:
    @echo off // you can use @echo on too if you want it to print what it's doing / it's status
       :Start
    cd C:\Program Files\UT4HubServer\UnrealTournamentServer.exe
    UnrealTournament UT-Entry?Game=Lobby -server.log
    
    goto Start
    This is a loop and therefore, whenever the server crashes, it will just restart itself immediately. You could add in a PAUSE argument to allow a 5/10 break before the process restarts.

    I personally did not use a batch file for the hub server. I use a process monitor daemon called firedaemon instead.

    For the benefit of Firedaemon users:


    • Programs tab:

    Click image for larger version. 

Name:	BYIoY10.png 
Views:	26 
Size:	14.0 KB 
ID:	2915

    1. My executable was set to: C:\Program Files\UT4HubServer\UnrealTournamentServer.exe
    2. The working directory: C:\Program Files\UT4HubServer
    3. The parameters: UnrealTournament UT-Entry?Game=Lobby -server.log



    • Settings tab:


    I used logon accounts to differentiate the servers. Otherwise they all run under the same username and it's impossible to tell which server is which, when running multiple from one box. You will need to create Administrator accounts with passwords and type the details here:
    Click image for larger version. 

Name:	nWJ20VD.png 
Views:	21 
Size:	14.5 KB 
ID:	2916
    As we are using Firedaemon to monitor the process, I set:

    1. Click interact with desktop
    2. Upon program exit: Restart the program


    Recovery tab:

    I set the service to restart on each failure.
    Click image for larger version. 

Name:	xJgcstA.png 
Views:	13 
Size:	14.0 KB 
ID:	2917


    First test run
    Your initial run is to generate the ini files which you will configure. ini files are stored in: C:\Program Files\UT4HubServer\UnrealTournament\Saved\Config\W indowsServer
    Click image for larger version. 

Name:	ovm4eTK.png 
Views:	19 
Size:	32.1 KB 
ID:	2918

    The files you need to edit are as follows: GAME.INI and ENGINE.INI

    GAME.INI

    Code:
    [/Script/UnrealTournament.UTLobbyGameMode]
    StartingInstancePort=7777
    InstancePortStep=1
    MaxInstances=16
    Set the following, if not already generated by the server. We are basically saying that the HUB:
    • Instances start at port 7777
    • Max instances are 16.


    The maximum instaces supported by the engine is 16. We have a 16 core server and therefore, we have the capacity to host the maximum. Play around with your config.

    Code:
    [/Script/UnrealTournament.UTLobbyGameMode]
    LobbyPassword=
    AutoLaunchGameMode=
    AutoLaunchGameOptions=
    AutoLaunchMap=
    MinPlayersToStart=2
    MaxPlayersInLobby=600
    Again, we have MaxPlayersInLobby set to 600 because we have a very powerful server. You'll need to play around with your config to see what your server can handle.

    Code:
    [/Script/Engine.GameMode]
    bRecordReplays=true
    
    [/Script/UnrealTournament.UTGameState]
    ServerName=UnrealKillers.com UT4 Public Hub
    ServerMOTD=<UT.Font.NormalText.Large.Bold>Official UnrealKillers UT4 Hub</>\n\n<UT.Font.NormalText.Medium>www.ut4.online & www.unrealkillers.com</>\n\n<UT.Font.NormalText.Medium>ts.unrealkillers.com</>
    ServerDescription=UnrealKillers.com UT4 Public Hub
    The rest is quite self explanatory really. You are naming the server with ServerName. With MOTD you are writing the message to display to all players in your lobby. Use \n\n to create line spacing.

    ENGINE.INI

    Code:
    [Core.System]
    Paths=../../../Engine/Content
    Paths=../../../UnrealTournament/Content
    Paths=../../../UnrealTournament/Plugins/ContentOnly/Content
    Paths=../../../UnrealTournament/Plugins/CustomBot/Content
    Paths=../../../UnrealTournament/Plugins/SampleGameMode/Content
    Paths=../../../UnrealTournament/Plugins/WebMRecord/Content
    
    [/Script/UnrealTournament.UTGameEngine]
    bFirstRun=False
    RconPassword=
    Your server should just generate the above. You should specify an RconPassword it's your admin password.

    You should now be ready to start your server. If you used Firedaemon, just press the start button, if you chose the bat file option, just double click it.
    Last edited by SAM; 02-28-2016 at 09:39 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •