1. Соблюдайте Правила форума и проявляйте уважение к другим участникам беседы.

Настройка dota.cfg (\mapcfgs) на ubunta

Тема в разделе 'Основные вопросы', создана пользователем reclearer, 2 ноя 2010.

  1. reclearer Ньюфаг

    Сообщения:
    3
    Спасибы:
    0
    Перенес сервер на ubunta, war3.exe, storm.dll, game.dll лежат в \usr\lib\
    DotA v6.69b.w3x лежит в \usr\lib\maps\downloads\
    вот код dota.cfg:

    Код:
    ################################
    # map file for DotA v6.69b.w3x #
    ################################
    
    # the map path tells Warcraft III clients where to find the map on their system
    # it is NOT the path to the map on the GHost++ system, in fact GHost++ doesn't need the map at all
    
    map_path = \maps\download\DotA v6.69b.w3x
    map_size = 236 37 119 0
    map_info = 178 156 54 150
    map_crc = 96 193 14 229
    map_sha1 = 237 254 158 5 126 219 210 141 120 16 241 130 233 117 80 145 141 113 229 186
    
    # map speed
    # 1 = slow
    # 2 = normal
    # 3 = fast
    
    map_speed = 3
    
    # map visibility
    # 1 = hide terrain
    # 2 = explored
    # 3 = always visible
    # 4 = default
    
    map_visibility = 4
    
    # map observers
    # 1 = none
    # 2 = on defeat
    # 3 = allowed
    # 4 = referees
    
    map_observers = 1
    
    # map flags
    #  - you can combine these flags by adding together all the options you want to use
    #  - for example to have teams together and fixed teams you would use "3"
    # 1 = teams together
    # 2 = fixed teams
    # 4 = unit share
    # 8 = random hero
    # 16 = random races
    
    map_flags = 3
    
    # map game type
    # 1 = custom
    
    map_gametype = 1
    
    # map dimensions
    
    map_width = 118 0
    map_height = 120 0
    
    # map players and teams
    
    map_numplayers = 10
    map_numteams = 2
    
    # 
    # slot structure
    #  [PID] [Download Status] [Slot Status] [Computer] [Team] [Colour] [Race] [Skill] [Handicap]
    #  - PID is always 0
    #  - Download Status is always 255
    #  - Slot Status is 0 for open, 1 for closed, 2 for occupied
    #  - Computer is 0 for no, 1 for yes
    #  - Team
    #  - Colour
    #  - Race is 1 for human, 2 for orc, 4 for night elf, 8 for undead, 32 for random (add 64 to any of these for fixed)
    #  - Skill is 0 for easy computer, 1 for normal computer or human, 2 for hard computer
    #  - Handicap is 50/60/70/80/90/100
    # 
    
    map_slot1 = 0 255 0 0 0 1 4 1 100
    map_slot2 = 0 255 0 0 0 2 4 1 100
    map_slot3 = 0 255 0 0 0 3 4 1 100
    map_slot4 = 0 255 0 0 0 4 4 1 100
    map_slot5 = 0 255 0 0 0 5 4 1 100
    map_slot6 = 0 255 0 0 1 7 8 1 100
    map_slot7 = 0 255 0 0 1 8 8 1 100
    map_slot8 = 0 255 0 0 1 9 8 1 100
    map_slot9 = 0 255 0 0 1 10 8 1 100
    map_slot10 = 0 255 0 0 1 11 8 1 100
    
    # map type (for map specific stats)
    
    map_type = dota
    map_matchmakingcategory = dota_elo
    map_statsw3mmdcategory = 
    
    # map local path (for map downloads)
    #  GHost++ doesn't require map files but if it has access to them it can send them to players
    #  GHost++ will search bot_mappath + map_localpath for the map file (bot_mappath is set in the main config file)
    
    map_localpath = \DotA v6.69b.w3x
    вот код ошибки:

    Код:
    [CONFIG] loading file [default.cfg]
    - [CONFIG] loading file [ghost.cfg]
    - [GHOST] starting up
    - [GHOST] using log method 2, logging is enabled and [ghost.log] is now locked
    - [GHOST] using monotonic timer with resolution 0.00 microseconds
    - [UDPSOCKET] using default broadcast target
    - [GHOST] opening primary database
    - [SQLITE3] version 3.6.16
    - [SQLITE3] opening database [ghost.dbs]
    - [SQLITE3] found schema number [8]
    - [GHOST] opening secondary (local) database
    - [SQLITE3] version 3.6.16
    - [SQLITE3] opening database [ghost.dbs]
    - [SQLITE3] found schema number [8]
    - [GHOST] attempting to find local IP addresses
    - [GHOST] local hostname is [aion-p2d]
    - [GHOST] local IP address #1 is [127.0.1.1]
    - [GHOST] acting as Warcraft III: The Frozen Throne
    - [CONFIG] warning - unable to read file [language.cfg]
    - [GHOST] found battle.net connection #1 for server [172.20.20.240]
    - [GHOST] unable to get system locale, using default locale of 1033
    - [BNET: Volv] pvpgn connection found with a configured BNLS server, ignoring BNLS server
    - [GHOST] loading MPQ file [/usr/lib/War3Patch.mpq]
    - [GHOST] extracting Scripts\common.j from MPQ file to [common.j]
    - [GHOST] extracting Scripts\blizzard.j from MPQ file to [blizzard.j]
    - [GHOST] adding ".cfg" to default map -> new default is [dota.cfg]
    - [CONFIG] warning - unable to read file [dota.cfg]
    - [MAP] warning - unable to load MPQ file [maps/]
    - [MAP] no map data available, using config file for map_size, map_info, map_crc, map_sha1
    - [MAP] no map data available, using config file for map_options, map_width, map_height, map_slot<x>, map_numplayers, map_numteams
    - [MAP] invalid map_path detected
    - [MAP] invalid map_size detected
    - [MAP] invalid map_info detected
    - [MAP] invalid map_crc detected
    - [MAP] invalid map_sha1 detected
    - [MAP] invalid map_width detected
    - [MAP] invalid map_height detected
    - [MAP] invalid map_numplayers detected
    - [MAP] invalid map_numteams detected
    - [MAP] invalid map_slot<x> detected
    - [GHOST] using hardcoded admin game map
    - [MAP] using hardcoded Emerald Gardens map data for Warcraft 3 version 1.24 & 1.24b
    - [GHOST] warning - unable to read file [ip-to-country.csv], iptocountry data not loaded
    - [GHOST] GHost++ Version 17.0 (with MySQL support)
    - [BNET: Volv] connecting to server [172.20.20.240] on port 6112
    - [BNET: Volv] attempting to bind to address [10.11.116.4]
    - [BNET: Volv] resolved and cached server IP address 172.20.20.240
    - [BNET: Volv] connected
    - [BNET: Volv] using custom exe version bnet_custom_exeversion = 184 0 22 1
    - [BNET: Volv] using custom exe version hash bnet_custom_exeversionhash = 219 153 153 144
    - [BNET: Volv] attempting to auth as Warcraft III: The Frozen Throne
    - [BNET: Volv] cd keys accepted
    - [BNET: Volv] logon failed - invalid username, disconnecting
    - [BNET: Volv] disconnected from battle.net
    - [BNET: Volv] waiting 90 seconds to reconnect
    - [GHOST] stopped auto hosting, map config file [dota.cfg] is invalid
    
  2. fake Старожила

    Сообщения:
    1.624
    Спасибы:
    19
    Дата начала использования бота:
    11.11.11
    и в конфиге мап патч кривой,В Теме Карты Есть конфиг на эту карту...
  3. JiLiZART Администрация

    Сообщения:
    815
    Спасибы:
    35
    Сборка бота GHost:
    Ghost++ 17.1
    Дата начала использования бота:
    12.12.04
    map_localpath = \usr\lib\maps\downloads\DotA v6.69b.w3x
    а дальше тебе нужно жёстко указать versionhash для бота, т.к он не может правильно вычислить хэш на линуксе сам.