Tower Unite

Tower Unite

71 ratings
Lobby Dedicated Server Setup
By Sam and 1 collaborators
DEPRECATED: http://forums.pixeltailgames.com/t/announcing-community-condos/19891

Guide to creating a dedicated Lobby server for Tower Unite.
   
Award
Favorite
Favorited
Unfavorite
Server Setup
Note: For the official SteamCMD guide, see the Valve Developer wiki entry.

  1. Download SteamCMD and extract it.
    Windows: https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip
    Linux: http://media.steampowered.com/installer/steamcmd_linux.tar.gz
    Linux dependencies
  2. Start steamcmd
    Windows: steamcmd
    Linux: ./steamcmd.sh
  3. Run the following commands
    login anonymous force_install_dir ./towerunite/ app_update 439660 validate
  4. Close SteamCMD
  5. You'll find a folder called "towerunite" in the same folder that has steamCMD in it.
  6. Linux: Copy linux64/steamclient.so into towerunite/Tower/Binaries/Linux
  7. Forward the following ports:
    27015-27050 TCP/UDP 7777-7778 UDP 3478 UDP 4379-4380 UDP
  8. Run the server executable
    Windows: TowerServer.exe -log
    Linux: ./Tower/Binaries/Linux/TowerServer-Linux-Shipping -log

When the game updates, run the following command in SteamCMD to get the latest version of the dedicated server.
app_update 439660 validate
Configuration
Server title and max player count may be configured inside of the TowerServer.ini file. The location of this file changes depending on which platform you're hosting on. You may need to start your server at least once for the file to appear.

Platform
Path
Linux
Tower/Saved/Config/LinuxServer/TowerServer.ini
Windows
Tower/Saved/Config/WindowsServer/TowerServer.ini

Inside of the file, add the following section and configure it to your liking:

[/script/towernetworking.dedicatedserveroptions] ServerTitle=Tower Unite Lobby MaxPlayers=32
Advanced Configuration
The following parameters can be passed into the server executable on startup.

Overriding game server port
-Port=7778

Overriding Steam master server port
-QueryPort=27016

Binding to a specific server IP address
-MULTIHOME=public-ip-here
e.g. -MULTIHOME=8.8.8.8

Running the server on the same machine as the game client
-nosteamclient

Custom TowerServer.ini file, useful for multiple servers on one machine
-TowerServerINI=CustomTowerServer.ini

Depending on which platform you're using, the file will be loaded from a specific directory.

Platform
Path
Linux
Tower/Binaries/Linux/CustomTowerServer.ini
Windows
Tower/Binaries/Win64/CustomTowerServer.ini

The same command-line flag also applies for other config files, e.g.
-TowerBansINI=CustomTowerBans.ini
Steam Game Server Account (RECOMMENDED)
Creating a Steam game server account for your server allows it to reuse the same Steam ID for clients to reconnect to. In the future, Tower Unite will also use this for favorite servers and more.

To register a game server account, complete the form in the following link with 394690 as the App ID: https://steamcommunity.com/dev/managegameservers

Once you have a registered account, place the Login Token into your TowerServer.ini file
[/script/towernetworking.dedicatedserveroptions] SteamLoginToken=0123456789ABCDEF0123456789ABCDEF
Notes
Errors regarding the Steam gameserver API likely mean that something isn't set up properly with your firewall / NAT.
< >
51 Comments
ryker Jan 6 @ 9:18pm 
I got the server to work but Tower Unite will be unable to connect to the Steam servers and say I have no internet. I had the same problems when I ran a cs:s server in the background, any workaround?
xyla Oct 15, 2021 @ 9:41am 
Re: Spike Rose
Can be fixed by copying the model dll from regular TU. However the dedicated server still doesn't seem to work, probably because it's been deprecated.
Spike Rose Sep 5, 2021 @ 1:07am 
Doesn't work. "The code execution cannot proceed because model.dll was not found. Reinstallin the program may fix this problem."
Reinstalling the program does not fix this problem. Where's the .dll?
badman Jun 27, 2019 @ 11:21am 
I am thinking the server package is not properly updated. The ini does not autopopulate, and after I finally did get everything up and running, the reason I cannot connect is because the server's map is wrong. All currently running servers are listed as Map "ThePlaza2018" and mine is just "ThePlaza"
Shows up on Steam Servers, does not show up in-game. Cannot connect to it, either. "Missed the window"
XarocTV May 7, 2019 @ 9:39am 
Just trying to install a server via my windows root.

The server starts so far.
On Steam in the server / favorites it is also displayed as online.

But can not join there.
Not even if the game has already started.

Ingame, the server is not displayed.
kaneit Apr 29, 2019 @ 12:43am 
I've opened ports
15000 (UDP & TCP)
4379-4380 (UDP & TCP)
3478 (UDP & TCP)
7777-7778 (UDP & TCP)
27015-27050 (UDP & TCP)

i've got my login token.
TowerServer.ini does not exist at all. i had to manually create mine after the first launch.
i've got no errors. i cannot connect to my server through the game. my lobby isn't visible in TowerUnites lobby browser. however my lobby is visible by the steam servers. however it will not let me connect. when i close the game and click connect, it connects me and then gives me the error "Tried to join session that no longer exists, you missed your window"

i've followed all instructions. and they do not work for me.
SoundWave Mar 24, 2019 @ 6:47pm 
i dont find TowerServer.ini on my windows root need help to join my server
Zach Mar 10, 2019 @ 10:44am 
Okay I think I got it to work. I still get the errors but it seemed some poor players were able to join shortly before being booted when I shut the server down because it was just a test. No clue if passwords are implemented yet which is kinda a killer. Make a shortcut and add -log to the target field. That'll let you know if anything is actually happening.
Zach Mar 7, 2019 @ 5:16pm 
Not working for me. Complaining about being unable to access entry points from a .DLL I know I have and on top of that I have no TowerServer.ini
[3DS] Lordgizmo Feb 7, 2019 @ 6:19am 
i dont find TowerServer.ini on my windows root need help to join my server