A great choice! Xash3D FWGS is a fantastic, open-source engine that can run Half-Life 1 (and other GoldSrc games) on modern systems, and setting up a dedicated server is relatively straightforward. Here's a step-by-step guide to help you get your Xash3D FWGS Half-Life 1 dedicated server up and running:
Prerequisites:
- Linux (recommended) or Windows server (64-bit is preferred, but 32-bit works too). I'll provide instructions for both.
- Half-Life 1 game assets ( WAD files, sound, models, etc.). You must own a legitimate copy of Half-Life 1 ( retail CD, Steam, GOG, etc.). We'll use these assets on our server.
- Basic knowledge of command line interfaces (CLI) like Terminal (Linux) or Command Prompt (Windows).
Step 1: Download and prepare Xash3D FWGS
For Linux (Ubuntu/Debian-based distros):
- Open Terminal and install required dependencies:
sudo apt-get install git build-essential libsdl2-dev libfontconfig1-dev
- Clone the Xash3D FWGS repository:
git clone https://github.com/FWGS/xash3d-fwgs.git
- Navigate into the cloned repository:
cd xash3d-fwgs
- Compile the engine (this might take a few minutes):
./waf configure -T fastbuild && ./waf build
- You'll find the compiled binaries in the
build/ directory.
For Windows:
- Download the pre-built binaries from the Xash3D FWGS releases page. Choose the latest
xash3d-fwgs-win32-*.zip (or xash3d-fwgs-win64-*.zip for 64-bit).
- Extract the ZIP archive to a directory of your choice (e.g.,
C:\xash3d-fwgs).
Step 2: Prepare Half-Life 1 game assets
- Locate your Half-Life 1 installation:
- Steam:
C:\Program Files (x86)\Steam\steamapps\common\Half-Life (Windows) or ~/.steam/steam/steamapps/common/Half-Life (Linux)
- Retail CD: The installation directory (e.g.,
C:\HalfLife on Windows)
- Copy the following folders and files from your Half-Life 1 installation to a new directory (e.g.,
C:\hlserver\valve on Windows or ~/hlserver/valve on Linux):
valve/ folder (contains pak0.pak, pak1.pak, etc.)
platform/ folder (optional, but recommended for full functionality)
liblist.gam file (from the valve/ folder)
- Do not copy the
hl.exe or any other executable. We won't need them.
Step 3: Configure the server
- Create a new directory for your server (if you haven't already):
C:\hlserver (Windows) or ~/hlserver (Linux).
- Inside
hlserver/, create the following subdirectories:
valve/ (already contains the game assets from Step 2)
xash/ (will hold engine files)
- Copy the Xash3D FWGS binaries from Step 1 into
hlserver/xash/:
- Linux:
build/engine/xash3d (and other files like libvavle.so) -> hlserver/xash/
- Windows: Extracted
xash3d.exe, valve.dll, etc. -> hlserver/xash/
- Create a
server.cfg file in hlserver/valve/ with your favorite text editor:
// Basic server settings
hostname "My Awesome HL1 Server"
sv_lan 0 // 0 = internet server, 1 = LAN only
maxplayers 16 // Adjust to your liking
mp_timelimit 30 // minutes
// Network settings (adjust as needed)
sv_port 27015
sv_region 3 // 0 = US East, 1 = US West, 2 = South America, 3 = Europe, etc.
// Rcon (remote console) password
rcon_password "your_secret_password_here"
// Logging
log on
Save and close the file.
Step 4: Launch the server
For Linux:
- Navigate to your server directory:
cd ~/hlserver
- Run the server with:
./xash/xash3d -dedicated -game valve +ip 0.0.0.0 +port 27015 +map crossfire
-dedicated tells Xash3D to run headless (no graphics)
-game valve specifies the game mod (Half-Life 1)
+ip 0.0.0.0 binds the server to all available network interfaces (change to a specific IP if needed)
+port 27015 sets the server port (matches sv_port in server.cfg)
+map crossfire loads the server with the crossfire map (change to your favorite map)
For Windows:
- Open Command Prompt, navigate to your server directory:
cd C:\hlserver
- Run the server with:
xash\xash3d.exe -dedicated -game valve +ip 0.0.0.0 +port 27015 +map crossfire
- Parameters are the same as for Linux.
Your server should now be online, and you should see the Xash3D FWGS console output with messages like "Server started on port 27015" and "Loading map crossfire..."
Verify and connect:
- Check your server's IP address (e.g.,
ifconfig on Linux or ipconfig on Windows).
- Open Half-Life 1 on a client machine (another PC or the same machine).
- In the game's console (
~ key), type: connect <your_server_ip>:27015 (replace <your_server_ip> with your actual server IP).
You should now join your server and see the crossfire map.
Tips and next steps:
- Forward ports on your router (TCP/UDP 27015 by default) if you want the server to be accessible from the internet.
- Customize
server.cfg to your heart's content (check Xash3D FWGS documentation for advanced settings).
- Install additional mods (e.g., Deathmatch, Team Fortress) by copying their folders into
hlserver/ alongside valve/.
- Monitor your server's performance and adjust settings as needed.
Congratulations! Your Xash3D FWGS Half-Life 1 dedicated server is now up and running. Happy gaming!
If you encounter issues, check the:
Have fun, and enjoy your retro FPS goodness!