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

Установка ghost и openstats

Тема в разделе 'Запуск и Поддержка', создана пользователем Geomancer, 23 ноя 2013.

  1. Geomancer Олд-фаг

    Сообщения:
    27
    Спасибы:
    0
    Вообщем установил OpenStats на сайт http://dota-heroes.ru/bot/, теперь хочу чтобы Ghost создавал игры на garena plus, а потом после их окончания они выводились в статистике на сайте. Помогите настроить.
  2. Sparko_Dima Старожила

    Сообщения:
    744
    Спасибы:
    104
    Сборка бота GHost:
    Ghost Sparko
    Дата начала использования бота:
    10.10.09
    какой то не дефолтный диз
    Geomancer нравится это.
  3. Sparko_Dima Старожила

    Сообщения:
    744
    Спасибы:
    104
    Сборка бота GHost:
    Ghost Sparko
    Дата начала использования бота:
    10.10.09
    а для гарены gcb нужна
    Geomancer нравится это.
  4. Sparko_Dima Старожила

    Сообщения:
    744
    Спасибы:
    104
    Сборка бота GHost:
    Ghost Sparko
    Дата начала использования бота:
    10.10.09
    Geomancer нравится это.
  5. Geomancer Олд-фаг

    Сообщения:
    27
    Спасибы:
    0
    Я бот настроил, но на сайте когда нажимаю на "Top player" или "GameHistory" выводит o_Ops,page not found
  6. Sparko_Dima Старожила

    Сообщения:
    744
    Спасибы:
    104
    Сборка бота GHost:
    Ghost Sparko
    Дата начала использования бота:
    10.10.09
    запросы делал? к бд бот подключаеться?
  7. Geomancer Олд-фаг

    Сообщения:
    27
    Спасибы:
    0
    Вообщем когда в игре ввожу !statsdota статистику по играм выводит, но на сайте page not found
  8. Sparko_Dima Старожила

    Сообщения:
    744
    Спасибы:
    104
    Сборка бота GHost:
    Ghost Sparko
    Дата начала использования бота:
    10.10.09
    мб у тебя бд не указана sqlite3 мб юзаешь конфиг сюда
    Geomancer нравится это.
  9. Geomancer Олд-фаг

    Сообщения:
    27
    Спасибы:
    0

    Код:
    # After the key and after "=" leave a space ! ( = )
    # Ex: bot_log = log.txt
    # welcome.txt gameloaded.txt and gameover.txt - messages to be displayed in ghb , you can edit them
     
    ######################
    # MAIN CONFIGURATION #
    ######################
    # ghb mode: 0 - create a game; 1 - create a map config; 2 - load a saved game
     
    hostbot_game_type = 0
     
    # League mode or not - host multiple games at once
    bot_league_mode = 0
     
    # maximum games to host at once for League Mode
    bot_maxgames = 3
     
    # admin name and game name (lower then 16 characters)
     
    bot_adminname = Russian.DotA
    hostgame_name = Ladder[DotA]
     
    #####################
    # Create map config #
    #####################
    # only needed when creating a map config
    # must be in W3 maps download directory (bot_mappath) ! if it's not this will fail
     
    map_name_to_create_cfg = DotA v6.78c.w3x
     
    #if it's a dota map you must set map_type as "dota" ! if it's not leave map_type empty
     
    map_type = dota
     
    ###################
    # Load saved game #
    ###################
    # only needed when loading a saved game
    # path to the saved game - must be in Warcraft III directory Save\Multiplayer\ - full path + extension !
     
    hostbot_savegame_path =
     
    # path to the the replay of that game - full path + extension !
     
    hostbot_replay_path =
     
    # in order to resume the game ALL players must have this saved game in their W3 directory Save\Multiplayer\
    # if it's an autosave before someone dropped that someone must get a replay file from a player in his team and place it in his W3 directory Save\Multiplayer\
    # more info http://www.codelain.com/wiki/index.php?title=ReadMe#Using_Saved_Games
     
     
    ##################
    # OTHER SETTINGS #
    ##################
     
    # enable country and level detection
    country_and_level_detection = 1
     
    # show the game almost full 9/100 instead of the real player count on lan game
    bot_show9_10 = 0
     
    # when someone uses trade resource it gets kicked ( !!! Disable this if you don't play DotA )
    autokick_on_trade = 1
     
    # when load in game is active show who loaded the map already
    show_finsihed_loading_map = 0
     
    # warn if a player is not found in the room
    warn_not_in_room = 1
     
    # auto kick if a player is not found in the room
    kick_not_in_room = 0
     
    # enable autostart
    auto_start_players = 10
     
    # enable autostart message every 10s, 0 to disable
    auto_start_message = 0
     
    # delay to show the start message from gameloaded.txt
    bot_startmsgdelay = 60
     
    # when game is full show pings and countries
    show_fromp_on_game_full = 0
     
    # allow or not color coded names
    allow_color_code_names = 0
     
    # lock admins so they can't change slot on shuffle or balance
    lock_in_place_admins = 1
     
    # lock safelisted plaeyrs so they can't change slot on shuffle or balance
    lock_in_place_safe = 0
     
    # default player score for someone who didn't played any games on your bot yet
    default_player_score = 1
     
    # balance the teams when the game is full
    autobalance_when_game_full = 0
     
    # autosave the game on every player leave, regardless of leave reason
    bot_autosave_on_everything = 0
     
    # method used for balancing slots: 0 rank, 1 garena level(default)
    balance_method = 1
     
    # handle name bans: 0 = do nothing, 1 = kick, 2 = announce only (no kick).
    bot_banning = 1
     
    # normal W3 countdown or ghost countdown
    bot_normalcountdown = 0
     
     
    # min and/or max level restrictions
    bot_minlevel = 0
    bot_maxlevel = 0
     
    # automatic rehost after game ended
    bot_autorehost = 1
     
    # set 1 to detect country from ip or 0 do detect country from the garena account
    country_detect_type = 1
     
    # ghb process priority: 2 above normal - 1 below normal -  0 normal
    bot_priorityclass = 0
     
    # make the ban announcement on one line ( = 0) (if possible) or on two ( = 1)
    bot_twolinesbanannouncement = 1
     
    # custom text to add to version.
    bot_customversiontext =
     
    #  auto ban people who leave during the countdown
    bot_autobancountdown = 0
     
    #  auto ban people who leave during the game load
    bot_autobangameloading = 0
     
    # UDP port on which the bot communicates with GHost One GUI, 5868 default
    udp_guiport = 5868
     
    # In LAN/GArena show the real number of current/total players in the game, when using !pubg it will be auto activated
    lan_showrealslotcount = 1
     
    # the log file
    bot_log =
     
    # Admins will be able to delete only bans they've made
    bot_adminslimitedunban = 0
     
    # Announce +1 and +2 (players left to join) in lobby (only if not autohosted)
    bot_lobbyannounceunoccupied = 1
     
    # Auto set HCL based on game name,ex: -arso EU pros will set HCL to arso (only if map_defaulthcl is defined, for ex: map_defaulthcl = ar), will set hcl to empty if no mode is detected in the gamename
    bot_autohclfromgamename = 1
     
    # mute for x seconds, if a player has cursed for 3 or more times
    bot_censormuteexcessiveseconds = 60
     
    # mute for x seconds, the second time a player curses
    bot_censormutesecondseconds = 30
     
    # mute for x seconds, the first time a player curses
    bot_censormutefirstseconds = 10
     
    # whether players who use censored words are auto muted for x seconds
    bot_censormute = 1
     
    # also auto mute admins
    bot_censormuteadmins = 1
     
    # Warcraft III version
    lan_war3version = 26
     
    # Disable nagle algorithm (TCPIP algorithm that can slow down the network) - may improve latency if you set to 1
    tcp_nodelay = 0
     
    # Path to your WC3TVRecorder ex: c:\Program Files\waaaghTV Recorder\
    wtv_path = C:\Program Files\wtvRecorder0.53.00
    # Use WC3TVRecorder, 1 to enable
    wtv_enabled = 0
    # WaaaghTV Observer Name
    wtv_playername = Waaagh!TV
     
    # for ex: RO, only these countries will be allowed to join a game
    bot_allowedcountries =
     
    # for ex: BR, these countries will not be allowed to join a game
    bot_deniedcountries =
     
    # Allowed variables: totgames, kills, deaths, assists, creepkills, creepdenies, neutralkills,
    # towerkills, raxkills, courierkills, wins, losses, killstotal, deathstotal, creepkillstotal,
    # creepdeniestotal,assiststotal, neutralkillstotal, towerkillstotal, raxkillstotal, courierkillstotal
    # default formula:
    # (((wins-losses)/totgames)+(kills-deaths+assists/2)+(creepkills/100+creepdenies/10+neutralkills/50)+(raxkills/6)+(towerkills/11))
    # alternative formula:
    # (((kills-deaths+assists*0.7)*0.6+towerkills*0.8+raxkills+creepkills*0.02+creepdenies*0.08+neutralkills*0.03+courierkills*0.04)*0.5+(wins/totgames*2)+(totgames*0.002))
     
    bot_scoreformula = (((wins-losses)/totgames)+(kills-deaths+assists/2)+(creepkills/100+creepdenies/10+neutralkills/50)+(raxkills/6)+(towerkills/11))
     
    # Only players having played this many number of games will be ranked
    bot_scoremingames = 1
     
    # default access for owners (use admin access panel to change any admin's access to your liking and see the access code for those commands)
    bot_owneraccess = 3967
     
    # default access for admins
    bot_adminaccess = 8191
     
    #  will only auto ban if team diff <= with the setting
    bot_autobanteamdiffmax = 0
     
    # Only ban players who leave prior to x minutes of game end time.
    bot_autobangameendmins = 1
     
    # time in mins the auto ban will stay on in game, set to 0 to stay forever
    bot_autobantimer = 4
     
    # ban even if it does not make game uneven
    bot_autobanall = 1
     
    # bans the first x leavers reguardless of even or not
    bot_autobanfirstxleavers = 0
     
    # if host counter goes over this number it will reset to 1, set to 0 to disable the feature
    bot_maxhostcounter = 240
     
    # these words will be edited/censored in game.
    bot_censorwords = пидр *а гандон лох уеба * на* *юк даун
     
    # load in game feature will be enabled for every map (if set to 1)
    bot_forceloadingame = 0
     
    # After a game has ended, if mysql is used, ghost will run update_dota_elo.exe (use either this or score not both!)
    bot_updatedotaeloaftergame = 0
     
    # After a game has ended, if mysql is used, ghost will recalculate scores (use either this or elo not both!)
    bot_updatedotascoreaftergame = 1
     
    # set to 1 if you are using warcraft 3 patch 1.23 or newer
    bot_patch23ornewer = 1
     
    # set to 1 if you are using warcraft 3 patch 1.21
    bot_patch21 = 0
     
    # show .sd of anyone who enters the lobby (and has played games with the bot before)
    bot_showscoresonjoin = 1
     
    # If you host a even playered two team map and want to auto ban leavers that make the game uneven turn this on. Will not ban admins or root admins. An example map would be DotA or Battleships.
    #    0 = off  1 = on
    bot_autoban = 1
     
     
    # the language file
    bot_language = language.cfg
     
    # the path to your local Warcraft III directory
    #  this path must contain war3.exe, storm.dll, and game.dll
    #  this path must end in your system's path seperator (i.e. "\" on Windows or "/" on Linux)
    #  if this path contains War3Patch.mpq the bot will attempt to extract "Scripts\common.j" and "Scripts\blizzard.j" on startup and write them to bot_mapcfgpath (which is defined later in this file)
    #  common.j and blizzard.j are only required for automatically calculating map_crc, you do not need them if your map config files already contain map_crc
     
    bot_war3path = C:\DotA\Warcraft\
     
     
    # the port GHost++ will host  games on (this must be different from your admingame_port)
     
    bot_hostport = 6113
     
    # command trigger for ingame only (battle.net command triggers are defined later)
    # the default is ! and it will remain working with the one in bot_commandtrigger
    bot_commandtrigger = !
     
    # the path to the directory where you keep your map config files (must end in your system's path seperator)
    #  this directory can also contain common.j and blizzard.j (extracted from War3Patch.mpq)
    #  common.j and blizzard.j are only required for automatically calculating map_crc, you do not need them if your map config files already contain map_crc
     
    bot_mapcfgpath = mapcfgs\
     
    # the path to the directory where you keep your savegame files (must end in your system's path seperator)
     
    bot_savegamepath = savegames\
     
    # the path to the directory where you keep your map files (must end in your system's path seperator)
    #  GHost++ doesn't require map files but if it has access to them it can send them to players and automatically calculate most map config values
    #  GHost++ will search [bot_mappath + map_localpath] for the map file (map_localpath is set in each map's config file)
     
    bot_mappath = C:\DotA\Warcraft\maps\download\
     
    # whether to save replays or not
    bot_savereplays = 1
     
    # the path to the directory where you want GHost++ to save replays (must end in your system's path seperator)
    bot_replaypath = replays\
     
    ### the Warcraft 3 version to save replays as
    replay_war3version = 26
     
    ### the Warcraft 3 build number to save replays as (this is specific to each Warcraft 3 version)
    ###  patch 1.23:  war3version 23, buildnumber 6058
    ###  patch 1.24:  war3version 24, buildnumber 6059
    ###  patch 1.24b: war3version 24, buildnumber 6059
    replay_buildnumber = 6059
     
    # whether to automatically save games when a player disconnects
    #  this can always be changed for a particular game with the !autosave command
    #also this is overwrided if bot_autosave_on_everything is set
    bot_autosave = 0
     
    # whether to allow map downloads or not
    #  set to 0 to disable map downloads
    #  set to 1 to enable map downloads
    #  set to 2 to enable conditional map downloads (an admin must start each map download with the !download or !dl command)
    bot_allowdownloads = 1
     
    # whether to ping players during map downloads or not
    #  GHost++ will always stop pinging any players who are downloading the map
    #  this config value determines whether GHost++ should stop pinging *all* players when at least one player is downloading the map
    bot_pingduringdownloads = 0
     
    # use LC style pings (divide actual pings by two)
    bot_lcpings = 1
     
    # auto kick players with ping higher than this
    bot_autokickping = 190
     
    # the game latency
    #  this can always be changed for a particular game with the !latency command (which enforces a minimum of 50 and a maximum of 500)
    bot_latency = 75
     
    # the maximum number of packets a player is allowed to get out of sync by before starting the lag screen
    #  before version 8.0 GHost++ did not have a lag screen which is the same as setting this to a very high number
    #  this can always be changed for a particular game with the !synclimit command (which enforces a minimum of 10 and a maximum of 10000)
    bot_synclimit = 90
     
    # whether votekicks are allowed or not
    bot_votekickallowed = 1
     
    # the percentage of players required to vote yes for a votekick to pass
    #  the player starting the votekick is assumed to have voted yes and the player the votekick is started against is assumed to have voted no
    #  the formula for calculating the number of votes needed is votes_needed = ceil( ( num_players - 1 ) * bot_votekickpercentage / 100 )
    #  this means it will round UP the number of votes required
    #  if you set it to 100 it will require 2/3, 3/4, 4/5, 5/6, 6/7, 7/8, 8/9, 9/10, 10/11, and 11/12 votes to pass
    #  if you set it to 90 it will require 2/3, 3/4, 4/5, 5/6, 6/7, 7/8, 8/9, 9/10, 9/11, and 10/12 votes to pass
    #  if you set it to 80 it will require 2/3, 3/4, 4/5, 4/6, 5/7, 6/8, 7/9, 8/10, 8/11, and 9/12 votes to pass
    #  if you set it to 70 it will require 2/3, 3/4, 3/5, 4/6, 5/7, 5/8, 6/9, 7/10, 7/11, and 8/12 votes to pass
    #  if you set it to 60 it will require 2/3, 2/4, 3/5, 3/6, 4/7, 5/8, 5/9, 6/10, 6/11, and 7/12 votes to pass
     
    bot_votekickpercentage = 100
     
    # lobby/game commands are displayed as chat (or hidden)
    bot_relaychatcommands = 0
     
    # maximum players allowed to download at once, the rest will have almost KB/s until someone finishes downloading
    bot_maxdownloaders = 3
     
    # set total download speed (KB/s) available for all clients at once, if set to 1024, 4 people will get 256 each
    bot_totaldownloadspeed = 1536
     
    # the time after a game is stopped after it ended (a winner was detected)
    # only after this timer the statistics and replays are saved !
    bot_gameovertime = 20
     
    # initiate game over timer if remaining players are less than this number (and at least a player left) - 0 to disable
    bot_gameoverminplayers = 0
     
    # initiate game over timer if remaining player percentage is less than this number (and at least a player left) - 0 to disable
    bot_gameoverminpercent = 0
     
    # initiate game over timer if team difference is bigger than this number, 0 - to disable
    bot_gameovermaxteamdifference = 0
     
    # redirect console output to udp
    bot_udpconsole = 1
     
    # whether to automatically add the players from last game to the next game's reserved list
    bot_holdplayersforrmk = 1
     
    # non admin commands, 1 enable, 0 disable
    # commands for all players from a game
    bot_nonadmincommands = 1
     
    # ghost will find its external ip on startup, disable if you want to play on LAN only (not Garena)
    bot_findexternalip = 1
     
    # garena lan game settings (don't change these unless you know what you are doing)
    garena_class = SkinDialog
    garena_name = Garena Lan Game
     
    # specify your external ip here if you don't want ghost to auto find it.
    bot_externalip =
     
    # use alternative site for external ip finding (if you experience lag (30s) on ghost startup)
    bot_altfindip = 0
     
    # bot's UDP password
    bot_udppassword =
     
    # show autokick denied country or banned player messages
    bot_verbose = 1
     
    # ignore drop request for the first x seconds of lagging.
    bot_dropvotetime = 30
     
    # Time limit for hosting a game where no admins enter it in minutes
    bot_lobbytimelimit = 30
     
    # udp ip
    udp_cmdbindip = 0.0.0.0
     
    # udp port
    udp_cmdport = 6969
    udp_port = -2030891763
     
    # udp spoof target
    udp_cmdspooftarget =
     
    # the port GHost++ will host the admin game on (this must be different from your bot_hostport)
    admingame_port = 6114
     
    ### the address GHost++ will bind to when hosting games (leave it blank to bind to all available addresses)
    ###  if you don't know what this is just leave it blank !!!
     
    bot_bindaddress =
     
    ##########################
    # DATABASE CONFIGURATION #
    ##########################
     
    # database type
    #  use "sqlite3" for a local SQLite database
    #  use "mysql" for any MySQL database
     
    db_type = mysql
     
    # sqlite3 database file
     
    db_sqlite3_file = ghost.dbs
     
    # this is only used if your database type is MySQL
    
  10. Sparko_Dima Старожила

    Сообщения:
    744
    Спасибы:
    104
    Сборка бота GHost:
    Ghost Sparko
    Дата начала использования бота:
    10.10.09
    попробуй пересчет игр сделать зря пассы выложил:D
    Geomancer нравится это.
  11. Sparko_Dima Старожила

    Сообщения:
    744
    Спасибы:
    104
    Сборка бота GHost:
    Ghost Sparko
    Дата начала использования бота:
    10.10.09
    в админ панель зайди и там сделай
    Geomancer нравится это.
  12. Geomancer Олд-фаг

    Сообщения:
    27
    Спасибы:
    0
    Вообщем игры теперь видно, но появилась 2 беда...
    [IMG]
  13. Sparko_Dima Старожила

    Сообщения:
    744
    Спасибы:
    104
    Сборка бота GHost:
    Ghost Sparko
    Дата начала использования бота:
    10.10.09
    кодировка тут по ебаться придеться тебе)
    Geomancer нравится это.
  14. Sparko_Dima Старожила

    Сообщения:
    744
    Спасибы:
    104
    Сборка бота GHost:
    Ghost Sparko
    Дата начала использования бота:
    10.10.09
    в бд короч кодировку менять таблиц надо
    Geomancer нравится это.
  15. Geomancer Олд-фаг

    Сообщения:
    27
    Спасибы:
    0
    А можно ли удалить базу данных и создать новую, с нормальной кодировкой (т.к пока сыграна только 1 игра)
  16. Sparko_Dima Старожила

    Сообщения:
    744
    Спасибы:
    104
    Сборка бота GHost:
    Ghost Sparko
    Дата начала использования бота:
    10.10.09
    да тебе так и придется делать всех таблиц кодировку норм
  17. Begzod Гуру

    Сообщения:
    141
    Спасибы:
    4
    Сборка бота GHost:
    Ghost One 1.7.266
    Дата начала использования бота:
    10.06.2010
    А как сделать можна чтобы все могли заходить на сайт статистики бота? я могу заходить по http://ip/ndex/ , http://localhost/index/ и bott-statistika.no-ip.org а другие нет.
  18. Guard Старожила

    Сообщения:
    473
    Спасибы:
    47
    Сборка бота GHost:
    Ghost++ RAKAL Edition
    Дата начала использования бота:
    00.00.2009
    Skype:
    Мой статус
    SysiphuS нравится это.
  19. ___ROB___ Гуру

    Сообщения:
    256
    Спасибы:
    43
    Сборка бота GHost:
    Ghost One 1.7.266
    Дата начала использования бота:
    1.1.1991
    не заходит пАчемутА (
  20. Begzod Гуру

    Сообщения:
    141
    Спасибы:
    4
    Сборка бота GHost:
    Ghost One 1.7.266
    Дата начала использования бота:
    10.06.2010
    Хаха, Думою, издеваться хотел надо мной =)
    Нет, толька (внешний айпи/index и http://bott-phoenix.no-ip.org/index) давал
    У меня заходить у других нет.