четверг, 26 февраля 2009 г.

Ставим сервер Counter-Strike 1.6 на Ubuntu Server Edition

Ставим сервер Counter-Strike 1.6 на Ubuntu Server Edition.

1. mkdir hlds
2. cd hlds
3. wget http://www.cstrike-planet.com/dls/hldsupdatetool.bin //качаем hldsupdatetool
4. chmod +x hldsupdatetool.bin //разрешение на выполнение hldsupdatetool
5. ./hldsupdatetool.bin
6. ln -s /bin/gunzip /bin/uncompress
7. wget http://www.cstrike-planet.com/dls/steam //качаем steam
8. chmod +x steam //разрешение на выполнение steam
9. ./steam -command update -game cstrike -dir //тут он будет качать ~300mb
10. ./hlds_run -game cstrike -nomaster -insecure -autoupdate +maxplayers 10 +map de_dust2 > /dev/null 2>&1 & //запуск сервера в роли демона
11. ./hlds_run -console -game cstrike -insecure -nomaster +maxplayers 12 +port 27016 +map de_dust //запуск сервера и переход в консоль сервера

Параметры запуска:
-game cstrike //указываем что запускаем мод cstrike
+sv_lan 1 //строка которая позволяет подключение с no-steam клиентов
+port 27017 //порт
-nomaster //отменяем показ сервера при поиске в самой игре, иначе мы спалим то что мы юзаем крякнутый сервер
+maxplayers xx //максимальное кол-во игроков
+map de_aztec //карта при запуске
-console //консоль
+ip XX.XXX.XXX.XX //IP

P.S.

Если при попытке подключиться клиентам выдает - Invalid CD-Key, то необходимо скачать файлы http://cs.rin.ru/files/cspatches/engines.tar, и залить в директорию (root/hlds/) то что в архиве.

1 комментарий:

  1. консоль:

    ***
    root@x10:/usr/hlds# sh start_server.sh
    Auto detecting CPU
    Using AMD Optimised binary.
    Auto-restarting the server on crash

    Console initialized.
    Protocol version 48
    Exe version 1.1.2.6/Stdio (cstrike)
    Exe build: 18:01:18 Oct 24 2008 (4352)
    STEAM Auth Server
    couldn't exec language.cfg
    Server IP address 192.168.0.3:27017
    [S_API FAIL] SteamAPI_Init() failed; unable to update local steamclient. Continuing with current version anyway.
    Master server communication disabled.

    couldn't exec listip.cfg
    couldn't exec banned.cfg
    [S_API FAIL] SteamAPI_Init() failed; unable to update local steamclient. Continuing with current version anyway.
    Master server communication disabled.

    Connection to Steam servers successful.
    VAC secure mode disabled.



    **********
    с клиента:
    *
    Connecting to HOST:27017 ...
    STEAM userid keysize is bogus (-2041587711/102

    ОтветитьУдалить