WON2 Patch Series

These WON2 patches act as the bare minimum necessary to play or host a server on WON2.  The listing patch is already included in our larger, more comprehensive packages, but may be installed seperately if you decide not to use any of our Half-Life patches such as the 1.1.1.2 update.

Please note that using the Windows server patches and the Linux patch from method 2 may not be legal in your country.  Steamless CS Project does not host these patches and cannot be held responsible for the workings or contents of those patches.  Use at your own risk.

Installation

Before using these files please read the Step-By-Step setup guides located in the support section, where you may find a guide for players and server admins.  The instructions below are not complete server setup guides; their scope does not extend beyond applying the above patches.

Quickly go to:

» WON2 Patch for Windows Servers
» WON2 Patch for Linux Servers
» WON2 Listing Patch for Clients and Servers

 

WON2 Patch for Windows Servers

Download the program and patch swds.dll.  You may wish to make a backup of your original swds.dll in case the patch fails.

Next, add the following parameter to the command line of your shortcut to HLDS.exe: +sv_lan 1
If you have not already created a shortcut, re-read the Step-By-Step setup guide.  You will need some way to launch the server with arguments and +sv_lan 1 is only one of several arguments you will need.

Below are two example command lines.  These will launch a Counter-Strike server on de_dust with a maximum of 16 players.

C:\Sierra\Half-Life\hlds.exe -game cstrike +map de_dust +maxplayers 16 +sv_lan 1

C:\HLServer\hlds.exe -game cstrike +map de_dust +maxplayers 16 +sv_lan 1

You can now start your server by clicking the shortcut.  Do not forget that the WON2 Listing Patch (see below) is also required for your server to be listed on WON2.

WON2 Patch for Linux Servers

There are two methods available to patch your Linux install.

Method 1 (recommended)

Create a plain text file named hlds_nowon.c into your server's /hlds directory. Open it and add the following line:
int NET_IsReservedAdr(){return 1;}

Compile the c file.  The following command should suffice:
gcc -shared -o hlds_won2.so hlds_won2.c

Note:
Users running 64-bit versions of Linux have reported difficulties with the above command line, although Fedora only seems affected for now. Should you have problems getting this to work, you must force gcc to compile hlds_won2.c as a 32-bit file, or consider installing a 32-bit version of your distro in a virtual machine or natively. You can also consider to use the second method below.

Next, edit /hlds_l/hlds_run and add the following line under the first line that starts with "export":
export LD_PRELOAD="./hlds_won2.so"

Add the parameter +sv_lan 1 to whichever script you use to start your server.  Do not forget that the WON2 Listing Patch (see below) is also required for your server to be listed on WON2.

Method 2

Use this method as a last resort if method 1 did not work for you. Also, note that this method is only compatible with HLDS v1.1.1.1e.

Download the WON2 Patch for Linux servers.

Adjust the following command line so that it reflects your server's path, after which you execute it:

perl nowon2.pl /home/blabla/hlds_l

Add the parameter +sv_lan 1 to whichever script you use to start your server.  Do not forget that the WON2 Listing Patch (see below) is also required for your server to be listed on WON2.

 

WON2 Listing Patch

Download the WON2 Listing Patch.  The WON2 Listing patch is a replacement woncomm.lst file which simply lists WON2's master server addresses. Installing this patch is required to be able to use WON2 services such as master server listings and to get your server listed on WON2.

Extract the file (woncomm.lst) into your Half-Life's /valve directory.  If you are patching a client install you will be asked to overwrite an existing woncomm.lst.  Select yes.

NOTE: Standalone HLDS servers (4.1.1.1 or later and HLDS2) name the file differently.  If you are running a standalone HLDS server, find the file valvecomm.lst located in the valve folder, delete it, and rename the extracted woncomm.lst to valvecomm.lst.

This does not apply to non-standalone installs that operate using client files such as HLDS 1.1.1.0.

Further notes

The WON2 Listing Patch can also be used with older, non-protocol 46 Half-Life clients and servers. However, Half-Life client users may notice an error related to a 'bogus list type' upon starting the game. This error can be safely ignored if you intend to play older game versions like the Counter-Strike Beta's. If you intend to play Counter-Strike 1.5, Team Fortress 1.6 or any other non-legacy MOD, something went wrong, in which case you should read the Client FAQ.


Troubleshooting

Not sure what to do next? If you got stuck somewhere, refer to the jumpstart section for Players or Server Admins.

If you have questions not answered here, in the jumpstart or Support sections, you can ask them in the forums.  If you feel these instructions need improving let us know!

 

Downloads

Windows CompatibleWON2 Patch Series for Windows Servers (size: a few KBs)

WON2 Patch for Windows Servers (HLDS 1.1.1.0/4.1.1.0)
WON2 Patch for Windows Servers (HLDS 1.1.1.1/4.1.1.1)
WON2 Patch for Windows Servers (HLDS2 and 1.1.1.1e/4.1.1.1e)
WON2 Listing Patch (Half-Life and Counter-Strike Retail Clients; all HLDS versions)

Linux Compatible WON2 Patch Series for Linux Servers (size: a few KBs)

WON2 Patch for Linux Servers (Method 2 only; HLDS 3.1.1.1e)

 
© 2003-2024 Steamless CS Project Team