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

Help Game list патч - хостующие игры на сайте

Тема в разделе 'Кодинг/Собственные решения', создана пользователем Archi=), 5 июл 2013.

  1. Archi=) Ньюфаг

    Сообщения:
    51
    Спасибы:
    2
    Дата начала использования бота:
    2013
    Лонгман на *** шёл.
  2. xy4u Давний приятель

    Сообщения:
    13
    Спасибы:
    0
    Сборка бота GHost:
    Ghost ++17.1
    Дата начала использования бота:
    01.08.2013
    Всем привет, после установки патча бот стал слетать, судя по логам причина кроется в конфиге карты, мб кто-нибудь сталкивался с такой проблемой?

    Лог бота

    HTML:
    [Tue Sep 03 01:11:36 2013] [GHOST] starting up
    [Tue Sep 03 01:11:36 2013] [GHOST] using log method 1, logging is enabled and [ghost.log] will not be locked
    [Tue Sep 03 01:11:36 2013] [GHOST] using Windows timer with resolution 1 milliseconds
    [Tue Sep 03 01:11:36 2013] [GHOST] starting winsock
    [Tue Sep 03 01:11:36 2013] [GHOST] setting process priority to "above normal"
    [Tue Sep 03 01:11:36 2013] [UDPSOCKET] using default broadcast target
    [Tue Sep 03 01:11:36 2013] [GHOST] opening primary database
    [Tue Sep 03 01:11:36 2013] [MYSQL] connecting to database server
    [Tue Sep 03 01:11:36 2013] [GHOST] opening secondary (local) database
    [Tue Sep 03 01:11:36 2013] [SQLITE3] version 3.6.16
    [Tue Sep 03 01:11:36 2013] [SQLITE3] opening database [ghost.dbs]
    [Tue Sep 03 01:11:36 2013] [SQLITE3] found schema number [8]
    [Tue Sep 03 01:11:36 2013] [GHOST] attempting to find local IP addresses
    [Tue Sep 03 01:11:36 2013] [GHOST] local IP address #1 is [192.168.1.130]
    [Tue Sep 03 01:11:36 2013] [GHOST] local IP address #2 is [127.0.0.1]
    [Tue Sep 03 01:11:36 2013] [GHOST] acting as Warcraft III: The Frozen Throne
    [Tue Sep 03 01:11:36 2013] [CONFIG] loading file [language_russian.cfg]
    [Tue Sep 03 01:11:36 2013] [GHOST] found battle.net connection #1 for server [rubattle.net]
    [Tue Sep 03 01:11:36 2013] [GHOST] using system locale of 1049
    [Tue Sep 03 01:11:36 2013] [BNET: Rubattle.net] pvpgn connection found with a configured BNLS server, ignoring BNLS server
    [Tue Sep 03 01:11:36 2013] [GHOST] found battle.net connection #2 for server [telia-stats.net]
    [Tue Sep 03 01:11:36 2013] [GHOST] using system locale of 1049
    [Tue Sep 03 01:11:36 2013] [BNET: Telia-Stats] pvpgn connection found with a configured BNLS server, ignoring BNLS server
    [Tue Sep 03 01:11:36 2013] [GHOST] found battle.net connection #3 for server [bnet.sibnet.ru]
    [Tue Sep 03 01:11:36 2013] [GHOST] using system locale of 1049
    [Tue Sep 03 01:11:36 2013] [BNET: Sibnet] pvpgn connection found with a configured BNLS server, ignoring BNLS server
    [Tue Sep 03 01:11:36 2013] [GHOST] found battle.net connection #4 for server [war3.4local.ru]
    [Tue Sep 03 01:11:36 2013] [GHOST] using system locale of 1049
    [Tue Sep 03 01:11:36 2013] [BNET: 4local] pvpgn connection found with a configured BNLS server, ignoring BNLS server
    [Tue Sep 03 01:11:36 2013] [GHOST] loading MPQ file [C:\Games\Warcraft III\War3Patch.mpq]
    [Tue Sep 03 01:11:36 2013] [GHOST] extracting Scripts\common.j from MPQ file to [mapcfgs\common.j]
    [Tue Sep 03 01:11:36 2013] [GHOST] extracting Scripts\blizzard.j from MPQ file to [mapcfgs\blizzard.j]
    [Tue Sep 03 01:11:36 2013] [GHOST] adding ".cfg" to default map -> new default is [dota lod 2012 gold v4e1.cfg]
    [Tue Sep 03 01:11:36 2013] [CONFIG] loading file [mapcfgs\dota lod 2012 gold v4e1.cfg]
    Попытался запустить бота с совместимостью и правами админа, вот что выдал бот

    HTML:
    [Tue Sep 03 01:18:39 2013] [GHOST] starting up
    [Tue Sep 03 01:18:39 2013] [GHOST] using log method 1, logging is enabled and [ghost.log] will not be locked
    [Tue Sep 03 01:18:39 2013] [GHOST] using Windows timer with resolution 1 milliseconds
    [Tue Sep 03 01:18:39 2013] [GHOST] starting winsock
    [Tue Sep 03 01:18:39 2013] [GHOST] setting process priority to "above normal"
    [Tue Sep 03 01:18:39 2013] [UDPSOCKET] using default broadcast target
    [Tue Sep 03 01:18:39 2013] [GHOST] opening primary database
    [Tue Sep 03 01:18:39 2013] [MYSQL] connecting to database server
    [Tue Sep 03 01:18:39 2013] [GHOST] opening secondary (local) database
    [Tue Sep 03 01:18:39 2013] [SQLITE3] version 3.6.16
    [Tue Sep 03 01:18:39 2013] [SQLITE3] opening database [ghost.dbs]
    [Tue Sep 03 01:18:39 2013] [SQLITE3] found schema number [8]
    [Tue Sep 03 01:18:39 2013] [GHOST] attempting to find local IP addresses
    [Tue Sep 03 01:18:39 2013] [GHOST] local IP address #1 is [192.168.1.130]
    [Tue Sep 03 01:18:39 2013] [GHOST] local IP address #2 is [127.0.0.1]
    [Tue Sep 03 01:18:39 2013] [GHOST] acting as Warcraft III: The Frozen Throne
    [Tue Sep 03 01:18:39 2013] [CONFIG] loading file [language_russian.cfg]
    [Tue Sep 03 01:18:39 2013] [GHOST] found battle.net connection #1 for server [rubattle.net]
    [Tue Sep 03 01:18:39 2013] [GHOST] using system locale of 1049
    [Tue Sep 03 01:18:39 2013] [BNET: Rubattle.net] pvpgn connection found with a configured BNLS server, ignoring BNLS server
    [Tue Sep 03 01:18:39 2013] [GHOST] found battle.net connection #2 for server [telia-stats.net]
    [Tue Sep 03 01:18:39 2013] [GHOST] using system locale of 1049
    [Tue Sep 03 01:18:40 2013] [BNET: Telia-Stats] pvpgn connection found with a configured BNLS server, ignoring BNLS server
    [Tue Sep 03 01:18:40 2013] [GHOST] found battle.net connection #3 for server [bnet.sibnet.ru]
    [Tue Sep 03 01:18:40 2013] [GHOST] using system locale of 1049
    [Tue Sep 03 01:18:40 2013] [BNET: Sibnet] pvpgn connection found with a configured BNLS server, ignoring BNLS server
    [Tue Sep 03 01:18:40 2013] [GHOST] found battle.net connection #4 for server [war3.4local.ru]
    [Tue Sep 03 01:18:40 2013] [GHOST] using system locale of 1049
    [Tue Sep 03 01:18:40 2013] [BNET: 4local] pvpgn connection found with a configured BNLS server, ignoring BNLS server
    [Tue Sep 03 01:18:40 2013] [GHOST] loading MPQ file [C:\Games\Warcraft III\War3Patch.mpq]
    [Tue Sep 03 01:18:40 2013] [GHOST] extracting Scripts\common.j from MPQ file to [mapcfgs\common.j]
    [Tue Sep 03 01:18:40 2013] [GHOST] extracting Scripts\blizzard.j from MPQ file to [mapcfgs\blizzard.j]
    [Tue Sep 03 01:18:40 2013] [GHOST] adding ".cfg" to default map -> new default is [dota lod 2012 gold v4e.cfg]
    [Tue Sep 03 01:18:40 2013] [CONFIG] loading file [mapcfgs\dota lod 2012 gold v4e.cfg]
    [Tue Sep 03 01:18:40 2013] [UTIL] warning - unable to read file [Dota LOD 2012 gold v4e.w3x]
    [Tue Sep 03 01:18:40 2013] [MAP] warning - unable to load MPQ file [Dota LOD 2012 gold v4e.w3x]
    [Tue Sep 03 01:18:40 2013] [MAP] no map data available, using config file for map_size, map_info, map_crc, map_sha1
    [Tue Sep 03 01:18:40 2013] [MAP] no map data available, using config file for map_options, map_width, map_height, map_slot<x>, map_numplayers, map_numteams
    [Tue Sep 03 01:18:40 2013] [MAP] invalid map_size detected
    [Tue Sep 03 01:18:40 2013] [MAP] invalid map_info detected
    [Tue Sep 03 01:18:40 2013] [MAP] invalid map_crc detected
    [Tue Sep 03 01:18:40 2013] [MAP] invalid map_sha1 detected
    [Tue Sep 03 01:18:40 2013] [MAP] invalid map_width detected
    [Tue Sep 03 01:18:40 2013] [MAP] invalid map_height detected
    [Tue Sep 03 01:18:40 2013] [MAP] invalid map_numplayers detected
    [Tue Sep 03 01:18:40 2013] [MAP] invalid map_numteams detected
    [Tue Sep 03 01:18:40 2013] [MAP] invalid map_slot<x> detected
    [Tue Sep 03 01:18:40 2013] [GHOST] using hardcoded admin game map
    [Tue Sep 03 01:18:40 2013] [MAP] using hardcoded Emerald Gardens map data for Warcraft 3 version 1.24 & 1.24b
    [Tue Sep 03 01:18:40 2013] [GHOST] started loading [ip-to-country.csv]
    Конфиг карты

    HTML:
    #######################################
    # map file for Dota LOD 2012 gold v4e #
    #######################################
     
    # 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 LOD 2012 gold v4e.w3x
     
    # 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 players and teams
     
     
    #
    # 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 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 LOD 2012 gold v4e.w3x
    map_defaulthcl = mdfcsops
    Почему-то возникает ошибка при обращении к фаилу карты, чтобы выдернуть оттуда настройки, как это исправить? Или что-то не так в конфиге, т.к. до установки патча с таким конфигом бот запускался с пол оборота
    Заранее благодарен
  3. Suicider Старожила

    Сообщения:
    673
    Спасибы:
    117
    Сборка бота GHost:
    Ghost++ 17.1 by w3gh
    Дата начала использования бота:
    12.07.2011
    Юзнул патч, проблем никаких... Вот уже больше месяца ни одного краша
  4. xy4u Давний приятель

    Сообщения:
    13
    Спасибы:
    0
    Сборка бота GHost:
    Ghost ++17.1
    Дата начала использования бота:
    01.08.2013
    Мде так никто и не помог....
    Лан сам разобрался, мб кому и пригодится, у кого такая же проблема будет, переехал на msvc 10 + boost 1.54, скомпилировал, правда тоже пришлось помучится, патч работает нормально
  5. Doterok Старожила

    Сообщения:
    923
    Спасибы:
    171
    Сборка бота GHost:
    Ghost ++ 17.2
    Дата начала использования бота:
    2011
    пока мир не перепилил мир мой ван под 46+ бусты, на ура ебашил патч на 08 студии + 38 бусты
  6. xy4u Давний приятель

    Сообщения:
    13
    Спасибы:
    0
    Сборка бота GHost:
    Ghost ++17.1
    Дата начала использования бота:
    01.08.2013
    хм, а какая версия патча была?
  7. Doterok Старожила

    Сообщения:
    923
    Спасибы:
    171
    Сборка бота GHost:
    Ghost ++ 17.2
    Дата начала использования бота:
    2011
    вторая
  8. xy4u Давний приятель

    Сообщения:
    13
    Спасибы:
    0
    Сборка бота GHost:
    Ghost ++17.1
    Дата начала использования бота:
    01.08.2013
  9. Doterok Старожила

    Сообщения:
    923
    Спасибы:
    171
    Сборка бота GHost:
    Ghost ++ 17.2
    Дата начала использования бота:
    2011