Steps for updating the geolocation.xxx in scriptdata\geolocation:

1. Download the latest IPv4 CSV list:

   http://software77.net/geo-ip/

   For Windows users there is a shortcut file IpToCountry.url included.
   Trouble finding the download section on that site? Take a look at the
   IpToCountry.png screenshot. Green square is where you need to be.

   Get the "IPV4 CSV (zip)" or "IPV4 CSV (gz)", whatever compression
   you can handle best.

   Next get the "ISO Country Codes" file from the same download section.
   It's expected to download as country-codes.txt. If it's not, please rename
   the file; the scripts depend on this name (Linux: case matters).

2. Unpack the latest IPv4 CSV list:

   At the time of writing this note, the name of the compressed file was
   IpToCountry.csv.zip or IpToCountry.csv.gz. It doesn't matter.

   Unpack it to the _update folder (where this readme.txt originally resides).

   The name of the unpacked file should be IpToCountry.csv. The CSV file MUST
   have this name.
   If it doesn't, rename it to IpToCountry.csv (Linux: case matters).

3. Convert IPToCountry.csv to geolocation.db:

   Windows: double-click the make-db.cmd file.
   Linux  : execute make-db.pl.

   This will create two files. One called geolocation.db, which holds the
   converted IPv4 list, and one called geolocation_db.gsc, which is a
   Call of Duty script file that converts country codes found in geolocation.db
   to full country names. The latter is used for comparison only (see 6).

4. Convert geolocation.db to geolocation.ip:

   Windows: double-click the make-ip.cmd file.
   Linux  : execute make-ip.pl.

   This will create a file called geolocation.ip.

5. Split geolocation.ip into seperate files:

   Windows: double-click the split-ip.cmd file.
   Linux  : execute split-ip.pl.

   This will create 256 files ranging from geolocation.000 to geolocation.255.

6. Make localized string file for all countries

   Windows: double-click the make-loc.cmd file.
   Linux  : execute make-loc.pl.

   This will process the file country-codes.txt, and create two files:
   A file called _ex_monitor_log_geolocalize.gsc, which is a Call of Duty mod
   script that converts country codes to full country names*.
   A file called geolocation.str, which is a Call of Duty localized string file.

   You should review geolocation.str to see if you want to rename some of the
   country names to more friendly versions.

   *) This file will contain more entries than the previously created
   gelocation_db.gsc. You can do a file compare to find out which country
   codes are available (in country-codes.txt), and which are currently used in
   the database (geolocation.db).

7. Copy files to game server:

   A. Copy all 256 files ranging from geolocation.000 to geolocation.255
   to the [fs_game]\scriptdata\geolocation folder on your game server.
   Overwrite existing files.

   B. Copy file geolocation.str to the localizedstrings folder of your client
   iwd file (default e30.iwd). Overwrite the existing one.

   C. Copy file _ex_monitor_log_geolocalize.gsc to the extreme folder in
   your mod folder [fs_game]. Overwrite the existing one.

8. Synchronize the updated client iwd file on game server and download redirect
   if you're using one.

Done!
