1. Обновление всего ряда платных услуг проекта, ознакомиться можно тут "Доступны скидки": Покупка [ Нажать! ]
    Скрыть объявление
  2. Жалобу на администратора / игрока можно оставить в разделе: Жалобы на игроков хост бота.
    Скрыть объявление
Скрыть объявление
В данный момент обновлен весь ряд платных услуг проекта VenDev.info!

С уровнем прав можно ознакомиться по ссылке ниже: Ознакомиться / приобрести[ Нажать! ]

Компиляция, и настройка Ghost++ на linux VPS\Dedicated servers

Тема в разделе "Ghost++ \ Ohbot \ ohconnect", создана пользователем Venmade, 12.05.15.

  1. Venmade

    Команда форума Project creator

    Регистрация:
    10.05.15
    Сообщения:
    596
    Репутация:
    394
    Steam:
    Twitter:
    Vkontakte:
    Garena:
    Venmade
    B.net:
    Venmade
    #1 Venmade, 12.05.15
    Последнее редактирование: 21.03.16
    И так преступим - описание будет на английском языке, далее будет и русская тема.

    Some days ago I tried to compile ghost++ on linux and I faced some annoying problems. Acutally it isn't hard to make ghost++ work but I must admit that the documentation is outdated, most of posts about this subjects are too old and so on... So I decided to explain how I manage to compile ghost++ on linux server ubuntu 14.04_LTS-server (64BITS), install ghost++ and run it. I will also share my own configuration and all necessary files.


    COMPILE GHOST++

    1 - Download ghost++ latest version

    From SVN:
    Код:
    Code: https://code.google.com/p/ghostplusplus/downloads/list
    INSTALL GHOST\Lib++ FOLDERS AND NEEDED FILES

    Now we just have to create folders for ghost++ to store configurations, maps, replays, ...

    Install libraries & files:

    For Ubuntu or debian:
    Код:
    apt-get install screen bzip2 tar build-essential g++ libmysql++-dev wget unzip libbz2-dev libgmp3-dev git libboost-all-dev
    For CentOS:
    Код:
    yum install screen bzip2 tar build-essential g++ libmysql++-dev wget unzip libbz2-dev libgmp3-dev git libboost-all-dev

    1 - Install bot folders

    Create main directory for your bot (maps, replays, configurations, ...) on desktop or home for example :

    Код:
    mkdir ~/ghost++/
    Go to your previous compiled ghost++ and copy theses folders :
    Code: [Select]
    cd ~/warcraft/ghost/
    cp -R maps/ mapcfgs/ replays/ savegames/ ~/ghost++/
    cp ghost/ghost++ default.cfg ~/ghost++/
    cp gameloaded.txt gameover.txt ipblacklist.txt ~/ghost++/
    cp ip-to-country.csv ~/ghost++/

    2 - Download required files :

    In order to run this bot you need 3 files :
    • Storm.dll
    • game.dll
    • war3.exe

    download them here : <TODO LINK>
    or just copy them from warcraft III installation folder.

    Else you also need two files for calculate maps size, caracteristics, ... :

    Take care of their version ! some does not work.
    • blizzard.j
    • common.j

    You can get them and install them in two ways :

    download them here : <TODO LINK>
    or extract them from the War3Patch.mpq you can find in your warcraft III installation folder
    then place them here :

    Код:
    ~/ghost++/mapcfgs/
    Second method (easier)

    Lets ghost++ extract these two files himeself from the War3Patch.mpq.
    Obviously you need these archive : War3Patch.mpq.
    Download it there or get it from your Warcraft III installation folder
    then place it here :

    Код:
    ~/ghost++/
    CONFIGURE GHOST++

    1 - Create ghost++ config file :

    From previous steps you should have the file "default.cfg" in your own installation of ghost++. Create file config :

    Код:
    cd ~/ghost++/
    >cp default.cfg ghost.cfg

    2 - Configure bot

    You can simply set those variables in the ghost.cgf newly created or just download my version of ghost.cfg here :

    <LINK ghost.cfg>

    Beware all path config variables must end end in your system's path seperator (i.e. "\" on Windows or "/" on Linux). For me it's /
    Following variables references folders previously created (~/ghost++/)

    Код:
    bot_war3path = ./
    bot_mapcfgpath = ../mapcfgs/
    bot_savegamepath = ../savegames/
    bot_mappath = ../maps/
    bot_replaypath = ../replays/
    Other variables

    Код:
    bot_allowdownloads = 1 // allow download
    bot_latency = 20 // set latency
    bot_hostport = 6112  // on which port games will be hosted (must be opened in router)
    bnet_server = europe.battle.net // which server ? (possibilities :
    bnet_cdkeyroc = XXXXXXXXXXXXXXX // your ROC key (must be valid) with no space no dashes
    bnet_cdkeytft = XXXXXXXXXXXXXXX // your TFT KEY (only needed if you use TFT) thus ROC key also needed. No space no dashes
    bnet_username = myboname // account must be created before
    bnet_password = mypassword // password of previous created account
    bnet_firstchannel = clan SliD // which channel to join by default
    bnet_rootadmin = winnertony // your bnet account (not bot account)
    bnet_custom_war3version = 26 // current version of the game
    bot_tft = 0 // Setting bot game 1 = TFT 0 = ROC
    3 - Start the bot :

    run in console :
    place yourself in the ghost++ main directory (cd ~/ghost++/)

    Код:
    ./ghost++
    now ghost++ should running. verify it here :

    ps- axl | grep "ghost"
    run in background :

    Код:
    nohup ./ghost++ &
    or :
    Код:
    screen -d -m ./ghost++