Menu
 

TSSGameServer.sh Launch Error Fix for HumanitZ Dedicated Server

TSSGameServer.sh Launch Error Fix for HumanitZ Dedicated Server

HumanitZ uses a wrapper script called TSSGameServer.sh to handle environment variables and launch the actual game binary. On many Linux distributions, this script fails because of CRLF (Windows-style) line endings or missing execution bits. This guide shows how to repair the script and get your server running.

๐Ÿ“„ Line Ending Mismatch

If you see \r command not found, the script was saved in Windows format. Linux cannot interpret the carriage return at the end of each line.

๐Ÿš€ Environment Shell

The script must be told to run via /bin/bash rather than /bin/sh to support the game's specific environment variables.

How to Fix TSSGameServer.sh

1. Convert to Unix Format

Use the dos2unix tool to strip the Windows line endings from the script. If you don't have the tool, you can use sed:

# Using sed
sed -i 's/\r$//' TSSGameServer.sh

# Using dos2unix
dos2unix TSSGameServer.sh

2. Fix Execution Permissions

After a fresh download via SteamCMD, files are often set to "Read-only." You must grant the server owner permission to execute the script and the underlying binary:

chmod +x TSSGameServer.sh
chmod +x ./HumanitZ/Binaries/Linux/HumanitZServer-Linux-Shipping

3. Edit the Launch Command

When running the script, pass your server name and port as arguments to ensure the engine initializes correctly:

./TSSGameServer.sh -serverName="MyZWorld" -port=7777 -queryport=27015

Note: In the 1.0 build, TSSGameServer.sh requires the LD_LIBRARY_PATH to be set to the folder containing the Steam SDK. If you receive a library error, check our steamclient.so fix guide.

Automated Launch Tools

Fixing shell scripts manually after every patch is time-consuming. Supercraft HumanitZ Servers use a specialized persistent layer that automatically repairs shell scripts and resets permissions every time you click "Start," ensuring 100% uptime.

Top